diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..1326700af --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,3 @@ +{ + "image": "mcr.microsoft.com/dotnet/sdk:8.0" +} \ No newline at end of file diff --git a/.editorconfig b/.editorconfig index 9345e1b0b..9a3d9c40d 100644 --- a/.editorconfig +++ b/.editorconfig @@ -44,4 +44,21 @@ csharp_new_line_before_else = true csharp_new_line_before_catch = true csharp_new_line_before_finally = true csharp_new_line_before_members_in_object_initializers = true -csharp_new_line_before_members_in_anonymous_types = true \ No newline at end of file +csharp_new_line_before_members_in_anonymous_types = true + +# https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/unnecessary-code-rules + +# Avoid unused private fields +dotnet_diagnostic.CA1823.severity = error + +# Use string.Contains(char) instead of string.Contains(string) with single characters +dotnet_diagnostic.CA1847.severity = error + +# Remove unnecessary import +dotnet_diagnostic.IDE0005.severity = error + +# Private member is unused +dotnet_diagnostic.IDE0051.severity = error + +# Private member is unread +dotnet_diagnostic.IDE0052.severity = error \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 000000000..841fcae61 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,37 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**Kubernetes C# SDK Client Version** +e.g. `9.0.1` + +**Server Kubernetes Version** +e.g. `1.22.3` + +**Dotnet Runtime Version** +e.g. net6 + +**To Reproduce** +Steps to reproduce the behavior: + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**KubeConfig** +If applicable, add a KubeConfig file with secrets redacted. + +**Where do you run your app with Kubernetes SDK (please complete the following information):** + - OS: [e.g. Linux] + - Environment [e.g. container] + - Cloud [e.g. Azure] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..2fb1795e4 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,31 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + + # Maintain dependencies for GitHub Actions + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + # Allow up to 5 open pull requests for GitHub Actions dependencies + open-pull-requests-limit: 5 + labels: + - "dependencies" + # Rebase open pull requests when changes are detected + rebase-strategy: "auto" + + # Maintain dependencies for NuGet packages + - package-ecosystem: "nuget" + directory: "/" + schedule: + interval: "daily" + # Allow up to 10 open pull requests for NuGet dependencies + open-pull-requests-limit: 10 + labels: + - "dependencies" + # Rebase open pull requests when changes are detected + rebase-strategy: "auto" diff --git a/.github/workflows/buildtest.yaml b/.github/workflows/buildtest.yaml index 081a1066d..26d585ec7 100644 --- a/.github/workflows/buildtest.yaml +++ b/.github/workflows/buildtest.yaml @@ -8,63 +8,82 @@ jobs: os: [ubuntu-latest, windows-latest, macOS-latest] name: Dotnet build steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v5 with: fetch-depth: 0 - - name: Setup dotnet SDK 3.1 - uses: actions/setup-dotnet@v1 + - name: Setup dotnet + uses: actions/setup-dotnet@v5 with: - dotnet-version: '3.1.x' - - name: Setup dotnet SDK 5 - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '5.0.x' - - name: Setup dotnet SDK 6 - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '6.0.x' - - name: Check Format - # don't check formatting on Windows b/c of CRLF issues. - if: matrix.os == 'ubuntu-latest' - run: dotnet format --severity error --verify-no-changes --exclude ./src/KubernetesClient/generated/ + dotnet-version: | + 8.0.x + 9.0.x - name: Build - run: dotnet build --configuration Release + run: dotnet build --configuration Release - name: Test - run: dotnet test /p:CollectCoverage=true /p:ExcludeByFile=\"**/KubernetesClient/generated/**/*.cs\" /p:CoverletOutputFormat="cobertura" - # - uses: 5monkeys/cobertura-action@master - # with: - # path: tests/KubernetesClient.Tests/coverage.netcoreapp2.1.cobertura.xml - # repo_token: ${{ secrets.GITHUB_TOKEN }} - # minimum_coverage: 0 - e2e: - runs-on: ubuntu-latest + run: dotnet test --configuration Release --collect:"Code Coverage;Format=Cobertura" --logger trx --results-directory TestResults --settings CodeCoverage.runsettings --no-build + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v5 + with: + directory: ./TestResults + files: '*.cobertura.xml' + - name: Upload test results + uses: actions/upload-artifact@v5 + with: + name: test-results-${{ matrix.os }} + path: ./TestResults + if: ${{ always() }} # Always run this step even on failure + + # Test code gen for visual studio compatibility >> https://github.com/kubernetes-client/csharp/pull/1008 + codgen: + runs-on: windows-latest + name: MSBuild build steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v5 with: fetch-depth: 0 - - name: Setup dotnet SDK 3.1 - uses: actions/setup-dotnet@v1 + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v2 + - name: Setup dotnet SDK + uses: actions/setup-dotnet@v5 with: - dotnet-version: '3.1.x' - - name: Setup dotnet SDK 5 - uses: actions/setup-dotnet@v1 + dotnet-version: '9.0.x' + - name: Restore nugets (msbuild) + run: msbuild .\src\KubernetesClient\ -t:restore -p:RestorePackagesConfig=true + - name: Build (msbuild) + run: msbuild .\src\KubernetesClient\ + + e2e: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 with: - dotnet-version: '5.0.x' - - name: Setup dotnet SDK 6 - uses: actions/setup-dotnet@v1 + fetch-depth: 0 + - name: Setup dotnet + uses: actions/setup-dotnet@v5 with: - dotnet-version: '6.0.x' + dotnet-version: | + 8.0.x + 9.0.x - name: Minikube run: minikube start - name: Test run: | true > skip.log - env K8S_E2E_MINIKUBE=1 dotnet test tests/E2E.Tests --logger "SkipTestLogger;file=$PWD/skip.log" + env K8S_E2E_MINIKUBE=1 dotnet test tests/E2E.Tests --logger "SkipTestLogger;file=$PWD/skip.log" -p:BuildInParallel=false + if [ -s skip.log ]; then + cat skip.log + echo "CASES MUST NOT BE SKIPPED" + exit 1 + fi + - name: AOT Test + run: | + true > skip.log + env K8S_E2E_MINIKUBE=1 dotnet test tests/E2E.Aot.Tests --logger "SkipTestLogger;file=$PWD/skip.log" -p:BuildInParallel=false if [ -s skip.log ]; then cat skip.log echo "CASES MUST NOT BE SKIPPED" exit 1 - fi + fi on: pull_request: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 4ae4d4eff..6355396eb 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,55 +1,62 @@ -name: "CodeQL" - -on: - push: - branches: [ master ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ master ] - schedule: - - cron: '15 23 * * 1' - -jobs: - analyze: - name: Analyze - runs-on: windows-latest - - strategy: - fail-fast: false - matrix: - language: [ 'csharp' ] - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Setup dotnet SDK 3.1 - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '3.1.x' - - name: Setup dotnet SDK 5 - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '5.0.x' - - name: Setup dotnet SDK 6 - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '6.0.x' - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main - - - name: Autobuild - uses: github/codeql-action/autobuild@v1 - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 +name: "CodeQL" + +permissions: + actions: read + contents: read + security-events: write + +on: + push: + branches: [ master ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ master ] + schedule: + - cron: '15 23 * * 1' + +jobs: + analyze: + name: Analyze + runs-on: windows-2022 + + strategy: + fail-fast: false + matrix: + language: [ 'csharp' ] + + steps: + - name: Checkout repository + uses: actions/checkout@v5 + with: + fetch-depth: 0 + + - name: Setup dotnet + uses: actions/setup-dotnet@v5 + with: + dotnet-version: | + 8.0.x + 9.0.x + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + with: + languages: ${{ matrix.language }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + # queries: ./path/to/local/query, your-org/your-repo/queries@main + + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). + # If this step fails, then you should remove it and run the build manually (see below) + # Currently .NET8.0 isn't supported + # - name: Autobuild + # uses: github/codeql-action/autobuild@v2 + + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --configuration Debug --no-restore + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v4 diff --git a/.github/workflows/docfx.yaml b/.github/workflows/docfx.yaml new file mode 100644 index 000000000..3eec06ec3 --- /dev/null +++ b/.github/workflows/docfx.yaml @@ -0,0 +1,56 @@ +name: Docfx + +on: + push: + branches: [ master ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + docfx: + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - uses: actions/checkout@v5 + with: + fetch-depth: 0 + + - name: Setup dotnet + uses: actions/setup-dotnet@v5 + with: + dotnet-version: | + 8.0.x + 9.0.x + + - name: Build + run: dotnet build -c Release + + - uses: nunit/docfx-action@v4.1.0 + name: Build Documentation + with: + args: doc/docfx.json + + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v4 + with: + # Upload entire repository + path: doc/_site + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/draft.yaml b/.github/workflows/draft.yaml new file mode 100644 index 000000000..01b098518 --- /dev/null +++ b/.github/workflows/draft.yaml @@ -0,0 +1,42 @@ +name: Draft Release + +permissions: + contents: write + +on: + push: + branches: [ master ] + +jobs: + draft: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v5 + with: + fetch-depth: 0 + + - name: Setup dotnet + uses: actions/setup-dotnet@v5 + with: + dotnet-version: | + 8.0.x + 9.0.x + + - name: dotnet restore + run: dotnet restore --verbosity minimal --configfile nuget.config + + - name: dotnet test + run: dotnet test + + - uses: dotnet/nbgv@master + with: + setAllVars: true + + - name: create release + shell: pwsh + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release create -d --generate-notes v$env:NBGV_NuGetPackageVersion diff --git a/.github/workflows/nuget.yaml b/.github/workflows/nuget.yaml index 5808d472b..fa654822f 100644 --- a/.github/workflows/nuget.yaml +++ b/.github/workflows/nuget.yaml @@ -1,33 +1,25 @@ name: Nuget on: - push: - branches: [ master ] + release: + types: [ released ] jobs: - build: + nuget: runs-on: windows-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v5 with: fetch-depth: 0 - - name: .NET Core 3.1.x SDK - uses: actions/setup-dotnet@v1 + - name: Setup dotnet + uses: actions/setup-dotnet@v5 with: - dotnet-version: 3.1.x - - - name: .NET 5.x SDK - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 5.0.x - - - name: .NET 6.x SDK - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 6.0.x + dotnet-version: | + 8.0.x + 9.0.x - name: dotnet restore run: dotnet restore --verbosity minimal --configfile nuget.config @@ -36,7 +28,33 @@ jobs: run: dotnet test - name: dotnet pack - run: dotnet pack -c Release src/KubernetesClient -o pkg --include-symbols + run: dotnet pack -c Release src/nuget.proj -o pkg --include-symbols - name: dotnet nuget push - run: dotnet nuget push pkg\*.nupkg -s https://www.nuget.org/ -k ${{ secrets.nuget_api_key }} + run: | + dotnet nuget push pkg\*.nupkg -s https://nuget.pkg.github.com/$env:GITHUB_REPOSITORY_OWNER -k ${{ secrets.GITHUB_TOKEN }} --skip-duplicate + dotnet nuget push pkg\*.nupkg -s https://www.nuget.org/ -k ${{ secrets.nuget_api_key }} --skip-duplicate + + + ## Remove old versions of NuGet packages form github NuGet feed + nuget-delete-old-packages: + name: "Delete Old NuGet" + needs: [nuget] + strategy: + matrix: + nuget-package: + - "KubernetesClient" + - "KubernetesClient.Classic" + runs-on: ubuntu-latest + permissions: + packages: write + + steps: + - name: Delete old NuGet packages + uses: actions/delete-package-versions@v5 + with: + owner: ${{ env.GITHUB_REPOSITORY_OWNER }} + token: ${{ secrets.GITHUB_TOKEN }} + package-name: ${{ matrix.nuget-package }} + package-type: nuget + min-versions-to-keep: 10 diff --git a/.gitignore b/.gitignore index d24a2eae2..46bc886d3 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,6 @@ bin/ *.sln.iml launchSettings.json -*.DotSettings \ No newline at end of file +*.DotSettings + +*.sln \ No newline at end of file diff --git a/CodeCoverage.runsettings b/CodeCoverage.runsettings new file mode 100644 index 000000000..acc025c10 --- /dev/null +++ b/CodeCoverage.runsettings @@ -0,0 +1,40 @@ + + + + + + + + + + .*KubernetesClient\..*\.dll$ + + + .*tests\.dll$ + .*xunit.*dll$ + .*moq\.dll$ + .*System\.Reactive\.dll$ + .*BouncyCastle\.Crypto\.dll$ + .*IdentityModel\.OidcClient\.dll$ + + + + True + + True + + True + + + ^System.ObsoleteAttribute$ + ^System.CodeDom.Compiler.GeneratedCodeAttribute$ + ^System.Diagnostics.DebuggerHiddenAttribute$ + ^System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute$ + + + + + + + + diff --git a/Directory.Build.props b/Directory.Build.props index bfa551f49..3d3e1cfce 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,39 @@ - - - - $(MSBuildThisFileDirectory)\kubernetes-client.ruleset - - + + + + $(MSBuildThisFileDirectory)\kubernetes-client.ruleset + true + true + + + + The Kubernetes Project Authors + 2017 The Kubernetes Project Authors + Client library for the Kubernetes open source container orchestrator. + + Apache-2.0 + https://github.com/kubernetes-client/csharp + https://raw.githubusercontent.com/kubernetes/kubernetes/master/logo/logo.png + logo.png + kubernetes;docker;containers; + true + + + true + + + true + snupkg + true + $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb + 13.0 + + + + true + + + + + + diff --git a/Directory.Build.targets b/Directory.Build.targets index 5556d70a5..517121e49 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -1,15 +1,5 @@ - - - All - - - - All - - - - - - + + + diff --git a/Directory.Packages.props b/Directory.Packages.props new file mode 100644 index 000000000..27783a77c --- /dev/null +++ b/Directory.Packages.props @@ -0,0 +1,54 @@ + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/OWNERS b/OWNERS index 055985bd8..ef8b7dd29 100644 --- a/OWNERS +++ b/OWNERS @@ -2,8 +2,9 @@ approvers: - brendandburns -- krabhishek8260 -reviewer: +- tg123 +reviewers: - brendandburns -- krabhishek8260 - +- tg123 +emeritus_approvers: +- krabhishek8260 # 4/4/2022 diff --git a/README.md b/README.md index a89adc07c..c8eb91626 100644 --- a/README.md +++ b/README.md @@ -1,33 +1,38 @@ # Kubernetes C# Client -[![Travis](https://img.shields.io/travis/kubernetes-client/csharp.svg)](https://travis-ci.org/kubernetes-client/csharp) + +[![Github Actions Build](https://github.com/kubernetes-client/csharp/actions/workflows/buildtest.yaml/badge.svg)](https://github.com/kubernetes-client/csharp/actions/workflows/buildtest.yaml) [![Client Capabilities](https://img.shields.io/badge/Kubernetes%20client-Silver-blue.svg?style=flat&colorB=C0C0C0&colorA=306CE8)](http://bit.ly/kubernetes-client-capabilities-badge) [![Client Support Level](https://img.shields.io/badge/kubernetes%20client-beta-green.svg?style=flat&colorA=306CE8)](http://bit.ly/kubernetes-client-support-badge) # Usage -[Nuget Package](https://www.nuget.org/packages/KubernetesClient/) + +[![KubernetesClient](https://img.shields.io/nuget/v/KubernetesClient)](https://www.nuget.org/packages/KubernetesClient/) ```sh dotnet add package KubernetesClient ``` +## Generate with Visual Studio + +``` +dotnet msbuild /Restore /t:SlnGen kubernetes-client.proj +``` + ## Authentication/Configuration You should be able to use a standard KubeConfig file with this library, see the `BuildConfigFromConfigFile` function below. Most authentication -methods are currently supported, but a few are not, see the +methods are currently supported, but a few are not, see the [known-issues](https://github.com/kubernetes-client/csharp#known-issues). You should also be able to authenticate with the in-cluster service account using the `InClusterConfig` function shown below. ## Monitoring -There is optional built-in metric generation for prometheus client metrics. -The exported metrics are: - -* `k8s_dotnet_request_total` - Counter of request, broken down by HTTP Method -* `k8s_dotnet_response_code_total` - Counter of responses, broken down by HTTP Method and response code -* `k8s_request_latency_seconds` - Latency histograms broken down by method, api group, api version and resource kind +Metrics are built in to HttpClient using System.Diagnostics.DiagnosticsSource. +https://learn.microsoft.com/en-us/dotnet/core/diagnostics/built-in-metrics-system-net -There is an example integrating these monitors in the examples/prometheus directory. +There are many ways these metrics can be consumed/exposed but that decision is up to the application, not KubernetesClient itself. +https://learn.microsoft.com/en-us/dotnet/core/diagnostics/metrics-collection ## Sample Code @@ -48,10 +53,10 @@ var client = new Kubernetes(config); ### Listing Objects ```c# -var namespaces = client.ListNamespace(); +var namespaces = client.CoreV1.ListNamespace(); foreach (var ns in namespaces.Items) { Console.WriteLine(ns.Metadata.Name); - var list = client.ListNamespacedPod(ns.Metadata.Name); + var list = client.CoreV1.ListNamespacedPod(ns.Metadata.Name); foreach (var item in list.Items) { Console.WriteLine(item.Metadata.Name); @@ -69,10 +74,10 @@ var ns = new V1Namespace } }; -var result = client.CreateNamespace(ns); +var result = client.CoreV1.CreateNamespace(ns); Console.WriteLine(result); -var status = client.DeleteNamespace(ns.Metadata.Name, new V1DeleteOptions()); +var status = client.CoreV1.DeleteNamespace(ns.Metadata.Name, new V1DeleteOptions()); ``` ## Examples @@ -96,7 +101,7 @@ var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); var client = new Kubernetes(config); ``` -Not all auth providers are supported at moment [#91](https://github.com/kubernetes-client/csharp/issues/91#issuecomment-362920478). You can still connect to a cluster by starting the proxy command: +Not all auth providers are supported at the moment [#91](https://github.com/kubernetes-client/csharp/issues/91#issuecomment-362920478). You can still connect to a cluster by starting the proxy command: ```bash $ kubectl proxy @@ -113,7 +118,7 @@ Notice that this is a workaround and is not recommended for production use. ## Testing -The project uses [XUnit](https://xunit.github.io) as unit testing framework. +The project uses [XUnit](https://github.com/xunit/xunit) as unit testing framework. To run the tests: @@ -123,14 +128,12 @@ dotnet restore dotnet test ``` -# Generating the Client Code +# Update the API model ## Prerequisites You'll need a Linux machine with Docker. -The generated code works on all platforms supported by .NET or .NET Core. - Check out the generator project into some other directory (henceforth `$GEN_DIR`). @@ -139,30 +142,53 @@ cd $GEN_DIR/.. git clone https://github.com/kubernetes-client/gen ``` -## Generating code +## Generating new swagger.json ```bash # Where REPO_DIR points to the root of the csharp repository -cd ${REPO_DIR}/csharp/src/KubernetesClient -${GEN_DIR}/openapi/csharp.sh generated ../csharp.settings +cd +${GEN_DIR}/openapi/csharp.sh ${REPO_DIR}/src/KubernetesClient ${REPO_DIR}/csharp.settings ``` -# Version Compatibility +# Version Compatibility + +| SDK Version | Kubernetes Version | .NET Targeting | +|-------------|--------------------|-----------------------------------------------------| +| 18.0 | 1.34 | net8.0;net9.0;net48*;netstandard2.0* | +| 17.0 | 1.33 | net8.0;net9.0;net48*;netstandard2.0* | +| 16.0 | 1.32 | net8.0;net9.0;net48*;netstandard2.0* | +| 15.0 | 1.31 | net6.0;net8.0;net48*;netstandard2.0* | +| 14.0 | 1.30 | net6.0;net8.0;net48*;netstandard2.0* | +| 13.0 | 1.29 | net6.0;net7.0;net8.0;net48*;netstandard2.0* | +| 12.0 | 1.28 | net6.0;net7.0;net48*;netstandard2.0* | +| 11.0 | 1.27 | net6.0;net7.0;net48*;netstandard2.0* | +| 10.0 | 1.26 | net6.0;net7.0;net48*;netstandard2.0* | +| 9.1 | 1.25 | netstandard2.1;net6.0;net7.0;net48*;netstandard2.0* | +| 9.0 | 1.25 | netstandard2.1;net5.0;net6.0;net48*;netstandard2.0* | +| 8.0 | 1.24 | netstandard2.1;net5.0;net6.0;net48*;netstandard2.0* | +| 7.2 | 1.23 | netstandard2.1;net5.0;net6.0;net48*;netstandard2.0* | +| 7.0 | 1.23 | netstandard2.1;net5.0;net6.0 | +| 6.0 | 1.22 | netstandard2.1;net5.0 | +| 5.0 | 1.21 | netstandard2.1;net5 | +| 4.0 | 1.20 | netstandard2.0;netstandard2.1 | +| 3.0 | 1.19 | netstandard2.0;net452 | +| 2.0 | 1.18 | netstandard2.0;net452 | +| 1.6 | 1.16 | netstandard1.4;netstandard2.0;net452; | +| 1.4 | 1.13 | netstandard1.4;net451 | +| 1.3 | 1.12 | netstandard1.4;net452 | + + * Starting from `2.0`, [dotnet sdk versioning](https://github.com/kubernetes-client/csharp/issues/400) adopted + * `Kubernetes Version` here means the version sdk models and apis were generated from + * Kubernetes api server guarantees the compatibility with `n-2` (`n-3` after 1.28) version. for example: + - 1.19 based sdk should work with 1.21 cluster, but not guaranteed to work with 1.22 cluster.
-| SDK Version | Kubernetes Version | .NET Targeting | -|-------------|--------------------|---------------------------------------| -| 6.0 | 1.22 | netstandard2.1;net5 | -| 5.0 | 1.21 | netstandard2.1;net5 | -| 4.0 | 1.20 | netstandard2.0;netstandard2.1 | -| 3.0 | 1.19 | netstandard2.0;net452 | -| 2.0 | 1.18 | netstandard2.0;net453 | -| 1.6 | 1.16 | netstandard1.4;netstandard2.0;net452; | -| 1.4 | 1.13 | netstandard1.4;net451 | -| 1.3 | 1.12 | netstandard1.4;net452 | + and vice versa: + - 1.21 based sdk should work with 1.19 cluster, but not guaranteed to work with 1.18 cluster.
+Note: in practice, the sdk might work with much older clusters, at least for the more stable functionality. However, it is not guaranteed past the `n-2` (or `n-3` after 1.28 ) version. See [#1511](https://github.com/kubernetes-client/csharp/issues/1511) for additional details.
- * Starting form `2.0`, [dotnet sdk versioning](https://github.com/kubernetes-client/csharp/issues/400) adopted - * `Kubernetes Version` here means the version sdk models and apis were generated from - * Kubernetes api server guarantees the compatibility with `n-2` version. for exmaple, 1.19 based sdk should work with 1.21 cluster, but no guarantee works with 1.22 cluster. see also + see also + * Fixes (including security fixes) are not back-ported automatically to older sdk versions. However, contributions from the community are welcomed 😊; See [Contributing](#contributing) for instructions on how to contribute. + * `*` `KubernetesClient.Classic`: netstandard2.0 and net48 are supported with limited features ## Contributing diff --git a/SECURITY_CONTACTS b/SECURITY_CONTACTS index d22538052..df0df1c5f 100644 --- a/SECURITY_CONTACTS +++ b/SECURITY_CONTACTS @@ -11,3 +11,4 @@ # INSTRUCTIONS AT https://kubernetes.io/security/ brendandburns +tg123 diff --git a/csharp.settings b/csharp.settings index 07a2b4e55..0110958c8 100644 --- a/csharp.settings +++ b/csharp.settings @@ -1,3 +1,3 @@ -export KUBERNETES_BRANCH=v1.22.0 +export KUBERNETES_BRANCH=v1.34.0 export CLIENT_VERSION=0.0.1 export PACKAGE_NAME=k8s diff --git a/doc/.gitignore b/doc/.gitignore new file mode 100644 index 000000000..2f16432e9 --- /dev/null +++ b/doc/.gitignore @@ -0,0 +1,11 @@ +############### +# folder # +############### +/**/DROP/ +/**/TEMP/ +/**/packages/ +/**/bin/ +/**/obj/ +_site + +api \ No newline at end of file diff --git a/doc/CONTRIBUTING.md b/doc/CONTRIBUTING.md new file mode 120000 index 000000000..44fcc6343 --- /dev/null +++ b/doc/CONTRIBUTING.md @@ -0,0 +1 @@ +../CONTRIBUTING.md \ No newline at end of file diff --git a/doc/docfx.json b/doc/docfx.json new file mode 100644 index 000000000..2917802e6 --- /dev/null +++ b/doc/docfx.json @@ -0,0 +1,41 @@ +{ + "metadata": [ + { + "src": [ + { + "files": [ + "KubernetesClient/bin/Release/net8.0/KubernetesClient.dll" + ], + "src": "../src" + } + ], + "dest": "api", + "disableGitFeatures": false, + "disableDefaultFilter": false + } + ], + "build": { + "content": [ + { + "files": [ + "api/**.yml", + "index.md", + "CONTRIBUTING.md", + "toc.yml" + ] + } + ], + "dest": "_site", + "globalMetadataFiles": [], + "fileMetadataFiles": [], + "template": [ + "default" + ], + "postProcessors": [], + "markdownEngineName": "markdig", + "noLangKeyword": false, + "keepFileLink": false, + "cleanupCacheHistory": false, + "disableGitFeatures": false + } +} \ No newline at end of file diff --git a/doc/index.md b/doc/index.md new file mode 120000 index 000000000..32d46ee88 --- /dev/null +++ b/doc/index.md @@ -0,0 +1 @@ +../README.md \ No newline at end of file diff --git a/doc/toc.yml b/doc/toc.yml new file mode 100644 index 000000000..8bf2c8ed1 --- /dev/null +++ b/doc/toc.yml @@ -0,0 +1,2 @@ +- name: API Documentation + href: api/k8s.yml diff --git a/examples/Directory.Build.props b/examples/Directory.Build.props new file mode 100644 index 000000000..b87fe6aaa --- /dev/null +++ b/examples/Directory.Build.props @@ -0,0 +1,7 @@ + + + + + net9.0 + + diff --git a/examples/Directory.Build.targets b/examples/Directory.Build.targets new file mode 100644 index 000000000..bf5f5ee49 --- /dev/null +++ b/examples/Directory.Build.targets @@ -0,0 +1,6 @@ + + + + + + diff --git a/examples/GenericKubernetesApi/Program.cs b/examples/GenericKubernetesApi/Program.cs deleted file mode 100644 index 5a093fad1..000000000 --- a/examples/GenericKubernetesApi/Program.cs +++ /dev/null @@ -1,61 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; -using k8s; -using k8s.Models; -using k8s.Util.Common; -using k8s.Util.Common.Generic; - -namespace GenericKubernetesApiExample -{ - public class Program - { - private static GenericKubernetesApi _genericKubernetesApi; - - public static void Main(string[] args) - { - var config = KubernetesClientConfiguration.BuildDefaultConfig(); - IKubernetes client = new Kubernetes(config); - var cts = new CancellationTokenSource(); - - _genericKubernetesApi = new GenericKubernetesApi( - apiGroup: "pod", - apiVersion: "v1", - resourcePlural: "pods", - apiClient: client); - - var aPod = GetNamespacedPod(Namespaces.NamespaceDefault, "my-pod-name", cts.Token); - var aListOfPods = ListPodsInNamespace(Namespaces.NamespaceDefault, cts.Token); - - // Watch for pod actions in a namespsace - using var watch = _genericKubernetesApi.Watch( - Namespaces.NamespaceDefault, - (eventType, pod) => { Console.WriteLine("The event {0} happened on pod named {1}", eventType, pod.Metadata.Name); }, - exception => { Console.WriteLine("Oh no! An exception happened while watching pods. The message was '{0}'.", exception.Message); }, - () => { Console.WriteLine("The server closed the connection."); }); - - Console.WriteLine("press ctrl + c to stop watching"); - - var ctrlc = new ManualResetEventSlim(false); - Console.CancelKeyPress += (sender, eventArgs) => ctrlc.Set(); - ctrlc.Wait(); - cts.Cancel(); - } - - private static V1Pod GetNamespacedPod(string @namespace, string podName, CancellationToken cancellationToken) - { - var resp = Task.Run( - async () => await _genericKubernetesApi.GetAsync(@namespace, podName, cancellationToken).ConfigureAwait(false), cancellationToken); - - return resp.Result; - } - - private static V1PodList ListPodsInNamespace(string @namespace, CancellationToken cancellationToken) - { - var resp = Task.Run( - async () => await _genericKubernetesApi.ListAsync(@namespace, cancellationToken).ConfigureAwait(false), cancellationToken); - - return resp.Result; - } - } -} diff --git a/examples/aks-kubelogin/Program.cs b/examples/aks-kubelogin/Program.cs new file mode 100644 index 000000000..cdee0cf10 --- /dev/null +++ b/examples/aks-kubelogin/Program.cs @@ -0,0 +1,49 @@ +using k8s; +using System; +using System.IO; +using System.Text; + +var server = "https://example.hcp.eastus.azmk8s.io/"; // the server url of your aks +var clientid = "00000000-0000-0000-0000-000000000000"; // the client id of the your msi +var kubelogin = @"C:\bin\kubelogin.exe"; // the path to the kubelogin.exe + +using var configstream = new MemoryStream(Encoding.ASCII.GetBytes($""" +apiVersion: v1 +clusters: +- cluster: + insecure-skip-tls-verify: true + server: {server} + name: aks +contexts: +- context: + cluster: aks + user: msi + name: aks +current-context: aks +kind: Config +users: +- name: msi + user: + exec: + apiVersion: client.authentication.k8s.io/v1beta1 + args: + - get-token + - --login + - msi + - --server-id + - 6dae42f8-4368-4678-94ff-3960e28e3630 + - --client-id + - {clientid} + command: {kubelogin} + env: null +""")); + +var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(configstream); +IKubernetes client = new Kubernetes(config); +Console.WriteLine("Starting Request!"); + +var list = client.CoreV1.ListNamespacedPod("default"); +foreach (var item in list.Items) +{ + Console.WriteLine(item.Metadata.Name); +} diff --git a/examples/aks-kubelogin/README.md b/examples/aks-kubelogin/README.md new file mode 100644 index 000000000..ab71071b0 --- /dev/null +++ b/examples/aks-kubelogin/README.md @@ -0,0 +1,24 @@ +# AKS C# example using kubelogin + MSI + +This example shows how to use the [kubelogin](https://github.com/Azure/kubelogin) to authenticate using [managed identities](https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/overview) with Azure Kubernetes Service (AKS) using the C# SDK. + + +## Prerequisites + + - turn on AAD support for AKS, see [here](https://docs.microsoft.com/en-us/azure/aks/managed-aad) + - create a managed identity for the AKS cluster + - assign the managed identity the `Azure Kubernetes Service RBAC Cluster Admin` (or other RBAC permission) on the AKS cluster + - assign the managed identity to the VM, see [here](https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/qs-configure-portal-windows-vm) + - install the [kubelogin](https://github.com/Azure/kubelogin) to your machine + +## Running the code + + *You must the the code on VM with MSI* + + - Replace `server` with the address of your AKS cluster + - Replace `clientid` with the client id of the managed identity + - Replace `kubelogin` with the path to the kubelogin executable + +``` +dotnet run +``` \ No newline at end of file diff --git a/examples/aks-kubelogin/aks-kubelogin.csproj b/examples/aks-kubelogin/aks-kubelogin.csproj new file mode 100644 index 000000000..11afe8d56 --- /dev/null +++ b/examples/aks-kubelogin/aks-kubelogin.csproj @@ -0,0 +1,5 @@ + + + Exe + + \ No newline at end of file diff --git a/examples/aot/Program.cs b/examples/aot/Program.cs new file mode 100644 index 000000000..d5125c0ff --- /dev/null +++ b/examples/aot/Program.cs @@ -0,0 +1,16 @@ +using k8s; + +var config = KubernetesClientConfiguration.BuildDefaultConfig(); +IKubernetes client = new Kubernetes(config); +Console.WriteLine("Starting Request!"); + +var list = client.CoreV1.ListNamespacedPod("default"); +foreach (var item in list.Items) +{ + Console.WriteLine(item.Metadata.Name); +} + +if (list.Items.Count == 0) +{ + Console.WriteLine("Empty!"); +} \ No newline at end of file diff --git a/examples/aot/aot.csproj b/examples/aot/aot.csproj new file mode 100644 index 000000000..28741906d --- /dev/null +++ b/examples/aot/aot.csproj @@ -0,0 +1,11 @@ + + + Exe + enable + enable + true + + + + + diff --git a/examples/attach/Attach.cs b/examples/attach/Attach.cs index 2542e1c90..cfdce7d8e 100755 --- a/examples/attach/Attach.cs +++ b/examples/attach/Attach.cs @@ -1,43 +1,31 @@ -using System; -using System.Threading.Tasks; using k8s; using k8s.Models; -using Microsoft.Rest; - -namespace attach -{ - internal class Attach - { - private static async Task Main(string[] args) - { - ServiceClientTracing.IsEnabled = true; +using System; +using System.Threading.Tasks; - var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); - IKubernetes client = new Kubernetes(config); - Console.WriteLine("Starting Request!"); +var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); +IKubernetes client = new Kubernetes(config); +Console.WriteLine("Starting Request!"); - var list = client.ListNamespacedPod("default"); - var pod = list.Items[0]; - await AttachToPod(client, pod).ConfigureAwait(false); - } +var list = client.CoreV1.ListNamespacedPod("default"); +var pod = list.Items[0]; +await AttachToPod(client, pod).ConfigureAwait(false); - private async static Task AttachToPod(IKubernetes client, V1Pod pod) - { - var webSocket = - await client.WebSocketNamespacedPodAttachAsync(pod.Metadata.Name, "default", - pod.Spec.Containers[0].Name).ConfigureAwait(false); +async Task AttachToPod(IKubernetes client, V1Pod pod) +{ + var webSocket = + await client.WebSocketNamespacedPodAttachAsync(pod.Metadata.Name, "default", + pod.Spec.Containers[0].Name).ConfigureAwait(false); - var demux = new StreamDemuxer(webSocket); - demux.Start(); + var demux = new StreamDemuxer(webSocket); + demux.Start(); - var buff = new byte[4096]; - var stream = demux.GetStream(1, 1); - while (true) - { - var read = stream.Read(buff, 0, 4096); - var str = System.Text.Encoding.Default.GetString(buff); - Console.WriteLine(str); - } - } + var buff = new byte[4096]; + var stream = demux.GetStream(1, 1); + while (true) + { + var read = stream.Read(buff, 0, 4096); + var str = System.Text.Encoding.Default.GetString(buff); + Console.WriteLine(str); } } diff --git a/examples/attach/attach.csproj b/examples/attach/attach.csproj index 4f6e2ae17..5644cab8a 100755 --- a/examples/attach/attach.csproj +++ b/examples/attach/attach.csproj @@ -1,12 +1,7 @@ - - - - Exe - net5 diff --git a/examples/clientset/Program.cs b/examples/clientset/Program.cs new file mode 100644 index 000000000..a1b74e0f8 --- /dev/null +++ b/examples/clientset/Program.cs @@ -0,0 +1,32 @@ +using k8s; +using k8s.Models; +using k8s.ClientSets; +using System.Threading.Tasks; + +namespace clientset +{ + internal class Program + { + private static async Task Main(string[] args) + { + var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); + var client = new Kubernetes(config); + + var clientSet = new ClientSet(client); + var list = await clientSet.CoreV1.Pod.ListAsync("default").ConfigureAwait(false); + foreach (var item in list) + { + System.Console.WriteLine(item.Metadata.Name); + } + + var pod = await clientSet.CoreV1.Pod.GetAsync("test", "default").ConfigureAwait(false); + System.Console.WriteLine(pod?.Metadata?.Name); + + var watch = clientSet.CoreV1.Pod.WatchListAsync("default"); + await foreach (var (_, item) in watch.ConfigureAwait(false)) + { + System.Console.WriteLine(item.Metadata.Name); + } + } + } +} \ No newline at end of file diff --git a/examples/clientset/clientset.csproj b/examples/clientset/clientset.csproj new file mode 100644 index 000000000..4274ceb02 --- /dev/null +++ b/examples/clientset/clientset.csproj @@ -0,0 +1,6 @@ + + + Exe + + + diff --git a/examples/cp/Cp.cs b/examples/cp/Cp.cs new file mode 100644 index 000000000..43e769490 --- /dev/null +++ b/examples/cp/Cp.cs @@ -0,0 +1,110 @@ +using ICSharpCode.SharpZipLib.Tar; +using k8s; +using System; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading; +using System.Threading.Tasks; + +namespace cp; + +internal class Cp +{ + private static IKubernetes client; + + private static async Task Main(string[] args) + { + var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); + client = new Kubernetes(config); + + + var pods = client.CoreV1.ListNamespacedPod("default", null, null, null, $"job-name=upload-demo"); + var pod = pods.Items.First(); + + await CopyFileToPodAsync(pod.Metadata.Name, "default", "upload-demo", args[0], $"home/{args[1]}").ConfigureAwait(false); + } + + + + + private static void ValidatePathParameters(string sourcePath, string destinationPath) + { + if (string.IsNullOrWhiteSpace(sourcePath)) + { + throw new ArgumentException($"{nameof(sourcePath)} cannot be null or whitespace"); + } + + if (string.IsNullOrWhiteSpace(destinationPath)) + { + throw new ArgumentException($"{nameof(destinationPath)} cannot be null or whitespace"); + } + } + + public static async Task CopyFileToPodAsync(string name, string @namespace, string container, string sourceFilePath, string destinationFilePath, CancellationToken cancellationToken = default(CancellationToken)) + { + // All other parameters are being validated by MuxedStreamNamespacedPodExecAsync called by NamespacedPodExecAsync + ValidatePathParameters(sourceFilePath, destinationFilePath); + + // The callback which processes the standard input, standard output and standard error of exec method + var handler = new ExecAsyncCallback(async (stdIn, stdOut, stdError) => + { + var fileInfo = new FileInfo(destinationFilePath); + try + { + using (var memoryStream = new MemoryStream()) + { + using (var inputFileStream = File.OpenRead(sourceFilePath)) + using (var tarOutputStream = new TarOutputStream(memoryStream, Encoding.Default)) + { + tarOutputStream.IsStreamOwner = false; + + var fileSize = inputFileStream.Length; + var entry = TarEntry.CreateTarEntry(fileInfo.Name); + + entry.Size = fileSize; + + tarOutputStream.PutNextEntry(entry); + await inputFileStream.CopyToAsync(tarOutputStream).ConfigureAwait(false); + tarOutputStream.CloseEntry(); + } + + memoryStream.Position = 0; + + await memoryStream.CopyToAsync(stdIn).ConfigureAwait(false); + await stdIn.FlushAsync().ConfigureAwait(false); + } + } + catch (Exception ex) + { + throw new IOException($"Copy command failed: {ex.Message}"); + } + + using StreamReader streamReader = new StreamReader(stdError); + while (streamReader.EndOfStream == false) + { + string error = await streamReader.ReadToEndAsync().ConfigureAwait(false); + throw new IOException($"Copy command failed: {error}"); + } + }); + + string destinationFolder = GetFolderName(destinationFilePath); + + return await client.NamespacedPodExecAsync( + name, + @namespace, + container, + new string[] { "sh", "-c", $"tar xmf - -C {destinationFolder}" }, + false, + handler, + cancellationToken).ConfigureAwait(false); + } + + + private static string GetFolderName(string filePath) + { + var folderName = Path.GetDirectoryName(filePath); + + return string.IsNullOrEmpty(folderName) ? "." : folderName; + } +} diff --git a/examples/cp/cp.csproj b/examples/cp/cp.csproj new file mode 100644 index 000000000..cde0f0fca --- /dev/null +++ b/examples/cp/cp.csproj @@ -0,0 +1,11 @@ + + + + Exe + + + + + + + diff --git a/examples/csrApproval/Program.cs b/examples/csrApproval/Program.cs new file mode 100644 index 000000000..6c374105b --- /dev/null +++ b/examples/csrApproval/Program.cs @@ -0,0 +1,85 @@ +using Json.Patch; +using k8s; +using k8s.Models; +using System.Net; +using System.Security.Cryptography; +using System.Security.Cryptography.X509Certificates; +using System.Text; +using System.Text.Json; + +string GenerateCertificate(string name) +{ + var sanBuilder = new SubjectAlternativeNameBuilder(); + sanBuilder.AddIpAddress(IPAddress.Loopback); + sanBuilder.AddIpAddress(IPAddress.IPv6Loopback); + sanBuilder.AddDnsName("localhost"); + sanBuilder.AddDnsName(Environment.MachineName); + + var distinguishedName = new X500DistinguishedName(name); + + using var rsa = RSA.Create(4096); + var request = new CertificateRequest(distinguishedName, rsa, HashAlgorithmName.SHA256, RSASignaturePadding.Pkcs1); + + request.CertificateExtensions.Add(new X509KeyUsageExtension(X509KeyUsageFlags.DataEncipherment | X509KeyUsageFlags.KeyEncipherment | X509KeyUsageFlags.DigitalSignature, false)); + request.CertificateExtensions.Add(new X509EnhancedKeyUsageExtension([new ("1.3.6.1.5.5.7.3.1")], false)); + request.CertificateExtensions.Add(sanBuilder.Build()); + var csr = request.CreateSigningRequest(); + var pemKey = "-----BEGIN CERTIFICATE REQUEST-----\r\n" + + Convert.ToBase64String(csr) + + "\r\n-----END CERTIFICATE REQUEST-----"; + + return pemKey; +} + +var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); +IKubernetes client = new Kubernetes(config); +Console.WriteLine("Starting Request!"); +var name = "demo"; +var x509 = GenerateCertificate(name); +var encodedCsr = Encoding.UTF8.GetBytes(x509); + +var request = new V1CertificateSigningRequest +{ + ApiVersion = "certificates.k8s.io/v1", + Kind = "CertificateSigningRequest", + Metadata = new V1ObjectMeta + { + Name = name, + }, + Spec = new V1CertificateSigningRequestSpec + { + Request = encodedCsr, + SignerName = "kubernetes.io/kube-apiserver-client", + Usages = new List { "client auth" }, + ExpirationSeconds = 600, // minimum should be 10 minutes + }, +}; + +await client.CertificatesV1.CreateCertificateSigningRequestAsync(request).ConfigureAwait(false); + +var serializeOptions = new JsonSerializerOptions +{ + PropertyNamingPolicy = JsonNamingPolicy.CamelCase, + WriteIndented = true, +}; +var readCert = await client.CertificatesV1.ReadCertificateSigningRequestAsync(name).ConfigureAwait(false); +var old = JsonSerializer.SerializeToDocument(readCert, serializeOptions); + +var replace = new List +{ + new V1CertificateSigningRequestCondition + { + Type = "Approved", + Status = "True", + Reason = "Approve", + Message = "This certificate was approved by k8s client", + LastUpdateTime = DateTime.UtcNow, + LastTransitionTime = DateTime.UtcNow, + }, +}; +readCert.Status.Conditions = replace; + +var expected = JsonSerializer.SerializeToDocument(readCert, serializeOptions); + +var patch = old.CreatePatch(expected); +await client.CertificatesV1.PatchCertificateSigningRequestApprovalAsync(new V1Patch(patch, V1Patch.PatchType.JsonPatch), name).ConfigureAwait(false); diff --git a/examples/csrApproval/csrApproval.csproj b/examples/csrApproval/csrApproval.csproj new file mode 100644 index 000000000..f67de4fbc --- /dev/null +++ b/examples/csrApproval/csrApproval.csproj @@ -0,0 +1,12 @@ + + + + Exe + enable + enable + + + + + + diff --git a/examples/customResource/CustomResourceDefinition.cs b/examples/customResource/CustomResourceDefinition.cs index 302d22f6d..ad1b7f9c4 100644 --- a/examples/customResource/CustomResourceDefinition.cs +++ b/examples/customResource/CustomResourceDefinition.cs @@ -1,7 +1,7 @@ using k8s; using k8s.Models; -using Newtonsoft.Json; using System.Collections.Generic; +using System.Text.Json.Serialization; [module: System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "CA1724:TypeNamesShouldNotMatchNamespaces", Justification = "This is just an example.")] [module: System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1402:FileMayOnlyContainASingleClass", Justification = "This is just an example.")] @@ -21,19 +21,19 @@ public class CustomResourceDefinition public string Namespace { get; set; } } - public abstract class CustomResource : KubernetesObject + public abstract class CustomResource : KubernetesObject, IMetadata { - [JsonProperty(PropertyName = "metadata")] + [JsonPropertyName("metadata")] public V1ObjectMeta Metadata { get; set; } } public abstract class CustomResource : CustomResource { - [JsonProperty(PropertyName = "spec")] + [JsonPropertyName("spec")] public TSpec Spec { get; set; } - [JsonProperty(PropertyName = "CStatus")] - public TStatus CStatus { get; set; } + [JsonPropertyName("status")] + public TStatus Status { get; set; } } public class CustomResourceList : KubernetesObject diff --git a/examples/customResource/Program.cs b/examples/customResource/Program.cs index 0be25601d..726852a7f 100644 --- a/examples/customResource/Program.cs +++ b/examples/customResource/Program.cs @@ -1,8 +1,10 @@ +using Json.Patch; using k8s; +using k8s.Autorest; using k8s.Models; -using Microsoft.AspNetCore.JsonPatch; using System; using System.Collections.Generic; +using System.Text.Json; using System.Threading.Tasks; @@ -29,20 +31,20 @@ private static async Task Main(string[] args) try { Console.WriteLine("creating CR {0}", myCr.Metadata.Name); - var response = await client.CreateNamespacedCustomObjectWithHttpMessagesAsync( + var response = await client.CustomObjects.CreateNamespacedCustomObjectWithHttpMessagesAsync( myCr, myCRD.Group, myCRD.Version, myCr.Metadata.NamespaceProperty ?? "default", myCRD.PluralName).ConfigureAwait(false); } - catch (Microsoft.Rest.HttpOperationException httpOperationException) when (httpOperationException.Message.Contains("422")) + catch (HttpOperationException httpOperationException) when (httpOperationException.Message.Contains("422")) { var phase = httpOperationException.Response.ReasonPhrase; var content = httpOperationException.Response.Content; Console.WriteLine("response content: {0}", content); Console.WriteLine("response phase: {0}", phase); } - catch (Microsoft.Rest.HttpOperationException) + catch (HttpOperationException) { } @@ -54,15 +56,17 @@ private static async Task Main(string[] args) Console.WriteLine("- CR Item {0} = {1}", crs.Items.IndexOf(cr), cr.Metadata.Name); } - // updating the custom resource + var old = JsonSerializer.SerializeToDocument(myCr); myCr.Metadata.Labels.TryAdd("newKey", "newValue"); - var patch = new JsonPatchDocument(); - patch.Replace(x => x.Metadata.Labels, myCr.Metadata.Labels); - patch.Operations.ForEach(x => x.path = x.path.ToLower()); + + var expected = JsonSerializer.SerializeToDocument(myCr); + var patch = old.CreatePatch(expected); + + // updating the custom resource var crPatch = new V1Patch(patch, V1Patch.PatchType.JsonPatch); try { - var patchResponse = await client.PatchNamespacedCustomObjectAsync( + var patchResponse = await client.CustomObjects.PatchNamespacedCustomObjectAsync( crPatch, myCRD.Group, myCRD.Version, @@ -70,7 +74,7 @@ private static async Task Main(string[] args) myCRD.PluralName, myCr.Metadata.Name).ConfigureAwait(false); } - catch (Microsoft.Rest.HttpOperationException httpOperationException) + catch (HttpOperationException httpOperationException) { var phase = httpOperationException.Response.ReasonPhrase; var content = httpOperationException.Response.Content; @@ -88,11 +92,11 @@ private static async Task Main(string[] args) // deleting the custom resource try { - myCr = await generic.DeleteNamespacedAsync( + var status = await generic.DeleteNamespacedAsync( myCr.Metadata.NamespaceProperty ?? "default", myCr.Metadata.Name).ConfigureAwait(false); - Console.WriteLine("Deleted the CR"); + Console.WriteLine($"Deleted the CR status: {status}"); } catch (Exception exception) { diff --git a/examples/customResource/README.md b/examples/customResource/README.md index 8ea908495..2fdb11703 100644 --- a/examples/customResource/README.md +++ b/examples/customResource/README.md @@ -15,7 +15,7 @@ dotnet add package KubernetesClient Make sure the [CRD](./config/crd.yaml) is created, in order to create an instance of it after. ```shell -kubectl create -f ./crd.yaml +kubectl create -f ./config/crd.yaml ``` You can test that the CRD is successfully added, by creating an [instance](./config/yaml-cr-instance.yaml) of it using kubectl: diff --git a/examples/customResource/cResource.cs b/examples/customResource/cResource.cs index 188ee841b..67440aee9 100644 --- a/examples/customResource/cResource.cs +++ b/examples/customResource/cResource.cs @@ -1,5 +1,5 @@ using k8s.Models; -using Newtonsoft.Json; +using System.Text.Json.Serialization; namespace customResource { @@ -19,15 +19,15 @@ public override string ToString() } } - public class CResourceSpec + public record CResourceSpec { - [JsonProperty(PropertyName = "cityName")] + [JsonPropertyName("cityName")] public string CityName { get; set; } } - public class CResourceStatus : V1Status + public record CResourceStatus : V1Status { - [JsonProperty(PropertyName = "temperature", NullValueHandling = NullValueHandling.Ignore)] + [JsonPropertyName("temperature")] public string Temperature { get; set; } } } diff --git a/examples/customResource/customResource.csproj b/examples/customResource/customResource.csproj index 15c3cfb32..ad2bdd739 100644 --- a/examples/customResource/customResource.csproj +++ b/examples/customResource/customResource.csproj @@ -2,14 +2,10 @@ Exe - net5.0 - - - - + diff --git a/examples/exec/Exec.cs b/examples/exec/Exec.cs index fe796ae21..20bbd2125 100755 --- a/examples/exec/Exec.cs +++ b/examples/exec/Exec.cs @@ -1,37 +1,28 @@ -using System; -using System.Threading.Tasks; using k8s; using k8s.Models; +using System; +using System.Threading.Tasks; -namespace exec -{ - internal class Exec - { - private static async Task Main(string[] args) - { - var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); - IKubernetes client = new Kubernetes(config); - Console.WriteLine("Starting Request!"); +var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); +IKubernetes client = new Kubernetes(config); +Console.WriteLine("Starting Request!"); - var list = client.ListNamespacedPod("default"); - var pod = list.Items[0]; - await ExecInPod(client, pod).ConfigureAwait(false); - } +var list = client.CoreV1.ListNamespacedPod("default"); +var pod = list.Items[0]; +await ExecInPod(client, pod).ConfigureAwait(false); - private async static Task ExecInPod(IKubernetes client, V1Pod pod) - { - var webSocket = - await client.WebSocketNamespacedPodExecAsync(pod.Metadata.Name, "default", "ls", - pod.Spec.Containers[0].Name).ConfigureAwait(false); +async Task ExecInPod(IKubernetes client, V1Pod pod) +{ + var webSocket = + await client.WebSocketNamespacedPodExecAsync(pod.Metadata.Name, "default", "ls", + pod.Spec.Containers[0].Name).ConfigureAwait(false); - var demux = new StreamDemuxer(webSocket); - demux.Start(); + var demux = new StreamDemuxer(webSocket); + demux.Start(); - var buff = new byte[4096]; - var stream = demux.GetStream(1, 1); - var read = stream.Read(buff, 0, 4096); - var str = System.Text.Encoding.Default.GetString(buff); - Console.WriteLine(str); - } - } + var buff = new byte[4096]; + var stream = demux.GetStream(1, 1); + var read = stream.Read(buff, 0, 4096); + var str = System.Text.Encoding.Default.GetString(buff); + Console.WriteLine(str); } diff --git a/examples/exec/exec.csproj b/examples/exec/exec.csproj index ecfb5feaf..52e6553de 100755 --- a/examples/exec/exec.csproj +++ b/examples/exec/exec.csproj @@ -1,12 +1,7 @@ - - - - Exe - net5 diff --git a/examples/generic/Generic.cs b/examples/generic/Generic.cs index de4525caf..f65fb944d 100644 --- a/examples/generic/Generic.cs +++ b/examples/generic/Generic.cs @@ -1,26 +1,16 @@ -using System; -using System.Threading.Tasks; using k8s; using k8s.Models; +using System; -namespace exec -{ - internal class Generic - { - private static async Task Main(string[] args) - { - var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); - IKubernetes client = new Kubernetes(config); - var generic = new GenericClient(client, "", "v1", "nodes"); - var node = await generic.ReadAsync("kube0").ConfigureAwait(false); - Console.WriteLine(node.Metadata.Name); +var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); +IKubernetes client = new Kubernetes(config); +var generic = new GenericClient(client, "", "v1", "nodes"); +var node = await generic.ReadAsync("kube0").ConfigureAwait(false); +Console.WriteLine(node.Metadata.Name); - var genericPods = new GenericClient(client, "", "v1", "pods"); - var pods = await genericPods.ListNamespacedAsync("default").ConfigureAwait(false); - foreach (var pod in pods.Items) - { - Console.WriteLine(pod.Metadata.Name); - } - } - } +var genericPods = new GenericClient(client, "", "v1", "pods"); +var pods = await genericPods.ListNamespacedAsync("default").ConfigureAwait(false); +foreach (var pod in pods.Items) +{ + Console.WriteLine(pod.Metadata.Name); } diff --git a/examples/generic/generic.csproj b/examples/generic/generic.csproj index 651bf9989..52e6553de 100644 --- a/examples/generic/generic.csproj +++ b/examples/generic/generic.csproj @@ -1,13 +1,7 @@ - - - - Exe - net5 - 7.1 diff --git a/examples/httpClientFactory/PodListHostedService.cs b/examples/httpClientFactory/PodListHostedService.cs deleted file mode 100644 index c104fc8c8..000000000 --- a/examples/httpClientFactory/PodListHostedService.cs +++ /dev/null @@ -1,44 +0,0 @@ -using k8s; -using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Logging; -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace httpClientFactory -{ - // Learn more about IHostedServices at https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/hosted-services?view=aspnetcore-2.2&tabs=visual-studio - public class PodListHostedService : IHostedService - { - private readonly IKubernetes _kubernetesClient; - private readonly ILogger _logger; - - public PodListHostedService(IKubernetes kubernetesClient, ILogger logger) - { - _kubernetesClient = kubernetesClient ?? throw new ArgumentNullException(nameof(kubernetesClient)); - _logger = logger ?? throw new ArgumentNullException(nameof(logger)); - } - - public async Task StartAsync(CancellationToken cancellationToken) - { - _logger.LogInformation("Starting Request!"); - - var list = await _kubernetesClient.ListNamespacedPodAsync("default", cancellationToken: cancellationToken).ConfigureAwait(false); - foreach (var item in list.Items) - { - _logger.LogInformation(item.Metadata.Name); - } - - if (list.Items.Count == 0) - { - _logger.LogInformation("Empty!"); - } - } - - public Task StopAsync(CancellationToken cancellationToken) - { - // Nothing to stop - return Task.CompletedTask; - } - } -} diff --git a/examples/httpClientFactory/Program.cs b/examples/httpClientFactory/Program.cs deleted file mode 100644 index e3c332dc0..000000000 --- a/examples/httpClientFactory/Program.cs +++ /dev/null @@ -1,44 +0,0 @@ -using k8s; -using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Logging; -using Microsoft.Extensions.DependencyInjection; -using System.Threading.Tasks; - -namespace httpClientFactory -{ - internal class Program - { - public static async Task Main(string[] args) - { - // Learn more about generic hosts at https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/generic-host - using (var host = new HostBuilder() - .ConfigureLogging((logging) => { logging.AddConsole(); }) - .ConfigureServices((hostBuilderContext, services) => - { - // Ideally this config would be read from the .net core config constructs, - // but that has not been implemented in the KubernetesClient library at - // the time this sample was created. - var config = KubernetesClientConfiguration.BuildDefaultConfig(); - services.AddSingleton(config); - - // Setup the http client - services.AddHttpClient("K8s") - .AddTypedClient((httpClient, serviceProvider) => - { - return new Kubernetes( - serviceProvider.GetRequiredService(), - httpClient); - }) - .ConfigurePrimaryHttpMessageHandler(config.CreateDefaultHttpClientHandler); - - // Add the class that uses the client - services.AddHostedService(); - }) - .Build()) - { - await host.StartAsync().ConfigureAwait(false); - await host.StopAsync().ConfigureAwait(false); - } - } - } -} diff --git a/examples/httpClientFactory/httpClientFactory.csproj b/examples/httpClientFactory/httpClientFactory.csproj deleted file mode 100644 index 0394190f1..000000000 --- a/examples/httpClientFactory/httpClientFactory.csproj +++ /dev/null @@ -1,18 +0,0 @@ - - - - Exe - net5 - - - - - - - - - - - - - diff --git a/examples/labels/PodList.cs b/examples/labels/PodList.cs index 89d701ff0..0c5df001d 100755 --- a/examples/labels/PodList.cs +++ b/examples/labels/PodList.cs @@ -1,48 +1,39 @@ +using k8s; using System; using System.Collections.Generic; -using k8s; -namespace simple +var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); +IKubernetes client = new Kubernetes(config); +Console.WriteLine("Starting Request!"); + +var list = client.CoreV1.ListNamespacedService("default"); +foreach (var item in list.Items) { - internal class PodList + Console.WriteLine("Pods for service: " + item.Metadata.Name); + Console.WriteLine("=-=-=-=-=-=-=-=-=-=-="); + if (item.Spec == null || item.Spec.Selector == null) { - private static void Main(string[] args) - { - var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); - IKubernetes client = new Kubernetes(config); - Console.WriteLine("Starting Request!"); - - var list = client.ListNamespacedService("default"); - foreach (var item in list.Items) - { - Console.WriteLine("Pods for service: " + item.Metadata.Name); - Console.WriteLine("=-=-=-=-=-=-=-=-=-=-="); - if (item.Spec == null || item.Spec.Selector == null) - { - continue; - } - - var labels = new List(); - foreach (var key in item.Spec.Selector) - { - labels.Add(key.Key + "=" + key.Value); - } + continue; + } - var labelStr = string.Join(",", labels.ToArray()); - Console.WriteLine(labelStr); - var podList = client.ListNamespacedPod("default", labelSelector: labelStr); - foreach (var pod in podList.Items) - { - Console.WriteLine(pod.Metadata.Name); - } + var labels = new List(); + foreach (var key in item.Spec.Selector) + { + labels.Add(key.Key + "=" + key.Value); + } - if (podList.Items.Count == 0) - { - Console.WriteLine("Empty!"); - } + var labelStr = string.Join(",", labels.ToArray()); + Console.WriteLine(labelStr); + var podList = client.CoreV1.ListNamespacedPod("default", labelSelector: labelStr); + foreach (var pod in podList.Items) + { + Console.WriteLine(pod.Metadata.Name); + } - Console.WriteLine(); - } - } + if (podList.Items.Count == 0) + { + Console.WriteLine("Empty!"); } + + Console.WriteLine(); } diff --git a/examples/labels/labels.csproj b/examples/labels/labels.csproj index 028b76a31..52e6553de 100755 --- a/examples/labels/labels.csproj +++ b/examples/labels/labels.csproj @@ -1,12 +1,7 @@ - - - - - + Exe - net5 diff --git a/examples/logs/Logs.cs b/examples/logs/Logs.cs index cdc21c8bc..5293de579 100755 --- a/examples/logs/Logs.cs +++ b/examples/logs/Logs.cs @@ -1,31 +1,21 @@ -using System; -using System.Threading.Tasks; using k8s; +using System; -namespace logs -{ - internal class Logs - { - private static async Task Main(string[] args) - { - var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); - IKubernetes client = new Kubernetes(config); - Console.WriteLine("Starting Request!"); +var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); +IKubernetes client = new Kubernetes(config); +Console.WriteLine("Starting Request!"); - var list = client.ListNamespacedPod("default"); - if (list.Items.Count == 0) - { - Console.WriteLine("No pods!"); - return; - } +var list = client.CoreV1.ListNamespacedPod("default"); +if (list.Items.Count == 0) +{ + Console.WriteLine("No pods!"); + return; +} - var pod = list.Items[0]; +var pod = list.Items[0]; - var response = await client.ReadNamespacedPodLogWithHttpMessagesAsync( - pod.Metadata.Name, - pod.Metadata.NamespaceProperty, follow: true).ConfigureAwait(false); - var stream = response.Body; - stream.CopyTo(Console.OpenStandardOutput()); - } - } -} +var response = await client.CoreV1.ReadNamespacedPodLogWithHttpMessagesAsync( + pod.Metadata.Name, + pod.Metadata.NamespaceProperty, container: pod.Spec.Containers[0].Name, follow: true).ConfigureAwait(false); +var stream = response.Body; +stream.CopyTo(Console.OpenStandardOutput()); diff --git a/examples/logs/logs.csproj b/examples/logs/logs.csproj index 028b76a31..52e6553de 100755 --- a/examples/logs/logs.csproj +++ b/examples/logs/logs.csproj @@ -1,12 +1,7 @@ - - - - - + Exe - net5 diff --git a/examples/metrics/Program.cs b/examples/metrics/Program.cs index 33a779f09..f823bf54d 100644 --- a/examples/metrics/Program.cs +++ b/examples/metrics/Program.cs @@ -3,58 +3,49 @@ using System.Linq; using System.Threading.Tasks; -namespace metrics +async Task NodesMetrics(IKubernetes client) { - internal class Program + var nodesMetrics = await client.GetKubernetesNodesMetricsAsync().ConfigureAwait(false); + + foreach (var item in nodesMetrics.Items) { - private static async Task NodesMetrics(IKubernetes client) + Console.WriteLine(item.Metadata.Name); + + foreach (var metric in item.Usage) { - var nodesMetrics = await client.GetKubernetesNodesMetricsAsync().ConfigureAwait(false); + Console.WriteLine($"{metric.Key}: {metric.Value}"); + } + } +} - foreach (var item in nodesMetrics.Items) - { - Console.WriteLine(item.Metadata.Name); +async Task PodsMetrics(IKubernetes client) +{ + var podsMetrics = await client.GetKubernetesPodsMetricsAsync().ConfigureAwait(false); - foreach (var metric in item.Usage) - { - Console.WriteLine($"{metric.Key}: {metric.Value}"); - } - } - } + if (!podsMetrics.Items.Any()) + { + Console.WriteLine("Empty"); + } - private static async Task PodsMetrics(IKubernetes client) + foreach (var item in podsMetrics.Items) + { + foreach (var container in item.Containers) { - var podsMetrics = await client.GetKubernetesPodsMetricsAsync().ConfigureAwait(false); - - if (!podsMetrics.Items.Any()) - { - Console.WriteLine("Empty"); - } + Console.WriteLine(container.Name); - foreach (var item in podsMetrics.Items) + foreach (var metric in container.Usage) { - foreach (var container in item.Containers) - { - Console.WriteLine(container.Name); - - foreach (var metric in container.Usage) - { - Console.WriteLine($"{metric.Key}: {metric.Value}"); - } - } - - Console.Write(Environment.NewLine); + Console.WriteLine($"{metric.Key}: {metric.Value}"); } } - private static async Task Main(string[] args) - { - var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); - var client = new Kubernetes(config); - - await NodesMetrics(client).ConfigureAwait(false); - Console.WriteLine(Environment.NewLine); - await PodsMetrics(client).ConfigureAwait(false); - } + Console.Write(Environment.NewLine); } } + +var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); +var client = new Kubernetes(config); + +await NodesMetrics(client).ConfigureAwait(false); +Console.WriteLine(Environment.NewLine); +await PodsMetrics(client).ConfigureAwait(false); diff --git a/examples/metrics/metrics.csproj b/examples/metrics/metrics.csproj index 098194a46..52e6553de 100644 --- a/examples/metrics/metrics.csproj +++ b/examples/metrics/metrics.csproj @@ -1,13 +1,7 @@ - + Exe - net5 - - - - - diff --git a/examples/namespace/NamespaceExample.cs b/examples/namespace/NamespaceExample.cs index 83fd3c870..06e8757a4 100644 --- a/examples/namespace/NamespaceExample.cs +++ b/examples/namespace/NamespaceExample.cs @@ -1,55 +1,40 @@ +using k8s; +using k8s.Models; using System; using System.Net; using System.Threading.Tasks; -using k8s; -using k8s.Models; -namespace @namespace +void ListNamespaces(IKubernetes client) { - internal class NamespaceExample + var list = client.CoreV1.ListNamespace(); + foreach (var item in list.Items) { - private static void ListNamespaces(IKubernetes client) - { - var list = client.ListNamespace(); - foreach (var item in list.Items) - { - Console.WriteLine(item.Metadata.Name); - } + Console.WriteLine(item.Metadata.Name); + } - if (list.Items.Count == 0) - { - Console.WriteLine("Empty!"); - } - } + if (list.Items.Count == 0) + { + Console.WriteLine("Empty!"); + } +} - private static async Task DeleteAsync(IKubernetes client, string name, int delayMillis) +async Task DeleteAsync(IKubernetes client, string name, int delayMillis) +{ + while (true) + { + await Task.Delay(delayMillis).ConfigureAwait(false); + try { - while (true) + await client.CoreV1.ReadNamespaceAsync(name).ConfigureAwait(false); + } + catch (AggregateException ex) + { + foreach (var innerEx in ex.InnerExceptions) { - await Task.Delay(delayMillis).ConfigureAwait(false); - try - { - await client.ReadNamespaceAsync(name).ConfigureAwait(false); - } - catch (AggregateException ex) - { - foreach (var innerEx in ex.InnerExceptions) - { - if (innerEx is Microsoft.Rest.HttpOperationException) - { - var code = ((Microsoft.Rest.HttpOperationException)innerEx).Response.StatusCode; - if (code == HttpStatusCode.NotFound) - { - return; - } - - throw; - } - } - } - catch (Microsoft.Rest.HttpOperationException ex) + if (innerEx is k8s.Autorest.HttpOperationException exception) { - if (ex.Response.StatusCode == HttpStatusCode.NotFound) + var code = exception.Response.StatusCode; + if (code == HttpStatusCode.NotFound) { return; } @@ -58,41 +43,47 @@ private static async Task DeleteAsync(IKubernetes client, string name, int delay } } } - - private static void Delete(IKubernetes client, string name, int delayMillis) + catch (k8s.Autorest.HttpOperationException ex) { - DeleteAsync(client, name, delayMillis).Wait(); + if (ex.Response.StatusCode == HttpStatusCode.NotFound) + { + return; + } + + throw; } + } +} - private static void Main(string[] args) - { - var k8SClientConfig = KubernetesClientConfiguration.BuildConfigFromConfigFile(); - IKubernetes client = new Kubernetes(k8SClientConfig); +void Delete(IKubernetes client, string name, int delayMillis) +{ + DeleteAsync(client, name, delayMillis).Wait(); +} - ListNamespaces(client); +var k8SClientConfig = KubernetesClientConfiguration.BuildConfigFromConfigFile(); +IKubernetes client = new Kubernetes(k8SClientConfig); - var ns = new V1Namespace { Metadata = new V1ObjectMeta { Name = "test" } }; +ListNamespaces(client); - var result = client.CreateNamespace(ns); - Console.WriteLine(result); +var ns = new V1Namespace { Metadata = new V1ObjectMeta { Name = "test" } }; - ListNamespaces(client); +var result = client.CoreV1.CreateNamespace(ns); +Console.WriteLine(result); - var status = client.DeleteNamespace(ns.Metadata.Name, new V1DeleteOptions()); +ListNamespaces(client); - if (status.HasObject) - { - var obj = status.ObjectView(); - Console.WriteLine(obj.Status.Phase); +var status = client.CoreV1.DeleteNamespace(ns.Metadata.Name, new V1DeleteOptions()); - Delete(client, ns.Metadata.Name, 3 * 1000); - } - else - { - Console.WriteLine(status.Message); - } +if (status.HasObject) +{ + var obj = status.ObjectView(); + Console.WriteLine(obj.Status.Phase); - ListNamespaces(client); - } - } + Delete(client, ns.Metadata.Name, 3 * 1000); } +else +{ + Console.WriteLine(status.Message); +} + +ListNamespaces(client); diff --git a/examples/namespace/namespace.csproj b/examples/namespace/namespace.csproj index 29e6232c7..f850aa91d 100644 --- a/examples/namespace/namespace.csproj +++ b/examples/namespace/namespace.csproj @@ -1,12 +1,7 @@ - - - - - + Exe - net5 diff --git a/examples/nginx.yml b/examples/nginx.yml deleted file mode 100644 index b92a713ba..000000000 --- a/examples/nginx.yml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: nginx -spec: - containers: - - name: nginx - image: nginx:1.7.9 - ports: - - containerPort: 80 \ No newline at end of file diff --git a/examples/openTelemetryConsole/Program.cs b/examples/openTelemetryConsole/Program.cs new file mode 100644 index 000000000..4b7406be3 --- /dev/null +++ b/examples/openTelemetryConsole/Program.cs @@ -0,0 +1,37 @@ +using k8s; +using OpenTelemetry; +using OpenTelemetry.Resources; +using OpenTelemetry.Trace; + +var serviceName = "MyCompany.MyProduct.MyService"; +var serviceVersion = "1.0.0"; + +// Create the OpenTelemetry TraceProvide with HttpClient instrumentation enabled +// NOTE: for this example telemetry will be exported to console +using var tracerProvider = Sdk.CreateTracerProviderBuilder() + .AddSource(serviceName) + .SetResourceBuilder(ResourceBuilder.CreateDefault().AddService(serviceName: serviceName, serviceVersion: serviceVersion)) + .AddHttpClientInstrumentation() + .AddConsoleExporter() + .Build(); + +// Load kubernetes configuration +var config = KubernetesClientConfiguration.BuildDefaultConfig(); + +// Create an istance of Kubernetes client +IKubernetes client = new Kubernetes(config); + +// Read the list of pods contained in default namespace +var list = client.CoreV1.ListNamespacedPod("default"); + +// Print the name of pods +foreach (var item in list.Items) +{ + Console.WriteLine(item.Metadata.Name); +} + +// Or empty if there are no pods +if (list.Items.Count == 0) +{ + Console.WriteLine("Empty!"); +} diff --git a/examples/openTelemetryConsole/openTelemetryConsole.csproj b/examples/openTelemetryConsole/openTelemetryConsole.csproj new file mode 100644 index 000000000..ff48d4450 --- /dev/null +++ b/examples/openTelemetryConsole/openTelemetryConsole.csproj @@ -0,0 +1,14 @@ + + + + Exe + enable + enable + + + + + + + + diff --git a/examples/patch-aot/Program.cs b/examples/patch-aot/Program.cs new file mode 100644 index 000000000..e72f6a4d2 --- /dev/null +++ b/examples/patch-aot/Program.cs @@ -0,0 +1,33 @@ +using k8s; +using k8s.Models; + +var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); +IKubernetes client = new Kubernetes(config); +Console.WriteLine("Starting Request!"); + +var pod = client.CoreV1.ListNamespacedPod("default").Items.First(); +var name = pod.Metadata.Name; +PrintLabels(pod); + +var patchStr = @" +{ + ""metadata"": { + ""labels"": { + ""test"": ""test"" + } + } +}"; + +client.CoreV1.PatchNamespacedPod(new V1Patch(patchStr, V1Patch.PatchType.MergePatch), name, "default"); +PrintLabels(client.CoreV1.ReadNamespacedPod(name, "default")); + +static void PrintLabels(V1Pod pod) +{ + Console.WriteLine($"Labels: for {pod.Metadata.Name}"); + foreach (var (k, v) in pod.Metadata.Labels) + { + Console.WriteLine($"{k} : {v}"); + } + + Console.WriteLine("=-=-=-=-=-=-=-=-=-=-="); +} diff --git a/examples/patch-aot/patch-aot.csproj b/examples/patch-aot/patch-aot.csproj new file mode 100644 index 000000000..c2c806215 --- /dev/null +++ b/examples/patch-aot/patch-aot.csproj @@ -0,0 +1,11 @@ + + + Exe + enable + enable + true + + + + + diff --git a/examples/patch/Program.cs b/examples/patch/Program.cs index 8d7a4a271..f8cefa67c 100644 --- a/examples/patch/Program.cs +++ b/examples/patch/Program.cs @@ -1,23 +1,17 @@ -using System; -using System.Linq; using k8s; using k8s.Models; +using System; +using System.Linq; -namespace patch -{ - internal class Program - { - private static void Main(string[] args) - { - var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); - IKubernetes client = new Kubernetes(config); - Console.WriteLine("Starting Request!"); +var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); +IKubernetes client = new Kubernetes(config); +Console.WriteLine("Starting Request!"); - var pod = client.ListNamespacedPod("default").Items.First(); - var name = pod.Metadata.Name; - PrintLabels(pod); +var pod = client.CoreV1.ListNamespacedPod("default").Items.First(); +var name = pod.Metadata.Name; +PrintLabels(pod); - var patchStr = @" +var patchStr = @" { ""metadata"": { ""labels"": { @@ -26,19 +20,16 @@ private static void Main(string[] args) } }"; - client.PatchNamespacedPod(new V1Patch(patchStr, V1Patch.PatchType.MergePatch), name, "default"); - PrintLabels(client.ReadNamespacedPod(name, "default")); - } - - private static void PrintLabels(V1Pod pod) - { - Console.WriteLine($"Labels: for {pod.Metadata.Name}"); - foreach (var (k, v) in pod.Metadata.Labels) - { - Console.WriteLine($"{k} : {v}"); - } +client.CoreV1.PatchNamespacedPod(new V1Patch(patchStr, V1Patch.PatchType.MergePatch), name, "default"); +PrintLabels(client.CoreV1.ReadNamespacedPod(name, "default")); - Console.WriteLine("=-=-=-=-=-=-=-=-=-=-="); - } +void PrintLabels(V1Pod pod) +{ + Console.WriteLine($"Labels: for {pod.Metadata.Name}"); + foreach (var (k, v) in pod.Metadata.Labels) + { + Console.WriteLine($"{k} : {v}"); } + + Console.WriteLine("=-=-=-=-=-=-=-=-=-=-="); } diff --git a/examples/patch/patch.csproj b/examples/patch/patch.csproj index 131fa5d70..f850aa91d 100644 --- a/examples/patch/patch.csproj +++ b/examples/patch/patch.csproj @@ -1,12 +1,7 @@ - + Exe - net5 - - - - diff --git a/examples/portforward/PortForward.cs b/examples/portforward/PortForward.cs index 710f36ad7..ee095e073 100644 --- a/examples/portforward/PortForward.cs +++ b/examples/portforward/PortForward.cs @@ -1,71 +1,71 @@ +using k8s; +using k8s.Models; using System; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; -using k8s; -using k8s.Models; -namespace portforward -{ - internal class Portforward - { - private static async Task Main(string[] args) - { - var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); - IKubernetes client = new Kubernetes(config); - Console.WriteLine("Starting port forward!"); - - var list = client.ListNamespacedPod("default"); - var pod = list.Items[0]; - await Forward(client, pod); - } +var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); +IKubernetes client = new Kubernetes(config); +Console.WriteLine("Starting port forward!"); - private async static Task Forward(IKubernetes client, V1Pod pod) { - // Note this is single-threaded, it won't handle concurrent requests well... - var webSocket = await client.WebSocketNamespacedPodPortForwardAsync(pod.Metadata.Name, "default", new int[] {80}, "v4.channel.k8s.io"); - var demux = new StreamDemuxer(webSocket, StreamType.PortForward); - demux.Start(); +var list = client.CoreV1.ListNamespacedPod("default"); +var pod = list.Items[0]; +await Forward(client, pod).ConfigureAwait(false); - var stream = demux.GetStream((byte?)0, (byte?)0); +async Task Forward(IKubernetes client, V1Pod pod) +{ + // Note this is single-threaded, it won't handle concurrent requests well... + var webSocket = await client.WebSocketNamespacedPodPortForwardAsync(pod.Metadata.Name, "default", new int[] { 80 }, "v4.channel.k8s.io").ConfigureAwait(false); + var demux = new StreamDemuxer(webSocket, StreamType.PortForward); + demux.Start(); - IPAddress ipAddress = IPAddress.Loopback; - IPEndPoint localEndPoint = new IPEndPoint(ipAddress, 8080); - Socket listener = new Socket(ipAddress.AddressFamily, SocketType.Stream, ProtocolType.Tcp); - listener.Bind(localEndPoint); - listener.Listen(100); + var stream = demux.GetStream((byte?)0, (byte?)0); - Socket handler = null; + IPAddress ipAddress = IPAddress.Loopback; + IPEndPoint localEndPoint = new IPEndPoint(ipAddress, 8080); + Socket listener = new Socket(ipAddress.AddressFamily, SocketType.Stream, ProtocolType.Tcp); + listener.Bind(localEndPoint); + listener.Listen(100); - // Note this will only accept a single connection - var accept = Task.Run(() => { - while (true) { - handler = listener.Accept(); - var bytes = new byte[4096]; - while (true) { - int bytesRec = handler.Receive(bytes); - stream.Write(bytes, 0, bytesRec); - if (bytesRec == 0 || Encoding.ASCII.GetString(bytes,0,bytesRec).IndexOf("") > -1) { - break; - } - } - } - }); + Socket handler = null; - var copy = Task.Run(() => { - var buff = new byte[4096]; - while (true) { - var read = stream.Read(buff, 0, 4096); - handler.Send(buff, read, 0); + // Note this will only accept a single connection + var accept = Task.Run(() => + { + while (true) + { + handler = listener.Accept(); + var bytes = new byte[4096]; + while (true) + { + int bytesRec = handler.Receive(bytes); + stream.Write(bytes, 0, bytesRec); + if (bytesRec == 0 || Encoding.ASCII.GetString(bytes, 0, bytesRec).IndexOf("") > -1) + { + break; } - }); - - await accept; - await copy; - if (handler != null) { - handler.Close(); } - listener.Close(); } + }); + + var copy = Task.Run(() => + { + var buff = new byte[4096]; + while (true) + { + var read = stream.Read(buff, 0, 4096); + handler.Send(buff, read, 0); + } + }); + + await accept.ConfigureAwait(false); + await copy.ConfigureAwait(false); + if (handler != null) + { + handler.Close(); } + + listener.Close(); } diff --git a/examples/portforward/portforward.csproj b/examples/portforward/portforward.csproj index 2f90dd432..e3b6154bb 100644 --- a/examples/portforward/portforward.csproj +++ b/examples/portforward/portforward.csproj @@ -1,13 +1,7 @@ - - - - Exe - netcoreapp2.1 - 7.1 \ No newline at end of file diff --git a/examples/prometheus/Prometheus.cs b/examples/prometheus/Prometheus.cs deleted file mode 100755 index b15f3618e..000000000 --- a/examples/prometheus/Prometheus.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Net.Http; -using System.Threading; -using k8s; -using k8s.Monitoring; -using Prometheus; - -namespace prom -{ - internal class Prometheus - { - private static void Main(string[] args) - { - var config = KubernetesClientConfiguration.BuildDefaultConfig(); - var handler = new PrometheusHandler(); - IKubernetes client = new Kubernetes(config, new DelegatingHandler[] { handler }); - - var server = new MetricServer(hostname: "localhost", port: 1234); - server.Start(); - - Console.WriteLine("Making requests!"); - while (true) - { - client.ListNamespacedPod("default"); - client.ListNode(); - client.ListNamespacedDeployment("default"); - Thread.Sleep(1000); - } - } - } -} diff --git a/examples/prometheus/prometheus.csproj b/examples/prometheus/prometheus.csproj deleted file mode 100755 index 028b76a31..000000000 --- a/examples/prometheus/prometheus.csproj +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - Exe - net5 - - - diff --git a/examples/resize/Program.cs b/examples/resize/Program.cs new file mode 100644 index 000000000..85fbeb9b2 --- /dev/null +++ b/examples/resize/Program.cs @@ -0,0 +1,63 @@ +using k8s; +using k8s.Models; +using System; +using System.Collections.Generic; + + +var config = KubernetesClientConfiguration.BuildDefaultConfig(); +var client = new Kubernetes(config); + + +var pod = new V1Pod +{ + Metadata = new V1ObjectMeta { Name = "nginx-pod" }, + Spec = new V1PodSpec + { + Containers = + [ + new V1Container + { + Name = "nginx", + Image = "nginx", + Resources = new V1ResourceRequirements + { + Requests = new Dictionary() + { + ["cpu"] = "100m", + }, + }, + }, + ], + }, +}; +{ + var created = await client.CoreV1.CreateNamespacedPodAsync(pod, "default").ConfigureAwait(false); + Console.WriteLine($"Created pod: {created.Metadata.Name}"); +} + +{ + var patchStr = @" + { + ""spec"": { + ""containers"": [ + { + ""name"": ""nginx"", + ""resources"": { + ""requests"": { + ""cpu"": ""200m"" + } + } + } + ] + } + }"; + + var patch = await client.CoreV1.PatchNamespacedPodResizeAsync(new V1Patch(patchStr, V1Patch.PatchType.MergePatch), "nginx-pod", "default").ConfigureAwait(false); + + if (patch?.Spec?.Containers?.Count > 0 && + patch.Spec.Containers[0].Resources?.Requests != null && + patch.Spec.Containers[0].Resources.Requests.TryGetValue("cpu", out var cpuQty)) + { + Console.WriteLine($"CPU request: {cpuQty}"); + } +} diff --git a/examples/resize/resize.csproj b/examples/resize/resize.csproj new file mode 100644 index 000000000..d1e5b4724 --- /dev/null +++ b/examples/resize/resize.csproj @@ -0,0 +1,5 @@ + + + Exe + + \ No newline at end of file diff --git a/examples/restart/Program.cs b/examples/restart/Program.cs new file mode 100644 index 000000000..894e305a6 --- /dev/null +++ b/examples/restart/Program.cs @@ -0,0 +1,68 @@ +using Json.Patch; +using k8s; +using k8s.Models; +using System.Text.Json; + +async Task RestartDaemonSetAsync(string name, string @namespace, IKubernetes client) +{ + var daemonSet = await client.AppsV1.ReadNamespacedDaemonSetAsync(name, @namespace).ConfigureAwait(false); + var options = new JsonSerializerOptions { PropertyNamingPolicy = JsonNamingPolicy.CamelCase, WriteIndented = true }; + var old = JsonSerializer.SerializeToDocument(daemonSet, options); + var now = DateTimeOffset.Now.ToUnixTimeSeconds(); + var restart = new Dictionary + { + ["date"] = now.ToString(), + }; + + daemonSet.Spec.Template.Metadata.Annotations = restart; + + var expected = JsonSerializer.SerializeToDocument(daemonSet); + + var patch = old.CreatePatch(expected); + await client.AppsV1.PatchNamespacedDaemonSetAsync(new V1Patch(patch, V1Patch.PatchType.JsonPatch), name, @namespace).ConfigureAwait(false); +} + +async Task RestartDeploymentAsync(string name, string @namespace, IKubernetes client) +{ + var deployment = await client.AppsV1.ReadNamespacedDeploymentAsync(name, @namespace).ConfigureAwait(false); + var options = new JsonSerializerOptions { PropertyNamingPolicy = JsonNamingPolicy.CamelCase, WriteIndented = true }; + var old = JsonSerializer.SerializeToDocument(deployment, options); + var now = DateTimeOffset.Now.ToUnixTimeSeconds(); + var restart = new Dictionary + { + ["date"] = now.ToString(), + }; + + deployment.Spec.Template.Metadata.Annotations = restart; + + var expected = JsonSerializer.SerializeToDocument(deployment); + + var patch = old.CreatePatch(expected); + await client.AppsV1.PatchNamespacedDeploymentAsync(new V1Patch(patch, V1Patch.PatchType.JsonPatch), name, @namespace).ConfigureAwait(false); +} + +async Task RestartStatefulSetAsync(string name, string @namespace, IKubernetes client) +{ + var deployment = await client.AppsV1.ReadNamespacedStatefulSetAsync(name, @namespace).ConfigureAwait(false); + var options = new JsonSerializerOptions { PropertyNamingPolicy = JsonNamingPolicy.CamelCase, WriteIndented = true }; + var old = JsonSerializer.SerializeToDocument(deployment, options); + var now = DateTimeOffset.Now.ToUnixTimeSeconds(); + var restart = new Dictionary + { + ["date"] = now.ToString(), + }; + + deployment.Spec.Template.Metadata.Annotations = restart; + + var expected = JsonSerializer.SerializeToDocument(deployment); + + var patch = old.CreatePatch(expected); + await client.AppsV1.PatchNamespacedStatefulSetAsync(new V1Patch(patch, V1Patch.PatchType.JsonPatch), name, @namespace).ConfigureAwait(false); +} + +var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); +IKubernetes client = new Kubernetes(config); + +await RestartDeploymentAsync("event-exporter", "monitoring", client).ConfigureAwait(false); +await RestartDaemonSetAsync("prometheus-exporter", "monitoring", client).ConfigureAwait(false); +await RestartStatefulSetAsync("argocd-application-controlle", "argocd", client).ConfigureAwait(false); diff --git a/examples/GenericKubernetesApi/GenericKubernetesApi.csproj b/examples/restart/restart.csproj similarity index 53% rename from examples/GenericKubernetesApi/GenericKubernetesApi.csproj rename to examples/restart/restart.csproj index d9f686266..0d5a49c4c 100644 --- a/examples/GenericKubernetesApi/GenericKubernetesApi.csproj +++ b/examples/restart/restart.csproj @@ -2,11 +2,12 @@ Exe - net5.0 + enable + enable - + diff --git a/examples/simple/PodList.cs b/examples/simple/PodList.cs index 54f36e91d..751622c16 100755 --- a/examples/simple/PodList.cs +++ b/examples/simple/PodList.cs @@ -1,26 +1,17 @@ -using System; using k8s; +using System; -namespace simple -{ - internal class PodList - { - private static void Main(string[] args) - { - var config = KubernetesClientConfiguration.BuildDefaultConfig(); - IKubernetes client = new Kubernetes(config); - Console.WriteLine("Starting Request!"); +var config = KubernetesClientConfiguration.BuildDefaultConfig(); +IKubernetes client = new Kubernetes(config); +Console.WriteLine("Starting Request!"); - var list = client.ListNamespacedPod("default"); - foreach (var item in list.Items) - { - Console.WriteLine(item.Metadata.Name); - } +var list = client.CoreV1.ListNamespacedPod("default"); +foreach (var item in list.Items) +{ + Console.WriteLine(item.Metadata.Name); +} - if (list.Items.Count == 0) - { - Console.WriteLine("Empty!"); - } - } - } +if (list.Items.Count == 0) +{ + Console.WriteLine("Empty!"); } diff --git a/examples/simple/simple.csproj b/examples/simple/simple.csproj index 028b76a31..52e6553de 100755 --- a/examples/simple/simple.csproj +++ b/examples/simple/simple.csproj @@ -1,12 +1,7 @@ - - - - - + Exe - net5 diff --git a/examples/watch/Program.cs b/examples/watch/Program.cs index 8b8092275..1aff65883 100644 --- a/examples/watch/Program.cs +++ b/examples/watch/Program.cs @@ -1,51 +1,39 @@ +using k8s; using System; using System.Threading; using System.Threading.Tasks; -using k8s; -using k8s.Models; -using Microsoft.Rest; -namespace watch -{ - internal class Program - { - private async static Task Main(string[] args) - { - var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); +var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); - IKubernetes client = new Kubernetes(config); +IKubernetes client = new Kubernetes(config); - var podlistResp = client.ListNamespacedPodWithHttpMessagesAsync("default", watch: true); - // C# 8 required https://docs.microsoft.com/en-us/archive/msdn-magazine/2019/november/csharp-iterating-with-async-enumerables-in-csharp-8 - await foreach (var (type, item) in podlistResp.WatchAsync()) - { - Console.WriteLine("==on watch event=="); - Console.WriteLine(type); - Console.WriteLine(item.Metadata.Name); - Console.WriteLine("==on watch event=="); - } +var podlistResp = client.CoreV1.WatchListNamespacedPodAsync("default"); - // uncomment if you prefer callback api - // WatchUsingCallback(client); - } +// C# 8 required https://docs.microsoft.com/en-us/archive/msdn-magazine/2019/november/csharp-iterating-with-async-enumerables-in-csharp-8 +await foreach (var (type, item) in podlistResp.ConfigureAwait(false)) +{ + Console.WriteLine("==on watch event=="); + Console.WriteLine(type); + Console.WriteLine(item.Metadata.Name); + Console.WriteLine("==on watch event=="); +} - private static void WatchUsingCallback(IKubernetes client) - { - var podlistResp = client.ListNamespacedPodWithHttpMessagesAsync("default", watch: true); - using (podlistResp.Watch((type, item) => - { - Console.WriteLine("==on watch event=="); - Console.WriteLine(type); - Console.WriteLine(item.Metadata.Name); - Console.WriteLine("==on watch event=="); - })) - { - Console.WriteLine("press ctrl + c to stop watching"); +#pragma warning disable CS8321 // Remove unused private members +void WatchUsingCallback(IKubernetes client) +#pragma warning restore CS8321 // Remove unused private members +{ + using (var podlistResp = client.CoreV1.WatchListNamespacedPod("default", onEvent: (type, item) => + { + Console.WriteLine("==on watch event=="); + Console.WriteLine(type); + Console.WriteLine(item.Metadata.Name); + Console.WriteLine("==on watch event=="); + })) + { + Console.WriteLine("press ctrl + c to stop watching"); - var ctrlc = new ManualResetEventSlim(false); - Console.CancelKeyPress += (sender, eventArgs) => ctrlc.Set(); - ctrlc.Wait(); - } - } + var ctrlc = new ManualResetEventSlim(false); + Console.CancelKeyPress += (sender, eventArgs) => ctrlc.Set(); + ctrlc.Wait(); } -} +} \ No newline at end of file diff --git a/examples/watch/watch.csproj b/examples/watch/watch.csproj index 89f728c57..f850aa91d 100644 --- a/examples/watch/watch.csproj +++ b/examples/watch/watch.csproj @@ -1,12 +1,7 @@ - + Exe - net5 - - - - diff --git a/examples/webApiDependencyInjection/Controllers/ExampleDependencyInjectionOnConstructorController.cs b/examples/webApiDependencyInjection/Controllers/ExampleDependencyInjectionOnConstructorController.cs new file mode 100644 index 000000000..6bff6df0d --- /dev/null +++ b/examples/webApiDependencyInjection/Controllers/ExampleDependencyInjectionOnConstructorController.cs @@ -0,0 +1,36 @@ +using k8s; +using Microsoft.AspNetCore.Mvc; + +namespace webApiDependencyInjection.Controllers +{ + [ApiController] + [Route("[controller]")] + public class ExampleDependencyInjectionOnConstructorController : ControllerBase + { + private readonly IKubernetes kubernetesClient; + + /// + /// Initializes a new instance of the class. + /// Injects the Kubernetes client into the controller. + /// + /// The Kubernetes client to interact with the Kubernetes API. + public ExampleDependencyInjectionOnConstructorController(IKubernetes kubernetesClient) + { + this.kubernetesClient = kubernetesClient; + } + + /// + /// Retrieves the names of all pods in the default namespace using the injected Kubernetes client. + /// + /// A collection of pod names in the default namespace. + [HttpGet] + public IEnumerable GetPods() + { + // Read the list of pods contained in the default namespace + var podList = this.kubernetesClient.CoreV1.ListNamespacedPod("default"); + + // Return names of pods + return podList.Items.Select(pod => pod.Metadata.Name); + } + } +} diff --git a/examples/webApiDependencyInjection/Controllers/ExampleDependencyInjectionOnMethodController.cs b/examples/webApiDependencyInjection/Controllers/ExampleDependencyInjectionOnMethodController.cs new file mode 100644 index 000000000..84427f5e2 --- /dev/null +++ b/examples/webApiDependencyInjection/Controllers/ExampleDependencyInjectionOnMethodController.cs @@ -0,0 +1,27 @@ +using k8s; +using Microsoft.AspNetCore.Mvc; + +namespace webApiDependencyInjection.Controllers +{ + [ApiController] + [Route("[controller]")] + public class ExampleDependencyInjectionOnMethodController : ControllerBase + { + /// + /// Example using the kubernetes client injected directly into the method ([FromServices] IKubernetes kubernetesClient). + /// + /// The Kubernetes client instance injected via dependency injection. + /// A collection of pod names in the default namespace. + [HttpGet] + public IEnumerable GetPods([FromServices] IKubernetes kubernetesClient) + { + ArgumentNullException.ThrowIfNull(kubernetesClient); + + // Read the list of pods contained in default namespace + var podList = kubernetesClient.CoreV1.ListNamespacedPod("default"); + + // Return names of pods + return podList.Items.Select(pod => pod.Metadata.Name); + } + } +} diff --git a/examples/webApiDependencyInjection/Program.cs b/examples/webApiDependencyInjection/Program.cs new file mode 100644 index 000000000..3ec631b65 --- /dev/null +++ b/examples/webApiDependencyInjection/Program.cs @@ -0,0 +1,34 @@ +using k8s; + +var builder = WebApplication.CreateBuilder(args); + +// Load kubernetes configuration +var kubernetesClientConfig = KubernetesClientConfiguration.BuildDefaultConfig(); + +// Register Kubernetes client interface as sigleton +builder.Services.AddSingleton(_ => new Kubernetes(kubernetesClientConfig)); + +// Add services to the container. +builder.Services.AddEndpointsApiExplorer(); +builder.Services.AddSwaggerGen(); + +builder.Services.AddControllers(); + +var app = builder.Build(); + +// Configure the HTTP request pipeline. +if (app.Environment.IsDevelopment()) +{ + app.UseSwagger(); + app.UseSwaggerUI(); +} + +app.UseAuthorization(); + +app.MapControllers(); + +// Start the service +app.Run(); + + +// Swagger ui can be accesse at: http://localhost:/swagger diff --git a/examples/webApiDependencyInjection/appsettings.Development.json b/examples/webApiDependencyInjection/appsettings.Development.json new file mode 100644 index 000000000..0c208ae91 --- /dev/null +++ b/examples/webApiDependencyInjection/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/examples/webApiDependencyInjection/appsettings.json b/examples/webApiDependencyInjection/appsettings.json new file mode 100644 index 000000000..10f68b8c8 --- /dev/null +++ b/examples/webApiDependencyInjection/appsettings.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*" +} diff --git a/examples/webApiDependencyInjection/webApiDependencyInjection.csproj b/examples/webApiDependencyInjection/webApiDependencyInjection.csproj new file mode 100644 index 000000000..23e466d7e --- /dev/null +++ b/examples/webApiDependencyInjection/webApiDependencyInjection.csproj @@ -0,0 +1,12 @@ + + + + enable + enable + + + + + + + diff --git a/examples/workerServiceDependencyInjection/Program.cs b/examples/workerServiceDependencyInjection/Program.cs new file mode 100644 index 000000000..a894a33fe --- /dev/null +++ b/examples/workerServiceDependencyInjection/Program.cs @@ -0,0 +1,17 @@ +using k8s; +using workerServiceDependencyInjection; + +IHost host = Host.CreateDefaultBuilder(args) + .ConfigureServices(services => + { + // Load kubernetes configuration + var kubernetesClientConfig = KubernetesClientConfiguration.BuildDefaultConfig(); + + // Register Kubernetes client interface as sigleton + services.AddSingleton(_ => new Kubernetes(kubernetesClientConfig)); + + services.AddHostedService(); + }) + .Build(); + +await host.RunAsync().ConfigureAwait(false); diff --git a/examples/workerServiceDependencyInjection/Worker.cs b/examples/workerServiceDependencyInjection/Worker.cs new file mode 100644 index 000000000..cb2f82386 --- /dev/null +++ b/examples/workerServiceDependencyInjection/Worker.cs @@ -0,0 +1,41 @@ +using k8s; + +namespace workerServiceDependencyInjection +{ + public class Worker : BackgroundService + { + private readonly ILogger logger; + private readonly IKubernetes kubernetesClient; + + /// + /// Initializes a new instance of the class. + /// Inject in the constructor the IKubernetes interface. + /// + /// The logger instance used for logging information. + /// The Kubernetes client used to interact with the Kubernetes API. + public Worker(ILogger logger, IKubernetes kubernetesClient) + { + this.logger = logger; + this.kubernetesClient = kubernetesClient; + } + + protected override async Task ExecuteAsync(CancellationToken stoppingToken) + { + while (!stoppingToken.IsCancellationRequested) + { + logger.LogInformation("Worker running at: {time}", DateTimeOffset.Now); + + // Read the list of pods contained in default namespace + var podList = kubernetesClient.CoreV1.ListNamespacedPod("default"); + + // Print pods names + foreach (var pod in podList.Items) + { + Console.WriteLine(pod.Metadata.Name); + } + + await Task.Delay(1000, stoppingToken).ConfigureAwait(false); + } + } + } +} diff --git a/examples/workerServiceDependencyInjection/appsettings.Development.json b/examples/workerServiceDependencyInjection/appsettings.Development.json new file mode 100644 index 000000000..b2dcdb674 --- /dev/null +++ b/examples/workerServiceDependencyInjection/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.Hosting.Lifetime": "Information" + } + } +} diff --git a/examples/workerServiceDependencyInjection/appsettings.json b/examples/workerServiceDependencyInjection/appsettings.json new file mode 100644 index 000000000..b2dcdb674 --- /dev/null +++ b/examples/workerServiceDependencyInjection/appsettings.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.Hosting.Lifetime": "Information" + } + } +} diff --git a/examples/workerServiceDependencyInjection/workerServiceDependencyInjection.csproj b/examples/workerServiceDependencyInjection/workerServiceDependencyInjection.csproj new file mode 100644 index 000000000..84522ab7c --- /dev/null +++ b/examples/workerServiceDependencyInjection/workerServiceDependencyInjection.csproj @@ -0,0 +1,11 @@ + + + + enable + enable + + + + + + diff --git a/examples/yaml/Program.cs b/examples/yaml/Program.cs index 88fc4ac12..47b70bdfe 100644 --- a/examples/yaml/Program.cs +++ b/examples/yaml/Program.cs @@ -1,26 +1,18 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; using k8s; using k8s.Models; +using System; +using System.Collections.Generic; -namespace yaml +var typeMap = new Dictionary { - internal class Program - { - private async static Task Main(string[] args) - { - var typeMap = new Dictionary(); - typeMap.Add("v1/Pod", typeof(V1Pod)); - typeMap.Add("v1/Service", typeof(V1Service)); - typeMap.Add("apps/v1beta1/Deployment", typeof(Appsv1beta1Deployment)); + { "v1/Pod", typeof(V1Pod) }, + { "v1/Service", typeof(V1Service) }, + { "apps/v1/Deployment", typeof(V1Deployment) }, +}; - var objects = await Yaml.LoadAllFromFileAsync(args[0], typeMap); +var objects = await KubernetesYaml.LoadAllFromFileAsync(args[0], typeMap).ConfigureAwait(false); - foreach (var obj in objects) { - Console.WriteLine(obj); - } - } - } +foreach (var obj in objects) +{ + Console.WriteLine(obj); } diff --git a/examples/yaml/yaml.csproj b/examples/yaml/yaml.csproj index a6cdcb9a5..d1e5b4724 100644 --- a/examples/yaml/yaml.csproj +++ b/examples/yaml/yaml.csproj @@ -1,12 +1,5 @@ - - - - - Exe - netcoreapp2.0 - \ No newline at end of file diff --git a/gen/KubernetesGenerator/ApiGenerator.cs b/gen/KubernetesGenerator/ApiGenerator.cs deleted file mode 100644 index 4603ad04e..000000000 --- a/gen/KubernetesGenerator/ApiGenerator.cs +++ /dev/null @@ -1,66 +0,0 @@ -using System.Collections.Generic; -using System.IO; -using System.Linq; -using NSwag; -using Nustache.Core; - -namespace KubernetesGenerator -{ - internal class ApiGenerator - { - public void Generate(OpenApiDocument swagger, string outputDirectory) - { - var data = swagger.Operations - .Where(o => o.Method != OpenApiOperationMethod.Options) - .GroupBy(o => o.Operation.OperationId) - .Select(g => - { - var gs = g.ToArray(); - - for (var i = 1; i < g.Count(); i++) - { - gs[i].Operation.OperationId += i; - } - - return gs; - }) - .SelectMany(g => g) - .Select(o => - { - var ps = o.Operation.ActualParameters.OrderBy(p => !p.IsRequired).ToArray(); - - o.Operation.Parameters.Clear(); - - var name = new HashSet(); - - var i = 1; - foreach (var p in ps) - { - if (name.Contains(p.Name)) - { - p.Name = p.Name + i++; - } - - o.Operation.Parameters.Add(p); - name.Add(p.Name); - } - - return o; - }) - .Select(o => - { - o.Path = o.Path.TrimStart('/'); - o.Method = char.ToUpper(o.Method[0]) + o.Method.Substring(1); - return o; - }) - .ToArray(); - - Render.FileToFile(Path.Combine("templates", "IKubernetes.cs.template"), data, - Path.Combine(outputDirectory, "IKubernetes.cs")); - Render.FileToFile(Path.Combine("templates", "Kubernetes.cs.template"), data, - Path.Combine(outputDirectory, "Kubernetes.cs")); - Render.FileToFile(Path.Combine("templates", "KubernetesExtensions.cs.template"), data, - Path.Combine(outputDirectory, "KubernetesExtensions.cs")); - } - } -} diff --git a/gen/KubernetesGenerator/ClassNameHelper.cs b/gen/KubernetesGenerator/ClassNameHelper.cs deleted file mode 100644 index 9ed87cb56..000000000 --- a/gen/KubernetesGenerator/ClassNameHelper.cs +++ /dev/null @@ -1,152 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using CaseExtensions; -using NJsonSchema; -using NSwag; -using Nustache.Core; - -namespace KubernetesGenerator -{ - internal class ClassNameHelper : INustacheHelper - { - private readonly Dictionary classNameMap; - private readonly HashSet schemaDefinitionsInMultipleGroups; - private readonly Dictionary schemaToNameMapCooked; - private readonly Dictionary schemaToNameMapUnprocessed; - - public ClassNameHelper(OpenApiDocument swaggerCooked, OpenApiDocument swaggerUnprocessed) - { - classNameMap = InitClassNameMap(swaggerCooked); - - schemaToNameMapCooked = GenerateSchemaToNameMapCooked(swaggerCooked); - schemaToNameMapUnprocessed = GenerateSchemaToNameMapUnprocessed(swaggerUnprocessed); - schemaDefinitionsInMultipleGroups = InitSchemaDefinitionsInMultipleGroups(schemaToNameMapUnprocessed); - } - - public void RegisterHelper() - { - Helpers.Register(nameof(GetClassName), GetClassName); - } - - private static Dictionary GenerateSchemaToNameMapUnprocessed( - OpenApiDocument swaggerUnprocessed) - { - return swaggerUnprocessed.Definitions.ToDictionary(x => x.Value, x => x.Key); - } - - private static Dictionary GenerateSchemaToNameMapCooked(OpenApiDocument swaggerCooked) - { - return swaggerCooked.Definitions.ToDictionary(x => x.Value, x => x.Key.Replace(".", "").ToPascalCase()); - } - - private static HashSet InitSchemaDefinitionsInMultipleGroups( - Dictionary schemaToNameMap) - { - return schemaToNameMap.Values.Select(x => - { - var parts = x.Split("."); - return new - { - FullName = x, - Name = parts[parts.Length - 1], - Version = parts[parts.Length - 2], - Group = parts[parts.Length - 3], - }; - }) - .GroupBy(x => new { x.Name, x.Version }) - .Where(x => x.Count() > 1) - .SelectMany(x => x) - .Select(x => x.FullName) - .ToHashSet(); - } - - private Dictionary InitClassNameMap(OpenApiDocument doc) - { - var map = new Dictionary(); - foreach (var (k, v) in doc.Definitions) - { - if (v.ExtensionData?.TryGetValue("x-kubernetes-group-version-kind", out _) == true) - { - var groupVersionKindElements = (object[])v.ExtensionData["x-kubernetes-group-version-kind"]; - var groupVersionKind = (Dictionary)groupVersionKindElements[0]; - - var group = (string)groupVersionKind["group"]; - var kind = (string)groupVersionKind["kind"]; - var version = (string)groupVersionKind["version"]; - map[$"{group}_{kind}_{version}"] = k.Replace(".", "").ToPascalCase(); - } - } - - return map; - } - - public void GetClassName(RenderContext context, IList arguments, IDictionary options, - RenderBlock fn, RenderBlock inverse) - { - if (arguments != null && arguments.Count > 0 && arguments[0] != null && arguments[0] is OpenApiOperation) - { - context.Write(GetClassName(arguments[0] as OpenApiOperation)); - } - else if (arguments != null && arguments.Count > 0 && arguments[0] != null && arguments[0] is JsonSchema) - { - context.Write(GetClassNameForSchemaDefinition(arguments[0] as JsonSchema)); - } - } - - public string GetClassName(OpenApiOperation operation) - { - var groupVersionKind = - (Dictionary)operation.ExtensionData["x-kubernetes-group-version-kind"]; - return GetClassName(groupVersionKind); - } - - public string GetClassName(Dictionary groupVersionKind) - { - var group = (string)groupVersionKind["group"]; - var kind = (string)groupVersionKind["kind"]; - var version = (string)groupVersionKind["version"]; - - return classNameMap[$"{group}_{kind}_{version}"]; - } - - public string GetClassName(JsonSchema definition) - { - var groupVersionKindElements = (object[])definition.ExtensionData["x-kubernetes-group-version-kind"]; - var groupVersionKind = (Dictionary)groupVersionKindElements[0]; - - return GetClassName(groupVersionKind); - } - - public string GetClassNameForSchemaDefinition(JsonSchema definition) - { - if (definition.ExtensionData != null && - definition.ExtensionData.ContainsKey("x-kubernetes-group-version-kind")) - { - return GetClassName(definition); - } - - if (schemaToNameMapCooked.TryGetValue(definition, out var name)) - { - return name; - } - - var schemaName = schemaToNameMapUnprocessed[definition]; - - var parts = schemaName.Split("."); - var group = parts[parts.Length - 3]; - var version = parts[parts.Length - 2]; - var entityName = parts[parts.Length - 1]; - if (!schemaDefinitionsInMultipleGroups.Contains(schemaName)) - { - group = null; - } - - return $"{group}{version}{entityName}".ToPascalCase(); - } - - private static Dictionary InitSchemaToNameCooked(OpenApiDocument swaggercooked) - { - return swaggercooked.Definitions.ToDictionary(x => x.Value, x => x.Key.Replace(".", "").ToPascalCase()); - } - } -} diff --git a/gen/KubernetesGenerator/GeneralNameHelper.cs b/gen/KubernetesGenerator/GeneralNameHelper.cs deleted file mode 100644 index 1ce42848b..000000000 --- a/gen/KubernetesGenerator/GeneralNameHelper.cs +++ /dev/null @@ -1,207 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using CaseExtensions; -using NJsonSchema; -using NSwag; -using Nustache.Core; - -namespace KubernetesGenerator -{ - internal class GeneralNameHelper : INustacheHelper - { - private readonly ClassNameHelper classNameHelper; - - public GeneralNameHelper(ClassNameHelper classNameHelper) - { - this.classNameHelper = classNameHelper; - } - - public void RegisterHelper() - { - Helpers.Register(nameof(GetInterfaceName), GetInterfaceName); - Helpers.Register(nameof(GetMethodName), GetMethodName); - Helpers.Register(nameof(GetDotNetName), GetDotNetName); - } - - public void GetInterfaceName(RenderContext context, IList arguments, - IDictionary options, RenderBlock fn, RenderBlock inverse) - { - if (arguments != null && arguments.Count > 0 && arguments[0] != null && arguments[0] is JsonSchema) - { - context.Write(GetInterfaceName(arguments[0] as JsonSchema)); - } - } - - private string GetInterfaceName(JsonSchema definition) - { - var interfaces = new List(); - if (definition.Properties.TryGetValue("metadata", out var metadataProperty)) - { - interfaces.Add( - $"IKubernetesObject<{classNameHelper.GetClassNameForSchemaDefinition(metadataProperty.Reference)}>"); - } - else - { - interfaces.Add("IKubernetesObject"); - } - - if (definition.Properties.TryGetValue("items", out var itemsProperty)) - { - var schema = itemsProperty.Type == JsonObjectType.Object - ? itemsProperty.Reference - : itemsProperty.Item.Reference; - interfaces.Add($"IItems<{classNameHelper.GetClassNameForSchemaDefinition(schema)}>"); - } - - if (definition.Properties.TryGetValue("spec", out var specProperty)) - { - // ignore empty spec placeholder - if (specProperty.Reference.ActualProperties.Any()) - { - interfaces.Add($"ISpec<{classNameHelper.GetClassNameForSchemaDefinition(specProperty.Reference)}>"); - } - } - - interfaces.Add("IValidate"); - - return string.Join(", ", interfaces); - } - - public void GetMethodName(RenderContext context, IList arguments, IDictionary options, - RenderBlock fn, RenderBlock inverse) - { - if (arguments != null && arguments.Count > 0 && arguments[0] != null && arguments[0] is OpenApiOperation) - { - string suffix = null; - if (arguments.Count > 1) - { - suffix = arguments[1] as string; - } - - context.Write(GetMethodName(arguments[0] as OpenApiOperation, suffix)); - } - } - - public void GetDotNetName(RenderContext context, IList arguments, IDictionary options, - RenderBlock fn, RenderBlock inverse) - { - if (arguments != null && arguments.Count > 0 && arguments[0] != null && arguments[0] is OpenApiParameter) - { - var parameter = arguments[0] as OpenApiParameter; - context.Write(GetDotNetName(parameter.Name)); - - if (arguments.Count > 1 && arguments[1] as string == "true" && !parameter.IsRequired) - { - context.Write(" = null"); - } - } - else if (arguments != null && arguments.Count > 0 && arguments[0] != null && arguments[0] is string) - { - var style = "parameter"; - if (arguments.Count > 1) - { - style = arguments[1] as string; - } - - context.Write(GetDotNetName((string)arguments[0], style)); - } - } - - public string GetDotNetName(string jsonName, string style = "parameter") - { - switch (style) - { - case "parameter": - if (jsonName == "namespace") - { - return "namespaceParameter"; - } - else if (jsonName == "continue") - { - return "continueParameter"; - } - - break; - - case "fieldctor": - if (jsonName == "namespace") - { - return "namespaceProperty"; - } - else if (jsonName == "continue") - { - return "continueProperty"; - } - else if (jsonName == "$ref") - { - return "refProperty"; - } - else if (jsonName == "default") - { - return "defaultProperty"; - } - else if (jsonName == "operator") - { - return "operatorProperty"; - } - else if (jsonName == "$schema") - { - return "schema"; - } - else if (jsonName == "enum") - { - return "enumProperty"; - } - else if (jsonName == "object") - { - return "objectProperty"; - } - else if (jsonName == "readOnly") - { - return "readOnlyProperty"; - } - else if (jsonName == "from") - { - return "fromProperty"; - } - - if (jsonName.Contains("-")) - { - return jsonName.ToCamelCase(); - } - - break; - case "field": - return GetDotNetName(jsonName, "fieldctor").ToPascalCase(); - } - - return jsonName.ToCamelCase(); - } - - public static string GetMethodName(OpenApiOperation watchOperation, string suffix) - { - var tag = watchOperation.Tags[0]; - tag = tag.Replace("_", string.Empty); - - var methodName = watchOperation.OperationId.ToPascalCase(); - - switch (suffix) - { - case "": - case "Async": - case "WithHttpMessagesAsync": - methodName += suffix; - break; - - default: - // This tries to remove the version from the method name, e.g. watchCoreV1NamespacedPod => WatchNamespacedPod - methodName = methodName.Replace(tag, string.Empty, StringComparison.OrdinalIgnoreCase); - methodName += "Async"; - break; - } - - return methodName; - } - } -} diff --git a/gen/KubernetesGenerator/INustacheHelper.cs b/gen/KubernetesGenerator/INustacheHelper.cs deleted file mode 100644 index 25c57f0a3..000000000 --- a/gen/KubernetesGenerator/INustacheHelper.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace KubernetesGenerator -{ - public interface INustacheHelper - { - void RegisterHelper(); - } -} diff --git a/gen/KubernetesGenerator/KubernetesGenerator.csproj b/gen/KubernetesGenerator/KubernetesGenerator.csproj deleted file mode 100644 index 80f42a338..000000000 --- a/gen/KubernetesGenerator/KubernetesGenerator.csproj +++ /dev/null @@ -1,23 +0,0 @@ - - - - Exe - net5 - CA1812 - - - - - - - - - - - - - PreserveNewest - - - - diff --git a/gen/KubernetesGenerator/MetaHelper.cs b/gen/KubernetesGenerator/MetaHelper.cs deleted file mode 100644 index 9509dbba4..000000000 --- a/gen/KubernetesGenerator/MetaHelper.cs +++ /dev/null @@ -1,95 +0,0 @@ -using System; -using System.Collections.Generic; -using NJsonSchema; -using NSwag; -using Nustache.Core; - -namespace KubernetesGenerator -{ - internal class MetaHelper : INustacheHelper - { - public void RegisterHelper() - { - Helpers.Register(nameof(GetGroup), GetGroup); - Helpers.Register(nameof(GetApiVersion), GetApiVersion); - Helpers.Register(nameof(GetKind), GetKind); - Helpers.Register(nameof(GetPathExpression), GetPathExpression); - } - - public static void GetKind(RenderContext context, IList arguments, IDictionary options, - RenderBlock fn, RenderBlock inverse) - { - if (arguments != null && arguments.Count > 0 && arguments[0] != null && arguments[0] is JsonSchema) - { - context.Write(GetKind(arguments[0] as JsonSchema)); - } - } - - private static string GetKind(JsonSchema definition) - { - var groupVersionKindElements = (object[])definition.ExtensionData["x-kubernetes-group-version-kind"]; - var groupVersionKind = (Dictionary)groupVersionKindElements[0]; - - return groupVersionKind["kind"] as string; - } - - public static void GetGroup(RenderContext context, IList arguments, IDictionary options, - RenderBlock fn, RenderBlock inverse) - { - if (arguments != null && arguments.Count > 0 && arguments[0] != null && arguments[0] is JsonSchema) - { - context.Write(GetGroup(arguments[0] as JsonSchema)); - } - } - - private static string GetGroup(JsonSchema definition) - { - var groupVersionKindElements = (object[])definition.ExtensionData["x-kubernetes-group-version-kind"]; - var groupVersionKind = (Dictionary)groupVersionKindElements[0]; - - return groupVersionKind["group"] as string; - } - - public static void GetApiVersion(RenderContext context, IList arguments, - IDictionary options, - RenderBlock fn, RenderBlock inverse) - { - if (arguments != null && arguments.Count > 0 && arguments[0] != null && arguments[0] is JsonSchema) - { - context.Write(GetApiVersion(arguments[0] as JsonSchema)); - } - } - - private static string GetApiVersion(JsonSchema definition) - { - var groupVersionKindElements = (object[])definition.ExtensionData["x-kubernetes-group-version-kind"]; - var groupVersionKind = (Dictionary)groupVersionKindElements[0]; - - return groupVersionKind["version"] as string; - } - - public static void GetPathExpression(RenderContext context, IList arguments, - IDictionary options, RenderBlock fn, RenderBlock inverse) - { - if (arguments != null && arguments.Count > 0 && arguments[0] != null && - arguments[0] is OpenApiOperationDescription) - { - var operation = arguments[0] as OpenApiOperationDescription; - context.Write(GetPathExpression(operation)); - } - } - - private static string GetPathExpression(OpenApiOperationDescription operation) - { - var pathExpression = operation.Path; - - if (pathExpression.StartsWith("/", StringComparison.InvariantCulture)) - { - pathExpression = pathExpression.Substring(1); - } - - pathExpression = pathExpression.Replace("{namespace}", "{namespaceParameter}"); - return pathExpression; - } - } -} diff --git a/gen/KubernetesGenerator/ModelExtGenerator.cs b/gen/KubernetesGenerator/ModelExtGenerator.cs deleted file mode 100644 index 90c4cdf40..000000000 --- a/gen/KubernetesGenerator/ModelExtGenerator.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System.Collections.Generic; -using System.IO; -using System.Linq; -using NSwag; -using Nustache.Core; - -namespace KubernetesGenerator -{ - internal class ModelExtGenerator - { - private readonly ClassNameHelper classNameHelper; - - public ModelExtGenerator(ClassNameHelper classNameHelper) - { - this.classNameHelper = classNameHelper; - } - - public void Generate(OpenApiDocument swagger, string outputDirectory) - { - // Generate the interface declarations - var skippedTypes = new HashSet { "V1WatchEvent" }; - - var definitions = swagger.Definitions.Values - .Where( - d => d.ExtensionData != null - && d.ExtensionData.ContainsKey("x-kubernetes-group-version-kind") - && !skippedTypes.Contains(classNameHelper.GetClassName(d))); - - Render.FileToFile(Path.Combine("templates", "ModelExtensions.cs.template"), definitions, - Path.Combine(outputDirectory, "ModelExtensions.cs")); - } - } -} diff --git a/gen/KubernetesGenerator/ModelGenerator.cs b/gen/KubernetesGenerator/ModelGenerator.cs deleted file mode 100644 index d939c12a6..000000000 --- a/gen/KubernetesGenerator/ModelGenerator.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System.IO; -using NSwag; -using Nustache.Core; - -namespace KubernetesGenerator -{ - internal class ModelGenerator - { - private readonly ClassNameHelper classNameHelper; - - public ModelGenerator(ClassNameHelper classNameHelper) - { - this.classNameHelper = classNameHelper; - } - - public void Generate(OpenApiDocument swaggercooked, string outputDirectory) - { - Directory.CreateDirectory(Path.Combine(outputDirectory, "Models")); - - foreach (var (_, def) in swaggercooked.Definitions) - { - var clz = classNameHelper.GetClassNameForSchemaDefinition(def); - Render.FileToFile( - Path.Combine("templates", "Model.cs.template"), - new { clz, def, properties = def.Properties.Values }, - Path.Combine(outputDirectory, "Models", $"{clz}.cs")); - } - } - } -} diff --git a/gen/KubernetesGenerator/ParamHelper.cs b/gen/KubernetesGenerator/ParamHelper.cs deleted file mode 100644 index ea0491a36..000000000 --- a/gen/KubernetesGenerator/ParamHelper.cs +++ /dev/null @@ -1,114 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using NJsonSchema; -using NSwag; -using Nustache.Core; - -namespace KubernetesGenerator -{ - internal class ParamHelper : INustacheHelper - { - private readonly GeneralNameHelper generalNameHelper; - private readonly TypeHelper typeHelper; - - public ParamHelper(GeneralNameHelper generalNameHelper, TypeHelper typeHelper) - { - this.generalNameHelper = generalNameHelper; - this.typeHelper = typeHelper; - } - - public void RegisterHelper() - { - Helpers.Register(nameof(IfParamContains), IfParamContains); - Helpers.Register(nameof(IfParamDoesNotContain), IfParamDoesNotContain); - Helpers.Register(nameof(GetModelCtorParam), GetModelCtorParam); - } - - public static void IfParamContains(RenderContext context, IList arguments, - IDictionary options, - RenderBlock fn, RenderBlock inverse) - { - var operation = arguments?.FirstOrDefault() as OpenApiOperation; - if (operation != null) - { - string name = null; - if (arguments.Count > 1) - { - name = arguments[1] as string; - } - - var found = false; - - foreach (var param in operation.Parameters) - { - if (param.Name == name) - { - found = true; - break; - } - } - - if (found) - { - fn(null); - } - } - } - - public static void IfParamDoesNotContain(RenderContext context, IList arguments, - IDictionary options, - RenderBlock fn, RenderBlock inverse) - { - var operation = arguments?.FirstOrDefault() as OpenApiOperation; - if (operation != null) - { - string name = null; - if (arguments.Count > 1) - { - name = arguments[1] as string; - } - - var found = false; - - foreach (var param in operation.Parameters) - { - if (param.Name == name) - { - found = true; - break; - } - } - - if (!found) - { - fn(null); - } - } - } - - public void GetModelCtorParam(RenderContext context, IList arguments, - IDictionary options, - RenderBlock fn, RenderBlock inverse) - { - var schema = arguments[0] as JsonSchema; - - if (schema != null) - { - context.Write(string.Join(", ", schema.Properties.Values - .OrderBy(p => !p.IsRequired) - .Select(p => - { - var sp = - $"{typeHelper.GetDotNetType(p)} {generalNameHelper.GetDotNetName(p.Name, "fieldctor")}"; - - if (!p.IsRequired) - { - sp = $"{sp} = null"; - } - - return sp; - }))); - } - } - } -} diff --git a/gen/KubernetesGenerator/Program.cs b/gen/KubernetesGenerator/Program.cs deleted file mode 100644 index 56eb3467c..000000000 --- a/gen/KubernetesGenerator/Program.cs +++ /dev/null @@ -1,131 +0,0 @@ -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using Autofac; -using CommandLine; -using KubernetesGenerator; -using NSwag; - -namespace KubernetesWatchGenerator -{ - internal class Program - { - private static async Task Main(string[] args) - { - await Parser.Default.ParseArguments(args) - .WithParsedAsync(RunAsync).ConfigureAwait(false); - } - - private static async Task RunAsync(Options options) - { - var outputDirectory = options.OutputPath; - - var swaggerCooked = await OpenApiDocument.FromFileAsync(Path.Combine(outputDirectory, "swagger.json")) - .ConfigureAwait(false); - var swaggerUnprocessed = await OpenApiDocument - .FromFileAsync(Path.Combine(outputDirectory, "swagger.json.unprocessed")) - .ConfigureAwait(false); - - - var builder = new ContainerBuilder(); - - builder.RegisterType() - .WithParameter(new NamedParameter(nameof(swaggerCooked), swaggerCooked)) - .WithParameter(new NamedParameter(nameof(swaggerUnprocessed), swaggerUnprocessed)) - .AsSelf() - .AsImplementedInterfaces() - ; - - builder.RegisterType() - .AsImplementedInterfaces() - ; - - builder.RegisterType() - .AsImplementedInterfaces() - ; - - builder.RegisterType() - .WithParameter(new TypedParameter(typeof(OpenApiDocument), swaggerUnprocessed)) - .AsImplementedInterfaces() - ; - - builder.RegisterType() - .AsSelf() - .AsImplementedInterfaces() - ; - - builder.RegisterType() - .AsSelf() - .AsImplementedInterfaces() - ; - - builder.RegisterType() - .AsImplementedInterfaces() - ; - - builder.RegisterType() - .AsImplementedInterfaces() - ; - - builder.RegisterType(); - builder.RegisterType(); - builder.RegisterType(); - builder.RegisterType(); - builder.RegisterType(); - - var container = builder.Build(); - - foreach (var helper in container.Resolve>()) - { - helper.RegisterHelper(); - } - - if (options.GenerateWatch) - { - container.Resolve().Generate(swaggerUnprocessed, outputDirectory); - } - - if (options.GenerateApi) - { - container.Resolve().Generate(swaggerCooked, outputDirectory); - } - - if (options.GenerateModel) - { - container.Resolve().Generate(swaggerCooked, outputDirectory); - } - - if (options.GenerateModelExt) - { - container.Resolve().Generate(swaggerUnprocessed, outputDirectory); - } - - if (options.GenerateVersionConverter) - { - container.Resolve().GenerateFromModels(outputDirectory); - } - } - - [System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "CA1812", Justification = "Instanced in CommandLineParser")] - public class Options - { - [Value(0, Required = true, HelpText = "path to src/KubernetesClient/generated")] - public string OutputPath { get; set; } - - [Option("watch", Required = false, Default = true)] - public bool GenerateWatch { get; set; } - - [Option("api", Required = false, Default = true)] - public bool GenerateApi { get; set; } - - [Option("model", Required = false, Default = true)] - public bool GenerateModel { get; set; } - - [Option("modelext", Required = false, Default = true)] - public bool GenerateModelExt { get; set; } - - [Option("versionconverter", Required = false, Default = false)] - public bool GenerateVersionConverter { get; set; } - } - } -} diff --git a/gen/KubernetesGenerator/StringHelpers.cs b/gen/KubernetesGenerator/StringHelpers.cs deleted file mode 100644 index f2ff87b3c..000000000 --- a/gen/KubernetesGenerator/StringHelpers.cs +++ /dev/null @@ -1,128 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Security; -using NJsonSchema; -using Nustache.Core; - -namespace KubernetesGenerator -{ - internal class StringHelpers : INustacheHelper - { - private readonly GeneralNameHelper generalNameHelper; - - public StringHelpers(GeneralNameHelper generalNameHelper) - { - this.generalNameHelper = generalNameHelper; - } - - public void RegisterHelper() - { - Helpers.Register(nameof(ToXmlDoc), ToXmlDoc); - Helpers.Register(nameof(AddCurly), AddCurly); - Helpers.Register(nameof(EscapeDataString), EscapeDataString); - } - - private void ToXmlDoc(RenderContext context, IList arguments, IDictionary options, - RenderBlock fn, RenderBlock inverse) - { - if (arguments != null && arguments.Count > 0 && arguments[0] != null && arguments[0] is string) - { - var first = true; - - using (var reader = new StringReader(arguments[0] as string)) - { - string line = null; - while ((line = reader.ReadLine()) != null) - { - foreach (var wline in WordWrap(line, 80)) - { - if (!first) - { - context.Write("\n"); - context.Write(" /// "); - } - else - { - first = false; - } - - context.Write(SecurityElement.Escape(wline)); - } - } - } - } - } - - private static IEnumerable WordWrap(string text, int width) - { - var lines = text.Split(new[] { "\r\n", "\r", "\n" }, StringSplitOptions.None); - foreach (var line in lines) - { - var processedLine = line.Trim(); - - // yield empty lines as they are (probably) intensional - if (processedLine.Length == 0) - { - yield return processedLine; - } - - // feast on the line until it's gone - while (processedLine.Length > 0) - { - // determine potential wrapping points - var whitespacePositions = Enumerable - .Range(0, processedLine.Length) - .Where(i => char.IsWhiteSpace(processedLine[i])) - .Concat(new[] { processedLine.Length }) - .Cast(); - var preWidthWrapAt = whitespacePositions.LastOrDefault(i => i <= width); - var postWidthWrapAt = whitespacePositions.FirstOrDefault(i => i > width); - - // choose preferred wrapping point - var wrapAt = preWidthWrapAt ?? postWidthWrapAt ?? processedLine.Length; - - // wrap - yield return processedLine.Substring(0, wrapAt); - processedLine = processedLine.Substring(wrapAt).Trim(); - } - } - } - - public void AddCurly(RenderContext context, IList arguments, IDictionary options, - RenderBlock fn, RenderBlock inverse) - { - var s = arguments?.FirstOrDefault() as string; - if (s != null) - { - context.Write("{" + s + "}"); - } - } - - public void EscapeDataString(RenderContext context, IList arguments, - IDictionary options, - RenderBlock fn, RenderBlock inverse) - { - var name = generalNameHelper.GetDotNetName(arguments[0] as string); - var type = arguments[1] as JsonObjectType?; - - if (name == "pretty") - { - context.Write($"{name}.Value == true ? \"true\" : \"false\""); - return; - } - - switch (type) - { - case JsonObjectType.String: - context.Write($"System.Uri.EscapeDataString({name})"); - break; - default: - context.Write( - $"System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject({name}, SerializationSettings).Trim('\"'))"); - break; - } - } - } -} diff --git a/gen/KubernetesGenerator/UtilHelper.cs b/gen/KubernetesGenerator/UtilHelper.cs deleted file mode 100644 index 536dc8c67..000000000 --- a/gen/KubernetesGenerator/UtilHelper.cs +++ /dev/null @@ -1,52 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using System.Runtime.CompilerServices; -using NSwag; -using Nustache.Core; - -namespace KubernetesGenerator -{ - internal class UtilHelper : INustacheHelper - { - public void RegisterHelper() - { - Helpers.Register(nameof(GetTuple), GetTuple); - Helpers.Register(nameof(IfKindIs), IfKindIs); - } - - public static void GetTuple(RenderContext context, IList arguments, IDictionary options, - RenderBlock fn, RenderBlock inverse) - { - if (arguments != null && arguments.Count > 0 && arguments[0] is ITuple && - options.TryGetValue("index", out var indexObj) && int.TryParse(indexObj?.ToString(), out var index)) - { - var pair = (ITuple)arguments[0]; - var value = pair[index]; - context.Write(value.ToString()); - } - } - - public static void IfKindIs(RenderContext context, IList arguments, IDictionary options, - RenderBlock fn, RenderBlock inverse) - { - var parameter = arguments?.FirstOrDefault() as OpenApiParameter; - if (parameter != null) - { - string kind = null; - if (arguments.Count > 1) - { - kind = arguments[1] as string; - } - - if (kind == "query" && parameter.Kind == OpenApiParameterKind.Query) - { - fn(null); - } - else if (kind == "path" && parameter.Kind == OpenApiParameterKind.Path) - { - fn(null); - } - } - } - } -} diff --git a/gen/KubernetesGenerator/VersionConverterGenerator.cs b/gen/KubernetesGenerator/VersionConverterGenerator.cs deleted file mode 100644 index d7d940b90..000000000 --- a/gen/KubernetesGenerator/VersionConverterGenerator.cs +++ /dev/null @@ -1,52 +0,0 @@ -using System; -using System.IO; -using System.Linq; -using System.Runtime.CompilerServices; -using System.Text.RegularExpressions; -using Nustache.Core; - -namespace KubernetesGenerator -{ - internal class VersionConverterGenerator - { - public void GenerateFromModels(string outputDirectory) - { - // generate version converter maps - var allGeneratedModelClassNames = Directory - .EnumerateFiles(Path.Combine(outputDirectory, "Models")) - .Select(Path.GetFileNameWithoutExtension) - .ToList(); - - var versionRegex = @"(^V|v)[0-9]+((alpha|beta)[0-9]+)?"; - var typePairs = allGeneratedModelClassNames - .OrderBy(x => x) - .Select(x => new - { - Version = Regex.Match(x, versionRegex).Value?.ToLower(), - Kinda = Regex.Replace(x, versionRegex, string.Empty), - Type = x, - }) - .Where(x => !string.IsNullOrEmpty(x.Version)) - .GroupBy(x => x.Kinda) - .Where(x => x.Count() > 1) - .SelectMany(x => - x.SelectMany((value, index) => x.Skip(index + 1), (first, second) => new { first, second })) - .OrderBy(x => x.first.Kinda) - .ThenBy(x => x.first.Version) - .Select(x => (ITuple)Tuple.Create(x.first.Type, x.second.Type)) - .ToList(); - - var versionFile = - File.ReadAllText(Path.Combine(outputDirectory, "..", "Versioning", "VersionConverter.cs")); - var manualMaps = Regex.Matches(versionFile, @"\.CreateMap<(?.+?),\s?(?.+?)>") - .Select(x => Tuple.Create(x.Groups["T1"].Value, x.Groups["T2"].Value)) - .ToList(); - var versionConverterPairs = typePairs.Except(manualMaps).ToList(); - - Render.FileToFile(Path.Combine("templates", "VersionConverter.cs.template"), versionConverterPairs, - Path.Combine(outputDirectory, "VersionConverter.cs")); - Render.FileToFile(Path.Combine("templates", "ModelOperators.cs.template"), typePairs, - Path.Combine(outputDirectory, "ModelOperators.cs")); - } - } -} diff --git a/gen/KubernetesGenerator/WatchGenerator.cs b/gen/KubernetesGenerator/WatchGenerator.cs deleted file mode 100644 index f7065d4bd..000000000 --- a/gen/KubernetesGenerator/WatchGenerator.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System.IO; -using System.Linq; -using NSwag; -using Nustache.Core; - -namespace KubernetesGenerator -{ - internal class WatchGenerator - { - public void Generate(OpenApiDocument swagger, string outputDirectory) - { - // Generate the Watcher operations - // We skip operations where the name of the class in the C# client could not be determined correctly. - // That's usually because there are different version of the same object (e.g. for deployments). - var watchOperations = swagger.Operations.Where( - o => o.Path.Contains("/watch/") - && o.Operation.ActualParameters.Any(p => p.Name == "name")).ToArray(); - - // Render. - Render.FileToFile(Path.Combine("templates", "IKubernetes.Watch.cs.template"), watchOperations, - Path.Combine(outputDirectory, "IKubernetes.Watch.cs")); - Render.FileToFile(Path.Combine("templates", "Kubernetes.Watch.cs.template"), watchOperations, - Path.Combine(outputDirectory, "Kubernetes.Watch.cs")); - } - } -} diff --git a/gen/KubernetesGenerator/templates/IKubernetes.Watch.cs.template b/gen/KubernetesGenerator/templates/IKubernetes.Watch.cs.template deleted file mode 100644 index 412925516..000000000 --- a/gen/KubernetesGenerator/templates/IKubernetes.Watch.cs.template +++ /dev/null @@ -1,71 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// -using k8s.Models; -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace k8s -{ - public partial interface IKubernetes - { - {{#.}} - /// - /// {{ToXmlDoc operation.description}} - /// - {{#operation.actualParameters}} - {{#isRequired}} - /// - /// {{ToXmlDoc description}} - /// - {{/isRequired}} - {{/operation.actualParameters}} - {{#operation.actualParameters}} - {{^isRequired}} - /// - /// {{ToXmlDoc description}} - /// - {{/isRequired}} - {{/operation.actualParameters}} - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> {{GetMethodName operation}}( -{{#operation.actualParameters}} -{{#isRequired}} - {{GetDotNetType type name isRequired format}} {{GetDotNetName name}}, -{{/isRequired}} -{{/operation.actualParameters}} -{{#operation.actualParameters}} -{{^isRequired}} - {{GetDotNetType .}} {{GetDotNetName .}} = null, -{{/isRequired}} -{{/operation.actualParameters}} - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - {{/.}} - } -} diff --git a/gen/KubernetesGenerator/templates/IKubernetes.cs.template b/gen/KubernetesGenerator/templates/IKubernetes.cs.template deleted file mode 100644 index 135eece8b..000000000 --- a/gen/KubernetesGenerator/templates/IKubernetes.cs.template +++ /dev/null @@ -1,67 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s -{ - using Microsoft.Rest; - using Models; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.IO; - using System.Threading; - using System.Threading.Tasks; - - /// - /// - public partial interface IKubernetes : System.IDisposable - { - /// - /// The base URI of the service. - /// - System.Uri BaseUri { get; set; } - - /// - /// Gets or sets json serialization settings. - /// - JsonSerializerSettings SerializationSettings { get; } - - /// - /// Gets or sets json deserialization settings. - /// - JsonSerializerSettings DeserializationSettings { get; } - - /// - /// Subscription credentials which uniquely identify client - /// subscription. - /// - ServiceClientCredentials Credentials { get; } - - {{#.}} - /// - /// {{ToXmlDoc operation.description}} - /// - {{#operation.parameters}} - /// - /// {{ToXmlDoc description}} - /// - {{/operation.parameters}} - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task"}}> {{GetMethodName operation "WithHttpMessagesAsync"}}( -{{#operation.parameters}} - {{GetDotNetType .}} {{GetDotNetName . "true"}}, -{{/operation.parameters}} - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - {{/.}} - } -} diff --git a/gen/KubernetesGenerator/templates/Kubernetes.Watch.cs.template b/gen/KubernetesGenerator/templates/Kubernetes.Watch.cs.template deleted file mode 100644 index 6f0fff363..000000000 --- a/gen/KubernetesGenerator/templates/Kubernetes.Watch.cs.template +++ /dev/null @@ -1,41 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// -using k8s.Models; -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace k8s -{ - public partial class Kubernetes - { - {{#.}} - /// - public Task> {{GetMethodName operation}}( -{{#operation.actualParameters}} -{{#isRequired}} - {{GetDotNetType type name isRequired format}} {{GetDotNetName name}}, -{{/isRequired}} -{{/operation.actualParameters}} -{{#operation.actualParameters}} -{{^isRequired}} - {{GetDotNetType .}} {{GetDotNetName .}} = null, -{{/isRequired}} -{{/operation.actualParameters}} - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"{{GetPathExpression .}}"; - return WatchObjectAsync<{{GetClassName operation}}>(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - {{/.}} - } -} diff --git a/gen/KubernetesGenerator/templates/Kubernetes.cs.template b/gen/KubernetesGenerator/templates/Kubernetes.cs.template deleted file mode 100644 index 97e0359e2..000000000 --- a/gen/KubernetesGenerator/templates/Kubernetes.cs.template +++ /dev/null @@ -1,184 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s -{ - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Models; - using System.Collections.Generic; - using System.IO; - using System.Net; - using System.Net.Http; - using System.Threading; - using System.Threading.Tasks; - - public partial class Kubernetes : ServiceClient, IKubernetes - { - {{#.}} - /// - public async Task"}}> {{GetMethodName operation "WithHttpMessagesAsync"}}( -{{#operation.parameters}} - {{GetDotNetType .}} {{GetDotNetName . "true"}}, -{{/operation.parameters}} - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - {{#IfParamContains operation "watch"}} - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - {{/IfParamContains operation "watch"}} - cancellationToken = cts.Token; - - {{#operation.parameters}} - {{#isRequired}} - if ({{GetDotNetName name}} == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "{{GetDotNetName name}}"); - } - {{/isRequired}} - {{/operation.parameters}} - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - {{#operation.parameters}} - tracingParameters.Add("{{GetDotNetName name}}", {{GetDotNetName name}}); - {{/operation.parameters}} - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "{{GetMethodName operation ""}}", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{{path}}").ToString(); - {{#operation.parameters}} - {{#IfKindIs . "path"}} - _url = _url.Replace("{{AddCurly name}}", {{GetDotNetName name}}); - {{/IfKindIs . "path"}} - {{/operation.parameters}} - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - {{#operation.parameters}} - {{#IfKindIs . "query"}} - if ({{GetDotNetName name}} != null) - { - _queryParameters.Add(string.Format("{{name}}={0}", {{EscapeDataString name type}})); - } - {{/IfKindIs . "query"}} - {{/operation.parameters}} - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.{{Method}}; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - {{#IfParamContains operation "body"}} - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - {{/IfParamContains operation "body"}} - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - {{#IfReturnType operation "void"}} - HttpOperationResponse _result = new HttpOperationResponse() { Request = _httpRequest, Response = _httpResponse }; - {{/IfReturnType operation "void"}} - {{#IfReturnType operation "obj"}} - var _result = await CreateResultAsync{{GetReturnType operation "<>"}}(_httpRequest, - _httpResponse, - {{#IfParamContains operation "watch"}} - watch, - {{/IfParamContains operation "watch"}} - {{#IfParamDoesNotContain operation "watch"}} - false, - {{/IfParamDoesNotContain operation "watch"}} - cancellationToken); - {{/IfReturnType operation "obj"}} - {{#IfReturnType operation "stream"}} - var _result = new HttpOperationResponse{{GetReturnType operation "<>"}}() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - {{/IfReturnType operation "stream"}} - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - {{/.}} - } -} diff --git a/gen/KubernetesGenerator/templates/KubernetesExtensions.cs.template b/gen/KubernetesGenerator/templates/KubernetesExtensions.cs.template deleted file mode 100644 index df67ffb17..000000000 --- a/gen/KubernetesGenerator/templates/KubernetesExtensions.cs.template +++ /dev/null @@ -1,102 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s -{ - using Models; - using System.IO; - using System.Threading; - using System.Threading.Tasks; - - /// - /// Extension methods for Kubernetes. - /// - public static partial class KubernetesExtensions - { - {{#.}} - /// - /// {{ToXmlDoc operation.description}} - /// - /// - /// The operations group for this extension method. - /// - {{#operation.parameters}} - /// - /// {{ToXmlDoc description}} - /// - {{/operation.parameters}} - public static {{GetReturnType operation "void"}} {{GetMethodName operation ""}}( - this IKubernetes operations -{{#operation.parameters}} - ,{{GetDotNetType .}} {{GetDotNetName . "true"}} -{{/operation.parameters}} - ) - { - {{GetReturnType operation "return"}} operations.{{GetMethodName operation "Async"}}( - {{#operation.parameters}} - {{GetDotNetName .}}, - {{/operation.parameters}} - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// {{ToXmlDoc operation.description}} - /// - /// - /// The operations group for this extension method. - /// - {{#operation.parameters}} - /// - /// {{ToXmlDoc description}} - /// - {{/operation.parameters}} - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task{{GetReturnType operation "<>"}} {{GetMethodName operation "Async"}}( - this IKubernetes operations, - {{#operation.parameters}} - {{GetDotNetType .}} {{GetDotNetName . "true"}}, - {{/operation.parameters}} - CancellationToken cancellationToken = default(CancellationToken)) - { - {{#IfReturnType operation "stream"}} - var _result = await operations.{{GetMethodName operation "WithHttpMessagesAsync"}}( - {{#operation.parameters}} - {{GetDotNetName .}}, - {{/operation.parameters}} - null, - cancellationToken); - _result.Request.Dispose(); - {{GetReturnType operation "_result.Body"}}; - {{/IfReturnType operation "stream"}} - {{#IfReturnType operation "obj"}} - using (var _result = await operations.{{GetMethodName operation "WithHttpMessagesAsync"}}( - {{#operation.parameters}} - {{GetDotNetName .}}, - {{/operation.parameters}} - null, - cancellationToken).ConfigureAwait(false)) - { - {{GetReturnType operation "_result.Body"}}; - } - {{/IfReturnType operation "obj"}} - {{#IfReturnType operation "void"}} - using (var _result = await operations.{{GetMethodName operation "WithHttpMessagesAsync"}}( - {{#operation.parameters}} - {{GetDotNetName .}}, - {{/operation.parameters}} - null, - cancellationToken).ConfigureAwait(false)) - { - } - {{/IfReturnType operation "void"}} - } - - {{/.}} - } -} diff --git a/gen/KubernetesGenerator/templates/Model.cs.template b/gen/KubernetesGenerator/templates/Model.cs.template deleted file mode 100644 index 024ee3c05..000000000 --- a/gen/KubernetesGenerator/templates/Model.cs.template +++ /dev/null @@ -1,99 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// {{ToXmlDoc def.description}} - /// - public partial class {{clz}} - { - /// - /// Initializes a new instance of the {{GetClassName def}} class. - /// - public {{clz}}() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the {{GetClassName def}} class. - /// - {{#properties}} - {{#isRequired}} - /// - /// {{ToXmlDoc description}} - /// - {{/isRequired}} - {{/properties}} - {{#properties}} - {{^isRequired}} - /// - /// {{ToXmlDoc description}} - /// - {{/isRequired}} - {{/properties}} - public {{clz}}({{GetModelCtorParam def}}) - { - {{#properties}} - {{GetDotNetName name "field"}} = {{GetDotNetName name "fieldctor"}}; - {{/properties}} - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - {{#properties}} - - /// - /// {{ToXmlDoc description}} - /// - [JsonProperty(PropertyName = "{{name}}")] - public {{GetDotNetType .}} {{GetDotNetName name "field"}} { get; set; } - {{/properties}} - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - {{#properties}} - {{#IfType . "object"}} - {{#isRequired}} - if ({{GetDotNetName name "field"}} == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "{{GetDotNetName name "field"}}"); - } - {{/isRequired}} - {{/IfType . "object"}} - {{/properties}} - {{#properties}} - {{#IfType . "object"}} - {{GetDotNetName name "field"}}?.Validate(); - {{/IfType . "object"}} - {{#IfType . "objectarray"}} - if ({{GetDotNetName name "field"}} != null){ - foreach(var obj in {{GetDotNetName name "field"}}) - { - obj.Validate(); - } - } - {{/IfType . "objectarray"}} - {{/properties}} - } - } -} diff --git a/gen/KubernetesGenerator/templates/ModelExtensions.cs.template b/gen/KubernetesGenerator/templates/ModelExtensions.cs.template deleted file mode 100644 index 08f258999..000000000 --- a/gen/KubernetesGenerator/templates/ModelExtensions.cs.template +++ /dev/null @@ -1,18 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// -namespace k8s.Models -{ -{{#.}} - [KubernetesEntity(Group="{{GetGroup . }}", Kind="{{GetKind . }}", ApiVersion="{{GetApiVersion . }}", PluralName={{GetPlural .}})] - public partial class {{GetClassName . }} : {{GetInterfaceName . }} - { - public const string KubeApiVersion = "{{GetApiVersion . }}"; - public const string KubeKind = "{{GetKind . }}"; - public const string KubeGroup = "{{GetGroup . }}"; - } - -{{/.}} -} diff --git a/gen/KubernetesGenerator/templates/ModelOperators.cs.template b/gen/KubernetesGenerator/templates/ModelOperators.cs.template deleted file mode 100644 index e932d2623..000000000 --- a/gen/KubernetesGenerator/templates/ModelOperators.cs.template +++ /dev/null @@ -1,20 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// -using k8s.Versioning; - -namespace k8s.Models -{ -{{#.}} - public partial class {{GetTuple . index="0"}} - { - public static explicit operator {{GetTuple . index="0"}}({{GetTuple . index="1"}} s) => VersionConverter.Mapper.Map<{{GetTuple . index="0"}}>(s); - } - public partial class {{GetTuple . index="1"}} - { - public static explicit operator {{GetTuple . index="1"}}({{GetTuple . index="0"}} s) => VersionConverter.Mapper.Map<{{GetTuple . index="1"}}>(s); - } -{{/.}} -} diff --git a/gen/KubernetesGenerator/templates/VersionConverter.cs.template b/gen/KubernetesGenerator/templates/VersionConverter.cs.template deleted file mode 100644 index 0705c6d3e..000000000 --- a/gen/KubernetesGenerator/templates/VersionConverter.cs.template +++ /dev/null @@ -1,24 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// -using AutoMapper; -using k8s.Models; - -namespace k8s.Versioning -{ - - - public static partial class VersionConverter - { - private static void AutoConfigurations(IMapperConfigurationExpression cfg) - { - {{#.}} - cfg.CreateMap<{{GetTuple . index="0"}}, {{GetTuple . index="1"}}>().ReverseMap(); - {{/.}} - } - } - - -} diff --git a/global.json b/global.json index 1aefbb555..101665708 100644 --- a/global.json +++ b/global.json @@ -1,7 +1,9 @@ - { - "sdk": { - "version": "5.0.100", - "rollForward": "latestMajor" - } + "sdk": { + "version": "8.0.100", + "rollForward": "latestMajor" + }, + "msbuild-sdks": { + "Microsoft.Build.Traversal": "4.1.0" + } } diff --git a/integration-tests.sh b/integration-tests.sh deleted file mode 100755 index 162565aa8..000000000 --- a/integration-tests.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -cd examples - -echo 'Creating a nginx pod in the default namespace' -kubectl create -f nginx.yml - -echo 'Running the simple example' -cd simple -dotnet run - -echo 'Running the exec example' -cd ../exec -dotnet run - -echo 'Running the labels example' -cd ../labels -dotnet run - -echo 'Running the namespace example' -cd ../namespace -dotnet run \ No newline at end of file diff --git a/kubernetes-client.proj b/kubernetes-client.proj new file mode 100644 index 000000000..9f634d328 --- /dev/null +++ b/kubernetes-client.proj @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/kubernetes-client.ruleset b/kubernetes-client.ruleset index f1221e98d..8baea16b9 100644 --- a/kubernetes-client.ruleset +++ b/kubernetes-client.ruleset @@ -51,9 +51,6 @@ - - - diff --git a/kubernetes-client.sln b/kubernetes-client.sln deleted file mode 100644 index bb0940bf9..000000000 --- a/kubernetes-client.sln +++ /dev/null @@ -1,303 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.0.31903.59 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "examples", "examples", "{B70AFB57-57C9-46DC-84BE-11B7DDD34B40}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "attach", "examples\attach\attach.csproj", "{87CD4259-88DC-4748-AC61-CDDFB6E02891}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "exec", "examples\exec\exec.csproj", "{0044011C-25A6-4303-AA3F-877244B51ABB}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "labels", "examples\labels\labels.csproj", "{D5471F2E-F522-47E7-B3D2-F98A4452E214}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "logs", "examples\logs\logs.csproj", "{4BD050E8-B0E4-40B4-AC72-5130D81095C7}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "namespace", "examples\namespace\namespace.csproj", "{1AA79D75-E7C4-4C0C-928B-FB12EC3CBF68}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "simple", "examples\simple\simple.csproj", "{DDB14203-DD5B-452A-A1E0-9FD98629101F}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "watch", "examples\watch\watch.csproj", "{1DDB0CCF-7CCE-4A60-BAC6-9AE1779DEDB5}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{3D1864AA-1FFC-4512-BB13-46055E410F73}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KubernetesClient", "src\KubernetesClient\KubernetesClient.csproj", "{35DD7248-F9EC-4272-A32C-B0C59E5A6FA7}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{8AF4A5C2-F0CE-47D5-A4C5-FE4AB83CA509}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KubernetesClient.Tests", "tests\KubernetesClient.Tests\KubernetesClient.Tests.csproj", "{806AD0E5-833F-42FB-A870-4BCEE7F4B17F}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "gen", "gen", "{879F8787-C3BB-43F3-A92D-6D4C7D3A5285}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "patch", "examples\patch\patch.csproj", "{04DE2C84-117D-4E21-8B45-B7AE627697BD}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "httpClientFactory", "examples\httpClientFactory\httpClientFactory.csproj", "{A07314A0-02E8-4F36-B233-726D59D28F08}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "metrics", "examples\metrics\metrics.csproj", "{B9647AD4-F6B0-406F-8B79-6781E31600EC}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "E2E.Tests", "tests\E2E.Tests\E2E.Tests.csproj", "{5056C4A2-5E12-4C16-8DA7-8835DA58BFF2}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SkipTestLogger", "tests\SkipTestLogger\SkipTestLogger.csproj", "{4D2AE427-F856-49E5-B61D-EA6B17D89051}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "customResource", "examples\customResource\customResource.csproj", "{95672061-5799-4454-ACDB-D6D330DB1EC4}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KubernetesGenerator", "gen\KubernetesGenerator\KubernetesGenerator.csproj", "{79BA7C4A-98AA-467E-80D4-0E4F03EE6DDE}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GenericKubernetesApi", "examples\GenericKubernetesApi\GenericKubernetesApi.csproj", "{F81AE4C4-E044-4225-BD76-385A0DE621FD}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "generic", "examples\generic\generic.csproj", "{F06D4C3A-7825-43A8-832B-6BDE3D355486}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|Any CPU = Release|Any CPU - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {87CD4259-88DC-4748-AC61-CDDFB6E02891}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {87CD4259-88DC-4748-AC61-CDDFB6E02891}.Debug|Any CPU.Build.0 = Debug|Any CPU - {87CD4259-88DC-4748-AC61-CDDFB6E02891}.Debug|x64.ActiveCfg = Debug|Any CPU - {87CD4259-88DC-4748-AC61-CDDFB6E02891}.Debug|x64.Build.0 = Debug|Any CPU - {87CD4259-88DC-4748-AC61-CDDFB6E02891}.Debug|x86.ActiveCfg = Debug|Any CPU - {87CD4259-88DC-4748-AC61-CDDFB6E02891}.Debug|x86.Build.0 = Debug|Any CPU - {87CD4259-88DC-4748-AC61-CDDFB6E02891}.Release|Any CPU.ActiveCfg = Release|Any CPU - {87CD4259-88DC-4748-AC61-CDDFB6E02891}.Release|Any CPU.Build.0 = Release|Any CPU - {87CD4259-88DC-4748-AC61-CDDFB6E02891}.Release|x64.ActiveCfg = Release|Any CPU - {87CD4259-88DC-4748-AC61-CDDFB6E02891}.Release|x64.Build.0 = Release|Any CPU - {87CD4259-88DC-4748-AC61-CDDFB6E02891}.Release|x86.ActiveCfg = Release|Any CPU - {87CD4259-88DC-4748-AC61-CDDFB6E02891}.Release|x86.Build.0 = Release|Any CPU - {0044011C-25A6-4303-AA3F-877244B51ABB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0044011C-25A6-4303-AA3F-877244B51ABB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0044011C-25A6-4303-AA3F-877244B51ABB}.Debug|x64.ActiveCfg = Debug|Any CPU - {0044011C-25A6-4303-AA3F-877244B51ABB}.Debug|x64.Build.0 = Debug|Any CPU - {0044011C-25A6-4303-AA3F-877244B51ABB}.Debug|x86.ActiveCfg = Debug|Any CPU - {0044011C-25A6-4303-AA3F-877244B51ABB}.Debug|x86.Build.0 = Debug|Any CPU - {0044011C-25A6-4303-AA3F-877244B51ABB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0044011C-25A6-4303-AA3F-877244B51ABB}.Release|Any CPU.Build.0 = Release|Any CPU - {0044011C-25A6-4303-AA3F-877244B51ABB}.Release|x64.ActiveCfg = Release|Any CPU - {0044011C-25A6-4303-AA3F-877244B51ABB}.Release|x64.Build.0 = Release|Any CPU - {0044011C-25A6-4303-AA3F-877244B51ABB}.Release|x86.ActiveCfg = Release|Any CPU - {0044011C-25A6-4303-AA3F-877244B51ABB}.Release|x86.Build.0 = Release|Any CPU - {D5471F2E-F522-47E7-B3D2-F98A4452E214}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D5471F2E-F522-47E7-B3D2-F98A4452E214}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D5471F2E-F522-47E7-B3D2-F98A4452E214}.Debug|x64.ActiveCfg = Debug|Any CPU - {D5471F2E-F522-47E7-B3D2-F98A4452E214}.Debug|x64.Build.0 = Debug|Any CPU - {D5471F2E-F522-47E7-B3D2-F98A4452E214}.Debug|x86.ActiveCfg = Debug|Any CPU - {D5471F2E-F522-47E7-B3D2-F98A4452E214}.Debug|x86.Build.0 = Debug|Any CPU - {D5471F2E-F522-47E7-B3D2-F98A4452E214}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D5471F2E-F522-47E7-B3D2-F98A4452E214}.Release|Any CPU.Build.0 = Release|Any CPU - {D5471F2E-F522-47E7-B3D2-F98A4452E214}.Release|x64.ActiveCfg = Release|Any CPU - {D5471F2E-F522-47E7-B3D2-F98A4452E214}.Release|x64.Build.0 = Release|Any CPU - {D5471F2E-F522-47E7-B3D2-F98A4452E214}.Release|x86.ActiveCfg = Release|Any CPU - {D5471F2E-F522-47E7-B3D2-F98A4452E214}.Release|x86.Build.0 = Release|Any CPU - {4BD050E8-B0E4-40B4-AC72-5130D81095C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4BD050E8-B0E4-40B4-AC72-5130D81095C7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4BD050E8-B0E4-40B4-AC72-5130D81095C7}.Debug|x64.ActiveCfg = Debug|Any CPU - {4BD050E8-B0E4-40B4-AC72-5130D81095C7}.Debug|x64.Build.0 = Debug|Any CPU - {4BD050E8-B0E4-40B4-AC72-5130D81095C7}.Debug|x86.ActiveCfg = Debug|Any CPU - {4BD050E8-B0E4-40B4-AC72-5130D81095C7}.Debug|x86.Build.0 = Debug|Any CPU - {4BD050E8-B0E4-40B4-AC72-5130D81095C7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4BD050E8-B0E4-40B4-AC72-5130D81095C7}.Release|Any CPU.Build.0 = Release|Any CPU - {4BD050E8-B0E4-40B4-AC72-5130D81095C7}.Release|x64.ActiveCfg = Release|Any CPU - {4BD050E8-B0E4-40B4-AC72-5130D81095C7}.Release|x64.Build.0 = Release|Any CPU - {4BD050E8-B0E4-40B4-AC72-5130D81095C7}.Release|x86.ActiveCfg = Release|Any CPU - {4BD050E8-B0E4-40B4-AC72-5130D81095C7}.Release|x86.Build.0 = Release|Any CPU - {1AA79D75-E7C4-4C0C-928B-FB12EC3CBF68}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1AA79D75-E7C4-4C0C-928B-FB12EC3CBF68}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1AA79D75-E7C4-4C0C-928B-FB12EC3CBF68}.Debug|x64.ActiveCfg = Debug|Any CPU - {1AA79D75-E7C4-4C0C-928B-FB12EC3CBF68}.Debug|x64.Build.0 = Debug|Any CPU - {1AA79D75-E7C4-4C0C-928B-FB12EC3CBF68}.Debug|x86.ActiveCfg = Debug|Any CPU - {1AA79D75-E7C4-4C0C-928B-FB12EC3CBF68}.Debug|x86.Build.0 = Debug|Any CPU - {1AA79D75-E7C4-4C0C-928B-FB12EC3CBF68}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1AA79D75-E7C4-4C0C-928B-FB12EC3CBF68}.Release|Any CPU.Build.0 = Release|Any CPU - {1AA79D75-E7C4-4C0C-928B-FB12EC3CBF68}.Release|x64.ActiveCfg = Release|Any CPU - {1AA79D75-E7C4-4C0C-928B-FB12EC3CBF68}.Release|x64.Build.0 = Release|Any CPU - {1AA79D75-E7C4-4C0C-928B-FB12EC3CBF68}.Release|x86.ActiveCfg = Release|Any CPU - {1AA79D75-E7C4-4C0C-928B-FB12EC3CBF68}.Release|x86.Build.0 = Release|Any CPU - {DDB14203-DD5B-452A-A1E0-9FD98629101F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {DDB14203-DD5B-452A-A1E0-9FD98629101F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {DDB14203-DD5B-452A-A1E0-9FD98629101F}.Debug|x64.ActiveCfg = Debug|Any CPU - {DDB14203-DD5B-452A-A1E0-9FD98629101F}.Debug|x64.Build.0 = Debug|Any CPU - {DDB14203-DD5B-452A-A1E0-9FD98629101F}.Debug|x86.ActiveCfg = Debug|Any CPU - {DDB14203-DD5B-452A-A1E0-9FD98629101F}.Debug|x86.Build.0 = Debug|Any CPU - {DDB14203-DD5B-452A-A1E0-9FD98629101F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {DDB14203-DD5B-452A-A1E0-9FD98629101F}.Release|Any CPU.Build.0 = Release|Any CPU - {DDB14203-DD5B-452A-A1E0-9FD98629101F}.Release|x64.ActiveCfg = Release|Any CPU - {DDB14203-DD5B-452A-A1E0-9FD98629101F}.Release|x64.Build.0 = Release|Any CPU - {DDB14203-DD5B-452A-A1E0-9FD98629101F}.Release|x86.ActiveCfg = Release|Any CPU - {DDB14203-DD5B-452A-A1E0-9FD98629101F}.Release|x86.Build.0 = Release|Any CPU - {1DDB0CCF-7CCE-4A60-BAC6-9AE1779DEDB5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1DDB0CCF-7CCE-4A60-BAC6-9AE1779DEDB5}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1DDB0CCF-7CCE-4A60-BAC6-9AE1779DEDB5}.Debug|x64.ActiveCfg = Debug|Any CPU - {1DDB0CCF-7CCE-4A60-BAC6-9AE1779DEDB5}.Debug|x64.Build.0 = Debug|Any CPU - {1DDB0CCF-7CCE-4A60-BAC6-9AE1779DEDB5}.Debug|x86.ActiveCfg = Debug|Any CPU - {1DDB0CCF-7CCE-4A60-BAC6-9AE1779DEDB5}.Debug|x86.Build.0 = Debug|Any CPU - {1DDB0CCF-7CCE-4A60-BAC6-9AE1779DEDB5}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1DDB0CCF-7CCE-4A60-BAC6-9AE1779DEDB5}.Release|Any CPU.Build.0 = Release|Any CPU - {1DDB0CCF-7CCE-4A60-BAC6-9AE1779DEDB5}.Release|x64.ActiveCfg = Release|Any CPU - {1DDB0CCF-7CCE-4A60-BAC6-9AE1779DEDB5}.Release|x64.Build.0 = Release|Any CPU - {1DDB0CCF-7CCE-4A60-BAC6-9AE1779DEDB5}.Release|x86.ActiveCfg = Release|Any CPU - {1DDB0CCF-7CCE-4A60-BAC6-9AE1779DEDB5}.Release|x86.Build.0 = Release|Any CPU - {35DD7248-F9EC-4272-A32C-B0C59E5A6FA7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {35DD7248-F9EC-4272-A32C-B0C59E5A6FA7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {35DD7248-F9EC-4272-A32C-B0C59E5A6FA7}.Debug|x64.ActiveCfg = Debug|Any CPU - {35DD7248-F9EC-4272-A32C-B0C59E5A6FA7}.Debug|x64.Build.0 = Debug|Any CPU - {35DD7248-F9EC-4272-A32C-B0C59E5A6FA7}.Debug|x86.ActiveCfg = Debug|Any CPU - {35DD7248-F9EC-4272-A32C-B0C59E5A6FA7}.Debug|x86.Build.0 = Debug|Any CPU - {35DD7248-F9EC-4272-A32C-B0C59E5A6FA7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {35DD7248-F9EC-4272-A32C-B0C59E5A6FA7}.Release|Any CPU.Build.0 = Release|Any CPU - {35DD7248-F9EC-4272-A32C-B0C59E5A6FA7}.Release|x64.ActiveCfg = Release|Any CPU - {35DD7248-F9EC-4272-A32C-B0C59E5A6FA7}.Release|x64.Build.0 = Release|Any CPU - {35DD7248-F9EC-4272-A32C-B0C59E5A6FA7}.Release|x86.ActiveCfg = Release|Any CPU - {35DD7248-F9EC-4272-A32C-B0C59E5A6FA7}.Release|x86.Build.0 = Release|Any CPU - {806AD0E5-833F-42FB-A870-4BCEE7F4B17F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {806AD0E5-833F-42FB-A870-4BCEE7F4B17F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {806AD0E5-833F-42FB-A870-4BCEE7F4B17F}.Debug|x64.ActiveCfg = Debug|Any CPU - {806AD0E5-833F-42FB-A870-4BCEE7F4B17F}.Debug|x64.Build.0 = Debug|Any CPU - {806AD0E5-833F-42FB-A870-4BCEE7F4B17F}.Debug|x86.ActiveCfg = Debug|Any CPU - {806AD0E5-833F-42FB-A870-4BCEE7F4B17F}.Debug|x86.Build.0 = Debug|Any CPU - {806AD0E5-833F-42FB-A870-4BCEE7F4B17F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {806AD0E5-833F-42FB-A870-4BCEE7F4B17F}.Release|Any CPU.Build.0 = Release|Any CPU - {806AD0E5-833F-42FB-A870-4BCEE7F4B17F}.Release|x64.ActiveCfg = Release|Any CPU - {806AD0E5-833F-42FB-A870-4BCEE7F4B17F}.Release|x64.Build.0 = Release|Any CPU - {806AD0E5-833F-42FB-A870-4BCEE7F4B17F}.Release|x86.ActiveCfg = Release|Any CPU - {806AD0E5-833F-42FB-A870-4BCEE7F4B17F}.Release|x86.Build.0 = Release|Any CPU - {04DE2C84-117D-4E21-8B45-B7AE627697BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {04DE2C84-117D-4E21-8B45-B7AE627697BD}.Debug|Any CPU.Build.0 = Debug|Any CPU - {04DE2C84-117D-4E21-8B45-B7AE627697BD}.Debug|x64.ActiveCfg = Debug|Any CPU - {04DE2C84-117D-4E21-8B45-B7AE627697BD}.Debug|x64.Build.0 = Debug|Any CPU - {04DE2C84-117D-4E21-8B45-B7AE627697BD}.Debug|x86.ActiveCfg = Debug|Any CPU - {04DE2C84-117D-4E21-8B45-B7AE627697BD}.Debug|x86.Build.0 = Debug|Any CPU - {04DE2C84-117D-4E21-8B45-B7AE627697BD}.Release|Any CPU.ActiveCfg = Release|Any CPU - {04DE2C84-117D-4E21-8B45-B7AE627697BD}.Release|Any CPU.Build.0 = Release|Any CPU - {04DE2C84-117D-4E21-8B45-B7AE627697BD}.Release|x64.ActiveCfg = Release|Any CPU - {04DE2C84-117D-4E21-8B45-B7AE627697BD}.Release|x64.Build.0 = Release|Any CPU - {04DE2C84-117D-4E21-8B45-B7AE627697BD}.Release|x86.ActiveCfg = Release|Any CPU - {04DE2C84-117D-4E21-8B45-B7AE627697BD}.Release|x86.Build.0 = Release|Any CPU - {A07314A0-02E8-4F36-B233-726D59D28F08}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A07314A0-02E8-4F36-B233-726D59D28F08}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A07314A0-02E8-4F36-B233-726D59D28F08}.Debug|x64.ActiveCfg = Debug|Any CPU - {A07314A0-02E8-4F36-B233-726D59D28F08}.Debug|x64.Build.0 = Debug|Any CPU - {A07314A0-02E8-4F36-B233-726D59D28F08}.Debug|x86.ActiveCfg = Debug|Any CPU - {A07314A0-02E8-4F36-B233-726D59D28F08}.Debug|x86.Build.0 = Debug|Any CPU - {A07314A0-02E8-4F36-B233-726D59D28F08}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A07314A0-02E8-4F36-B233-726D59D28F08}.Release|Any CPU.Build.0 = Release|Any CPU - {A07314A0-02E8-4F36-B233-726D59D28F08}.Release|x64.ActiveCfg = Release|Any CPU - {A07314A0-02E8-4F36-B233-726D59D28F08}.Release|x64.Build.0 = Release|Any CPU - {A07314A0-02E8-4F36-B233-726D59D28F08}.Release|x86.ActiveCfg = Release|Any CPU - {A07314A0-02E8-4F36-B233-726D59D28F08}.Release|x86.Build.0 = Release|Any CPU - {B9647AD4-F6B0-406F-8B79-6781E31600EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B9647AD4-F6B0-406F-8B79-6781E31600EC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B9647AD4-F6B0-406F-8B79-6781E31600EC}.Debug|x64.ActiveCfg = Debug|Any CPU - {B9647AD4-F6B0-406F-8B79-6781E31600EC}.Debug|x64.Build.0 = Debug|Any CPU - {B9647AD4-F6B0-406F-8B79-6781E31600EC}.Debug|x86.ActiveCfg = Debug|Any CPU - {B9647AD4-F6B0-406F-8B79-6781E31600EC}.Debug|x86.Build.0 = Debug|Any CPU - {B9647AD4-F6B0-406F-8B79-6781E31600EC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B9647AD4-F6B0-406F-8B79-6781E31600EC}.Release|Any CPU.Build.0 = Release|Any CPU - {B9647AD4-F6B0-406F-8B79-6781E31600EC}.Release|x64.ActiveCfg = Release|Any CPU - {B9647AD4-F6B0-406F-8B79-6781E31600EC}.Release|x64.Build.0 = Release|Any CPU - {B9647AD4-F6B0-406F-8B79-6781E31600EC}.Release|x86.ActiveCfg = Release|Any CPU - {B9647AD4-F6B0-406F-8B79-6781E31600EC}.Release|x86.Build.0 = Release|Any CPU - {5056C4A2-5E12-4C16-8DA7-8835DA58BFF2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5056C4A2-5E12-4C16-8DA7-8835DA58BFF2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5056C4A2-5E12-4C16-8DA7-8835DA58BFF2}.Debug|x64.ActiveCfg = Debug|Any CPU - {5056C4A2-5E12-4C16-8DA7-8835DA58BFF2}.Debug|x64.Build.0 = Debug|Any CPU - {5056C4A2-5E12-4C16-8DA7-8835DA58BFF2}.Debug|x86.ActiveCfg = Debug|Any CPU - {5056C4A2-5E12-4C16-8DA7-8835DA58BFF2}.Debug|x86.Build.0 = Debug|Any CPU - {5056C4A2-5E12-4C16-8DA7-8835DA58BFF2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5056C4A2-5E12-4C16-8DA7-8835DA58BFF2}.Release|Any CPU.Build.0 = Release|Any CPU - {5056C4A2-5E12-4C16-8DA7-8835DA58BFF2}.Release|x64.ActiveCfg = Release|Any CPU - {5056C4A2-5E12-4C16-8DA7-8835DA58BFF2}.Release|x64.Build.0 = Release|Any CPU - {5056C4A2-5E12-4C16-8DA7-8835DA58BFF2}.Release|x86.ActiveCfg = Release|Any CPU - {5056C4A2-5E12-4C16-8DA7-8835DA58BFF2}.Release|x86.Build.0 = Release|Any CPU - {4D2AE427-F856-49E5-B61D-EA6B17D89051}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4D2AE427-F856-49E5-B61D-EA6B17D89051}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4D2AE427-F856-49E5-B61D-EA6B17D89051}.Debug|x64.ActiveCfg = Debug|Any CPU - {4D2AE427-F856-49E5-B61D-EA6B17D89051}.Debug|x64.Build.0 = Debug|Any CPU - {4D2AE427-F856-49E5-B61D-EA6B17D89051}.Debug|x86.ActiveCfg = Debug|Any CPU - {4D2AE427-F856-49E5-B61D-EA6B17D89051}.Debug|x86.Build.0 = Debug|Any CPU - {4D2AE427-F856-49E5-B61D-EA6B17D89051}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4D2AE427-F856-49E5-B61D-EA6B17D89051}.Release|Any CPU.Build.0 = Release|Any CPU - {4D2AE427-F856-49E5-B61D-EA6B17D89051}.Release|x64.ActiveCfg = Release|Any CPU - {4D2AE427-F856-49E5-B61D-EA6B17D89051}.Release|x64.Build.0 = Release|Any CPU - {4D2AE427-F856-49E5-B61D-EA6B17D89051}.Release|x86.ActiveCfg = Release|Any CPU - {4D2AE427-F856-49E5-B61D-EA6B17D89051}.Release|x86.Build.0 = Release|Any CPU - {95672061-5799-4454-ACDB-D6D330DB1EC4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {95672061-5799-4454-ACDB-D6D330DB1EC4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {95672061-5799-4454-ACDB-D6D330DB1EC4}.Debug|x64.ActiveCfg = Debug|Any CPU - {95672061-5799-4454-ACDB-D6D330DB1EC4}.Debug|x64.Build.0 = Debug|Any CPU - {95672061-5799-4454-ACDB-D6D330DB1EC4}.Debug|x86.ActiveCfg = Debug|Any CPU - {95672061-5799-4454-ACDB-D6D330DB1EC4}.Debug|x86.Build.0 = Debug|Any CPU - {95672061-5799-4454-ACDB-D6D330DB1EC4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {95672061-5799-4454-ACDB-D6D330DB1EC4}.Release|Any CPU.Build.0 = Release|Any CPU - {95672061-5799-4454-ACDB-D6D330DB1EC4}.Release|x64.ActiveCfg = Release|Any CPU - {95672061-5799-4454-ACDB-D6D330DB1EC4}.Release|x64.Build.0 = Release|Any CPU - {95672061-5799-4454-ACDB-D6D330DB1EC4}.Release|x86.ActiveCfg = Release|Any CPU - {95672061-5799-4454-ACDB-D6D330DB1EC4}.Release|x86.Build.0 = Release|Any CPU - {79BA7C4A-98AA-467E-80D4-0E4F03EE6DDE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {79BA7C4A-98AA-467E-80D4-0E4F03EE6DDE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {79BA7C4A-98AA-467E-80D4-0E4F03EE6DDE}.Debug|x64.ActiveCfg = Debug|Any CPU - {79BA7C4A-98AA-467E-80D4-0E4F03EE6DDE}.Debug|x64.Build.0 = Debug|Any CPU - {79BA7C4A-98AA-467E-80D4-0E4F03EE6DDE}.Debug|x86.ActiveCfg = Debug|Any CPU - {79BA7C4A-98AA-467E-80D4-0E4F03EE6DDE}.Debug|x86.Build.0 = Debug|Any CPU - {79BA7C4A-98AA-467E-80D4-0E4F03EE6DDE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {79BA7C4A-98AA-467E-80D4-0E4F03EE6DDE}.Release|Any CPU.Build.0 = Release|Any CPU - {79BA7C4A-98AA-467E-80D4-0E4F03EE6DDE}.Release|x64.ActiveCfg = Release|Any CPU - {79BA7C4A-98AA-467E-80D4-0E4F03EE6DDE}.Release|x64.Build.0 = Release|Any CPU - {79BA7C4A-98AA-467E-80D4-0E4F03EE6DDE}.Release|x86.ActiveCfg = Release|Any CPU - {79BA7C4A-98AA-467E-80D4-0E4F03EE6DDE}.Release|x86.Build.0 = Release|Any CPU - {F81AE4C4-E044-4225-BD76-385A0DE621FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F81AE4C4-E044-4225-BD76-385A0DE621FD}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F81AE4C4-E044-4225-BD76-385A0DE621FD}.Debug|x64.ActiveCfg = Debug|Any CPU - {F81AE4C4-E044-4225-BD76-385A0DE621FD}.Debug|x64.Build.0 = Debug|Any CPU - {F81AE4C4-E044-4225-BD76-385A0DE621FD}.Debug|x86.ActiveCfg = Debug|Any CPU - {F81AE4C4-E044-4225-BD76-385A0DE621FD}.Debug|x86.Build.0 = Debug|Any CPU - {F81AE4C4-E044-4225-BD76-385A0DE621FD}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F81AE4C4-E044-4225-BD76-385A0DE621FD}.Release|Any CPU.Build.0 = Release|Any CPU - {F81AE4C4-E044-4225-BD76-385A0DE621FD}.Release|x64.ActiveCfg = Release|Any CPU - {F81AE4C4-E044-4225-BD76-385A0DE621FD}.Release|x64.Build.0 = Release|Any CPU - {F81AE4C4-E044-4225-BD76-385A0DE621FD}.Release|x86.ActiveCfg = Release|Any CPU - {F81AE4C4-E044-4225-BD76-385A0DE621FD}.Release|x86.Build.0 = Release|Any CPU - {F06D4C3A-7825-43A8-832B-6BDE3D355486}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F06D4C3A-7825-43A8-832B-6BDE3D355486}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F06D4C3A-7825-43A8-832B-6BDE3D355486}.Debug|x64.ActiveCfg = Debug|Any CPU - {F06D4C3A-7825-43A8-832B-6BDE3D355486}.Debug|x64.Build.0 = Debug|Any CPU - {F06D4C3A-7825-43A8-832B-6BDE3D355486}.Debug|x86.ActiveCfg = Debug|Any CPU - {F06D4C3A-7825-43A8-832B-6BDE3D355486}.Debug|x86.Build.0 = Debug|Any CPU - {F06D4C3A-7825-43A8-832B-6BDE3D355486}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F06D4C3A-7825-43A8-832B-6BDE3D355486}.Release|Any CPU.Build.0 = Release|Any CPU - {F06D4C3A-7825-43A8-832B-6BDE3D355486}.Release|x64.ActiveCfg = Release|Any CPU - {F06D4C3A-7825-43A8-832B-6BDE3D355486}.Release|x64.Build.0 = Release|Any CPU - {F06D4C3A-7825-43A8-832B-6BDE3D355486}.Release|x86.ActiveCfg = Release|Any CPU - {F06D4C3A-7825-43A8-832B-6BDE3D355486}.Release|x86.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {87CD4259-88DC-4748-AC61-CDDFB6E02891} = {B70AFB57-57C9-46DC-84BE-11B7DDD34B40} - {0044011C-25A6-4303-AA3F-877244B51ABB} = {B70AFB57-57C9-46DC-84BE-11B7DDD34B40} - {D5471F2E-F522-47E7-B3D2-F98A4452E214} = {B70AFB57-57C9-46DC-84BE-11B7DDD34B40} - {4BD050E8-B0E4-40B4-AC72-5130D81095C7} = {B70AFB57-57C9-46DC-84BE-11B7DDD34B40} - {1AA79D75-E7C4-4C0C-928B-FB12EC3CBF68} = {B70AFB57-57C9-46DC-84BE-11B7DDD34B40} - {DDB14203-DD5B-452A-A1E0-9FD98629101F} = {B70AFB57-57C9-46DC-84BE-11B7DDD34B40} - {1DDB0CCF-7CCE-4A60-BAC6-9AE1779DEDB5} = {B70AFB57-57C9-46DC-84BE-11B7DDD34B40} - {35DD7248-F9EC-4272-A32C-B0C59E5A6FA7} = {3D1864AA-1FFC-4512-BB13-46055E410F73} - {806AD0E5-833F-42FB-A870-4BCEE7F4B17F} = {8AF4A5C2-F0CE-47D5-A4C5-FE4AB83CA509} - {04DE2C84-117D-4E21-8B45-B7AE627697BD} = {B70AFB57-57C9-46DC-84BE-11B7DDD34B40} - {A07314A0-02E8-4F36-B233-726D59D28F08} = {B70AFB57-57C9-46DC-84BE-11B7DDD34B40} - {B9647AD4-F6B0-406F-8B79-6781E31600EC} = {B70AFB57-57C9-46DC-84BE-11B7DDD34B40} - {5056C4A2-5E12-4C16-8DA7-8835DA58BFF2} = {8AF4A5C2-F0CE-47D5-A4C5-FE4AB83CA509} - {4D2AE427-F856-49E5-B61D-EA6B17D89051} = {8AF4A5C2-F0CE-47D5-A4C5-FE4AB83CA509} - {95672061-5799-4454-ACDB-D6D330DB1EC4} = {B70AFB57-57C9-46DC-84BE-11B7DDD34B40} - {79BA7C4A-98AA-467E-80D4-0E4F03EE6DDE} = {879F8787-C3BB-43F3-A92D-6D4C7D3A5285} - {F81AE4C4-E044-4225-BD76-385A0DE621FD} = {B70AFB57-57C9-46DC-84BE-11B7DDD34B40} - {F06D4C3A-7825-43A8-832B-6BDE3D355486} = {B70AFB57-57C9-46DC-84BE-11B7DDD34B40} - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {049A763A-C891-4E8D-80CF-89DD3E22ADC7} - EndGlobalSection -EndGlobal diff --git a/logo.png b/logo.png new file mode 100644 index 000000000..05fc5e1d2 Binary files /dev/null and b/logo.png differ diff --git a/src/KubernetesClient.Aot/Global.cs b/src/KubernetesClient.Aot/Global.cs new file mode 100644 index 000000000..2b5a4ae8e --- /dev/null +++ b/src/KubernetesClient.Aot/Global.cs @@ -0,0 +1,10 @@ +global using k8s.Autorest; +global using k8s.Models; +global using System; +global using System.Collections.Generic; +global using System.IO; +global using System.Linq; +global using System.Text.Json; +global using System.Text.Json.Serialization; +global using System.Threading; +global using System.Threading.Tasks; diff --git a/src/KubernetesClient.Aot/KubeConfigModels/AuthProvider.cs b/src/KubernetesClient.Aot/KubeConfigModels/AuthProvider.cs new file mode 100644 index 000000000..5bec9095e --- /dev/null +++ b/src/KubernetesClient.Aot/KubeConfigModels/AuthProvider.cs @@ -0,0 +1,23 @@ +using YamlDotNet.Serialization; + +namespace k8s.KubeConfigModels +{ + /// + /// Contains information that describes identity information. This is use to tell the kubernetes cluster who you are. + /// + [YamlSerializable] + public class AuthProvider + { + /// + /// Gets or sets the nickname for this auth provider. + /// + [YamlMember(Alias = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the configuration for this auth provider + /// + [YamlMember(Alias = "config")] + public Dictionary Config { get; set; } + } +} diff --git a/src/KubernetesClient.Aot/KubeConfigModels/Cluster.cs b/src/KubernetesClient.Aot/KubeConfigModels/Cluster.cs new file mode 100644 index 000000000..80faf96a5 --- /dev/null +++ b/src/KubernetesClient.Aot/KubeConfigModels/Cluster.cs @@ -0,0 +1,23 @@ +using YamlDotNet.Serialization; + +namespace k8s.KubeConfigModels +{ + /// + /// Relates nicknames to cluster information. + /// + [YamlSerializable] + public class Cluster + { + /// + /// Gets or sets the cluster information. + /// + [YamlMember(Alias = "cluster")] + public ClusterEndpoint ClusterEndpoint { get; set; } + + /// + /// Gets or sets the nickname for this Cluster. + /// + [YamlMember(Alias = "name")] + public string Name { get; set; } + } +} diff --git a/src/KubernetesClient.Aot/KubeConfigModels/ClusterEndpoint.cs b/src/KubernetesClient.Aot/KubeConfigModels/ClusterEndpoint.cs new file mode 100644 index 000000000..c40827651 --- /dev/null +++ b/src/KubernetesClient.Aot/KubeConfigModels/ClusterEndpoint.cs @@ -0,0 +1,42 @@ +using YamlDotNet.Serialization; + +namespace k8s.KubeConfigModels +{ + /// + /// Contains information about how to communicate with a kubernetes cluster + /// + [YamlSerializable] + public class ClusterEndpoint + { + /// + /// Gets or sets the path to a cert file for the certificate authority. + /// + [YamlMember(Alias = "certificate-authority", ApplyNamingConventions = false)] + public string CertificateAuthority { get; set; } + + /// + /// Gets or sets =PEM-encoded certificate authority certificates. Overrides . + /// + [YamlMember(Alias = "certificate-authority-data", ApplyNamingConventions = false)] + public string CertificateAuthorityData { get; set; } + + /// + /// Gets or sets the address of the kubernetes cluster (https://hostname:port). + /// + [YamlMember(Alias = "server")] + public string Server { get; set; } + + /// + /// Gets or sets a value to override the TLS server name. + /// + [YamlMember(Alias = "tls-server-name", ApplyNamingConventions = false)] + public string TlsServerName { get; set; } + + /// + /// Gets or sets a value indicating whether to skip the validity check for the server's certificate. + /// This will make your HTTPS connections insecure. + /// + [YamlMember(Alias = "insecure-skip-tls-verify", ApplyNamingConventions = false)] + public bool SkipTlsVerify { get; set; } + } +} diff --git a/src/KubernetesClient.Aot/KubeConfigModels/Context.cs b/src/KubernetesClient.Aot/KubeConfigModels/Context.cs new file mode 100644 index 000000000..65241315f --- /dev/null +++ b/src/KubernetesClient.Aot/KubeConfigModels/Context.cs @@ -0,0 +1,23 @@ +using YamlDotNet.Serialization; + +namespace k8s.KubeConfigModels +{ + /// + /// Relates nicknames to context information. + /// + [YamlSerializable] + public class Context + { + /// + /// Gets or sets the context information. + /// + [YamlMember(Alias = "context")] + public ContextDetails ContextDetails { get; set; } + + /// + /// Gets or sets the nickname for this context. + /// + [YamlMember(Alias = "name")] + public string Name { get; set; } + } +} diff --git a/src/KubernetesClient.Aot/KubeConfigModels/ContextDetails.cs b/src/KubernetesClient.Aot/KubeConfigModels/ContextDetails.cs new file mode 100644 index 000000000..ca2bf1e07 --- /dev/null +++ b/src/KubernetesClient.Aot/KubeConfigModels/ContextDetails.cs @@ -0,0 +1,30 @@ +using YamlDotNet.Serialization; + +namespace k8s.KubeConfigModels +{ + /// + /// Represents a tuple of references to a cluster (how do I communicate with a kubernetes cluster), + /// a user (how do I identify myself), and a namespace (what subset of resources do I want to work with) + /// + [YamlSerializable] + public class ContextDetails + { + /// + /// Gets or sets the name of the cluster for this context. + /// + [YamlMember(Alias = "cluster")] + public string Cluster { get; set; } + + /// + /// Gets or sets the name of the user for this context. + /// + [YamlMember(Alias = "user")] + public string User { get; set; } + + /// + /// /Gets or sets the default namespace to use on unspecified requests. + /// + [YamlMember(Alias = "namespace")] + public string Namespace { get; set; } + } +} diff --git a/src/KubernetesClient.Aot/KubeConfigModels/ExecCredentialResponse.cs b/src/KubernetesClient.Aot/KubeConfigModels/ExecCredentialResponse.cs new file mode 100644 index 000000000..d593ff4f6 --- /dev/null +++ b/src/KubernetesClient.Aot/KubeConfigModels/ExecCredentialResponse.cs @@ -0,0 +1,35 @@ +using YamlDotNet.Serialization; + +namespace k8s.KubeConfigModels +{ + [YamlSerializable] + public class ExecCredentialResponse + { + public class ExecStatus + { +#nullable enable + [JsonPropertyName("expirationTimestamp")] + public DateTime? ExpirationTimestamp { get; set; } + [JsonPropertyName("token")] + public string? Token { get; set; } + [JsonPropertyName("clientCertificateData")] + public string? ClientCertificateData { get; set; } + [JsonPropertyName("clientKeyData")] + public string? ClientKeyData { get; set; } +#nullable disable + + public bool IsValid() + { + return !string.IsNullOrEmpty(Token) || + (!string.IsNullOrEmpty(ClientCertificateData) && !string.IsNullOrEmpty(ClientKeyData)); + } + } + + [JsonPropertyName("apiVersion")] + public string ApiVersion { get; set; } + [JsonPropertyName("kind")] + public string Kind { get; set; } + [JsonPropertyName("status")] + public ExecStatus Status { get; set; } + } +} diff --git a/src/KubernetesClient.Aot/KubeConfigModels/ExecCredentialResponseContext.cs b/src/KubernetesClient.Aot/KubeConfigModels/ExecCredentialResponseContext.cs new file mode 100644 index 000000000..c7ffd8294 --- /dev/null +++ b/src/KubernetesClient.Aot/KubeConfigModels/ExecCredentialResponseContext.cs @@ -0,0 +1,7 @@ +namespace k8s.KubeConfigModels +{ + [JsonSerializable(typeof(ExecCredentialResponse))] + internal partial class ExecCredentialResponseContext : JsonSerializerContext + { + } +} diff --git a/src/KubernetesClient.Aot/KubeConfigModels/ExternalExecution.cs b/src/KubernetesClient.Aot/KubeConfigModels/ExternalExecution.cs new file mode 100644 index 000000000..7e18f449e --- /dev/null +++ b/src/KubernetesClient.Aot/KubeConfigModels/ExternalExecution.cs @@ -0,0 +1,42 @@ +using YamlDotNet.Serialization; + +namespace k8s.KubeConfigModels +{ + [YamlSerializable] + public class ExternalExecution + { + [YamlMember(Alias = "apiVersion")] + public string ApiVersion { get; set; } + + /// + /// The command to execute. Required. + /// + [YamlMember(Alias = "command")] + public string Command { get; set; } + + /// + /// Environment variables to set when executing the plugin. Optional. + /// + [YamlMember(Alias = "env")] + public IList> EnvironmentVariables { get; set; } + + /// + /// Arguments to pass when executing the plugin. Optional. + /// + [YamlMember(Alias = "args")] + public IList Arguments { get; set; } + + /// + /// Text shown to the user when the executable doesn't seem to be present. Optional. + /// + [YamlMember(Alias = "installHint")] + public string InstallHint { get; set; } + + /// + /// Whether or not to provide cluster information to this exec plugin as a part of + /// the KUBERNETES_EXEC_INFO environment variable. Optional. + /// + [YamlMember(Alias = "provideClusterInfo")] + public bool ProvideClusterInfo { get; set; } + } +} diff --git a/src/KubernetesClient.Aot/KubeConfigModels/K8SConfiguration.cs b/src/KubernetesClient.Aot/KubeConfigModels/K8SConfiguration.cs new file mode 100644 index 000000000..a0c3a4fef --- /dev/null +++ b/src/KubernetesClient.Aot/KubeConfigModels/K8SConfiguration.cs @@ -0,0 +1,65 @@ +using YamlDotNet.Serialization; + +namespace k8s.KubeConfigModels +{ + /// + /// kubeconfig configuration model. Holds the information needed to build connect to remote + /// Kubernetes clusters as a given user. + /// + /// + /// Should be kept in sync with https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/client-go/tools/clientcmd/api/v1/types.go + /// Should update MergeKubeConfig in KubernetesClientConfiguration.ConfigFile.cs if updated. + /// + [YamlSerializable] + public class K8SConfiguration + { + // /// + // /// Gets or sets general information to be use for CLI interactions + // /// + // [YamlMember(Alias = "preferences")] + // public IDictionary Preferences { get; set; } + + [YamlMember(Alias = "apiVersion")] + public string ApiVersion { get; set; } + + [YamlMember(Alias = "kind")] + public string Kind { get; set; } + + /// + /// Gets or sets the name of the context that you would like to use by default. + /// + [YamlMember(Alias = "current-context", ApplyNamingConventions = false)] + public string CurrentContext { get; set; } + + /// + /// Gets or sets a map of referencable names to context configs. + /// + [YamlMember(Alias = "contexts")] + public List Contexts { get; set; } = new List(); + + /// + /// Gets or sets a map of referencable names to cluster configs. + /// + [YamlMember(Alias = "clusters")] + public List Clusters { get; set; } = new List(); + + /// + /// Gets or sets a map of referencable names to user configs + /// + [YamlMember(Alias = "users")] + public List Users { get; set; } = new List(); + + // /// + // /// Gets or sets additional information. This is useful for extenders so that reads and writes don't clobber unknown fields. + // /// + // [YamlMember(Alias = "extensions")] + // public List Extensions { get; set; } + + /// + /// Gets or sets the name of the Kubernetes configuration file. This property is set only when the configuration + /// was loaded from disk, and can be used to resolve relative paths. + /// + [YamlIgnore] + public string FileName { get; set; } + } +} diff --git a/src/KubernetesClient.Aot/KubeConfigModels/StaticContext.cs b/src/KubernetesClient.Aot/KubeConfigModels/StaticContext.cs new file mode 100644 index 000000000..ae9be922e --- /dev/null +++ b/src/KubernetesClient.Aot/KubeConfigModels/StaticContext.cs @@ -0,0 +1,8 @@ +using YamlDotNet.Serialization; + +namespace k8s.KubeConfigModels; + +[YamlStaticContext] +public partial class StaticContext : YamlDotNet.Serialization.StaticContext +{ +} \ No newline at end of file diff --git a/src/KubernetesClient.Aot/KubeConfigModels/User.cs b/src/KubernetesClient.Aot/KubeConfigModels/User.cs new file mode 100644 index 000000000..557f02256 --- /dev/null +++ b/src/KubernetesClient.Aot/KubeConfigModels/User.cs @@ -0,0 +1,23 @@ +using YamlDotNet.Serialization; + +namespace k8s.KubeConfigModels +{ + /// + /// Relates nicknames to auth information. + /// + [YamlSerializable] + public class User + { + /// + /// Gets or sets the auth information. + /// + [YamlMember(Alias = "user")] + public UserCredentials UserCredentials { get; set; } + + /// + /// Gets or sets the nickname for this auth information. + /// + [YamlMember(Alias = "name")] + public string Name { get; set; } + } +} diff --git a/src/KubernetesClient.Aot/KubeConfigModels/UserCredentials.cs b/src/KubernetesClient.Aot/KubeConfigModels/UserCredentials.cs new file mode 100644 index 000000000..bd8a5063e --- /dev/null +++ b/src/KubernetesClient.Aot/KubeConfigModels/UserCredentials.cs @@ -0,0 +1,83 @@ +using YamlDotNet.Serialization; + +namespace k8s.KubeConfigModels +{ + /// + /// Contains information that describes identity information. This is use to tell the kubernetes cluster who you are. + /// + [YamlSerializable] + public class UserCredentials + { + /// + /// Gets or sets PEM-encoded data from a client cert file for TLS. Overrides . + /// + [YamlMember(Alias = "client-certificate-data", ApplyNamingConventions = false)] + public string ClientCertificateData { get; set; } + + /// + /// Gets or sets the path to a client cert file for TLS. + /// + [YamlMember(Alias = "client-certificate", ApplyNamingConventions = false)] + public string ClientCertificate { get; set; } + + /// + /// Gets or sets PEM-encoded data from a client key file for TLS. Overrides . + /// + [YamlMember(Alias = "client-key-data", ApplyNamingConventions = false)] + public string ClientKeyData { get; set; } + + /// + /// Gets or sets the path to a client key file for TLS. + /// + [YamlMember(Alias = "client-key", ApplyNamingConventions = false)] + public string ClientKey { get; set; } + + /// + /// Gets or sets the bearer token for authentication to the kubernetes cluster. + /// + [YamlMember(Alias = "token")] + public string Token { get; set; } + + /// + /// Gets or sets the username to impersonate. The name matches the flag. + /// + [YamlMember(Alias = "as")] + public string Impersonate { get; set; } + + /// + /// Gets or sets the groups to impersonate. + /// + [YamlMember(Alias = "as-groups", ApplyNamingConventions = false)] + public IEnumerable ImpersonateGroups { get; set; } = new string[0]; + + /// + /// Gets or sets additional information for impersonated user. + /// + [YamlMember(Alias = "as-user-extra", ApplyNamingConventions = false)] + public Dictionary ImpersonateUserExtra { get; set; } = new Dictionary(); + + /// + /// Gets or sets the username for basic authentication to the kubernetes cluster. + /// + [YamlMember(Alias = "username")] + public string UserName { get; set; } + + /// + /// Gets or sets the password for basic authentication to the kubernetes cluster. + /// + [YamlMember(Alias = "password")] + public string Password { get; set; } + + /// + /// Gets or sets custom authentication plugin for the kubernetes cluster. + /// + [YamlMember(Alias = "auth-provider", ApplyNamingConventions = false)] + public AuthProvider AuthProvider { get; set; } + + /// + /// Gets or sets external command and its arguments to receive user credentials + /// + [YamlMember(Alias = "exec")] + public ExternalExecution ExternalExecution { get; set; } + } +} diff --git a/src/KubernetesClient.Aot/KubernetesClient.Aot.csproj b/src/KubernetesClient.Aot/KubernetesClient.Aot.csproj new file mode 100644 index 000000000..5c7cf8fed --- /dev/null +++ b/src/KubernetesClient.Aot/KubernetesClient.Aot.csproj @@ -0,0 +1,113 @@ + + + + net8.0;net9.0 + k8s + true + true + true + $(DefineConstants);K8S_AOT + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/KubernetesClient.Aot/KubernetesClientConfiguration.ConfigFile.cs b/src/KubernetesClient.Aot/KubernetesClientConfiguration.ConfigFile.cs new file mode 100644 index 000000000..a2301b464 --- /dev/null +++ b/src/KubernetesClient.Aot/KubernetesClientConfiguration.ConfigFile.cs @@ -0,0 +1,774 @@ +using k8s.Authentication; +using k8s.Exceptions; +using k8s.KubeConfigModels; +using System.Diagnostics; +using System.Net; +using System.Runtime.InteropServices; +using System.Security.Cryptography.X509Certificates; + +namespace k8s +{ + public partial class KubernetesClientConfiguration + { + /// + /// kubeconfig Default Location + /// + public static readonly string KubeConfigDefaultLocation = + RuntimeInformation.IsOSPlatform(OSPlatform.Windows) + ? Path.Combine(Environment.GetEnvironmentVariable("USERPROFILE") ?? @"\", @".kube\config") + : Path.Combine(Environment.GetEnvironmentVariable("HOME") ?? "/", ".kube/config"); + + /// + /// Gets CurrentContext + /// + public string CurrentContext { get; private set; } + + // For testing + internal static string KubeConfigEnvironmentVariable { get; set; } = "KUBECONFIG"; + + /// + /// Exec process timeout + /// + public static TimeSpan ExecTimeout { get; set; } = TimeSpan.FromMinutes(2); + + /// + /// Exec process Standard Errors + /// + public static event EventHandler ExecStdError; + + /// + /// Initializes a new instance of the from default locations + /// If the KUBECONFIG environment variable is set, then that will be used. + /// Next, it looks for a config file at . + /// Then, it checks whether it is executing inside a cluster and will use . + /// Finally, if nothing else exists, it creates a default config with localhost:8080 as host. + /// + /// + /// If multiple kubeconfig files are specified in the KUBECONFIG environment variable, + /// merges the files, where first occurrence wins. See https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#merging-kubeconfig-files. + /// + /// Instance of the class + public static KubernetesClientConfiguration BuildDefaultConfig() + { + var kubeconfig = Environment.GetEnvironmentVariable(KubeConfigEnvironmentVariable); + if (kubeconfig != null) + { + var configList = kubeconfig.Split(RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ';' : ':') + .Select((s) => new FileInfo(s.Trim('"'))); + var k8sConfig = LoadKubeConfig(configList.ToArray()); + return BuildConfigFromConfigObject(k8sConfig); + } + + if (File.Exists(KubeConfigDefaultLocation)) + { + return BuildConfigFromConfigFile(KubeConfigDefaultLocation); + } + + if (IsInCluster()) + { + return InClusterConfig(); + } + + var config = new KubernetesClientConfiguration + { + Host = "http://localhost:8080/", + }; + + return config; + } + + /// + /// Initializes a new instance of the from config file + /// + /// Explicit file path to kubeconfig. Set to null to use the default file path + /// override the context in config file, set null if do not want to override + /// kube api server endpoint + /// When , the paths in the kubeconfig file will be considered to be relative to the directory in which the kubeconfig + /// file is located. When , the paths will be considered to be relative to the current working directory. + /// Instance of the class + public static KubernetesClientConfiguration BuildConfigFromConfigFile( + string kubeconfigPath = null, + string currentContext = null, string masterUrl = null, bool useRelativePaths = true) + { + return BuildConfigFromConfigFile(new FileInfo(kubeconfigPath ?? KubeConfigDefaultLocation), currentContext, + masterUrl, useRelativePaths); + } + + /// + /// Initializes a new instance of the from config file + /// + /// Fileinfo of the kubeconfig, cannot be null + /// override the context in config file, set null if do not want to override + /// override the kube api server endpoint, set null if do not want to override + /// When , the paths in the kubeconfig file will be considered to be relative to the directory in which the kubeconfig + /// file is located. When , the paths will be considered to be relative to the current working directory. + /// Instance of the class + public static KubernetesClientConfiguration BuildConfigFromConfigFile( + FileInfo kubeconfig, + string currentContext = null, string masterUrl = null, bool useRelativePaths = true) + { + return BuildConfigFromConfigFileAsync(kubeconfig, currentContext, masterUrl, useRelativePaths).GetAwaiter() + .GetResult(); + } + + /// + /// Initializes a new instance of the from config file + /// + /// Fileinfo of the kubeconfig, cannot be null + /// override the context in config file, set null if do not want to override + /// override the kube api server endpoint, set null if do not want to override + /// When , the paths in the kubeconfig file will be considered to be relative to the directory in which the kubeconfig + /// file is located. When , the paths will be considered to be relative to the current working directory. + /// Instance of the class + public static async Task BuildConfigFromConfigFileAsync( + FileInfo kubeconfig, + string currentContext = null, string masterUrl = null, bool useRelativePaths = true) + { + if (kubeconfig == null) + { + throw new NullReferenceException(nameof(kubeconfig)); + } + + var k8SConfig = await LoadKubeConfigAsync(kubeconfig, useRelativePaths).ConfigureAwait(false); + var k8SConfiguration = GetKubernetesClientConfiguration(currentContext, masterUrl, k8SConfig); + + return k8SConfiguration; + } + + /// + /// Initializes a new instance of the from config file + /// + /// Stream of the kubeconfig, cannot be null + /// Override the current context in config, set null if do not want to override + /// Override the Kubernetes API server endpoint, set null if do not want to override + /// Instance of the class + public static KubernetesClientConfiguration BuildConfigFromConfigFile( + Stream kubeconfig, + string currentContext = null, string masterUrl = null) + { + return BuildConfigFromConfigFileAsync(kubeconfig, currentContext, masterUrl).GetAwaiter().GetResult(); + } + + /// + /// Initializes a new instance of the from config file + /// + /// Stream of the kubeconfig, cannot be null + /// Override the current context in config, set null if do not want to override + /// Override the Kubernetes API server endpoint, set null if do not want to override + /// Instance of the class + public static async Task BuildConfigFromConfigFileAsync( + Stream kubeconfig, + string currentContext = null, string masterUrl = null) + { + if (kubeconfig == null) + { + throw new NullReferenceException(nameof(kubeconfig)); + } + + if (!kubeconfig.CanSeek) + { + throw new Exception("Stream don't support seeking!"); + } + + kubeconfig.Position = 0; + + var k8SConfig = await KubernetesYaml.LoadFromStreamAsync(kubeconfig).ConfigureAwait(false); + var k8SConfiguration = GetKubernetesClientConfiguration(currentContext, masterUrl, k8SConfig); + + return k8SConfiguration; + } + + /// + /// Initializes a new instance of from pre-loaded config object. + /// + /// A , for example loaded from + /// Override the current context in config, set null if do not want to override + /// Override the Kubernetes API server endpoint, set null if do not want to override + /// Instance of the class + public static KubernetesClientConfiguration BuildConfigFromConfigObject( + K8SConfiguration k8SConfig, + string currentContext = null, string masterUrl = null) + => GetKubernetesClientConfiguration(currentContext, masterUrl, k8SConfig); + + private static KubernetesClientConfiguration GetKubernetesClientConfiguration( + string currentContext, + string masterUrl, K8SConfiguration k8SConfig) + { + if (k8SConfig == null) + { + throw new ArgumentNullException(nameof(k8SConfig)); + } + + var k8SConfiguration = new KubernetesClientConfiguration(); + + currentContext = currentContext ?? k8SConfig.CurrentContext; + // only init context if context is set + if (currentContext != null) + { + k8SConfiguration.InitializeContext(k8SConfig, currentContext); + } + + if (!string.IsNullOrWhiteSpace(masterUrl)) + { + k8SConfiguration.Host = masterUrl; + } + + if (string.IsNullOrWhiteSpace(k8SConfiguration.Host)) + { + throw new KubeConfigException("Cannot infer server host url either from context or masterUrl"); + } + + return k8SConfiguration; + } + + /// + /// Validates and Initializes Client Configuration + /// + /// Kubernetes Configuration + /// Current Context + private void InitializeContext(K8SConfiguration k8SConfig, string currentContext) + { + // current context + var activeContext = + k8SConfig.Contexts.FirstOrDefault( + c => c.Name.Equals(currentContext, StringComparison.OrdinalIgnoreCase)); + if (activeContext == null) + { + throw new KubeConfigException($"CurrentContext: {currentContext} not found in contexts in kubeconfig"); + } + + if (string.IsNullOrEmpty(activeContext.ContextDetails?.Cluster)) + { + // This serves as validation for any of the properties of ContextDetails being set. + // Other locations in code assume that ContextDetails is non-null. + throw new KubeConfigException($"Cluster not set for context `{currentContext}` in kubeconfig"); + } + + CurrentContext = activeContext.Name; + + // cluster + SetClusterDetails(k8SConfig, activeContext); + + // user + SetUserDetails(k8SConfig, activeContext); + + // namespace + Namespace = activeContext.ContextDetails?.Namespace; + } + + private void SetClusterDetails(K8SConfiguration k8SConfig, Context activeContext) + { + var clusterDetails = + k8SConfig.Clusters.FirstOrDefault(c => c.Name.Equals( + activeContext.ContextDetails.Cluster, + StringComparison.OrdinalIgnoreCase)); + + if (clusterDetails?.ClusterEndpoint == null) + { + throw new KubeConfigException($"Cluster not found for context `{activeContext}` in kubeconfig"); + } + + if (string.IsNullOrWhiteSpace(clusterDetails.ClusterEndpoint.Server)) + { + throw new KubeConfigException($"Server not found for current-context `{activeContext}` in kubeconfig"); + } + + Host = clusterDetails.ClusterEndpoint.Server; + SkipTlsVerify = clusterDetails.ClusterEndpoint.SkipTlsVerify; + TlsServerName = clusterDetails.ClusterEndpoint.TlsServerName; + + if (!Uri.TryCreate(Host, UriKind.Absolute, out var uri)) + { + throw new KubeConfigException($"Bad server host URL `{Host}` (cannot be parsed)"); + } + + if (IPAddress.TryParse(uri.Host, out var ipAddress)) + { + if (IPAddress.Equals(IPAddress.Any, ipAddress)) + { + var builder = new UriBuilder(Host) + { + Host = $"{IPAddress.Loopback}", + }; + Host = builder.ToString(); + } + else if (IPAddress.Equals(IPAddress.IPv6Any, ipAddress)) + { + var builder = new UriBuilder(Host) + { + Host = $"{IPAddress.IPv6Loopback}", + }; + Host = builder.ToString(); + } + } + + if (uri.Scheme == "https") + { + if (!string.IsNullOrEmpty(clusterDetails.ClusterEndpoint.CertificateAuthorityData)) + { + var data = clusterDetails.ClusterEndpoint.CertificateAuthorityData; +#if NET9_0_OR_GREATER + SslCaCerts = new X509Certificate2Collection(X509CertificateLoader.LoadCertificate(Convert.FromBase64String(data))); +#else + string nullPassword = null; + // This null password is to change the constructor to fix this KB: + // https://support.microsoft.com/en-us/topic/kb5025823-change-in-how-net-applications-import-x-509-certificates-bf81c936-af2b-446e-9f7a-016f4713b46b + SslCaCerts = new X509Certificate2Collection(new X509Certificate2(Convert.FromBase64String(data), nullPassword)); +#endif + } + else if (!string.IsNullOrEmpty(clusterDetails.ClusterEndpoint.CertificateAuthority)) + { +#if NET9_0_OR_GREATER + SslCaCerts = new X509Certificate2Collection(X509CertificateLoader.LoadCertificateFromFile(GetFullPath( + k8SConfig, + clusterDetails.ClusterEndpoint.CertificateAuthority))); +#else + SslCaCerts = new X509Certificate2Collection(new X509Certificate2(GetFullPath( + k8SConfig, + clusterDetails.ClusterEndpoint.CertificateAuthority))); +#endif + } + } + } + + + private void SetUserDetails(K8SConfiguration k8SConfig, Context activeContext) + { + if (string.IsNullOrWhiteSpace(activeContext.ContextDetails.User)) + { + return; + } + + var userDetails = k8SConfig.Users.FirstOrDefault(c => c.Name.Equals( + activeContext.ContextDetails.User, + StringComparison.OrdinalIgnoreCase)); + + if (userDetails == null) + { + throw new KubeConfigException($"User not found for context {activeContext.Name} in kubeconfig"); + } + + if (userDetails.UserCredentials == null) + { + throw new KubeConfigException($"User credentials not found for user: {userDetails.Name} in kubeconfig"); + } + + var userCredentialsFound = false; + + // Basic and bearer tokens are mutually exclusive + if (!string.IsNullOrWhiteSpace(userDetails.UserCredentials.Token)) + { + AccessToken = userDetails.UserCredentials.Token; + userCredentialsFound = true; + } + else if (!string.IsNullOrWhiteSpace(userDetails.UserCredentials.UserName) && + !string.IsNullOrWhiteSpace(userDetails.UserCredentials.Password)) + { + Username = userDetails.UserCredentials.UserName; + Password = userDetails.UserCredentials.Password; + userCredentialsFound = true; + } + + // Token and cert based auth can co-exist + if (!string.IsNullOrWhiteSpace(userDetails.UserCredentials.ClientCertificateData) && + !string.IsNullOrWhiteSpace(userDetails.UserCredentials.ClientKeyData)) + { + ClientCertificateData = userDetails.UserCredentials.ClientCertificateData; + ClientCertificateKeyData = userDetails.UserCredentials.ClientKeyData; + userCredentialsFound = true; + } + + if (!string.IsNullOrWhiteSpace(userDetails.UserCredentials.ClientCertificate) && + !string.IsNullOrWhiteSpace(userDetails.UserCredentials.ClientKey)) + { + ClientCertificateFilePath = GetFullPath(k8SConfig, userDetails.UserCredentials.ClientCertificate); + ClientKeyFilePath = GetFullPath(k8SConfig, userDetails.UserCredentials.ClientKey); + userCredentialsFound = true; + } + + if (userDetails.UserCredentials.AuthProvider != null) + { + if (userDetails.UserCredentials.AuthProvider.Config != null + && (userDetails.UserCredentials.AuthProvider.Config.ContainsKey("access-token") + || userDetails.UserCredentials.AuthProvider.Config.ContainsKey("id-token"))) + { + switch (userDetails.UserCredentials.AuthProvider.Name) + { + case "azure": + throw new Exception("Please use the https://github.com/Azure/kubelogin credential plugin instead. See https://kubernetes.io/docs/reference/access-authn-authz/authentication/#client-go-credential-plugins for further details`"); + + case "gcp": + throw new Exception("Please use the \"gke-gcloud-auth-plugin\" credential plugin instead. See https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke for further details"); + } + } + } + + if (userDetails.UserCredentials.ExternalExecution != null) + { + if (string.IsNullOrWhiteSpace(userDetails.UserCredentials.ExternalExecution.Command)) + { + throw new KubeConfigException( + "External command execution to receive user credentials must include a command to execute"); + } + + if (string.IsNullOrWhiteSpace(userDetails.UserCredentials.ExternalExecution.ApiVersion)) + { + throw new KubeConfigException("External command execution missing ApiVersion key"); + } + + var response = ExecuteExternalCommand(userDetails.UserCredentials.ExternalExecution); + AccessToken = response.Status.Token; + // When reading ClientCertificateData from a config file it will be base64 encoded, and code later in the system (see CertUtils.GeneratePfx) + // expects ClientCertificateData and ClientCertificateKeyData to be base64 encoded because of this. However the string returned by external + // auth providers is the raw certificate and key PEM text, so we need to take that and base64 encoded it here so it can be decoded later. + ClientCertificateData = response.Status.ClientCertificateData == null ? null : Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes(response.Status.ClientCertificateData)); + ClientCertificateKeyData = response.Status.ClientKeyData == null ? null : Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes(response.Status.ClientKeyData)); + + userCredentialsFound = true; + + // TODO: support client certificates here too. + if (AccessToken != null) + { + TokenProvider = new ExecTokenProvider(userDetails.UserCredentials.ExternalExecution); + } + } + + if (!userCredentialsFound) + { + throw new KubeConfigException( + $"User: {userDetails.Name} does not have appropriate auth credentials in kubeconfig"); + } + } + + public static Process CreateRunnableExternalProcess(ExternalExecution config, EventHandler captureStdError = null) + { + if (config == null) + { + throw new ArgumentNullException(nameof(config)); + } + + var process = new Process(); + + process.StartInfo.EnvironmentVariables.Add("KUBERNETES_EXEC_INFO", $"{{ \"apiVersion\":\"{config.ApiVersion}\",\"kind\":\"ExecCredentials\",\"spec\":{{ \"interactive\":{Environment.UserInteractive.ToString().ToLower()} }} }}"); + if (config.EnvironmentVariables != null) + { + foreach (var configEnvironmentVariable in config.EnvironmentVariables) + { + if (configEnvironmentVariable.ContainsKey("name") && configEnvironmentVariable.ContainsKey("value")) + { + var name = configEnvironmentVariable["name"]; + process.StartInfo.EnvironmentVariables[name] = configEnvironmentVariable["value"]; + } + else + { + var badVariable = string.Join(",", configEnvironmentVariable.Select(x => $"{x.Key}={x.Value}")); + throw new KubeConfigException($"Invalid environment variable defined: {badVariable}"); + } + } + } + + process.StartInfo.FileName = config.Command; + if (config.Arguments != null) + { + process.StartInfo.Arguments = string.Join(" ", config.Arguments); + } + + process.StartInfo.RedirectStandardOutput = true; + process.StartInfo.RedirectStandardError = captureStdError != null; + process.StartInfo.UseShellExecute = false; + process.StartInfo.CreateNoWindow = true; + + return process; + } + + /// + /// Implementation of the proposal for out-of-tree client + /// authentication providers as described here -- + /// https://github.com/kubernetes/community/blob/master/contributors/design-proposals/auth/kubectl-exec-plugins.md + /// Took inspiration from python exec_provider.py -- + /// https://github.com/kubernetes-client/python-base/blob/master/config/exec_provider.py + /// + /// The external command execution configuration + /// + /// The token, client certificate data, and the client key data received from the external command execution + /// + public static ExecCredentialResponse ExecuteExternalCommand(ExternalExecution config) + { + if (config == null) + { + throw new ArgumentNullException(nameof(config)); + } + + var captureStdError = ExecStdError; + var process = CreateRunnableExternalProcess(config, captureStdError); + + try + { + process.Start(); + if (captureStdError != null) + { + process.ErrorDataReceived += captureStdError.Invoke; + process.BeginErrorReadLine(); + } + } + catch (Exception ex) + { + throw new KubeConfigException($"external exec failed due to: {ex.Message}"); + } + + try + { + if (!process.WaitForExit((int)(ExecTimeout.TotalMilliseconds))) + { + throw new KubeConfigException("external exec failed due to timeout"); + } + + var responseObject = JsonSerializer.Deserialize( + process.StandardOutput.ReadToEnd(), + ExecCredentialResponseContext.Default.ExecCredentialResponse); + + if (responseObject == null || responseObject.ApiVersion != config.ApiVersion) + { + throw new KubeConfigException( + $"external exec failed because api version {responseObject.ApiVersion} does not match {config.ApiVersion}"); + } + + if (responseObject.Status.IsValid()) + { + return responseObject; + } + else + { + throw new KubeConfigException($"external exec failed missing token or clientCertificateData field in plugin output"); + } + } + catch (JsonException ex) + { + throw new KubeConfigException($"external exec failed due to failed deserialization process: {ex}"); + } + catch (Exception ex) + { + throw new KubeConfigException($"external exec failed due to uncaught exception: {ex}"); + } + } + + /// + /// Loads entire Kube Config from default or explicit file path + /// + /// Explicit file path to kubeconfig. Set to null to use the default file path + /// When , the paths in the kubeconfig file will be considered to be relative to the directory in which the kubeconfig + /// file is located. When , the paths will be considered to be relative to the current working directory. + /// Instance of the class + public static async Task LoadKubeConfigAsync( + string kubeconfigPath = null, + bool useRelativePaths = true) + { + var fileInfo = new FileInfo(kubeconfigPath ?? KubeConfigDefaultLocation); + + return await LoadKubeConfigAsync(fileInfo, useRelativePaths).ConfigureAwait(false); + } + + /// + /// Loads entire Kube Config from default or explicit file path + /// + /// Explicit file path to kubeconfig. Set to null to use the default file path + /// When , the paths in the kubeconfig file will be considered to be relative to the directory in which the kubeconfig + /// file is located. When , the paths will be considered to be relative to the current working directory. + /// Instance of the class + public static K8SConfiguration LoadKubeConfig(string kubeconfigPath = null, bool useRelativePaths = true) + { + return LoadKubeConfigAsync(kubeconfigPath, useRelativePaths).GetAwaiter().GetResult(); + } + + /// + /// Loads Kube Config + /// + /// Kube config file contents + /// When , the paths in the kubeconfig file will be considered to be relative to the directory in which the kubeconfig + /// file is located. When , the paths will be considered to be relative to the current working directory. + /// Instance of the class + public static async Task LoadKubeConfigAsync( + FileInfo kubeconfig, + bool useRelativePaths = true) + { + if (kubeconfig == null) + { + throw new ArgumentNullException(nameof(kubeconfig)); + } + + + if (!kubeconfig.Exists) + { + throw new KubeConfigException($"kubeconfig file not found at {kubeconfig.FullName}"); + } + + using (var stream = kubeconfig.OpenRead()) + { + var config = await KubernetesYaml.LoadFromStreamAsync(stream).ConfigureAwait(false); + + if (useRelativePaths) + { + config.FileName = kubeconfig.FullName; + } + + return config; + } + } + + /// + /// Loads Kube Config + /// + /// Kube config file contents + /// When , the paths in the kubeconfig file will be considered to be relative to the directory in which the kubeconfig + /// file is located. When , the paths will be considered to be relative to the current working directory. + /// Instance of the class + public static K8SConfiguration LoadKubeConfig(FileInfo kubeconfig, bool useRelativePaths = true) + { + return LoadKubeConfigAsync(kubeconfig, useRelativePaths).GetAwaiter().GetResult(); + } + + /// + /// Loads Kube Config + /// + /// Kube config file contents stream + /// Instance of the class + public static async Task LoadKubeConfigAsync(Stream kubeconfigStream) + { + return await KubernetesYaml.LoadFromStreamAsync(kubeconfigStream).ConfigureAwait(false); + } + + /// + /// Loads Kube Config + /// + /// Kube config file contents stream + /// Instance of the class + public static K8SConfiguration LoadKubeConfig(Stream kubeconfigStream) + { + return LoadKubeConfigAsync(kubeconfigStream).GetAwaiter().GetResult(); + } + + /// + /// Loads Kube Config + /// + /// List of kube config file contents + /// When , the paths in the kubeconfig file will be considered to be relative to the directory in which the kubeconfig + /// file is located. When , the paths will be considered to be relative to the current working directory. + /// Instance of the class + /// + /// The kube config files will be merges into a single , where first occurrence wins. + /// See https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#merging-kubeconfig-files. + /// + internal static K8SConfiguration LoadKubeConfig(FileInfo[] kubeConfigs, bool useRelativePaths = true) + { + return LoadKubeConfigAsync(kubeConfigs, useRelativePaths).GetAwaiter().GetResult(); + } + + /// + /// Loads Kube Config + /// + /// List of kube config file contents + /// When , the paths in the kubeconfig file will be considered to be relative to the directory in which the kubeconfig + /// file is located. When , the paths will be considered to be relative to the current working directory. + /// Instance of the class + /// + /// The kube config files will be merges into a single , where first occurrence wins. + /// See https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#merging-kubeconfig-files. + /// + internal static async Task LoadKubeConfigAsync( + FileInfo[] kubeConfigs, + bool useRelativePaths = true) + { + var basek8SConfig = await LoadKubeConfigAsync(kubeConfigs[0], useRelativePaths).ConfigureAwait(false); + + for (var i = 1; i < kubeConfigs.Length; i++) + { + var mergek8SConfig = await LoadKubeConfigAsync(kubeConfigs[i], useRelativePaths).ConfigureAwait(false); + MergeKubeConfig(basek8SConfig, mergek8SConfig); + } + + return basek8SConfig; + } + + /// + /// Tries to get the full path to a file referenced from the Kubernetes configuration. + /// + /// + /// The Kubernetes configuration. + /// + /// + /// The path to resolve. + /// + /// + /// When possible a fully qualified path to the file. + /// + /// + /// For example, if the configuration file is at "C:\Users\me\kube.config" and path is "ca.crt", + /// this will return "C:\Users\me\ca.crt". Similarly, if path is "D:\ca.cart", this will return + /// "D:\ca.crt". + /// + private static string GetFullPath(K8SConfiguration configuration, string path) + { + // If we don't have a file name, + if (string.IsNullOrWhiteSpace(configuration.FileName) || Path.IsPathRooted(path)) + { + return path; + } + else + { + return Path.Combine(Path.GetDirectoryName(configuration.FileName), path); + } + } + + /// + /// Merges kube config files together, preferring configuration present in the base config over the merge config. + /// + /// The to merge into + /// The to merge from + private static void MergeKubeConfig(K8SConfiguration basek8SConfig, K8SConfiguration mergek8SConfig) + { + // For scalar values, prefer local values + basek8SConfig.CurrentContext = basek8SConfig.CurrentContext ?? mergek8SConfig.CurrentContext; + basek8SConfig.FileName = basek8SConfig.FileName ?? mergek8SConfig.FileName; + + // Kinds must match in kube config, otherwise throw. + if (basek8SConfig.Kind != mergek8SConfig.Kind) + { + throw new KubeConfigException( + $"kubeconfig \"kind\" are different between {basek8SConfig.FileName} and {mergek8SConfig.FileName}"); + } + + // Note, Clusters, Contexts, and Extensions are map-like in config despite being represented as a list here: + // https://github.com/kubernetes/client-go/blob/ede92e0fe62deed512d9ceb8bf4186db9f3776ff/tools/clientcmd/api/types.go#L238 + // basek8SConfig.Extensions = MergeLists(basek8SConfig.Extensions, mergek8SConfig.Extensions, (s) => s.Name).ToList(); + basek8SConfig.Clusters = MergeLists(basek8SConfig.Clusters, mergek8SConfig.Clusters, (s) => s.Name).ToList(); + basek8SConfig.Users = MergeLists(basek8SConfig.Users, mergek8SConfig.Users, (s) => s.Name).ToList(); + basek8SConfig.Contexts = MergeLists(basek8SConfig.Contexts, mergek8SConfig.Contexts, (s) => s.Name).ToList(); + } + + private static IEnumerable MergeLists(IEnumerable baseList, IEnumerable mergeList, + Func getNameFunc) + { + if (mergeList != null && mergeList.Any()) + { + var mapping = new Dictionary(); + foreach (var item in baseList) + { + mapping[getNameFunc(item)] = item; + } + + foreach (var item in mergeList) + { + var name = getNameFunc(item); + if (!mapping.ContainsKey(name)) + { + mapping[name] = item; + } + } + + return mapping.Values; + } + + return baseList; + } + } +} diff --git a/src/KubernetesClient.Aot/KubernetesYaml.cs b/src/KubernetesClient.Aot/KubernetesYaml.cs new file mode 100644 index 000000000..5530a2e02 --- /dev/null +++ b/src/KubernetesClient.Aot/KubernetesYaml.cs @@ -0,0 +1,171 @@ +using System.Text; +using YamlDotNet.Core; +using YamlDotNet.Core.Events; +using YamlDotNet.Serialization; +using YamlDotNet.Serialization.NamingConventions; + +namespace k8s +{ + /// + /// This is a utility class that helps you load objects from YAML files. + /// + internal static class KubernetesYaml + { + private static StaticDeserializerBuilder CommonDeserializerBuilder => + new StaticDeserializerBuilder(new k8s.KubeConfigModels.StaticContext()) + .WithNamingConvention(CamelCaseNamingConvention.Instance) + .WithTypeConverter(new IntOrStringYamlConverter()) + .WithTypeConverter(new ByteArrayStringYamlConverter()) + .WithTypeConverter(new ResourceQuantityYamlConverter()) + .WithTypeConverter(new KubernetesDateTimeYamlConverter()) + .WithTypeConverter(new KubernetesDateTimeOffsetYamlConverter()) + .WithAttemptingUnquotedStringTypeDeserialization() + ; + + private static readonly IDeserializer Deserializer = + CommonDeserializerBuilder + .IgnoreUnmatchedProperties() + .Build(); + private static IDeserializer GetDeserializer(bool strict) => Deserializer; + + private static readonly IValueSerializer Serializer = + new StaticSerializerBuilder(new k8s.KubeConfigModels.StaticContext()) + .DisableAliases() + .WithNamingConvention(CamelCaseNamingConvention.Instance) + .WithTypeConverter(new IntOrStringYamlConverter()) + .WithTypeConverter(new ByteArrayStringYamlConverter()) + .WithTypeConverter(new ResourceQuantityYamlConverter()) + .WithTypeConverter(new KubernetesDateTimeYamlConverter()) + .WithTypeConverter(new KubernetesDateTimeOffsetYamlConverter()) + .WithEventEmitter(e => new StringQuotingEmitter(e)) + .WithEventEmitter(e => new FloatEmitter(e)) + .ConfigureDefaultValuesHandling(DefaultValuesHandling.OmitNull) + .BuildValueSerializer(); + + private class ByteArrayStringYamlConverter : IYamlTypeConverter + { + public bool Accepts(Type type) + { + return type == typeof(byte[]); + } + + public object ReadYaml(IParser parser, Type type, ObjectDeserializer rootDeserializer) + { + if (parser?.Current is Scalar scalar) + { + try + { + if (string.IsNullOrEmpty(scalar.Value)) + { + return null; + } + + return Convert.FromBase64String(scalar.Value); + } + finally + { + parser.MoveNext(); + } + } + + throw new InvalidOperationException(parser.Current?.ToString()); + } + + public void WriteYaml(IEmitter emitter, object value, Type type, ObjectSerializer serializer) + { + if (value == null) + { + emitter.Emit(new Scalar(string.Empty)); + return; + } + + var obj = (byte[])value; + var encoded = Convert.ToBase64String(obj); + emitter.Emit(new Scalar(encoded)); + } + } + + public static async Task LoadFromStreamAsync(Stream stream, bool strict = false) + { + var reader = new StreamReader(stream); + var content = await reader.ReadToEndAsync().ConfigureAwait(false); + return Deserialize(content, strict); + } + + public static async Task LoadFromFileAsync(string file, bool strict = false) + { + using (var fs = File.OpenRead(file)) + { + return await LoadFromStreamAsync(fs, strict).ConfigureAwait(false); + } + } + + [Obsolete("use Deserialize")] + public static T LoadFromString(string content, bool strict = false) + { + return Deserialize(content, strict); + } + + [Obsolete("use Serialize")] + public static string SaveToString(T value) + { + return Serialize(value); + } + + public static TValue Deserialize(string yaml, bool strict = false) + { + using var reader = new StringReader(yaml); + return GetDeserializer(strict).Deserialize(new MergingParser(new Parser(reader))); + } + + public static TValue Deserialize(Stream yaml, bool strict = false) + { + using var reader = new StreamReader(yaml); + return GetDeserializer(strict).Deserialize(new MergingParser(new Parser(reader))); + } + + public static string SerializeAll(IEnumerable values) + { + if (values == null) + { + return ""; + } + + var stringBuilder = new StringBuilder(); + var writer = new StringWriter(stringBuilder); + var emitter = new Emitter(writer); + + emitter.Emit(new StreamStart()); + + foreach (var value in values) + { + if (value != null) + { + emitter.Emit(new DocumentStart()); + Serializer.SerializeValue(emitter, value, value.GetType()); + emitter.Emit(new DocumentEnd(true)); + } + } + + return stringBuilder.ToString(); + } + + public static string Serialize(object value) + { + if (value == null) + { + return ""; + } + + var stringBuilder = new StringBuilder(); + var writer = new StringWriter(stringBuilder); + var emitter = new Emitter(writer); + + emitter.Emit(new StreamStart()); + emitter.Emit(new DocumentStart()); + Serializer.SerializeValue(emitter, value, value.GetType()); + + return stringBuilder.ToString(); + } + } +} diff --git a/src/KubernetesClient.Aot/V1PatchJsonConverter.cs b/src/KubernetesClient.Aot/V1PatchJsonConverter.cs new file mode 100644 index 000000000..314ef5694 --- /dev/null +++ b/src/KubernetesClient.Aot/V1PatchJsonConverter.cs @@ -0,0 +1,29 @@ +namespace k8s.Models +{ +#pragma warning disable CA1812 // Avoid uninstantiated internal classes + internal sealed class V1PatchJsonConverter : JsonConverter +#pragma warning restore CA1812 // Avoid uninstantiated internal classes + { + public override V1Patch Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + throw new NotImplementedException(); + } + + public override void Write(Utf8JsonWriter writer, V1Patch value, JsonSerializerOptions options) + { + if (writer == null) + { + throw new ArgumentNullException(nameof(writer)); + } + + var content = value?.Content; + if (content is string s) + { + writer.WriteRawValue(s); + return; + } + + throw new NotSupportedException("only string json patch is supported"); + } + } +} diff --git a/src/KubernetesClient.Classic/CertUtils.cs b/src/KubernetesClient.Classic/CertUtils.cs new file mode 100644 index 000000000..112ef922e --- /dev/null +++ b/src/KubernetesClient.Classic/CertUtils.cs @@ -0,0 +1,156 @@ +using k8s.Exceptions; +using Org.BouncyCastle.Asn1.Nist; +using Org.BouncyCastle.Asn1.Pkcs; +using Org.BouncyCastle.Crypto; +using Org.BouncyCastle.OpenSsl; +using Org.BouncyCastle.Pkcs; +using Org.BouncyCastle.Security; +using Org.BouncyCastle.X509; +using System.Security.Cryptography.X509Certificates; + +namespace k8s +{ + internal static class CertUtils + { + /// + /// Load pem encoded cert file + /// + /// Path to pem encoded cert file + /// List of x509 instances. + public static X509Certificate2Collection LoadPemFileCert(string file) + { + var certCollection = new X509Certificate2Collection(); + using (var stream = FileSystem.Current.OpenRead(file)) + { + var certs = new X509CertificateParser().ReadCertificates(stream); + + // Convert BouncyCastle X509Certificates to the .NET cryptography implementation and add + // it to the certificate collection + // + foreach (Org.BouncyCastle.X509.X509Certificate cert in certs) + { + // This null password is to change the constructor to fix this KB: + // https://support.microsoft.com/en-us/topic/kb5025823-change-in-how-net-applications-import-x-509-certificates-bf81c936-af2b-446e-9f7a-016f4713b46b + string nullPassword = null; + certCollection.Add(new X509Certificate2(cert.GetEncoded(), nullPassword)); + } + } + + return certCollection; + } + + /// + /// Generates pfx from client configuration + /// + /// Kubernetes Client Configuration + /// Generated Pfx Path + public static X509Certificate2 GeneratePfx(KubernetesClientConfiguration config) + { + if (config == null) + { + throw new ArgumentNullException(nameof(config)); + } + + byte[] keyData = null; + byte[] certData = null; + + if (!string.IsNullOrWhiteSpace(config.ClientCertificateKeyData)) + { + keyData = Convert.FromBase64String(config.ClientCertificateKeyData); + } + + if (!string.IsNullOrWhiteSpace(config.ClientKeyFilePath)) + { + keyData = File.ReadAllBytes(config.ClientKeyFilePath); + } + + if (keyData == null) + { + throw new KubeConfigException("keyData is empty"); + } + + if (!string.IsNullOrWhiteSpace(config.ClientCertificateData)) + { + certData = Convert.FromBase64String(config.ClientCertificateData); + } + + if (!string.IsNullOrWhiteSpace(config.ClientCertificateFilePath)) + { + certData = File.ReadAllBytes(config.ClientCertificateFilePath); + } + + if (certData == null) + { + throw new KubeConfigException("certData is empty"); + } + + var cert = new X509CertificateParser().ReadCertificate(new MemoryStream(certData)); + // key usage is a bit string, zero-th bit is 'digitalSignature' + // See https://www.alvestrand.no/objectid/2.5.29.15.html for more details. + if (cert != null && cert.GetKeyUsage() != null && !cert.GetKeyUsage()[0]) + { + throw new Exception( + "Client certificates must be marked for digital signing. " + + "See https://github.com/kubernetes-client/csharp/issues/319"); + } + + object obj; + using (var reader = new StreamReader(new MemoryStream(keyData))) + { + obj = new PemReader(reader).ReadObject(); + if (obj is AsymmetricCipherKeyPair key) + { + var cipherKey = key; + obj = cipherKey.Private; + } + } + + var keyParams = (AsymmetricKeyParameter)obj; + + var store = new Pkcs12StoreBuilder() + .SetKeyAlgorithm(NistObjectIdentifiers.IdAes128Cbc, PkcsObjectIdentifiers.IdHmacWithSha1) + .Build(); + store.SetKeyEntry("K8SKEY", new AsymmetricKeyEntry(keyParams), new[] { new X509CertificateEntry(cert) }); + + using var pkcs = new MemoryStream(); + + store.Save(pkcs, new char[0], new SecureRandom()); + + // This null password is to change the constructor to fix this KB: + // https://support.microsoft.com/en-us/topic/kb5025823-change-in-how-net-applications-import-x-509-certificates-bf81c936-af2b-446e-9f7a-016f4713b46b + string nullPassword = null; + + if (config.ClientCertificateKeyStoreFlags.HasValue) + { + return new X509Certificate2(pkcs.ToArray(), nullPassword, config.ClientCertificateKeyStoreFlags.Value); + } + else + { + return new X509Certificate2(pkcs.ToArray(), nullPassword); + } + } + + /// + /// Retrieves Client Certificate PFX from configuration + /// + /// Kubernetes Client Configuration + /// Client certificate PFX + public static X509Certificate2 GetClientCert(KubernetesClientConfiguration config) + { + if (config == null) + { + throw new ArgumentNullException(nameof(config)); + } + + if ((!string.IsNullOrWhiteSpace(config.ClientCertificateData) || + !string.IsNullOrWhiteSpace(config.ClientCertificateFilePath)) && + (!string.IsNullOrWhiteSpace(config.ClientCertificateKeyData) || + !string.IsNullOrWhiteSpace(config.ClientKeyFilePath))) + { + return GeneratePfx(config); + } + + return null; + } + } +} diff --git a/src/KubernetesClient.Classic/Global.cs b/src/KubernetesClient.Classic/Global.cs new file mode 100644 index 000000000..2b5a4ae8e --- /dev/null +++ b/src/KubernetesClient.Classic/Global.cs @@ -0,0 +1,10 @@ +global using k8s.Autorest; +global using k8s.Models; +global using System; +global using System.Collections.Generic; +global using System.IO; +global using System.Linq; +global using System.Text.Json; +global using System.Text.Json.Serialization; +global using System.Threading; +global using System.Threading.Tasks; diff --git a/src/KubernetesClient.Classic/IsExternalInit.cs b/src/KubernetesClient.Classic/IsExternalInit.cs new file mode 100644 index 000000000..749f30858 --- /dev/null +++ b/src/KubernetesClient.Classic/IsExternalInit.cs @@ -0,0 +1,5 @@ +// IntOrString.cs(7,36): error CS0518: Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported +namespace System.Runtime.CompilerServices +{ + internal static class IsExternalInit { } +} \ No newline at end of file diff --git a/src/KubernetesClient.Classic/Kubernetes.Websocket.Netstandard.cs b/src/KubernetesClient.Classic/Kubernetes.Websocket.Netstandard.cs new file mode 100644 index 000000000..5af6facc2 --- /dev/null +++ b/src/KubernetesClient.Classic/Kubernetes.Websocket.Netstandard.cs @@ -0,0 +1,28 @@ +using System.Net.Security; +using System.Security.Cryptography.X509Certificates; + +namespace k8s; + +public partial class Kubernetes +{ + partial void BeforeRequest() + { + System.Net.ServicePointManager.ServerCertificateValidationCallback += ServerCertificateValidationCallback; + } + + partial void AfterRequest() + { + System.Net.ServicePointManager.ServerCertificateValidationCallback -= ServerCertificateValidationCallback; + } + + private bool ServerCertificateValidationCallback(object sender, X509Certificate certificate, X509Chain chain, + SslPolicyErrors sslPolicyErrors) + { + if (SkipTlsVerify) + { + return true; + } + + return CertificateValidationCallBack(sender, CaCerts, certificate, chain, sslPolicyErrors); + } +} diff --git a/src/KubernetesClient.Classic/KubernetesClient.Classic.csproj b/src/KubernetesClient.Classic/KubernetesClient.Classic.csproj new file mode 100644 index 000000000..902dc41dd --- /dev/null +++ b/src/KubernetesClient.Classic/KubernetesClient.Classic.csproj @@ -0,0 +1,132 @@ + + + + netstandard2.0;net48 + k8s + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/KubernetesClient.Kubectl/Beta/AsyncKubectl.Cordon.cs b/src/KubernetesClient.Kubectl/Beta/AsyncKubectl.Cordon.cs new file mode 100644 index 000000000..60ab97877 --- /dev/null +++ b/src/KubernetesClient.Kubectl/Beta/AsyncKubectl.Cordon.cs @@ -0,0 +1,30 @@ +using Json.Patch; +using k8s.Models; +using System.Text.Json; + +namespace k8s.kubectl.beta; + +public partial class AsyncKubectl +{ + public async Task Cordon(string nodeName, CancellationToken cancellationToken = default) + { + await PatchNodeUnschedulable(nodeName, true, cancellationToken).ConfigureAwait(false); + } + + public async Task Uncordon(string nodeName, CancellationToken cancellationToken = default) + { + await PatchNodeUnschedulable(nodeName, false, cancellationToken).ConfigureAwait(false); + } + + private async Task PatchNodeUnschedulable(string nodeName, bool desired, CancellationToken cancellationToken = default) + { + var node = await client.CoreV1.ReadNodeAsync(nodeName, cancellationToken: cancellationToken).ConfigureAwait(false); + + var old = JsonSerializer.SerializeToDocument(node); + node.Spec.Unschedulable = desired; + + var patch = old.CreatePatch(node); + + await client.CoreV1.PatchNodeAsync(new V1Patch(patch, V1Patch.PatchType.JsonPatch), nodeName, cancellationToken: cancellationToken).ConfigureAwait(false); + } +} diff --git a/src/KubernetesClient.Kubectl/Beta/AsyncKubectl.Version.cs b/src/KubernetesClient.Kubectl/Beta/AsyncKubectl.Version.cs new file mode 100644 index 000000000..31aff08a4 --- /dev/null +++ b/src/KubernetesClient.Kubectl/Beta/AsyncKubectl.Version.cs @@ -0,0 +1,23 @@ +using k8s.Models; + +namespace k8s.kubectl.beta; + +public partial class AsyncKubectl +{ + private const string AsssemblyVersion = ThisAssembly.AssemblyInformationalVersion; + + public record KubernetesSDKVersion + { + public string ClientVersion { get; init; } = AsssemblyVersion; + + public string ClientSwaggerVersion { get; init; } = GeneratedApiVersion.SwaggerVersion; + + public VersionInfo ServerVersion { get; init; } = default!; + } + + public async Task Version(CancellationToken cancellationToken = default) + { + var serverVersion = await client.Version.GetCodeAsync(cancellationToken).ConfigureAwait(false); + return new KubernetesSDKVersion { ServerVersion = serverVersion }; + } +} diff --git a/src/KubernetesClient.Kubectl/Beta/AsyncKubectl.cs b/src/KubernetesClient.Kubectl/Beta/AsyncKubectl.cs new file mode 100644 index 000000000..41f016622 --- /dev/null +++ b/src/KubernetesClient.Kubectl/Beta/AsyncKubectl.cs @@ -0,0 +1,11 @@ +namespace k8s.kubectl.beta; + +public partial class AsyncKubectl +{ + private readonly IKubernetes client; + + public AsyncKubectl(IKubernetes client) + { + this.client = client; + } +} diff --git a/src/KubernetesClient.Kubectl/Beta/Kubectl.Cordon.cs b/src/KubernetesClient.Kubectl/Beta/Kubectl.Cordon.cs new file mode 100644 index 000000000..c1d85a531 --- /dev/null +++ b/src/KubernetesClient.Kubectl/Beta/Kubectl.Cordon.cs @@ -0,0 +1,14 @@ +namespace k8s.kubectl.beta; + +public partial class Kubectl +{ + public void Cordon(string nodeName) + { + client.Cordon(nodeName).GetAwaiter().GetResult(); + } + + public void Uncordon(string nodeName) + { + client.Uncordon(nodeName).GetAwaiter().GetResult(); + } +} diff --git a/src/KubernetesClient.Kubectl/Beta/Kubectl.Version.cs b/src/KubernetesClient.Kubectl/Beta/Kubectl.Version.cs new file mode 100644 index 000000000..ffcb49375 --- /dev/null +++ b/src/KubernetesClient.Kubectl/Beta/Kubectl.Version.cs @@ -0,0 +1,12 @@ +using static k8s.kubectl.beta.AsyncKubectl; + +namespace k8s.kubectl.beta; + +public partial class Kubectl +{ + // TODO should auto generate this + public KubernetesSDKVersion Version() + { + return client.Version().GetAwaiter().GetResult(); + } +} diff --git a/src/KubernetesClient.Kubectl/Beta/Kubectl.cs b/src/KubernetesClient.Kubectl/Beta/Kubectl.cs new file mode 100644 index 000000000..699bbebb8 --- /dev/null +++ b/src/KubernetesClient.Kubectl/Beta/Kubectl.cs @@ -0,0 +1,11 @@ +namespace k8s.kubectl.beta; + +public partial class Kubectl +{ + private readonly AsyncKubectl client; + + public Kubectl(IKubernetes client) + { + this.client = new AsyncKubectl(client); + } +} diff --git a/src/KubernetesClient.Kubectl/KubernetesClient.Kubectl.csproj b/src/KubernetesClient.Kubectl/KubernetesClient.Kubectl.csproj new file mode 100644 index 000000000..25440a1f7 --- /dev/null +++ b/src/KubernetesClient.Kubectl/KubernetesClient.Kubectl.csproj @@ -0,0 +1,17 @@ + + + + net8.0;net9.0 + enable + enable + k8s.kubectl + + + + + + + + + + diff --git a/src/KubernetesClient/AbstractKubernetes.cs b/src/KubernetesClient/AbstractKubernetes.cs new file mode 100644 index 000000000..1d6ed2ae7 --- /dev/null +++ b/src/KubernetesClient/AbstractKubernetes.cs @@ -0,0 +1,105 @@ +using System.Net.Http; +using System.Net.Http.Headers; + +namespace k8s; + +public abstract partial class AbstractKubernetes +{ + private static class HttpMethods + { + public static readonly HttpMethod Delete = HttpMethod.Delete; + public static readonly HttpMethod Get = HttpMethod.Get; + public static readonly HttpMethod Head = HttpMethod.Head; + public static readonly HttpMethod Options = HttpMethod.Options; + public static readonly HttpMethod Post = HttpMethod.Post; + public static readonly HttpMethod Put = HttpMethod.Put; + public static readonly HttpMethod Trace = HttpMethod.Trace; + +#if NETSTANDARD2_0 || NET48 + public static readonly HttpMethod Patch = new HttpMethod("PATCH"); +#else + public static readonly HttpMethod Patch = HttpMethod.Patch; +#endif + + } + + private sealed class QueryBuilder + { + private readonly List parameters = new List(); + + public void Append(string key, params object[] values) + { + foreach (var value in values) + { + switch (value) + { + case int intval: + parameters.Add($"{key}={intval}"); + break; + case string strval: + parameters.Add($"{key}={Uri.EscapeDataString(strval)}"); + break; + case bool boolval: + parameters.Add($"{key}={(boolval ? "true" : "false")}"); + break; + default: + // null + break; + } + } + } + + public override string ToString() + { + if (parameters.Count > 0) + { + return $"?{string.Join("&", parameters)}"; + } + + return ""; + } + } + + public virtual TimeSpan HttpClientTimeout { get; set; } = TimeSpan.FromSeconds(100); + + protected virtual MediaTypeHeaderValue GetHeader(object body) + { + if (body == null) + { + throw new ArgumentNullException(nameof(body)); + } + + if (body is V1Patch patch) + { + return GetHeader(patch); + } + + return MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + + private MediaTypeHeaderValue GetHeader(V1Patch body) + { + if (body == null) + { + throw new ArgumentNullException(nameof(body)); + } + + switch (body.Type) + { + case V1Patch.PatchType.JsonPatch: + return MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); + case V1Patch.PatchType.MergePatch: + return MediaTypeHeaderValue.Parse("application/merge-patch+json; charset=utf-8"); + case V1Patch.PatchType.StrategicMergePatch: + return MediaTypeHeaderValue.Parse("application/strategic-merge-patch+json; charset=utf-8"); + case V1Patch.PatchType.ApplyPatch: + return MediaTypeHeaderValue.Parse("application/apply-patch+yaml; charset=utf-8"); + default: + throw new ArgumentOutOfRangeException(nameof(body.Type), ""); + } + } + + protected abstract Task> CreateResultAsync(HttpRequestMessage httpRequest, HttpResponseMessage httpResponse, bool? watch, CancellationToken cancellationToken); + + protected abstract Task SendRequest(string relativeUri, HttpMethod method, IReadOnlyDictionary> customHeaders, T body, CancellationToken cancellationToken); +} diff --git a/src/KubernetesClient/Authentication/BasicAuthenticationCredentials.cs b/src/KubernetesClient/Authentication/BasicAuthenticationCredentials.cs new file mode 100644 index 000000000..0f0964544 --- /dev/null +++ b/src/KubernetesClient/Authentication/BasicAuthenticationCredentials.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Globalization; +using System.Net.Http; +using System.Net.Http.Headers; +using System.Text; + +namespace k8s.Authentication +{ + /// + /// Basic Auth credentials for use with a REST Service Client. + /// + public class BasicAuthenticationCredentials : ServiceClientCredentials + { + /// + /// Basic auth UserName. + /// + public string UserName { get; set; } + + /// + /// Basic auth password. + /// + public string Password { get; set; } + + /// + /// Add the Basic Authentication Header to each outgoing request + /// + /// The outgoing request + /// A token to cancel the operation + /// void + public override Task ProcessHttpRequestAsync( + HttpRequestMessage request, + CancellationToken cancellationToken) + { + if (request == null) + { + throw new ArgumentNullException("request"); + } + + // Add username and password to "Basic" header of each request. + request.Headers.Authorization = new AuthenticationHeaderValue( + "Basic", + Convert.ToBase64String(Encoding.UTF8.GetBytes(string.Format( + CultureInfo.InvariantCulture, + "{0}:{1}", + UserName, + Password).ToCharArray()))); + return Task.CompletedTask; + } + } +} diff --git a/src/KubernetesClient/Authentication/ExecTokenProvider.cs b/src/KubernetesClient/Authentication/ExecTokenProvider.cs new file mode 100644 index 000000000..26bc9b961 --- /dev/null +++ b/src/KubernetesClient/Authentication/ExecTokenProvider.cs @@ -0,0 +1,47 @@ +using k8s.KubeConfigModels; +using System.Net.Http.Headers; + +namespace k8s.Authentication +{ + public class ExecTokenProvider : ITokenProvider + { + private readonly ExternalExecution exec; + private ExecCredentialResponse response; + + public ExecTokenProvider(ExternalExecution exec) + { + this.exec = exec; + } + + private bool NeedsRefresh() + { + if (response?.Status == null) + { + return true; + } + + if (response.Status.ExpirationTimestamp == null) + { + return false; + } + + return DateTime.UtcNow.AddSeconds(30) > response.Status.ExpirationTimestamp; + } + + public async Task GetAuthenticationHeaderAsync(CancellationToken cancellationToken) + { + if (NeedsRefresh()) + { + await RefreshToken().ConfigureAwait(false); + } + + return new AuthenticationHeaderValue("Bearer", response.Status.Token); + } + + private async Task RefreshToken() + { + response = + await Task.Run(() => KubernetesClientConfiguration.ExecuteExternalCommand(this.exec)).ConfigureAwait(false); + } + } +} diff --git a/src/KubernetesClient/Authentication/GcpTokenProvider.cs b/src/KubernetesClient/Authentication/GcpTokenProvider.cs deleted file mode 100644 index a5d86b38e..000000000 --- a/src/KubernetesClient/Authentication/GcpTokenProvider.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System; -using System.Diagnostics; -using System.Net.Http.Headers; -using System.Threading; -using System.Threading.Tasks; -using k8s.Exceptions; -using Microsoft.Rest; -using Newtonsoft.Json.Linq; - -namespace k8s.Authentication -{ - public class GcpTokenProvider : ITokenProvider - { - private readonly string _gcloudCli; - private string _token; - private DateTime _expiry; - - public GcpTokenProvider(string gcloudCli) - { - _gcloudCli = gcloudCli; - } - - public async Task GetAuthenticationHeaderAsync(CancellationToken cancellationToken) - { - if (DateTime.UtcNow.AddSeconds(30) > _expiry) - { - await RefreshToken().ConfigureAwait(false); - } - - return new AuthenticationHeaderValue("Bearer", _token); - } - - private async Task RefreshToken() - { - var process = new Process - { - StartInfo = - { - FileName = _gcloudCli, - Arguments = "config config-helper --format=json", - UseShellExecute = false, - CreateNoWindow = true, - RedirectStandardOutput = true, - RedirectStandardError = true, - }, - EnableRaisingEvents = true, - }; - var tcs = new TaskCompletionSource(); - process.Exited += (sender, arg) => - { - tcs.SetResult(true); - }; - process.Start(); - var output = process.StandardOutput.ReadToEndAsync(); - var err = process.StandardError.ReadToEndAsync(); - - await Task.WhenAll(tcs.Task, output, err).ConfigureAwait(false); - - if (process.ExitCode != 0) - { - throw new KubernetesClientException($"Unable to obtain a token via gcloud command. Error code {process.ExitCode}. \n {err}"); - } - - var json = JToken.Parse(await output.ConfigureAwait(false)); - _token = json["credential"]["access_token"].Value(); - _expiry = json["credential"]["token_expiry"].Value(); - } - } -} diff --git a/src/KubernetesClient/Authentication/ITokenProvider.cs b/src/KubernetesClient/Authentication/ITokenProvider.cs new file mode 100644 index 000000000..a04f7600b --- /dev/null +++ b/src/KubernetesClient/Authentication/ITokenProvider.cs @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net.Http.Headers; + +#pragma warning disable SA1606 +#pragma warning disable SA1614 +namespace k8s.Authentication +{ + /// + /// Interface to a source of access tokens. + /// + public interface ITokenProvider + { + /// + /// + /// + /// + /// AuthenticationHeaderValue + Task GetAuthenticationHeaderAsync(CancellationToken cancellationToken); + } +} +#pragma warning restore SA1614 +#pragma warning restore SA1606 diff --git a/src/KubernetesClient/Authentication/OidcTokenProvider.cs b/src/KubernetesClient/Authentication/OidcTokenProvider.cs index 4043211b4..912ea0fde 100644 --- a/src/KubernetesClient/Authentication/OidcTokenProvider.cs +++ b/src/KubernetesClient/Authentication/OidcTokenProvider.cs @@ -1,27 +1,28 @@ -using IdentityModel.OidcClient; using k8s.Exceptions; -using Microsoft.Rest; -using System; -using System.IdentityModel.Tokens.Jwt; +using System.Net.Http; using System.Net.Http.Headers; -using System.Threading; -using System.Threading.Tasks; +using System.Text; namespace k8s.Authentication { public class OidcTokenProvider : ITokenProvider { - private OidcClient _oidcClient; + private readonly string _clientId; + private readonly string _clientSecret; + private readonly string _idpIssuerUrl; + private string _idToken; private string _refreshToken; private DateTimeOffset _expiry; public OidcTokenProvider(string clientId, string clientSecret, string idpIssuerUrl, string idToken, string refreshToken) { + _clientId = clientId; + _clientSecret = clientSecret; + _idpIssuerUrl = idpIssuerUrl; _idToken = idToken; _refreshToken = refreshToken; - _oidcClient = getClient(clientId, clientSecret, idpIssuerUrl); - _expiry = getExpiryFromToken(); + _expiry = GetExpiryFromToken(); } public async Task GetAuthenticationHeaderAsync(CancellationToken cancellationToken) @@ -34,49 +35,77 @@ public async Task GetAuthenticationHeaderAsync(Cancel return new AuthenticationHeaderValue("Bearer", _idToken); } - private DateTime getExpiryFromToken() + private DateTimeOffset GetExpiryFromToken() { - int expiry; - var handler = new JwtSecurityTokenHandler(); try { - var token = handler.ReadJwtToken(_idToken); - expiry = token.Payload.Exp ?? 0; + var parts = _idToken.Split('.'); + var payload = parts[1]; + var jsonBytes = Base64UrlDecode(payload); + var json = Encoding.UTF8.GetString(jsonBytes); + + using var document = JsonDocument.Parse(json); + if (document.RootElement.TryGetProperty("exp", out var expElement)) + { + var exp = expElement.GetInt64(); + return DateTimeOffset.FromUnixTimeSeconds(exp); + } } catch { - expiry = 0; + // ignore to default } - return DateTimeOffset.FromUnixTimeSeconds(expiry).UtcDateTime; + return default; } - private OidcClient getClient(string clientId, string clientSecret, string idpIssuerUrl) + private static byte[] Base64UrlDecode(string input) { - OidcClientOptions options = new OidcClientOptions + var output = input.Replace('-', '+').Replace('_', '/'); + switch (output.Length % 4) { - ClientId = clientId, - ClientSecret = clientSecret ?? "", - Authority = idpIssuerUrl, - }; + case 2: output += "=="; break; + case 3: output += "="; break; + } - return new OidcClient(options); + return Convert.FromBase64String(output); } private async Task RefreshToken() { try { - var result = await _oidcClient.RefreshTokenAsync(_refreshToken).ConfigureAwait(false); + using var httpClient = new HttpClient(); + var request = new HttpRequestMessage(HttpMethod.Post, _idpIssuerUrl); + request.Content = new FormUrlEncodedContent(new Dictionary + { + { "grant_type", "refresh_token" }, + { "client_id", _clientId }, + { "client_secret", _clientSecret }, + { "refresh_token", _refreshToken }, + }); + + var response = await httpClient.SendAsync(request).ConfigureAwait(false); + response.EnsureSuccessStatusCode(); - if (result.IsError) + var responseContent = await response.Content.ReadAsStringAsync().ConfigureAwait(false); + var jsonDocument = JsonDocument.Parse(responseContent); + + if (jsonDocument.RootElement.TryGetProperty("id_token", out var idTokenElement)) + { + _idToken = idTokenElement.GetString(); + } + + if (jsonDocument.RootElement.TryGetProperty("refresh_token", out var refreshTokenElement)) { - throw new Exception(result.Error); + _refreshToken = refreshTokenElement.GetString(); } - _idToken = result.IdentityToken; - _refreshToken = result.RefreshToken; - _expiry = result.AccessTokenExpiration; + if (jsonDocument.RootElement.TryGetProperty("expires_in", out var expiresInElement)) + { + var expiresIn = expiresInElement.GetInt32(); + _expiry = DateTimeOffset.UtcNow.AddSeconds(expiresIn); + } } catch (Exception e) { diff --git a/src/KubernetesClient/Authentication/ServiceClientCredentials.cs b/src/KubernetesClient/Authentication/ServiceClientCredentials.cs new file mode 100644 index 000000000..d8ec8bb67 --- /dev/null +++ b/src/KubernetesClient/Authentication/ServiceClientCredentials.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net.Http; + +namespace k8s.Authentication +{ + /// + /// ServiceClientCredentials is the abstraction for credentials used by ServiceClients accessing REST services. + /// + public abstract class ServiceClientCredentials + { + /// + /// Apply the credentials to the HTTP request. + /// + /// The HTTP request message. + /// Cancellation token. + /// + /// Task that will complete when processing has finished. + /// + public virtual Task ProcessHttpRequestAsync(HttpRequestMessage request, CancellationToken cancellationToken) + { + // Return an empty task by default + return Task.CompletedTask; + } + } +} diff --git a/src/KubernetesClient/Authentication/StringTokenProvider.cs b/src/KubernetesClient/Authentication/StringTokenProvider.cs new file mode 100644 index 000000000..680dd2f9b --- /dev/null +++ b/src/KubernetesClient/Authentication/StringTokenProvider.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net.Http.Headers; + +namespace k8s.Authentication +{ + /// + /// A simple token provider that always provides a static access token. + /// + public sealed class StringTokenProvider : ITokenProvider + { + private readonly string _accessToken; + private readonly string _type; + + /// + /// Initializes a new instance of the class. + /// Create a token provider for the given token type that returns the given + /// access token. + /// + /// The access token to return. + /// The token type of the given access token. + public StringTokenProvider(string accessToken, string tokenType) + { + _accessToken = accessToken; + _type = tokenType; + } + + /// + /// Gets the token type of this access token. + /// + public string TokenType => _type; + + /// + /// Returns the static access token. + /// + /// The cancellation token for this action. + /// This will not be used since the returned token is static. + /// The access token. + public Task GetAuthenticationHeaderAsync(CancellationToken cancellationToken) + { + return Task.FromResult(new AuthenticationHeaderValue(_type, _accessToken)); + } + } +} diff --git a/src/KubernetesClient/Authentication/TokenCredentials.cs b/src/KubernetesClient/Authentication/TokenCredentials.cs new file mode 100644 index 000000000..ed272627e --- /dev/null +++ b/src/KubernetesClient/Authentication/TokenCredentials.cs @@ -0,0 +1,119 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net.Http; + +namespace k8s.Authentication +{ + /// + /// Token based credentials for use with a REST Service Client. + /// + public class TokenCredentials : ServiceClientCredentials + { + /// + /// The bearer token type, as serialized in an http Authentication header. + /// + private const string BearerTokenType = "Bearer"; + + /// + /// Gets secure token used to authenticate against Microsoft Azure API. + /// No anonymous requests are allowed. + /// + protected ITokenProvider TokenProvider { get; private set; } + + /// + /// Gets Tenant ID + /// + public string TenantId { get; private set; } + + /// + /// Gets UserInfo.DisplayableId + /// + public string CallerId { get; private set; } + + /// + /// Initializes a new instance of the + /// class with the given 'Bearer' token. + /// + /// Valid JSON Web Token (JWT). + public TokenCredentials(string token) + : this(token, BearerTokenType) + { + } + + /// + /// Initializes a new instance of the + /// class with the given token and token type. + /// + /// Valid JSON Web Token (JWT). + /// The token type of the given token. + public TokenCredentials(string token, string tokenType) + : this(new StringTokenProvider(token, tokenType)) + { + if (string.IsNullOrEmpty(token)) + { + throw new ArgumentNullException("token"); + } + + if (string.IsNullOrEmpty(tokenType)) + { + throw new ArgumentNullException("tokenType"); + } + } + + /// + /// Initializes a new instance of the class. + /// Create an access token credentials object, given an interface to a token source. + /// + /// The source of tokens for these credentials. + public TokenCredentials(ITokenProvider tokenProvider) + { + if (tokenProvider == null) + { + throw new ArgumentNullException("tokenProvider"); + } + + TokenProvider = tokenProvider; + } + + /// + /// Initializes a new instance of the class. + /// Create an access token credentials object, given an interface to a token source. + /// + /// The source of tokens for these credentials. + /// Tenant ID from AuthenticationResult + /// UserInfo.DisplayableId field from AuthenticationResult + public TokenCredentials(ITokenProvider tokenProvider, string tenantId, string callerId) + : this(tokenProvider) + { + TenantId = tenantId; + CallerId = callerId; + } + + /// + /// Apply the credentials to the HTTP request. + /// + /// The HTTP request. + /// Cancellation token. + /// + /// Task that will complete when processing has completed. + /// + public override async Task ProcessHttpRequestAsync( + HttpRequestMessage request, + CancellationToken cancellationToken) + { + if (request == null) + { + throw new ArgumentNullException(nameof(request)); + } + + if (TokenProvider == null) + { + throw new ArgumentNullException(nameof(TokenProvider)); + } + + request.Headers.Authorization = await TokenProvider.GetAuthenticationHeaderAsync(cancellationToken).ConfigureAwait(false); + await base.ProcessHttpRequestAsync(request, cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/KubernetesClient/Authentication/TokenFileAuth.cs b/src/KubernetesClient/Authentication/TokenFileAuth.cs index de70b02a8..5d423aeb4 100644 --- a/src/KubernetesClient/Authentication/TokenFileAuth.cs +++ b/src/KubernetesClient/Authentication/TokenFileAuth.cs @@ -1,9 +1,4 @@ -using System; using System.Net.Http.Headers; -using System.IO; -using System.Threading; -using System.Threading.Tasks; -using Microsoft.Rest; namespace k8s.Authentication { @@ -18,13 +13,21 @@ public TokenFileAuth(string tokenFile) TokenFile = tokenFile; } +#if NETSTANDARD2_1_OR_GREATER || NET5_0_OR_GREATER public async Task GetAuthenticationHeaderAsync(CancellationToken cancellationToken) +#else + public Task GetAuthenticationHeaderAsync(CancellationToken cancellationToken) +#endif { if (TokenExpiresAt < DateTime.UtcNow) { +#if NETSTANDARD2_1_OR_GREATER || NET5_0_OR_GREATER token = await File.ReadAllTextAsync(TokenFile, cancellationToken) .ContinueWith(r => r.Result.Trim(), cancellationToken) .ConfigureAwait(false); +#else + token = File.ReadAllText(TokenFile).Trim(); +#endif // in fact, the token has a expiry of 10 minutes and kubelet // refreshes it at 8 minutes of its lifetime. setting the expiry // of 1 minute makes sure the token is reloaded regularly so @@ -33,8 +36,11 @@ public async Task GetAuthenticationHeaderAsync(Cancel // < 10-8-1 minute. TokenExpiresAt = DateTime.UtcNow.AddMinutes(1); } - +#if NETSTANDARD2_1_OR_GREATER || NET5_0_OR_GREATER return new AuthenticationHeaderValue("Bearer", token); +#else + return Task.FromResult(new AuthenticationHeaderValue("Bearer", token)); +#endif } } } diff --git a/src/KubernetesClient/Autorest/HttpExtensions.cs b/src/KubernetesClient/Autorest/HttpExtensions.cs new file mode 100644 index 000000000..a5f6279c6 --- /dev/null +++ b/src/KubernetesClient/Autorest/HttpExtensions.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net.Http; +using System.Net.Http.Headers; + +namespace k8s.Autorest +{ + /// + /// Extensions for manipulating HTTP request and response objects. + /// + internal static class HttpExtensions + { + /// + /// Get the content headers of an HttpRequestMessage. + /// + /// The request message. + /// The content headers. + public static HttpHeaders GetContentHeaders(this HttpRequestMessage request) + { + return request?.Content?.Headers; + } + + /// + /// Get the content headers of an HttpResponseMessage. + /// + /// The response message. + /// The content headers. + public static HttpHeaders GetContentHeaders(this HttpResponseMessage response) + { + return response?.Content?.Headers; + } + } +} diff --git a/src/KubernetesClient/Autorest/HttpMessageWrapper.cs b/src/KubernetesClient/Autorest/HttpMessageWrapper.cs new file mode 100644 index 000000000..2d91aeace --- /dev/null +++ b/src/KubernetesClient/Autorest/HttpMessageWrapper.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net.Http.Headers; + +namespace k8s.Autorest +{ + /// + /// Base class used to wrap HTTP requests and responses to preserve data after disposal of + /// HttpClient. + /// + public abstract class HttpMessageWrapper + { + /// + /// Initializes a new instance of the class. + /// + protected HttpMessageWrapper() + { + Headers = new Dictionary>(); + } + + /// + /// Exposes the HTTP message contents. + /// + public string Content { get; set; } + + /// + /// Gets the collection of HTTP headers. + /// + public IDictionary> Headers { get; private set; } + + /// + /// Copies HTTP message headers to the error object. + /// + /// Collection of HTTP headers. + protected void CopyHeaders(HttpHeaders headers) + { + if (headers != null) + { + foreach (KeyValuePair> header in headers) + { + IEnumerable values = null; + if (Headers.TryGetValue(header.Key, out values)) + { + values = Enumerable.Concat(values, header.Value); + } + else + { + values = header.Value; + } + + Headers[header.Key] = values; + } + } + } + } +} diff --git a/src/KubernetesClient/Autorest/HttpOperationException.cs b/src/KubernetesClient/Autorest/HttpOperationException.cs new file mode 100644 index 000000000..e5da86864 --- /dev/null +++ b/src/KubernetesClient/Autorest/HttpOperationException.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +namespace k8s.Autorest +{ + /// + /// Exception thrown for an invalid response with custom error information. + /// + public class HttpOperationException : Exception + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the response object. + /// + public object Body { get; set; } + + /// + /// Initializes a new instance of the class. + /// + public HttpOperationException() + { + } + + /// + /// Initializes a new instance of the class. + /// + /// The exception message. + public HttpOperationException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// The exception message. + /// Inner exception. + public HttpOperationException(string message, Exception innerException) + : base(message, innerException) + { + } + } +} diff --git a/src/KubernetesClient/Autorest/HttpOperationResponse.cs b/src/KubernetesClient/Autorest/HttpOperationResponse.cs new file mode 100644 index 000000000..e05b0f692 --- /dev/null +++ b/src/KubernetesClient/Autorest/HttpOperationResponse.cs @@ -0,0 +1,132 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net.Http; + +namespace k8s.Autorest +{ + /// + /// Represents the base return type of all ServiceClient REST operations without response body. + /// +#pragma warning disable SA1649 // File name should match first type name + public interface IHttpOperationResponse +#pragma warning restore SA1649 // File name should match first type name + { + /// + /// Gets information about the associated HTTP request. + /// + HttpRequestMessage Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + HttpResponseMessage Response { get; set; } + } + + /// + /// Represents the base return type of all ServiceClient REST operations with response body. + /// +#pragma warning disable SA1618 // Generic type parameters should be documented + public interface IHttpOperationResponse : IHttpOperationResponse +#pragma warning restore SA1618 // Generic type parameters should be documented + { + /// + /// Gets or sets the response object. + /// + T Body { get; set; } + } + +#pragma warning disable SA1622 // Generic type parameter documentation should have text + /// + /// Represents the base return type of all ServiceClient REST operations with a header response. + /// + /// + public interface IHttpOperationHeaderResponse : IHttpOperationResponse +#pragma warning restore SA1622 // Generic type parameter documentation should have text + { + /// + /// Gets or sets the response header object. + /// + T Headers { get; set; } + } + + /// + /// Represents the base return type of all ServiceClient REST operations with response body and header. + /// +#pragma warning disable SA1618 // Generic type parameters should be documented + public interface IHttpOperationResponse : IHttpOperationResponse, IHttpOperationHeaderResponse +#pragma warning restore SA1618 // Generic type parameters should be documented + { + } + + /// + /// Represents the base return type of all ServiceClient REST operations without response body. + /// + public class HttpOperationResponse : IHttpOperationResponse, IDisposable + { + /// + /// Indicates whether the HttpOperationResponse has been disposed. + /// + private bool _disposed; + + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessage Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessage Response { get; set; } + + /// + /// Dispose the HttpOperationResponse. + /// + public void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); + } + + /// + /// Dispose the HttpClient and Handlers. + /// + /// True to release both managed and unmanaged resources; false to releases only unmanaged resources. + protected virtual void Dispose(bool disposing) + { + if (!_disposed) + { + _disposed = true; + + // Dispose the request and response + if (Request != null) + { + Request.Dispose(); + } + + if (Response != null) + { + Response.Dispose(); + } + + Request = null; + Response = null; + } + } + } + + /// + /// Represents the base return type of all ServiceClient REST operations. + /// +#pragma warning disable SA1402 // File may only contain a single type +#pragma warning disable SA1618 // Generic type parameters should be documented + public class HttpOperationResponse : HttpOperationResponse, IHttpOperationResponse +#pragma warning restore SA1618 // Generic type parameters should be documented +#pragma warning restore SA1402 // File may only contain a single type + { + /// + /// Gets or sets the response object. + /// + public T Body { get; set; } + } +} diff --git a/src/KubernetesClient/Autorest/HttpRequestMessageWrapper.cs b/src/KubernetesClient/Autorest/HttpRequestMessageWrapper.cs new file mode 100644 index 000000000..067429e24 --- /dev/null +++ b/src/KubernetesClient/Autorest/HttpRequestMessageWrapper.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net.Http; + +namespace k8s.Autorest +{ + /// + /// Wrapper around HttpRequestMessage type that copies properties of HttpRequestMessage so that + /// they are available after the HttpClient gets disposed. + /// + public class HttpRequestMessageWrapper : HttpMessageWrapper + { + /// + /// Initializes a new instance of the class from HttpRequestMessage. + /// and content. + /// +#pragma warning disable SA1611 // Element parameters should be documented + public HttpRequestMessageWrapper(HttpRequestMessage httpRequest, string content) +#pragma warning restore SA1611 // Element parameters should be documented + { + if (httpRequest == null) + { + throw new ArgumentNullException("httpRequest"); + } + + CopyHeaders(httpRequest.Headers); + CopyHeaders(httpRequest.GetContentHeaders()); + + Content = content; + Method = httpRequest.Method; + RequestUri = httpRequest.RequestUri; + } + + /// + /// Gets or sets the HTTP method used by the HTTP request message. + /// + public HttpMethod Method { get; protected set; } + + /// + /// Gets or sets the Uri used for the HTTP request. + /// + public Uri RequestUri { get; protected set; } + } +} diff --git a/src/KubernetesClient/Autorest/HttpResponseMessageWrapper.cs b/src/KubernetesClient/Autorest/HttpResponseMessageWrapper.cs new file mode 100644 index 000000000..aaa822fa4 --- /dev/null +++ b/src/KubernetesClient/Autorest/HttpResponseMessageWrapper.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net; +using System.Net.Http; + +namespace k8s.Autorest +{ + /// + /// Wrapper around HttpResponseMessage type that copies properties of HttpResponseMessage so that + /// they are available after the HttpClient gets disposed. + /// + public class HttpResponseMessageWrapper : HttpMessageWrapper + { + /// + /// Initializes a new instance of the class from HttpResponseMessage. + /// and content. + /// +#pragma warning disable SA1611 // Element parameters should be documented + public HttpResponseMessageWrapper(HttpResponseMessage httpResponse, string content) +#pragma warning restore SA1611 // Element parameters should be documented + { + if (httpResponse == null) + { + throw new ArgumentNullException("httpResponse"); + } + + CopyHeaders(httpResponse.Headers); + CopyHeaders(httpResponse.GetContentHeaders()); + + Content = content; + StatusCode = httpResponse.StatusCode; + ReasonPhrase = httpResponse.ReasonPhrase; + } + + /// + /// Gets or sets the status code of the HTTP response. + /// + public HttpStatusCode StatusCode { get; protected set; } + + /// + /// Exposes the reason phrase, typically sent along with the status code. + /// + public string ReasonPhrase { get; protected set; } + } +} diff --git a/src/KubernetesClient/ByteBuffer.cs b/src/KubernetesClient/ByteBuffer.cs index b83a7dfac..a6bc92fa0 100644 --- a/src/KubernetesClient/ByteBuffer.cs +++ b/src/KubernetesClient/ByteBuffer.cs @@ -1,7 +1,5 @@ -using System; using System.Buffers; using System.Diagnostics; -using System.Threading; namespace k8s { diff --git a/src/KubernetesClient/CertUtils.cs b/src/KubernetesClient/CertUtils.cs index 497d2d092..7a398d7e8 100644 --- a/src/KubernetesClient/CertUtils.cs +++ b/src/KubernetesClient/CertUtils.cs @@ -1,13 +1,4 @@ using k8s.Exceptions; -#if !NET5_0_OR_GREATER -using Org.BouncyCastle.Crypto; -using Org.BouncyCastle.OpenSsl; -using Org.BouncyCastle.Pkcs; -using Org.BouncyCastle.Security; -using Org.BouncyCastle.X509; -#endif -using System; -using System.IO; using System.Runtime.InteropServices; using System.Security.Cryptography.X509Certificates; using System.Text; @@ -24,21 +15,9 @@ internal static class CertUtils public static X509Certificate2Collection LoadPemFileCert(string file) { var certCollection = new X509Certificate2Collection(); - using (var stream = FileUtils.FileSystem().File.OpenRead(file)) + using (var stream = FileSystem.Current.OpenRead(file)) { -#if NET5_0_OR_GREATER certCollection.ImportFromPem(new StreamReader(stream).ReadToEnd()); -#else - var certs = new X509CertificateParser().ReadCertificates(stream); - - // Convert BouncyCastle X509Certificates to the .NET cryptography implementation and add - // it to the certificate collection - // - foreach (Org.BouncyCastle.X509.X509Certificate cert in certs) - { - certCollection.Add(new X509Certificate2(cert.GetEncoded())); - } -#endif } return certCollection; @@ -56,7 +35,6 @@ public static X509Certificate2 GeneratePfx(KubernetesClientConfiguration config) throw new ArgumentNullException(nameof(config)); } -#if NET5_0_OR_GREATER string keyData = null; string certData = null; @@ -96,86 +74,30 @@ public static X509Certificate2 GeneratePfx(KubernetesClientConfiguration config) // see https://github.com/kubernetes-client/csharp/issues/737 if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { - cert = new X509Certificate2(cert.Export(X509ContentType.Pkcs12)); - } - - return cert; -#else - - byte[] keyData = null; - byte[] certData = null; - - if (!string.IsNullOrWhiteSpace(config.ClientCertificateKeyData)) - { - keyData = Convert.FromBase64String(config.ClientCertificateKeyData); - } - - if (!string.IsNullOrWhiteSpace(config.ClientKeyFilePath)) - { - keyData = File.ReadAllBytes(config.ClientKeyFilePath); - } - - if (keyData == null) - { - throw new KubeConfigException("keyData is empty"); - } - - if (!string.IsNullOrWhiteSpace(config.ClientCertificateData)) - { - certData = Convert.FromBase64String(config.ClientCertificateData); - } - - if (!string.IsNullOrWhiteSpace(config.ClientCertificateFilePath)) - { - certData = File.ReadAllBytes(config.ClientCertificateFilePath); - } - - if (certData == null) - { - throw new KubeConfigException("certData is empty"); - } - - var cert = new X509CertificateParser().ReadCertificate(new MemoryStream(certData)); - // key usage is a bit string, zero-th bit is 'digitalSignature' - // See https://www.alvestrand.no/objectid/2.5.29.15.html for more details. - if (cert != null && cert.GetKeyUsage() != null && !cert.GetKeyUsage()[0]) - { - throw new Exception( - "Client certificates must be marked for digital signing. " + - "See https://github.com/kubernetes-client/csharp/issues/319"); - } - - object obj; - using (var reader = new StreamReader(new MemoryStream(keyData))) - { - obj = new PemReader(reader).ReadObject(); - var key = obj as AsymmetricCipherKeyPair; - if (key != null) - { - var cipherKey = key; - obj = cipherKey.Private; - } - } - - var keyParams = (AsymmetricKeyParameter)obj; - - var store = new Pkcs12StoreBuilder().Build(); - store.SetKeyEntry("K8SKEY", new AsymmetricKeyEntry(keyParams), new[] { new X509CertificateEntry(cert) }); - - using (var pkcs = new MemoryStream()) - { - store.Save(pkcs, new char[0], new SecureRandom()); + // This null password is to change the constructor to fix this KB: + // https://support.microsoft.com/en-us/topic/kb5025823-change-in-how-net-applications-import-x-509-certificates-bf81c936-af2b-446e-9f7a-016f4713b46b + string nullPassword = null; if (config.ClientCertificateKeyStoreFlags.HasValue) { - return new X509Certificate2(pkcs.ToArray(), "", config.ClientCertificateKeyStoreFlags.Value); +#if NET9_0_OR_GREATER + cert = X509CertificateLoader.LoadPkcs12(cert.Export(X509ContentType.Pkcs12), nullPassword, config.ClientCertificateKeyStoreFlags.Value); +#else + cert = new X509Certificate2(cert.Export(X509ContentType.Pkcs12), nullPassword, config.ClientCertificateKeyStoreFlags.Value); +#endif + } else { - return new X509Certificate2(pkcs.ToArray()); +#if NET9_0_OR_GREATER + cert = X509CertificateLoader.LoadPkcs12(cert.Export(X509ContentType.Pkcs12), nullPassword); +#else + cert = new X509Certificate2(cert.Export(X509ContentType.Pkcs12), nullPassword); +#endif } } -#endif + + return cert; } /// diff --git a/src/KubernetesClient/ClientSets/ClientSet.cs b/src/KubernetesClient/ClientSets/ClientSet.cs new file mode 100644 index 000000000..53aa37df9 --- /dev/null +++ b/src/KubernetesClient/ClientSets/ClientSet.cs @@ -0,0 +1,16 @@ +namespace k8s.ClientSets +{ + /// + /// Represents a base class for clients that interact with Kubernetes resources. + /// Provides shared functionality for derived resource-specific clients. + /// + public partial class ClientSet + { + private readonly Kubernetes _kubernetes; + + public ClientSet(Kubernetes kubernetes) + { + _kubernetes = kubernetes; + } + } +} diff --git a/src/KubernetesClient/ClientSets/ResourceClient.cs b/src/KubernetesClient/ClientSets/ResourceClient.cs new file mode 100644 index 000000000..bbf1c43e8 --- /dev/null +++ b/src/KubernetesClient/ClientSets/ResourceClient.cs @@ -0,0 +1,16 @@ +namespace k8s.ClientSets +{ + /// + /// Represents a set of Kubernetes clients for interacting with the Kubernetes API. + /// This class provides access to various client implementations for managing Kubernetes resources. + /// + public abstract class ResourceClient + { + protected Kubernetes Client { get; } + + public ResourceClient(Kubernetes kubernetes) + { + Client = kubernetes; + } + } +} diff --git a/src/KubernetesClient/Exceptions/KubeConfigException.cs b/src/KubernetesClient/Exceptions/KubeConfigException.cs index e0cfb0d01..da7b6538f 100644 --- a/src/KubernetesClient/Exceptions/KubeConfigException.cs +++ b/src/KubernetesClient/Exceptions/KubeConfigException.cs @@ -1,5 +1,3 @@ -using System; - namespace k8s.Exceptions { /// diff --git a/src/KubernetesClient/Exceptions/KubernetesClientException.cs b/src/KubernetesClient/Exceptions/KubernetesClientException.cs index dde29133e..6f2fb49bb 100644 --- a/src/KubernetesClient/Exceptions/KubernetesClientException.cs +++ b/src/KubernetesClient/Exceptions/KubernetesClientException.cs @@ -1,5 +1,3 @@ -using System; - namespace k8s.Exceptions { /// diff --git a/src/KubernetesClient/ExecAsyncCallback.cs b/src/KubernetesClient/ExecAsyncCallback.cs index 6ad735d22..461f980f2 100644 --- a/src/KubernetesClient/ExecAsyncCallback.cs +++ b/src/KubernetesClient/ExecAsyncCallback.cs @@ -1,6 +1,3 @@ -using System.IO; -using System.Threading.Tasks; - namespace k8s { /// diff --git a/src/KubernetesClient/Extensions.cs b/src/KubernetesClient/Extensions.cs index 09696c93c..270a74724 100644 --- a/src/KubernetesClient/Extensions.cs +++ b/src/KubernetesClient/Extensions.cs @@ -1,7 +1,5 @@ -using System; using System.Reflection; using System.Text.RegularExpressions; -using k8s.Models; namespace k8s { diff --git a/src/KubernetesClient/FileSystem.cs b/src/KubernetesClient/FileSystem.cs new file mode 100644 index 000000000..4a1e7654e --- /dev/null +++ b/src/KubernetesClient/FileSystem.cs @@ -0,0 +1,55 @@ +namespace k8s +{ + internal static class FileSystem + { + public interface IFileSystem + { + Stream OpenRead(string path); + + bool Exists(string path); + + string ReadAllText(string path); + } + + public static IFileSystem Current { get; private set; } = new RealFileSystem(); + + public static IDisposable With(IFileSystem fileSystem) + { + return new InjectedFileSystem(fileSystem); + } + + private class InjectedFileSystem : IDisposable + { + private readonly IFileSystem _original; + + public InjectedFileSystem(IFileSystem fileSystem) + { + _original = Current; + Current = fileSystem; + } + + public void Dispose() + { + Current = _original; + } + } + + private class RealFileSystem : IFileSystem + { + public bool Exists(string path) + { + return File.Exists(path); + } + + public Stream OpenRead(string path) + { + return File.OpenRead(path); + } + + public string ReadAllText(string path) + { + return File.ReadAllText(path); + } + } + } +} diff --git a/src/KubernetesClient/FileUtils.cs b/src/KubernetesClient/FileUtils.cs deleted file mode 100644 index 5ffbd33c8..000000000 --- a/src/KubernetesClient/FileUtils.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using System.IO.Abstractions; - -namespace k8s -{ - public static class FileUtils - { - private static readonly IFileSystem RealFileSystem = new FileSystem(); - private static IFileSystem currentFileSystem = null; - - public static void InjectFilesystem(IFileSystem fs) - { - currentFileSystem = fs; - } - - public static IFileSystem FileSystem() - { - return currentFileSystem != null ? currentFileSystem : RealFileSystem; - } - - public sealed class InjectedFileSystem : IDisposable - { - public InjectedFileSystem(IFileSystem fs) - { - InjectFilesystem(fs); - } - - public void Dispose() - { - InjectFilesystem(null); - } - } - } -} diff --git a/src/KubernetesClient/FloatEmitter.cs b/src/KubernetesClient/FloatEmitter.cs new file mode 100644 index 000000000..4a0f18517 --- /dev/null +++ b/src/KubernetesClient/FloatEmitter.cs @@ -0,0 +1,33 @@ +using System.Globalization; +using YamlDotNet.Core; +using YamlDotNet.Core.Events; +using YamlDotNet.Serialization; +using YamlDotNet.Serialization.EventEmitters; + +namespace k8s +{ + internal class FloatEmitter : ChainedEventEmitter + { + public FloatEmitter(IEventEmitter nextEmitter) + : base(nextEmitter) + { + } + + public override void Emit(ScalarEventInfo eventInfo, IEmitter emitter) + { + switch (eventInfo.Source.Value) + { + // Floating point numbers should always render at least one zero (e.g. 1.0f => '1.0' not '1') + case double d: + emitter.Emit(new Scalar(d.ToString("0.0######################", CultureInfo.InvariantCulture))); + break; + case float f: + emitter.Emit(new Scalar(f.ToString("0.0######################", CultureInfo.InvariantCulture))); + break; + default: + base.Emit(eventInfo, emitter); + break; + } + } + } +} diff --git a/src/KubernetesClient/GeneratedApiVersion.cs b/src/KubernetesClient/GeneratedApiVersion.cs new file mode 100644 index 000000000..f3dbf19c2 --- /dev/null +++ b/src/KubernetesClient/GeneratedApiVersion.cs @@ -0,0 +1,10 @@ +namespace k8s; + +public static class GeneratedApiVersion +{ + // Now API version is the same as model version + // Change this if api is generated from a separate swagger spec + + public const string AssemblyVersion = GeneratedModelVersion.AssemblyVersion; + public const string SwaggerVersion = GeneratedModelVersion.SwaggerVersion; +} diff --git a/src/KubernetesClient/GenericClient.cs b/src/KubernetesClient/GenericClient.cs index 7e7180f55..a250aad22 100644 --- a/src/KubernetesClient/GenericClient.cs +++ b/src/KubernetesClient/GenericClient.cs @@ -1,10 +1,3 @@ -using Microsoft.Rest.Serialization; -using System; -using System.Net.Http; -using System.Threading; -using System.Threading.Tasks; - - namespace k8s { public class GenericClient : IDisposable @@ -13,6 +6,7 @@ public class GenericClient : IDisposable private readonly string group; private readonly string version; private readonly string plural; + private readonly bool disposeClient; [Obsolete] public GenericClient(KubernetesClientConfiguration config, string group, string version, string plural) @@ -20,73 +14,130 @@ public GenericClient(KubernetesClientConfiguration config, string group, string { } - public GenericClient(IKubernetes kubernetes, string version, string plural) - : this(kubernetes, "", version, plural) + public GenericClient(IKubernetes kubernetes, string version, string plural, bool disposeClient = true) + : this(kubernetes, "", version, plural, disposeClient) { } - public GenericClient(IKubernetes kubernetes, string group, string version, string plural) + public GenericClient(IKubernetes kubernetes, string group, string version, string plural, bool disposeClient = true) { this.group = group; this.version = version; this.plural = plural; this.kubernetes = kubernetes; + this.disposeClient = disposeClient; } public async Task CreateAsync(T obj, CancellationToken cancel = default) where T : IKubernetesObject { - var resp = await kubernetes.CreateClusterCustomObjectWithHttpMessagesAsync(obj, group, version, plural, cancellationToken: cancel).ConfigureAwait(false); - return SafeJsonConvert.DeserializeObject(resp.Body.ToString()); + var resp = await kubernetes.CustomObjects.CreateClusterCustomObjectWithHttpMessagesAsync(obj, group, version, plural, cancellationToken: cancel).ConfigureAwait(false); + return resp.Body; } public async Task CreateNamespacedAsync(T obj, string ns, CancellationToken cancel = default) where T : IKubernetesObject { - var resp = await kubernetes.CreateNamespacedCustomObjectWithHttpMessagesAsync(obj, group, version, ns, plural, cancellationToken: cancel).ConfigureAwait(false); - return SafeJsonConvert.DeserializeObject(resp.Body.ToString()); + var resp = await kubernetes.CustomObjects.CreateNamespacedCustomObjectWithHttpMessagesAsync(obj, group, version, ns, plural, cancellationToken: cancel).ConfigureAwait(false); + return resp.Body; } public async Task ListAsync(CancellationToken cancel = default) where T : IKubernetesObject { - var resp = await kubernetes.ListClusterCustomObjectWithHttpMessagesAsync(group, version, plural, cancellationToken: cancel).ConfigureAwait(false); - return SafeJsonConvert.DeserializeObject(resp.Body.ToString()); + var resp = await kubernetes.CustomObjects.ListClusterCustomObjectWithHttpMessagesAsync(group, version, plural, cancellationToken: cancel).ConfigureAwait(false); + return resp.Body; } public async Task ListNamespacedAsync(string ns, CancellationToken cancel = default) where T : IKubernetesObject { - var resp = await kubernetes.ListNamespacedCustomObjectWithHttpMessagesAsync(group, version, ns, plural, cancellationToken: cancel).ConfigureAwait(false); - return SafeJsonConvert.DeserializeObject(resp.Body.ToString()); + var resp = await kubernetes.CustomObjects.ListNamespacedCustomObjectWithHttpMessagesAsync(group, version, ns, plural, cancellationToken: cancel).ConfigureAwait(false); + return resp.Body; } public async Task ReadNamespacedAsync(string ns, string name, CancellationToken cancel = default) where T : IKubernetesObject { - var resp = await kubernetes.GetNamespacedCustomObjectWithHttpMessagesAsync(group, version, ns, plural, name, cancellationToken: cancel).ConfigureAwait(false); - return SafeJsonConvert.DeserializeObject(resp.Body.ToString()); + var resp = await kubernetes.CustomObjects.GetNamespacedCustomObjectWithHttpMessagesAsync(group, version, ns, plural, name, cancellationToken: cancel).ConfigureAwait(false); + return resp.Body; } public async Task ReadAsync(string name, CancellationToken cancel = default) where T : IKubernetesObject { - var resp = await kubernetes.GetClusterCustomObjectWithHttpMessagesAsync(group, version, plural, name, cancellationToken: cancel).ConfigureAwait(false); - return SafeJsonConvert.DeserializeObject(resp.Body.ToString()); + var resp = await kubernetes.CustomObjects.GetClusterCustomObjectWithHttpMessagesAsync(group, version, plural, name, cancellationToken: cancel).ConfigureAwait(false); + return resp.Body; } public async Task DeleteAsync(string name, CancellationToken cancel = default) where T : IKubernetesObject { - var resp = await kubernetes.DeleteClusterCustomObjectWithHttpMessagesAsync(group, version, plural, name, cancellationToken: cancel).ConfigureAwait(false); - return SafeJsonConvert.DeserializeObject(resp.Body.ToString()); + var resp = await kubernetes.CustomObjects.DeleteClusterCustomObjectWithHttpMessagesAsync(group, version, plural, name, cancellationToken: cancel).ConfigureAwait(false); + return resp.Body; } public async Task DeleteNamespacedAsync(string ns, string name, CancellationToken cancel = default) where T : IKubernetesObject { - var resp = await kubernetes.DeleteNamespacedCustomObjectWithHttpMessagesAsync(group, version, ns, plural, name, cancellationToken: cancel).ConfigureAwait(false); - return SafeJsonConvert.DeserializeObject(resp.Body.ToString()); + var resp = await kubernetes.CustomObjects.DeleteNamespacedCustomObjectWithHttpMessagesAsync(group, version, ns, plural, name, cancellationToken: cancel).ConfigureAwait(false); + return resp.Body; + } + + public async Task PatchAsync(V1Patch patch, string name, CancellationToken cancel = default) + where T : IKubernetesObject + { + var resp = await kubernetes.CustomObjects.PatchClusterCustomObjectWithHttpMessagesAsync(patch, group, version, plural, name, cancellationToken: cancel).ConfigureAwait(false); + return resp.Body; + } + + public async Task PatchNamespacedAsync(V1Patch patch, string ns, string name, CancellationToken cancel = default) + where T : IKubernetesObject + { + var resp = await kubernetes.CustomObjects.PatchNamespacedCustomObjectWithHttpMessagesAsync(patch, group, version, ns, plural, name, cancellationToken: cancel).ConfigureAwait(false); + return resp.Body; + } + + public async Task ReplaceAsync(T obj, string name, CancellationToken cancel = default) + where T : IKubernetesObject + { + var resp = await kubernetes.CustomObjects.ReplaceClusterCustomObjectWithHttpMessagesAsync(obj, group, version, plural, name, cancellationToken: cancel).ConfigureAwait(false); + return resp.Body; + } + + public async Task ReplaceNamespacedAsync(T obj, string ns, string name, CancellationToken cancel = default) + where T : IKubernetesObject + { + var resp = await kubernetes.CustomObjects.ReplaceNamespacedCustomObjectWithHttpMessagesAsync(obj, group, version, ns, plural, name, cancellationToken: cancel).ConfigureAwait(false); + return resp.Body; + } + + public IAsyncEnumerable<(WatchEventType, T)> WatchAsync(Action onError = null, CancellationToken cancel = default) + where T : IKubernetesObject + { + var respTask = kubernetes.CustomObjects.ListClusterCustomObjectWithHttpMessagesAsync(group, version, plural, watch: true, cancellationToken: cancel); + return respTask.WatchAsync(onError, cancel); + } + + public IAsyncEnumerable<(WatchEventType, T)> WatchNamespacedAsync(string ns, Action onError = null, CancellationToken cancel = default) + where T : IKubernetesObject + { + var respTask = kubernetes.CustomObjects.ListNamespacedCustomObjectWithHttpMessagesAsync(group, version, ns, plural, watch: true, cancellationToken: cancel); + return respTask.WatchAsync(onError, cancel); + } + + public Watcher Watch(Action onEvent, Action onError = null, Action onClosed = null) + where T : IKubernetesObject + { + var respTask = kubernetes.CustomObjects.ListClusterCustomObjectWithHttpMessagesAsync(group, version, plural, watch: true); + return respTask.Watch(onEvent, onError, onClosed); + } + + public Watcher WatchNamespaced(string ns, Action onEvent, Action onError = null, Action onClosed = null) + where T : IKubernetesObject + { + var respTask = kubernetes.CustomObjects.ListNamespacedCustomObjectWithHttpMessagesAsync(group, version, ns, plural, watch: true); + return respTask.Watch(onEvent, onError, onClosed); } public void Dispose() @@ -97,7 +148,10 @@ public void Dispose() protected virtual void Dispose(bool disposing) { - kubernetes.Dispose(); + if (disposeClient) + { + kubernetes.Dispose(); + } } } } diff --git a/src/KubernetesClient/Global.cs b/src/KubernetesClient/Global.cs new file mode 100644 index 000000000..2b5a4ae8e --- /dev/null +++ b/src/KubernetesClient/Global.cs @@ -0,0 +1,10 @@ +global using k8s.Autorest; +global using k8s.Models; +global using System; +global using System.Collections.Generic; +global using System.IO; +global using System.Linq; +global using System.Text.Json; +global using System.Text.Json.Serialization; +global using System.Threading; +global using System.Threading.Tasks; diff --git a/src/KubernetesClient/IItems.cs b/src/KubernetesClient/IItems.cs deleted file mode 100644 index ed09a3943..000000000 --- a/src/KubernetesClient/IItems.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System.Collections.Generic; - -namespace k8s -{ - /// - /// Kubernetes object that exposes list of objects - /// - /// type of the objects - public interface IItems - { - /// - /// Gets or sets list of objects. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md - /// - IList Items { get; set; } - } -} diff --git a/src/KubernetesClient/IKubernetes.Exec.cs b/src/KubernetesClient/IKubernetes.Exec.cs index 3e290bf44..b9197a897 100644 --- a/src/KubernetesClient/IKubernetes.Exec.cs +++ b/src/KubernetesClient/IKubernetes.Exec.cs @@ -1,7 +1,3 @@ -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - namespace k8s { public partial interface IKubernetes diff --git a/src/KubernetesClient/IKubernetes.HttpClient.cs b/src/KubernetesClient/IKubernetes.HttpClient.cs deleted file mode 100644 index e5bc74b73..000000000 --- a/src/KubernetesClient/IKubernetes.HttpClient.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Net.Http; - -namespace k8s -{ - public partial interface IKubernetes - { - /// - /// Gets the used for making HTTP requests. - /// - HttpClient HttpClient { get; } - } -} diff --git a/src/KubernetesClient/IKubernetes.Watch.cs b/src/KubernetesClient/IKubernetes.Watch.cs deleted file mode 100644 index 9bcd7b576..000000000 --- a/src/KubernetesClient/IKubernetes.Watch.cs +++ /dev/null @@ -1,70 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace k8s -{ - public partial interface IKubernetes - { - /// - /// Watches for changes of an object. - /// - /// - /// type of the object of Watcher{T} - /// - /// - /// The uri to the resource being watched - /// - /// - /// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to everything. - /// - /// - /// If true, partially initialized resources are included in the response. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - /// - /// - /// 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. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchObjectAsync(string path, string @continue = null, string fieldSelector = null, - bool? includeUninitialized = null, string labelSelector = null, int? limit = null, bool? pretty = null, - int? timeoutSeconds = null, string resourceVersion = null, - Dictionary> customHeaders = null, Action onEvent = null, - Action onError = null, Action onClosed = null, - CancellationToken cancellationToken = default); - } -} diff --git a/src/KubernetesClient/IKubernetes.WebSocket.cs b/src/KubernetesClient/IKubernetes.WebSocket.cs index c48a8157d..ed6657332 100644 --- a/src/KubernetesClient/IKubernetes.WebSocket.cs +++ b/src/KubernetesClient/IKubernetes.WebSocket.cs @@ -1,7 +1,4 @@ -using System.Collections.Generic; using System.Net.WebSockets; -using System.Threading; -using System.Threading.Tasks; namespace k8s { diff --git a/src/KubernetesClient/IKubernetes.cs b/src/KubernetesClient/IKubernetes.cs new file mode 100644 index 000000000..5fa42e955 --- /dev/null +++ b/src/KubernetesClient/IKubernetes.cs @@ -0,0 +1,9 @@ +namespace k8s; + +public partial interface IKubernetes : IDisposable +{ + /// + /// The base URI of the service. + /// + Uri BaseUri { get; set; } +} diff --git a/src/KubernetesClient/IKubernetesObject.cs b/src/KubernetesClient/IKubernetesObject.cs index aab7ef5ac..5fe05b543 100644 --- a/src/KubernetesClient/IKubernetesObject.cs +++ b/src/KubernetesClient/IKubernetesObject.cs @@ -1,5 +1,3 @@ -using Newtonsoft.Json; - namespace k8s { /// @@ -20,7 +18,7 @@ public interface IKubernetesObject /// values. More info: /// https://git.k8s.io/community/contributors/devel/api-conventions.md#resources /// - [JsonProperty(PropertyName = "apiVersion")] + [JsonPropertyName("apiVersion")] string ApiVersion { get; set; } /// @@ -30,7 +28,7 @@ public interface IKubernetesObject /// More info: /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds /// - [JsonProperty(PropertyName = "kind")] + [JsonPropertyName("kind")] string Kind { get; set; } } diff --git a/src/KubernetesClient/IMetadata.cs b/src/KubernetesClient/IMetadata.cs deleted file mode 100644 index e633e9e85..000000000 --- a/src/KubernetesClient/IMetadata.cs +++ /dev/null @@ -1,18 +0,0 @@ -using k8s.Models; - -namespace k8s -{ - /// - /// Kubernetes object that exposes metadata - /// - /// Type of metadata exposed. Usually this will be either - /// for lists or for objects - public interface IMetadata - { - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - T Metadata { get; set; } - } -} diff --git a/src/KubernetesClient/ISpec.cs b/src/KubernetesClient/ISpec.cs deleted file mode 100644 index d286b7cca..000000000 --- a/src/KubernetesClient/ISpec.cs +++ /dev/null @@ -1,16 +0,0 @@ -namespace k8s -{ - /// - /// Represents a Kubernetes object that has a spec - /// - /// type of Kubernetes object - public interface ISpec - { - /// - /// Gets or sets specification of the desired behavior of the entity. More - /// info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - T Spec { get; set; } - } -} diff --git a/src/KubernetesClient/IStreamDemuxer.cs b/src/KubernetesClient/IStreamDemuxer.cs index 210ebf671..ce46d40f8 100644 --- a/src/KubernetesClient/IStreamDemuxer.cs +++ b/src/KubernetesClient/IStreamDemuxer.cs @@ -1,21 +1,15 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Threading; -using System.Threading.Tasks; - namespace k8s { /// /// /// The interface allows you to interact with processes running in a container in a Kubernetes pod. You can start an exec or attach command - /// by calling - /// or . These methods - /// will return you a connection. + /// by calling + /// or . These methods + /// will return you a connection. /// /// - /// Kubernetes 'multiplexes' multiple channels over this connection, such as standard input, standard output and standard error. The - /// allows you to extract individual s from this class. You can then use these streams to send/receive data from that process. + /// Kubernetes 'multiplexes' multiple channels over this connection, such as standard input, standard output and standard error. The + /// allows you to extract individual s from this . You can then use these streams to send/receive data from that process. /// /// public interface IStreamDemuxer : IDisposable diff --git a/src/KubernetesClient/IValidate.cs b/src/KubernetesClient/IValidate.cs deleted file mode 100644 index c81f553f2..000000000 --- a/src/KubernetesClient/IValidate.cs +++ /dev/null @@ -1,13 +0,0 @@ -namespace k8s -{ - /// - /// Object that allows self validation - /// - public interface IValidate - { - /// - /// Validate the object. - /// - void Validate(); - } -} diff --git a/src/KubernetesClient/IntOrStringConverter.cs b/src/KubernetesClient/IntOrStringConverter.cs deleted file mode 100644 index c5acb179e..000000000 --- a/src/KubernetesClient/IntOrStringConverter.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using Newtonsoft.Json; - -namespace k8s.Models -{ - internal class IntOrStringConverter : JsonConverter - { - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - var s = (value as IntstrIntOrString)?.Value; - - if (int.TryParse(s, out var intv)) - { - serializer.Serialize(writer, intv); - return; - } - - serializer.Serialize(writer, s); - } - - public override object ReadJson(JsonReader reader, Type objectType, object existingValue, - JsonSerializer serializer) - { - return (IntstrIntOrString)serializer.Deserialize(reader); - } - - public override bool CanConvert(Type objectType) - { - return objectType == typeof(int) || objectType == typeof(string); - } - } -} diff --git a/src/KubernetesClient/IntstrIntOrString.cs b/src/KubernetesClient/IntstrIntOrString.cs deleted file mode 100644 index 50af9eae5..000000000 --- a/src/KubernetesClient/IntstrIntOrString.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System; -using Newtonsoft.Json; - -namespace k8s.Models -{ - [JsonConverter(typeof(IntOrStringConverter))] - public partial class IntstrIntOrString - { - public static implicit operator IntstrIntOrString(int v) - { - return new IntstrIntOrString(Convert.ToString(v)); - } - - public static implicit operator string(IntstrIntOrString v) - { - return v?.Value; - } - - public static implicit operator IntstrIntOrString(string v) - { - return new IntstrIntOrString(v); - } - - protected bool Equals(IntstrIntOrString other) - { - return string.Equals(Value, other?.Value); - } - - public override bool Equals(object obj) - { - if (ReferenceEquals(null, obj)) - { - return false; - } - - if (ReferenceEquals(this, obj)) - { - return true; - } - - if (obj.GetType() != GetType()) - { - return false; - } - - return Equals((IntstrIntOrString)obj); - } - - public override int GetHashCode() - { - return Value != null ? Value.GetHashCode() : 0; - } - } -} diff --git a/src/KubernetesClient/KubeConfigModels/AuthProvider.cs b/src/KubernetesClient/KubeConfigModels/AuthProvider.cs index 7c77c369e..4ec5d94e0 100644 --- a/src/KubernetesClient/KubeConfigModels/AuthProvider.cs +++ b/src/KubernetesClient/KubeConfigModels/AuthProvider.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using YamlDotNet.Serialization; namespace k8s.KubeConfigModels diff --git a/src/KubernetesClient/KubeConfigModels/ClusterEndpoint.cs b/src/KubernetesClient/KubeConfigModels/ClusterEndpoint.cs index af8913ca0..cdd791b4a 100644 --- a/src/KubernetesClient/KubeConfigModels/ClusterEndpoint.cs +++ b/src/KubernetesClient/KubeConfigModels/ClusterEndpoint.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using YamlDotNet.Serialization; namespace k8s.KubeConfigModels @@ -26,6 +25,12 @@ public class ClusterEndpoint [YamlMember(Alias = "server")] public string Server { get; set; } + /// + /// Gets or sets a value to override the TLS server name. + /// + [YamlMember(Alias = "tls-server-name", ApplyNamingConventions = false)] + public string TlsServerName { get; set; } + /// /// Gets or sets a value indicating whether to skip the validity check for the server's certificate. /// This will make your HTTPS connections insecure. diff --git a/src/KubernetesClient/KubeConfigModels/Context.cs b/src/KubernetesClient/KubeConfigModels/Context.cs index 1eeec04ab..931a9fa42 100644 --- a/src/KubernetesClient/KubeConfigModels/Context.cs +++ b/src/KubernetesClient/KubeConfigModels/Context.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using YamlDotNet.Serialization; namespace k8s.KubeConfigModels diff --git a/src/KubernetesClient/KubeConfigModels/ContextDetails.cs b/src/KubernetesClient/KubeConfigModels/ContextDetails.cs index 4a3db76f6..4bae5c3fd 100644 --- a/src/KubernetesClient/KubeConfigModels/ContextDetails.cs +++ b/src/KubernetesClient/KubeConfigModels/ContextDetails.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using YamlDotNet.Serialization; namespace k8s.KubeConfigModels diff --git a/src/KubernetesClient/KubeConfigModels/ExecCredentialResponse.cs b/src/KubernetesClient/KubeConfigModels/ExecCredentialResponse.cs index 0c353fb7d..6654ba3bd 100644 --- a/src/KubernetesClient/KubeConfigModels/ExecCredentialResponse.cs +++ b/src/KubernetesClient/KubeConfigModels/ExecCredentialResponse.cs @@ -1,15 +1,28 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - namespace k8s.KubeConfigModels { public class ExecCredentialResponse { - [JsonProperty("apiVersion")] + public class ExecStatus + { +#nullable enable + public DateTime? ExpirationTimestamp { get; set; } + public string? Token { get; set; } + public string? ClientCertificateData { get; set; } + public string? ClientKeyData { get; set; } +#nullable disable + + public bool IsValid() + { + return !string.IsNullOrEmpty(Token) || + (!string.IsNullOrEmpty(ClientCertificateData) && !string.IsNullOrEmpty(ClientKeyData)); + } + } + + [JsonPropertyName("apiVersion")] public string ApiVersion { get; set; } - [JsonProperty("kind")] + [JsonPropertyName("kind")] public string Kind { get; set; } - [JsonProperty("status")] - public IDictionary Status { get; set; } + [JsonPropertyName("status")] + public ExecStatus Status { get; set; } } } diff --git a/src/KubernetesClient/KubeConfigModels/ExternalExecution.cs b/src/KubernetesClient/KubeConfigModels/ExternalExecution.cs index 22cfe6e89..c3be35f04 100644 --- a/src/KubernetesClient/KubeConfigModels/ExternalExecution.cs +++ b/src/KubernetesClient/KubeConfigModels/ExternalExecution.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using YamlDotNet.Serialization; namespace k8s.KubeConfigModels diff --git a/src/KubernetesClient/KubeConfigModels/K8SConfiguration.cs b/src/KubernetesClient/KubeConfigModels/K8SConfiguration.cs index f4eb71282..5308c209e 100644 --- a/src/KubernetesClient/KubeConfigModels/K8SConfiguration.cs +++ b/src/KubernetesClient/KubeConfigModels/K8SConfiguration.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using YamlDotNet.Serialization; namespace k8s.KubeConfigModels diff --git a/src/KubernetesClient/KubeConfigModels/UserCredentials.cs b/src/KubernetesClient/KubeConfigModels/UserCredentials.cs index be8a2163f..b5dfc8a5a 100644 --- a/src/KubernetesClient/KubeConfigModels/UserCredentials.cs +++ b/src/KubernetesClient/KubeConfigModels/UserCredentials.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using YamlDotNet.Serialization; namespace k8s.KubeConfigModels diff --git a/src/KubernetesClient/Kubernetes.ConfigInit.cs b/src/KubernetesClient/Kubernetes.ConfigInit.cs index a76fff727..e87e4e96a 100644 --- a/src/KubernetesClient/Kubernetes.ConfigInit.cs +++ b/src/KubernetesClient/Kubernetes.ConfigInit.cs @@ -1,65 +1,14 @@ -using System; -using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Net; +using k8s.Authentication; +using k8s.Exceptions; using System.Net.Http; using System.Net.Security; -using System.Net.Sockets; -using System.Reflection; -using System.Runtime.InteropServices; using System.Security.Cryptography.X509Certificates; -using System.Threading; -using k8s.Exceptions; -using k8s.Models; -using Microsoft.Rest; namespace k8s { public partial class Kubernetes { - /// - /// Timeout of REST calls to Kubernetes server - /// Does not apply to watch related api - /// - /// timeout - public TimeSpan HttpClientTimeout { get; set; } = TimeSpan.FromSeconds(100); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The kube config to use. - /// - /// - /// The to use for all requests. - /// - public Kubernetes(KubernetesClientConfiguration config, HttpClient httpClient) - : this(config, httpClient, false) - { - } - - /// - /// Initializes a new instance of the class. - /// - /// - /// The kube config to use. - /// - /// - /// The to use for all requests. - /// - /// - /// Whether or not the object should own the lifetime of . - /// - public Kubernetes(KubernetesClientConfiguration config, HttpClient httpClient, bool disposeHttpClient) - : this( - httpClient, disposeHttpClient) - { - ValidateConfig(config); - CaCerts = config.SslCaCerts; - SkipTlsVerify = config.SkipTlsVerify; - ClientCert = CertUtils.GetClientCert(config); - SetCredentials(config); - } + private readonly JsonSerializerOptions jsonSerializerOptions; /// /// Initializes a new instance of the class. @@ -74,11 +23,27 @@ public Kubernetes(KubernetesClientConfiguration config, params DelegatingHandler { Initialize(); ValidateConfig(config); - CaCerts = config.SslCaCerts; + + if (config.SslCaCerts != null) + { + var caCerts = new X509Certificate2Collection(); + foreach (var cert in config.SslCaCerts) + { + caCerts.Add(new X509Certificate2(cert)); + } + + CaCerts = caCerts; + } + SkipTlsVerify = config.SkipTlsVerify; + TlsServerName = config.TlsServerName; CreateHttpClient(handlers, config); InitializeFromConfig(config); HttpClientTimeout = config.HttpClientTimeout; + jsonSerializerOptions = config.JsonSerializerOptions; +#if NETSTANDARD2_1_OR_GREATER || NET5_0_OR_GREATER + DisableHttp2 = config.DisableHttp2; +#endif } private void ValidateConfig(KubernetesClientConfiguration config) @@ -109,69 +74,59 @@ private void InitializeFromConfig(KubernetesClientConfiguration config) { if (config.SkipTlsVerify) { +#if NET5_0_OR_GREATER + HttpClientHandler.SslOptions.RemoteCertificateValidationCallback = +#else HttpClientHandler.ServerCertificateCustomValidationCallback = +#endif (sender, certificate, chain, sslPolicyErrors) => true; } else { - if (CaCerts == null) + if (CaCerts != null) { - throw new KubeConfigException("A CA must be set when SkipTlsVerify === false"); +#if NET5_0_OR_GREATER + HttpClientHandler.SslOptions.RemoteCertificateValidationCallback = +#else + HttpClientHandler.ServerCertificateCustomValidationCallback = +#endif + (sender, certificate, chain, sslPolicyErrors) => + { + return CertificateValidationCallBack(sender, CaCerts, certificate, chain, + sslPolicyErrors); + }; } - - HttpClientHandler.ServerCertificateCustomValidationCallback = - (sender, certificate, chain, sslPolicyErrors) => - { - return CertificateValidationCallBack(sender, CaCerts, certificate, chain, - sslPolicyErrors); - }; } } // set credentails for the kubernetes client SetCredentials(config); - config.AddCertificates(HttpClientHandler); - } - - private X509Certificate2Collection CaCerts { get; } - private X509Certificate2 ClientCert { get; } - private bool SkipTlsVerify { get; } - - private void CustomInitialize() - { - DeserializationSettings.Converters.Add(new V1Status.V1StatusObjectViewConverter()); - SerializationSettings.DateFormatString = "yyyy'-'MM'-'dd'T'HH':'mm':'ss.ffffffK"; - } - /// A that simply forwards a request with no further processing. - private sealed class ForwardingHandler : DelegatingHandler - { - public ForwardingHandler(HttpMessageHandler handler) - : base(handler) + ClientCert = CertUtils.GetClientCert(config); + if (ClientCert != null) { +#if NET5_0_OR_GREATER + HttpClientHandler.SslOptions.ClientCertificates.Add(ClientCert); + + // TODO this is workaround for net7.0, remove it when the issue is fixed + // seems the client certificate is cached and cannot be updated + HttpClientHandler.SslOptions.LocalCertificateSelectionCallback = (sender, targetHost, localCertificates, remoteCertificate, acceptableIssuers) => + { + return ClientCert; + }; +#else + HttpClientHandler.ClientCertificates.Add(ClientCert); +#endif } } - private void AppendDelegatingHandler() - where T : DelegatingHandler, new() - { - var cur = FirstMessageHandler as DelegatingHandler; + private X509Certificate2Collection CaCerts { get; } - while (cur != null) - { - var next = cur.InnerHandler as DelegatingHandler; + private X509Certificate2 ClientCert { get; set; } - if (next == null) - { - // last one - // append watcher handler between to last handler - cur.InnerHandler = new T { InnerHandler = cur.InnerHandler }; - break; - } + private bool SkipTlsVerify { get; } - cur = next; - } - } + private string TlsServerName { get; } // NOTE: this method replicates the logic that the base ServiceClient uses except that it doesn't insert the RetryDelegatingHandler // and it does insert the WatcherDelegatingHandler. we don't want the RetryDelegatingHandler because it has a very broad definition @@ -179,70 +134,22 @@ private void AppendDelegatingHandler() // 3xx. in particular, this prevents upgraded connections and certain generic/custom requests from working. private void CreateHttpClient(DelegatingHandler[] handlers, KubernetesClientConfiguration config) { - FirstMessageHandler = HttpClientHandler = CreateRootHandler(); - - -#if NET5_0 - // https://github.com/kubernetes-client/csharp/issues/587 - // let user control if tcp keep alive until better fix - if (config.TcpKeepAlive) +#if NET5_0_OR_GREATER + FirstMessageHandler = HttpClientHandler = new SocketsHttpHandler { - // https://github.com/kubernetes-client/csharp/issues/533 - // net5 only - // this is a temp fix to attach SocketsHttpHandler to HttpClient in order to set SO_KEEPALIVE - // https://tldp.org/HOWTO/html_single/TCP-Keepalive-HOWTO/ - // - // _underlyingHandler is not a public accessible field - // src of net5 HttpClientHandler and _underlyingHandler field defined here - // https://github.com/dotnet/runtime/blob/79ae74f5ca5c8a6fe3a48935e85bd7374959c570/src/libraries/System.Net.Http/src/System/Net/Http/HttpClientHandler.cs#L22 - // - // Should remove after better solution - - var sh = new SocketsHttpHandler(); - sh.ConnectCallback = async (context, token) => - { - var socket = new Socket(SocketType.Stream, ProtocolType.Tcp) - { - NoDelay = true, - }; - - socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.KeepAlive, true); - - var host = context.DnsEndPoint.Host; - - if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) - { - // https://github.com/dotnet/runtime/issues/24917 - // GetHostAddresses will return {host} if host is an ip - var ips = Dns.GetHostAddresses(host); - if (ips.Length == 0) - { - throw new Exception($"{host} DNS lookup failed"); - } - - host = ips[new Random().Next(ips.Length)].ToString(); - } - - await socket.ConnectAsync(host, context.DnsEndPoint.Port, token).ConfigureAwait(false); - return new NetworkStream(socket, ownsSocket: true); - }; - - - // set HttpClientHandler's cert callback before replace _underlyingHandler - // force HttpClientHandler use our callback - InitializeFromConfig(config); + KeepAlivePingPolicy = HttpKeepAlivePingPolicy.WithActiveRequests, + KeepAlivePingDelay = TimeSpan.FromMinutes(3), + KeepAlivePingTimeout = TimeSpan.FromSeconds(30), + EnableMultipleHttp2Connections = true, + }; - var p = HttpClientHandler.GetType().GetField("_underlyingHandler", BindingFlags.NonPublic | BindingFlags.Instance); - p.SetValue(HttpClientHandler, (sh)); - } + HttpClientHandler.SslOptions.ClientCertificates = new X509Certificate2Collection(); +#else + FirstMessageHandler = HttpClientHandler = new HttpClientHandler(); #endif + config.FirstMessageHandlerSetup?.Invoke(HttpClientHandler); - if (handlers == null || handlers.Length == 0) - { - // ensure we have at least one DelegatingHandler so AppendDelegatingHandler will work - FirstMessageHandler = new ForwardingHandler(HttpClientHandler); - } - else + if (handlers != null) { for (int i = handlers.Length - 1; i >= 0; i--) { @@ -263,8 +170,6 @@ private void CreateHttpClient(DelegatingHandler[] handlers, KubernetesClientConf }; } - - /// /// Set credentials for the Client /// @@ -308,22 +213,22 @@ public static bool CertificateValidationCallBack( { chain.ChainPolicy.RevocationMode = X509RevocationMode.NoCheck; - // Added our trusted certificates to the chain - // - chain.ChainPolicy.ExtraStore.AddRange(caCerts); - - chain.ChainPolicy.VerificationFlags = X509VerificationFlags.AllowUnknownCertificateAuthority; +#if NET5_0_OR_GREATER + // Use custom trust store only, ignore system root CA + chain.ChainPolicy.CustomTrustStore.AddRange(caCerts); + chain.ChainPolicy.TrustMode = X509ChainTrustMode.CustomRootTrust; +#else + throw new NotSupportedException("Custom trust store requires .NET 5.0 or later. Current platform does not support this feature."); +#endif var isValid = chain.Build((X509Certificate2)certificate); var isTrusted = false; - var rootCert = chain.ChainElements[chain.ChainElements.Count - 1].Certificate; - // Make sure that one of our trusted certs exists in the chain provided by the server. // foreach (var cert in caCerts) { - if (rootCert.RawData.SequenceEqual(cert.RawData)) + if (chain.Build(cert)) { isTrusted = true; break; diff --git a/src/KubernetesClient/Kubernetes.Exec.cs b/src/KubernetesClient/Kubernetes.Exec.cs index ec9f99979..53671aead 100644 --- a/src/KubernetesClient/Kubernetes.Exec.cs +++ b/src/KubernetesClient/Kubernetes.Exec.cs @@ -1,13 +1,3 @@ -using k8s.Models; -using Microsoft.Rest; -using Microsoft.Rest.Serialization; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; - namespace k8s { public partial class Kubernetes @@ -23,31 +13,31 @@ public async Task NamespacedPodExecAsync(string name, string @namespace, st try { - using (var muxedStream = await MuxedStreamNamespacedPodExecAsync( + using var muxedStream = await MuxedStreamNamespacedPodExecAsync( name, @namespace, command, container, tty: tty, - cancellationToken: cancellationToken).ConfigureAwait(false)) - using (var stdIn = muxedStream.GetStream(null, ChannelIndex.StdIn)) - using (var stdOut = muxedStream.GetStream(ChannelIndex.StdOut, null)) - using (var stdErr = muxedStream.GetStream(ChannelIndex.StdErr, null)) - using (var error = muxedStream.GetStream(ChannelIndex.Error, null)) - using (var errorReader = new StreamReader(error)) - { - muxedStream.Start(); + cancellationToken: cancellationToken).ConfigureAwait(false); - await action(stdIn, stdOut, stdErr).ConfigureAwait(false); + using var stdIn = muxedStream.GetStream(null, ChannelIndex.StdIn); + using var stdOut = muxedStream.GetStream(ChannelIndex.StdOut, null); + using var stdErr = muxedStream.GetStream(ChannelIndex.StdErr, null); + using var error = muxedStream.GetStream(ChannelIndex.Error, null); + using var errorReader = new StreamReader(error); - var errors = await errorReader.ReadToEndAsync().ConfigureAwait(false); + muxedStream.Start(); - // StatusError is defined here: - // https://github.com/kubernetes/kubernetes/blob/068e1642f63a1a8c48c16c18510e8854a4f4e7c5/staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go#L37 - var returnMessage = SafeJsonConvert.DeserializeObject(errors); - return GetExitCodeOrThrow(returnMessage); - } + await action(stdIn, stdOut, stdErr).ConfigureAwait(false); + + var errors = await errorReader.ReadToEndAsync().ConfigureAwait(false); + + // StatusError is defined here: + // https://github.com/kubernetes/kubernetes/blob/068e1642f63a1a8c48c16c18510e8854a4f4e7c5/staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go#L37 + var returnMessage = KubernetesJson.Deserialize(errors); + return GetExitCodeOrThrow(returnMessage); } - catch (HttpOperationException httpEx) when (httpEx.Body is V1Status) + catch (HttpOperationException httpEx) when (httpEx.Body is V1Status status) { - throw new KubernetesException((V1Status)httpEx.Body, httpEx); + throw new KubernetesException(status, httpEx); } } diff --git a/src/KubernetesClient/Kubernetes.Header.cs b/src/KubernetesClient/Kubernetes.Header.cs deleted file mode 100644 index 6d1b68b53..000000000 --- a/src/KubernetesClient/Kubernetes.Header.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using System.Net.Http.Headers; -using k8s.Models; - -namespace k8s -{ - public partial class Kubernetes - { - public virtual MediaTypeHeaderValue GetHeader(object body) - { - if (body == null) - { - throw new ArgumentNullException(nameof(body)); - } - - if (body is V1Patch patch) - { - return GetHeader(patch); - } - - return MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - - - public virtual MediaTypeHeaderValue GetHeader(V1Patch body) - { - if (body == null) - { - throw new ArgumentNullException(nameof(body)); - } - - switch (body.Type) - { - case V1Patch.PatchType.JsonPatch: - return MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - case V1Patch.PatchType.MergePatch: - return MediaTypeHeaderValue.Parse("application/merge-patch+json; charset=utf-8"); - case V1Patch.PatchType.StrategicMergePatch: - return MediaTypeHeaderValue.Parse("application/strategic-merge-patch+json; charset=utf-8"); - case V1Patch.PatchType.ApplyPatch: - return MediaTypeHeaderValue.Parse("application/apply-patch+yaml; charset=utf-8"); - default: - throw new ArgumentOutOfRangeException(nameof(body.Type), ""); - } - } - } -} diff --git a/src/KubernetesClient/Kubernetes.Watch.cs b/src/KubernetesClient/Kubernetes.Watch.cs deleted file mode 100644 index 73140d259..000000000 --- a/src/KubernetesClient/Kubernetes.Watch.cs +++ /dev/null @@ -1,179 +0,0 @@ -using Microsoft.Rest; -using System; -using System.Collections.Generic; -using System.IO; -using System.Net; -using System.Net.Http; -using System.Text; -using System.Threading; -using System.Threading.Tasks; - -namespace k8s -{ - public partial class Kubernetes - { - /// - public async Task> WatchObjectAsync(string path, string @continue = null, - string fieldSelector = null, bool? includeUninitialized = null, string labelSelector = null, - int? limit = null, bool? pretty = null, int? timeoutSeconds = null, string resourceVersion = null, - Dictionary> customHeaders = null, Action onEvent = null, - Action onError = null, Action onClosed = null, - CancellationToken cancellationToken = default) - { - // Tracing - var shouldTrace = ServiceClientTracing.IsEnabled; - string invocationId = null; - if (shouldTrace) - { - invocationId = ServiceClientTracing.NextInvocationId.ToString(); - var tracingParameters = new Dictionary(); - tracingParameters.Add("path", path); - tracingParameters.Add("continue", @continue); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("resourceVersion", resourceVersion); - ServiceClientTracing.Enter(invocationId, this, nameof(WatchObjectAsync), tracingParameters); - } - - // Construct URL - var uriBuilder = new UriBuilder(BaseUri); - if (!uriBuilder.Path.EndsWith("/", StringComparison.InvariantCulture)) - { - uriBuilder.Path += "/"; - } - - uriBuilder.Path += path; - - var query = new StringBuilder(); - // Don't sent watch, because setting that value will cause the WatcherDelegatingHandler to kick in. That class - // "eats" the first line, which is something we don't want. - // query = QueryHelpers.AddQueryString(query, "watch", "true"); - if (@continue != null) - { - Utilities.AddQueryParameter(query, "continue", @continue); - } - - if (!string.IsNullOrEmpty(fieldSelector)) - { - Utilities.AddQueryParameter(query, "fieldSelector", fieldSelector); - } - - if (includeUninitialized != null) - { - Utilities.AddQueryParameter(query, "includeUninitialized", - includeUninitialized.Value ? "true" : "false"); - } - - if (!string.IsNullOrEmpty(labelSelector)) - { - Utilities.AddQueryParameter(query, "labelSelector", labelSelector); - } - - if (limit != null) - { - Utilities.AddQueryParameter(query, "limit", limit.Value.ToString()); - } - - if (pretty != null) - { - Utilities.AddQueryParameter(query, "pretty", pretty.Value ? "true" : "false"); - } - - if (timeoutSeconds != null) - { - Utilities.AddQueryParameter(query, "timeoutSeconds", timeoutSeconds.Value.ToString()); - } - - if (!string.IsNullOrEmpty(resourceVersion)) - { - Utilities.AddQueryParameter(query, "resourceVersion", resourceVersion); - } - - uriBuilder.Query = - query.Length == 0 - ? "" - : query.ToString( - 1, - query.Length - 1); // UriBuilder.Query doesn't like leading '?' chars, so trim it - - // Create HTTP transport objects - var httpRequest = new HttpRequestMessage(HttpMethod.Get, uriBuilder.ToString()); - - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(httpRequest, cancellationToken).ConfigureAwait(false); - } - - // Set Headers - if (customHeaders != null) - { - foreach (var header in customHeaders) - { - if (httpRequest.Headers.Contains(header.Key)) - { - httpRequest.Headers.Remove(header.Key); - } - - httpRequest.Headers.TryAddWithoutValidation(header.Key, header.Value); - } - } - - // Send Request - if (shouldTrace) - { - ServiceClientTracing.SendRequest(invocationId, httpRequest); - } - - cancellationToken.ThrowIfCancellationRequested(); - var httpResponse = await HttpClient - .SendAsync(httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken) - .ConfigureAwait(false); - - if (shouldTrace) - { - ServiceClientTracing.ReceiveResponse(invocationId, httpResponse); - } - - cancellationToken.ThrowIfCancellationRequested(); - - if (httpResponse.StatusCode != HttpStatusCode.OK) - { - var responseContent = string.Empty; - - var ex = new HttpOperationException(string.Format( - "Operation returned an invalid status code '{0}'", - httpResponse.StatusCode)); - if (httpResponse.Content != null) - { -#if NET5_0 - responseContent = await httpResponse.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); -#else - responseContent = await httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); -#endif - } - - ex.Request = new HttpRequestMessageWrapper(httpRequest, responseContent); - ex.Response = new HttpResponseMessageWrapper(httpResponse, string.Empty); - - httpRequest.Dispose(); - httpResponse?.Dispose(); - throw ex; - } - - return new Watcher( - async () => - { - var stream = await httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false); - var reader = new StreamReader(stream); - - return reader; - }, onEvent, onError, onClosed); - } - } -} diff --git a/src/KubernetesClient/Kubernetes.WebSocket.cs b/src/KubernetesClient/Kubernetes.WebSocket.cs index b1cbfc9b7..aeca29708 100644 --- a/src/KubernetesClient/Kubernetes.WebSocket.cs +++ b/src/KubernetesClient/Kubernetes.WebSocket.cs @@ -1,18 +1,9 @@ -using k8s.Models; -using Microsoft.Rest; -using Microsoft.Rest.Serialization; -using System; -using System.Collections.Generic; -using System.Linq; +using System.Globalization; using System.Net; using System.Net.Http; using System.Net.WebSockets; -using System.Net.Security; using System.Security.Cryptography.X509Certificates; -using System.Threading; -using System.Threading.Tasks; using System.Text; -using System.Globalization; namespace k8s { @@ -27,11 +18,11 @@ public partial class Kubernetes /// public Task WebSocketNamespacedPodExecAsync(string name, string @namespace = "default", string command = null, string container = null, bool stderr = true, bool stdin = true, bool stdout = true, - bool tty = true, string webSocketSubProtol = null, Dictionary> customHeaders = null, + bool tty = true, string webSocketSubProtocol = null, Dictionary> customHeaders = null, CancellationToken cancellationToken = default) { return WebSocketNamespacedPodExecAsync(name, @namespace, new string[] { command }, container, stderr, stdin, - stdout, tty, webSocketSubProtol, customHeaders, cancellationToken); + stdout, tty, webSocketSubProtocol, customHeaders, cancellationToken); } /// @@ -39,7 +30,7 @@ public virtual async Task MuxedStreamNamespacedPodExecAsync( string name, string @namespace = "default", IEnumerable command = null, string container = null, bool stderr = true, bool stdin = true, bool stdout = true, bool tty = true, - string webSocketSubProtol = WebSocketProtocol.V4BinaryWebsocketProtocol, + string webSocketSubProtocol = WebSocketProtocol.V4BinaryWebsocketProtocol, Dictionary> customHeaders = null, CancellationToken cancellationToken = default) { @@ -54,7 +45,7 @@ public virtual async Task MuxedStreamNamespacedPodExecAsync( public virtual Task WebSocketNamespacedPodExecAsync(string name, string @namespace = "default", IEnumerable command = null, string container = null, bool stderr = true, bool stdin = true, bool stdout = true, bool tty = true, - string webSocketSubProtol = WebSocketProtocol.V4BinaryWebsocketProtocol, + string webSocketSubProtocol = WebSocketProtocol.V4BinaryWebsocketProtocol, Dictionary> customHeaders = null, CancellationToken cancellationToken = default) { @@ -88,30 +79,11 @@ public virtual Task WebSocketNamespacedPodExecAsync(string name, stri } } - // Tracing - var shouldTrace = ServiceClientTracing.IsEnabled; - string invocationId = null; - if (shouldTrace) - { - invocationId = ServiceClientTracing.NextInvocationId.ToString(); - var tracingParameters = new Dictionary(); - tracingParameters.Add("command", command); - tracingParameters.Add("container", container); - tracingParameters.Add("name", name); - tracingParameters.Add("namespace", @namespace); - tracingParameters.Add("stderr", stderr); - tracingParameters.Add("stdin", stdin); - tracingParameters.Add("stdout", stdout); - tracingParameters.Add("tty", tty); - tracingParameters.Add("webSocketSubProtol", webSocketSubProtol); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(invocationId, this, nameof(WebSocketNamespacedPodExecAsync), - tracingParameters); - } - // Construct URL - var uriBuilder = new UriBuilder(BaseUri); - uriBuilder.Scheme = BaseUri.Scheme == "https" ? "wss" : "ws"; + var uriBuilder = new UriBuilder(BaseUri) + { + Scheme = BaseUri.Scheme == "https" ? "wss" : "ws", + }; if (!uriBuilder.Path.EndsWith("/", StringComparison.InvariantCulture)) { @@ -142,7 +114,7 @@ public virtual Task WebSocketNamespacedPodExecAsync(string name, stri uriBuilder.Query = query.ToString(1, query.Length - 1); // UriBuilder.Query doesn't like leading '?' chars, so trim it - return StreamConnectAsync(uriBuilder.Uri, invocationId, webSocketSubProtol, customHeaders, + return StreamConnectAsync(uriBuilder.Uri, webSocketSubProtocol, customHeaders, cancellationToken); } @@ -167,25 +139,12 @@ public Task WebSocketNamespacedPodPortForwardAsync(string name, strin throw new ArgumentNullException(nameof(ports)); } - // Tracing - var shouldTrace = ServiceClientTracing.IsEnabled; - string invocationId = null; - if (shouldTrace) - { - invocationId = ServiceClientTracing.NextInvocationId.ToString(); - var tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("@namespace", @namespace); - tracingParameters.Add("ports", ports); - tracingParameters.Add("webSocketSubProtocol", webSocketSubProtocol); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(invocationId, this, nameof(WebSocketNamespacedPodPortForwardAsync), - tracingParameters); - } // Construct URL - var uriBuilder = new UriBuilder(BaseUri); - uriBuilder.Scheme = BaseUri.Scheme == "https" ? "wss" : "ws"; + var uriBuilder = new UriBuilder(BaseUri) + { + Scheme = BaseUri.Scheme == "https" ? "wss" : "ws", + }; if (!uriBuilder.Path.EndsWith("/", StringComparison.InvariantCulture)) { @@ -207,14 +166,14 @@ public Task WebSocketNamespacedPodPortForwardAsync(string name, strin uriBuilder.Query = q.ToString(); - return StreamConnectAsync(uriBuilder.Uri, invocationId, webSocketSubProtocol, customHeaders, + return StreamConnectAsync(uriBuilder.Uri, webSocketSubProtocol, customHeaders, cancellationToken); } /// public Task WebSocketNamespacedPodAttachAsync(string name, string @namespace, string container = default, bool stderr = true, bool stdin = false, bool stdout = true, - bool tty = false, string webSocketSubProtol = null, Dictionary> customHeaders = null, + bool tty = false, string webSocketSubProtocol = null, Dictionary> customHeaders = null, CancellationToken cancellationToken = default) { if (name == null) @@ -227,29 +186,11 @@ public Task WebSocketNamespacedPodAttachAsync(string name, string @na throw new ArgumentNullException(nameof(@namespace)); } - // Tracing - var shouldTrace = ServiceClientTracing.IsEnabled; - string invocationId = null; - if (shouldTrace) - { - invocationId = ServiceClientTracing.NextInvocationId.ToString(); - var tracingParameters = new Dictionary(); - tracingParameters.Add("container", container); - tracingParameters.Add("name", name); - tracingParameters.Add("namespace", @namespace); - tracingParameters.Add("stderr", stderr); - tracingParameters.Add("stdin", stdin); - tracingParameters.Add("stdout", stdout); - tracingParameters.Add("tty", tty); - tracingParameters.Add("webSocketSubProtol", webSocketSubProtol); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(invocationId, this, nameof(WebSocketNamespacedPodAttachAsync), - tracingParameters); - } - // Construct URL - var uriBuilder = new UriBuilder(BaseUri); - uriBuilder.Scheme = BaseUri.Scheme == "https" ? "wss" : "ws"; + var uriBuilder = new UriBuilder(BaseUri) + { + Scheme = BaseUri.Scheme == "https" ? "wss" : "ws", + }; if (!uriBuilder.Path.EndsWith("/", StringComparison.InvariantCulture)) { @@ -267,21 +208,20 @@ public Task WebSocketNamespacedPodAttachAsync(string name, string @na uriBuilder.Query = query.ToString(1, query.Length - 1); // UriBuilder.Query doesn't like leading '?' chars, so trim it - return StreamConnectAsync(uriBuilder.Uri, invocationId, webSocketSubProtol, customHeaders, + return StreamConnectAsync(uriBuilder.Uri, webSocketSubProtocol, customHeaders, cancellationToken); } - protected async Task StreamConnectAsync(Uri uri, string invocationId = null, - string webSocketSubProtocol = null, Dictionary> customHeaders = null, - CancellationToken cancellationToken = default) + partial void BeforeRequest(); + partial void AfterRequest(); + + protected async Task StreamConnectAsync(Uri uri, string webSocketSubProtocol = null, Dictionary> customHeaders = null, CancellationToken cancellationToken = default) { if (uri == null) { throw new ArgumentNullException(nameof(uri)); } - var shouldTrace = ServiceClientTracing.IsEnabled; - // Create WebSocket transport objects var webSocketBuilder = CreateWebSocketBuilder(); @@ -295,14 +235,13 @@ protected async Task StreamConnectAsync(Uri uri, string invocationId } // Set Credentials - if (this.ClientCert != null) - { - webSocketBuilder.AddClientCertificate(this.ClientCert); - } - if (this.HttpClientHandler != null) { +#if NET5_0_OR_GREATER + foreach (var cert in this.HttpClientHandler.SslOptions.ClientCertificates.OfType()) +#else foreach (var cert in this.HttpClientHandler.ClientCertificates.OfType()) +#endif { webSocketBuilder.AddClientCertificate(cert); } @@ -341,8 +280,8 @@ protected async Task StreamConnectAsync(Uri uri, string invocationId WebSocket webSocket = null; try { - webSocket = await webSocketBuilder.BuildAndConnectAsync(uri, CancellationToken.None) - .ConfigureAwait(false); + BeforeRequest(); + webSocket = await webSocketBuilder.BuildAndConnectAsync(uri, cancellationToken).ConfigureAwait(false); } catch (WebSocketException wse) when (wse.WebSocketErrorCode == WebSocketError.HeaderError || (wse.InnerException is WebSocketException && @@ -351,8 +290,10 @@ protected async Task StreamConnectAsync(Uri uri, string invocationId { // This usually indicates the server sent an error message, like 400 Bad Request. Unfortunately, the WebSocket client // class doesn't give us a lot of information about what went wrong. So, retry the connection. - var uriBuilder = new UriBuilder(uri); - uriBuilder.Scheme = uri.Scheme == "wss" ? "https" : "http"; + var uriBuilder = new UriBuilder(uri) + { + Scheme = uri.Scheme == "wss" ? "https" : "http", + }; var response = await HttpClient.GetAsync(uriBuilder.Uri, cancellationToken).ConfigureAwait(false); @@ -365,18 +306,18 @@ protected async Task StreamConnectAsync(Uri uri, string invocationId } else { -#if NET5_0 +#if NET5_0_OR_GREATER var content = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); #else var content = await response.Content.ReadAsStringAsync().ConfigureAwait(false); #endif // Try to parse the content as a V1Status object - var genericObject = SafeJsonConvert.DeserializeObject(content); + var genericObject = KubernetesJson.Deserialize(content); V1Status status = null; if (genericObject.ApiVersion == "v1" && genericObject.Kind == "Status") { - status = SafeJsonConvert.DeserializeObject(content); + status = KubernetesJson.Deserialize(content); } var ex = @@ -384,7 +325,7 @@ protected async Task StreamConnectAsync(Uri uri, string invocationId $"The operation returned an invalid status code: {response.StatusCode}", wse) { Response = new HttpResponseMessageWrapper(response, content), - Body = status != null ? (object)status : content, + Body = status != null ? status : content, }; response.Dispose(); @@ -392,21 +333,13 @@ protected async Task StreamConnectAsync(Uri uri, string invocationId throw ex; } } - catch (Exception ex) + catch (Exception) { - if (shouldTrace) - { - ServiceClientTracing.Error(invocationId, ex); - } - throw; } finally { - if (shouldTrace) - { - ServiceClientTracing.Exit(invocationId, null); - } + AfterRequest(); } return webSocket; diff --git a/src/KubernetesClient/Kubernetes.cs b/src/KubernetesClient/Kubernetes.cs index a7adeab9e..5e5021356 100644 --- a/src/KubernetesClient/Kubernetes.cs +++ b/src/KubernetesClient/Kubernetes.cs @@ -1,264 +1,73 @@ -using System; -using System.Collections.Generic; -using System.IO; +using k8s.Authentication; +using System.Net; using System.Net.Http; -using System.Threading; -using System.Threading.Tasks; -using Microsoft.Rest; -using Microsoft.Rest.Serialization; -using Newtonsoft.Json; namespace k8s { - public partial class Kubernetes + public partial class Kubernetes : AbstractKubernetes, IKubernetes { - /// - /// The base URI of the service. - /// - public System.Uri BaseUri { get; set; } - - /// - /// Gets json serialization settings. - /// - public JsonSerializerSettings SerializationSettings { get; private set; } - - /// - /// Gets json deserialization settings. - /// - public JsonSerializerSettings DeserializationSettings { get; private set; } - - /// - /// Subscription credentials which uniquely identify client subscription. - /// - public ServiceClientCredentials Credentials { get; private set; } - - /// - /// Initializes a new instance of the class. - /// - /// - /// HttpClient to be used - /// - /// - /// True: will dispose the provided httpClient on calling Kubernetes.Dispose(). False: will not dispose provided httpClient - protected Kubernetes(HttpClient httpClient, bool disposeHttpClient) - : base(httpClient, disposeHttpClient) - { - Initialize(); - } + private Uri baseuri; /// - /// Initializes a new instance of the class. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - protected Kubernetes(params DelegatingHandler[] handlers) - : base(handlers) - { - Initialize(); - } - - /// - /// Initializes a new instance of the class. - /// - /// - /// Optional. The http client handler used to handle http transport. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - protected Kubernetes(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) - : base(rootHandler, handlers) - { - Initialize(); - } - - /// - /// Initializes a new instance of the class. + /// The base URI of the service. /// - /// - /// Optional. The base URI of the service. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - /// - /// Thrown when a required parameter is null - /// - protected Kubernetes(System.Uri baseUri, params DelegatingHandler[] handlers) - : this(handlers) + public Uri BaseUri { - BaseUri = baseUri ?? throw new ArgumentNullException(nameof(baseUri)); + get => baseuri; + set + { + var baseUrl = value?.AbsoluteUri ?? throw new ArgumentNullException(nameof(BaseUri)); + baseuri = new Uri(baseUrl + (baseUrl.EndsWith("/") ? "" : "/")); + } } /// - /// Initializes a new instance of the class. + /// Subscription credentials which uniquely identify client subscription. /// - /// - /// Optional. The base URI of the service. - /// - /// - /// Optional. The http client handler used to handle http transport. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - /// - /// Thrown when a required parameter is null - /// - protected Kubernetes(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) - : this(rootHandler, handlers) - { - BaseUri = baseUri ?? throw new ArgumentNullException(nameof(baseUri)); - } + public ServiceClientCredentials Credentials { get; private set; } - /// - /// Initializes a new instance of the class. - /// - /// - /// Required. Subscription credentials which uniquely identify client subscription. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - /// - /// Thrown when a required parameter is null - /// - public Kubernetes(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) - : this(handlers) - { - Credentials = credentials ?? throw new ArgumentNullException(nameof(credentials)); - Credentials.InitializeServiceClient(this); - } + public HttpClient HttpClient { get; protected set; } /// - /// Initializes a new instance of the class. + /// Reference to the first HTTP handler (which is the start of send HTTP + /// pipeline). /// - /// - /// Required. Subscription credentials which uniquely identify client subscription. - /// - /// - /// HttpClient to be used - /// - /// - /// True: will dispose the provided httpClient on calling Kubernetes.Dispose(). False: will not dispose provided httpClient - /// - /// Thrown when a required parameter is null - /// - public Kubernetes(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) - : this(httpClient, disposeHttpClient) - { - Credentials = credentials ?? throw new ArgumentNullException(nameof(credentials)); - Credentials.InitializeServiceClient(this); - } + private HttpMessageHandler FirstMessageHandler { get; set; } /// - /// Initializes a new instance of the class. + /// Reference to the innermost HTTP handler (which is the end of send HTTP + /// pipeline). /// - /// - /// Required. Subscription credentials which uniquely identify client subscription. - /// - /// - /// Optional. The http client handler used to handle http transport. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - /// - /// Thrown when a required parameter is null - /// - public Kubernetes(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) - : this(rootHandler, handlers) - { - Credentials = credentials ?? throw new ArgumentNullException(nameof(credentials)); - Credentials.InitializeServiceClient(this); - } +#if NET5_0_OR_GREATER + private SocketsHttpHandler HttpClientHandler { get; set; } +#else + private HttpClientHandler HttpClientHandler { get; set; } +#endif - /// - /// Initializes a new instance of the class. - /// - /// - /// Optional. The base URI of the service. - /// - /// - /// Required. Subscription credentials which uniquely identify client subscription. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - /// - /// Thrown when a required parameter is null - /// - public Kubernetes(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) - : this(handlers) - { - BaseUri = baseUri ?? throw new ArgumentNullException(nameof(baseUri)); - Credentials = credentials ?? throw new ArgumentNullException(nameof(credentials)); - Credentials.InitializeServiceClient(this); - } +#if NETSTANDARD2_1_OR_GREATER || NET5_0_OR_GREATER + private bool DisableHttp2 { get; set; } +#endif /// - /// Initializes a new instance of the class. + /// Initializes client properties. /// - /// - /// Optional. The base URI of the service. - /// - /// - /// Required. Subscription credentials which uniquely identify client subscription. - /// - /// - /// Optional. The http client handler used to handle http transport. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - /// - /// Thrown when a required parameter is null - /// - public Kubernetes(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) - : this(rootHandler, handlers) + private void Initialize() { - BaseUri = baseUri ?? throw new ArgumentNullException(nameof(baseUri)); - Credentials = credentials ?? throw new ArgumentNullException(nameof(credentials)); - Credentials.InitializeServiceClient(this); + BaseUri = new Uri("http://localhost/"); } - /// - /// Initializes client properties. - /// - private void Initialize() + protected override async Task> CreateResultAsync(HttpRequestMessage httpRequest, HttpResponseMessage httpResponse, bool? watch, CancellationToken cancellationToken) { - BaseUri = new System.Uri("http://localhost/"); - SerializationSettings = new JsonSerializerSettings + if (httpRequest == null) { - Formatting = Newtonsoft.Json.Formatting.Indented, - DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, - DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, - NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, - ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, - ContractResolver = new ReadOnlyJsonContractResolver(), - Converters = new List - { - new Iso8601TimeSpanConverter(), - }, - }; - DeserializationSettings = new JsonSerializerSettings + throw new ArgumentNullException(nameof(httpRequest)); + } + + if (httpResponse == null) { - DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, - DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, - NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, - ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, - ContractResolver = new ReadOnlyJsonContractResolver(), - Converters = new List - { - new Iso8601TimeSpanConverter(), - }, - }; - CustomInitialize(); - } + throw new ArgumentNullException(nameof(httpResponse)); + } - private async Task> CreateResultAsync(HttpRequestMessage httpRequest, HttpResponseMessage httpResponse, bool? watch, CancellationToken cancellationToken) - { var result = new HttpOperationResponse() { Request = httpRequest, Response = httpResponse }; if (watch == true) @@ -268,26 +77,160 @@ private async Task> CreateResultAsync(HttpRequestMes try { - JsonSerializer jsonSerializer = JsonSerializer.Create(DeserializationSettings); - jsonSerializer.CheckAdditionalContent = true; #if NET5_0_OR_GREATER using (Stream stream = await httpResponse.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false)) #else using (Stream stream = await httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false)) #endif - using (JsonTextReader reader = new JsonTextReader(new StreamReader(stream))) { - result.Body = (T)jsonSerializer.Deserialize(reader, typeof(T)); + result.Body = KubernetesJson.Deserialize(stream, jsonSerializerOptions); } } - catch (JsonException ex) + catch (JsonException) { httpRequest.Dispose(); httpResponse.Dispose(); - throw new SerializationException("Unable to deserialize the response.", ex); + throw; } return result; } + + protected override Task SendRequest(string relativeUri, HttpMethod method, IReadOnlyDictionary> customHeaders, T body, CancellationToken cancellationToken) + { + var httpRequest = new HttpRequestMessage + { + Method = method, + RequestUri = new Uri(BaseUri, relativeUri), + }; + +#if NETSTANDARD2_1_OR_GREATER || NET5_0_OR_GREATER + if (!DisableHttp2) + { + httpRequest.Version = HttpVersion.Version20; + } +#endif + // Set Headers + if (customHeaders != null) + { + foreach (var header in customHeaders) + { + httpRequest.Headers.Remove(header.Key); + httpRequest.Headers.TryAddWithoutValidation(header.Key, header.Value); + } + } + + if (body != null) + { + var requestContent = KubernetesJson.Serialize(body, jsonSerializerOptions); + httpRequest.Content = new StringContent(requestContent, System.Text.Encoding.UTF8); + httpRequest.Content.Headers.ContentType = GetHeader(body); + return SendRequestRaw(requestContent, httpRequest, cancellationToken); + } + + return SendRequestRaw("", httpRequest, cancellationToken); + } + + protected virtual async Task SendRequestRaw(string requestContent, HttpRequestMessage httpRequest, CancellationToken cancellationToken) + { + if (httpRequest == null) + { + throw new ArgumentNullException(nameof(httpRequest)); + } + + // Set Credentials + if (Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Credentials.ProcessHttpRequestAsync(httpRequest, cancellationToken).ConfigureAwait(false); + } + + if (!string.IsNullOrWhiteSpace(TlsServerName)) + { + httpRequest.Headers.Host = TlsServerName; + } + + // Send Request + cancellationToken.ThrowIfCancellationRequested(); + var httpResponse = await HttpClient.SendAsync(httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + HttpStatusCode statusCode = httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + + if (!httpResponse.IsSuccessStatusCode) + { + string responseContent = null; + if (httpResponse.Content != null) + { + responseContent = await httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + } + else + { + responseContent = string.Empty; + } + + var ex = new HttpOperationException($"Operation returned an invalid status code '{statusCode}', response body {responseContent}"); + ex.Request = new HttpRequestMessageWrapper(httpRequest, requestContent); + ex.Response = new HttpResponseMessageWrapper(httpResponse, responseContent); + httpRequest.Dispose(); + if (httpResponse != null) + { + httpResponse.Dispose(); + } + + throw ex; + } + + return httpResponse; + } + + /// + /// Indicates whether the ServiceClient has been disposed. + /// + private bool _disposed; + + /// + /// Dispose the ServiceClient. + /// + public void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); + } + + /// + /// Dispose the HttpClient and Handlers. + /// + /// True to release both managed and unmanaged resources; false to releases only unmanaged resources. + protected virtual void Dispose(bool disposing) + { + if (disposing && !_disposed) + { + _disposed = true; + + // Dispose the client + HttpClient?.Dispose(); + HttpClient = null; + + // Dispose the certificates + if (CaCerts is not null) + { + foreach (var caCert in CaCerts) + { + caCert.Dispose(); + } + + CaCerts.Clear(); + } + + ClientCert?.Dispose(); + ClientCert = null; + + FirstMessageHandler?.Dispose(); + FirstMessageHandler = null; + + HttpClientHandler?.Dispose(); + HttpClientHandler = null; + } + } } } diff --git a/src/KubernetesClient/KubernetesClient.csproj b/src/KubernetesClient/KubernetesClient.csproj index d002b8939..dba319136 100644 --- a/src/KubernetesClient/KubernetesClient.csproj +++ b/src/KubernetesClient/KubernetesClient.csproj @@ -1,51 +1,22 @@ - - The Kubernetes Project Authors - 2017 The Kubernetes Project Authors - Client library for the Kubernetes open source container orchestrator. + + net8.0;net9.0 + k8s + true + - Apache-2.0 - https://github.com/kubernetes-client/csharp - https://raw.githubusercontent.com/kubernetes/kubernetes/master/logo/logo.png - kubernetes;docker;containers; + + + + - netstandard2.1;net5;net6 - k8s - true - true - - - true - - - true - snupkg - true - $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb - + + + - - true - + + + - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + diff --git a/src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs b/src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs index 1185b435d..f25c55bbb 100644 --- a/src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs +++ b/src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs @@ -1,16 +1,11 @@ -using System; -using System.Collections.Generic; -using Newtonsoft.Json; -using System.Diagnostics; -using System.IO; -using System.Linq; -using System.Runtime.InteropServices; -using System.Security.Cryptography.X509Certificates; -using System.Threading.Tasks; using k8s.Authentication; using k8s.Exceptions; using k8s.KubeConfigModels; +using System.Diagnostics; using System.Net; +using System.Runtime.InteropServices; +using System.Security.Cryptography.X509Certificates; +using System.Text; namespace k8s { @@ -21,8 +16,8 @@ public partial class KubernetesClientConfiguration /// public static readonly string KubeConfigDefaultLocation = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) - ? Path.Combine(Environment.GetEnvironmentVariable("USERPROFILE"), @".kube\config") - : Path.Combine(Environment.GetEnvironmentVariable("HOME"), ".kube/config"); + ? Path.Combine(Environment.GetEnvironmentVariable("USERPROFILE") ?? @"\", @".kube\config") + : Path.Combine(Environment.GetEnvironmentVariable("HOME") ?? "/", ".kube/config"); /// /// Gets CurrentContext @@ -32,6 +27,16 @@ public partial class KubernetesClientConfiguration // For testing internal static string KubeConfigEnvironmentVariable { get; set; } = "KUBECONFIG"; + /// + /// Exec process timeout + /// + public static TimeSpan ExecTimeout { get; set; } = TimeSpan.FromMinutes(2); + + /// + /// Exec process Standard Errors + /// + public static event EventHandler ExecStdError; + /// /// Initializes a new instance of the from default locations /// If the KUBECONFIG environment variable is set, then that will be used. @@ -65,8 +70,11 @@ public static KubernetesClientConfiguration BuildDefaultConfig() return InClusterConfig(); } - var config = new KubernetesClientConfiguration(); - config.Host = "http://localhost:8080/"; + var config = new KubernetesClientConfiguration + { + Host = "http://localhost:8080/", + }; + return config; } @@ -165,7 +173,7 @@ public static async Task BuildConfigFromConfigFil kubeconfig.Position = 0; - var k8SConfig = await Yaml.LoadFromStreamAsync(kubeconfig).ConfigureAwait(false); + var k8SConfig = await KubernetesYaml.LoadFromStreamAsync(kubeconfig).ConfigureAwait(false); var k8SConfiguration = GetKubernetesClientConfiguration(currentContext, masterUrl, k8SConfig); return k8SConfiguration; @@ -268,6 +276,7 @@ private void SetClusterDetails(K8SConfiguration k8SConfig, Context activeContext Host = clusterDetails.ClusterEndpoint.Server; SkipTlsVerify = clusterDetails.ClusterEndpoint.SkipTlsVerify; + TlsServerName = clusterDetails.ClusterEndpoint.TlsServerName; if (!Uri.TryCreate(Host, UriKind.Absolute, out var uri)) { @@ -278,14 +287,18 @@ private void SetClusterDetails(K8SConfiguration k8SConfig, Context activeContext { if (IPAddress.Equals(IPAddress.Any, ipAddress)) { - var builder = new UriBuilder(Host); - builder.Host = $"{IPAddress.Loopback}"; + var builder = new UriBuilder(Host) + { + Host = $"{IPAddress.Loopback}", + }; Host = builder.ToString(); } else if (IPAddress.Equals(IPAddress.IPv6Any, ipAddress)) { - var builder = new UriBuilder(Host); - builder.Host = $"{IPAddress.IPv6Loopback}"; + var builder = new UriBuilder(Host) + { + Host = $"{IPAddress.IPv6Loopback}", + }; Host = builder.ToString(); } } @@ -295,13 +308,26 @@ private void SetClusterDetails(K8SConfiguration k8SConfig, Context activeContext if (!string.IsNullOrEmpty(clusterDetails.ClusterEndpoint.CertificateAuthorityData)) { var data = clusterDetails.ClusterEndpoint.CertificateAuthorityData; - SslCaCerts = new X509Certificate2Collection(new X509Certificate2(Convert.FromBase64String(data))); +#if NET9_0_OR_GREATER + SslCaCerts = new X509Certificate2Collection(X509CertificateLoader.LoadCertificate(Convert.FromBase64String(data))); +#else + string nullPassword = null; + // This null password is to change the constructor to fix this KB: + // https://support.microsoft.com/en-us/topic/kb5025823-change-in-how-net-applications-import-x-509-certificates-bf81c936-af2b-446e-9f7a-016f4713b46b + SslCaCerts = new X509Certificate2Collection(new X509Certificate2(Convert.FromBase64String(data), nullPassword)); +#endif } else if (!string.IsNullOrEmpty(clusterDetails.ClusterEndpoint.CertificateAuthority)) { +#if NET9_0_OR_GREATER + SslCaCerts = new X509Certificate2Collection(X509CertificateLoader.LoadCertificateFromFile(GetFullPath( + k8SConfig, + clusterDetails.ClusterEndpoint.CertificateAuthority))); +#else SslCaCerts = new X509Certificate2Collection(new X509Certificate2(GetFullPath( k8SConfig, clusterDetails.ClusterEndpoint.CertificateAuthority))); +#endif } } } @@ -369,45 +395,10 @@ private void SetUserDetails(K8SConfiguration k8SConfig, Context activeContext) switch (userDetails.UserCredentials.AuthProvider.Name) { case "azure": - { - var config = userDetails.UserCredentials.AuthProvider.Config; - if (config.ContainsKey("expires-on")) - { - var expiresOn = int.Parse(config["expires-on"]); - DateTimeOffset expires; - expires = DateTimeOffset.FromUnixTimeSeconds(expiresOn); - - if (DateTimeOffset.Compare( - expires, - DateTimeOffset.Now) - <= 0) - { - var tenantId = config["tenant-id"]; - var clientId = config["client-id"]; - var apiServerId = config["apiserver-id"]; - var refresh = config["refresh-token"]; - var newToken = RenewAzureToken( - tenantId, - clientId, - apiServerId, - refresh); - config["access-token"] = newToken; - } - } - - AccessToken = config["access-token"]; - userCredentialsFound = true; - break; - } + throw new Exception("Please use the https://github.com/Azure/kubelogin credential plugin instead. See https://kubernetes.io/docs/reference/access-authn-authz/authentication/#client-go-credential-plugins for further details`"); case "gcp": - { - // config - var config = userDetails.UserCredentials.AuthProvider.Config; - TokenProvider = new GcpTokenProvider(config["cmd-path"]); - userCredentialsFound = true; - break; - } + throw new Exception("Please use the \"gke-gcloud-auth-plugin\" credential plugin instead. See https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke for further details"); case "oidc": { @@ -448,15 +439,21 @@ private void SetUserDetails(K8SConfiguration k8SConfig, Context activeContext) throw new KubeConfigException("External command execution missing ApiVersion key"); } - var (accessToken, clientCertificateData, clientCertificateKeyData) = ExecuteExternalCommand(userDetails.UserCredentials.ExternalExecution); - AccessToken = accessToken; + var response = ExecuteExternalCommand(userDetails.UserCredentials.ExternalExecution); + AccessToken = response.Status.Token; // When reading ClientCertificateData from a config file it will be base64 encoded, and code later in the system (see CertUtils.GeneratePfx) // expects ClientCertificateData and ClientCertificateKeyData to be base64 encoded because of this. However the string returned by external // auth providers is the raw certificate and key PEM text, so we need to take that and base64 encoded it here so it can be decoded later. - ClientCertificateData = clientCertificateData == null ? null : Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes(clientCertificateData)); - ClientCertificateKeyData = clientCertificateKeyData == null ? null : Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes(clientCertificateKeyData)); + ClientCertificateData = response.Status.ClientCertificateData == null ? null : Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes(response.Status.ClientCertificateData)); + ClientCertificateKeyData = response.Status.ClientKeyData == null ? null : Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes(response.Status.ClientKeyData)); userCredentialsFound = true; + + // TODO: support client certificates here too. + if (AccessToken != null) + { + TokenProvider = new ExecTokenProvider(userDetails.UserCredentials.ExternalExecution); + } } if (!userCredentialsFound) @@ -466,12 +463,7 @@ private void SetUserDetails(K8SConfiguration k8SConfig, Context activeContext) } } - public static string RenewAzureToken(string tenantId, string clientId, string apiServerId, string refresh) - { - throw new KubeConfigException("Refresh not supported."); - } - - public static Process CreateRunnableExternalProcess(ExternalExecution config) + public static Process CreateRunnableExternalProcess(ExternalExecution config, EventHandler captureStdError = null) { if (config == null) { @@ -487,7 +479,7 @@ public static Process CreateRunnableExternalProcess(ExternalExecution config) var process = new Process(); - process.StartInfo.EnvironmentVariables.Add("KUBERNETES_EXEC_INFO", JsonConvert.SerializeObject(execInfo)); + process.StartInfo.EnvironmentVariables.Add("KUBERNETES_EXEC_INFO", JsonSerializer.Serialize(execInfo)); if (config.EnvironmentVariables != null) { foreach (var configEnvironmentVariable in config.EnvironmentVariables) @@ -512,8 +504,9 @@ public static Process CreateRunnableExternalProcess(ExternalExecution config) } process.StartInfo.RedirectStandardOutput = true; - process.StartInfo.RedirectStandardError = true; + process.StartInfo.RedirectStandardError = captureStdError != null; process.StartInfo.UseShellExecute = false; + process.StartInfo.CreateNoWindow = true; return process; } @@ -529,62 +522,69 @@ public static Process CreateRunnableExternalProcess(ExternalExecution config) /// /// The token, client certificate data, and the client key data received from the external command execution /// - public static (string, string, string) ExecuteExternalCommand(ExternalExecution config) + public static ExecCredentialResponse ExecuteExternalCommand(ExternalExecution config) { if (config == null) { throw new ArgumentNullException(nameof(config)); } - var process = CreateRunnableExternalProcess(config); + var captureStdError = ExecStdError; + var process = CreateRunnableExternalProcess(config, captureStdError); try { process.Start(); + if (captureStdError != null) + { + process.ErrorDataReceived += captureStdError.Invoke; + process.BeginErrorReadLine(); + } } catch (Exception ex) { throw new KubeConfigException($"external exec failed due to: {ex.Message}"); } - var stdout = process.StandardOutput.ReadToEnd(); - var stderr = process.StandardError.ReadToEnd(); - if (string.IsNullOrWhiteSpace(stderr) == false) + try { - throw new KubeConfigException($"external exec failed due to: {stderr}"); - } + var output = new StringBuilder(); + process.OutputDataReceived += (_, args) => + { + if (args.Data != null) + { + output.Append(args.Data); + } + }; + process.BeginOutputReadLine(); - // Wait for a maximum of 5 seconds, if a response takes longer probably something went wrong... - process.WaitForExit(5); + if (!process.WaitForExit((int)ExecTimeout.TotalMilliseconds)) + { + throw new KubeConfigException("external exec failed due to timeout"); + } + + // Force flush the output buffer to avoid case of missing data + if (ExecTimeout != Timeout.InfiniteTimeSpan) + { + process.WaitForExit(); + } + + var responseObject = KubernetesJson.Deserialize(output.ToString()); - try - { - var responseObject = JsonConvert.DeserializeObject(stdout); if (responseObject == null || responseObject.ApiVersion != config.ApiVersion) { throw new KubeConfigException( $"external exec failed because api version {responseObject.ApiVersion} does not match {config.ApiVersion}"); } - if (responseObject.Status.ContainsKey("token")) + if (responseObject.Status.IsValid()) { - return (responseObject.Status["token"], null, null); + return responseObject; } - else if (responseObject.Status.ContainsKey("clientCertificateData")) - { - if (!responseObject.Status.ContainsKey("clientKeyData")) - { - throw new KubeConfigException($"external exec failed missing clientKeyData field in plugin output"); - } - return (null, responseObject.Status["clientCertificateData"], responseObject.Status["clientKeyData"]); - } - else - { - throw new KubeConfigException($"external exec failed missing token or clientCertificateData field in plugin output"); - } + throw new KubeConfigException($"external exec failed missing token or clientCertificateData field in plugin output"); } - catch (JsonSerializationException ex) + catch (JsonException ex) { throw new KubeConfigException($"external exec failed due to failed deserialization process: {ex}"); } @@ -646,7 +646,7 @@ public static async Task LoadKubeConfigAsync( using (var stream = kubeconfig.OpenRead()) { - var config = await Yaml.LoadFromStreamAsync(stream).ConfigureAwait(false); + var config = await KubernetesYaml.LoadFromStreamAsync(stream).ConfigureAwait(false); if (useRelativePaths) { @@ -676,7 +676,7 @@ public static K8SConfiguration LoadKubeConfig(FileInfo kubeconfig, bool useRelat /// Instance of the class public static async Task LoadKubeConfigAsync(Stream kubeconfigStream) { - return await Yaml.LoadFromStreamAsync(kubeconfigStream).ConfigureAwait(false); + return await KubernetesYaml.LoadFromStreamAsync(kubeconfigStream).ConfigureAwait(false); } /// diff --git a/src/KubernetesClient/KubernetesClientConfiguration.HttpClientHandler.cs b/src/KubernetesClient/KubernetesClientConfiguration.HttpClientHandler.cs deleted file mode 100644 index 810ef5d34..000000000 --- a/src/KubernetesClient/KubernetesClientConfiguration.HttpClientHandler.cs +++ /dev/null @@ -1,51 +0,0 @@ -using System; -using System.Net.Http; - -namespace k8s -{ - public partial class KubernetesClientConfiguration - { - public HttpClientHandler CreateDefaultHttpClientHandler() - { - var httpClientHandler = new HttpClientHandler(); - - var uriScheme = new Uri(this.Host).Scheme; - - if (uriScheme == "https") - { - if (SkipTlsVerify) - { - httpClientHandler.ServerCertificateCustomValidationCallback = - (sender, certificate, chain, sslPolicyErrors) => true; - } - else - { - httpClientHandler.ServerCertificateCustomValidationCallback = - (sender, certificate, chain, sslPolicyErrors) => - { - return Kubernetes.CertificateValidationCallBack(sender, SslCaCerts, certificate, chain, - sslPolicyErrors); - }; - } - } - - AddCertificates(httpClientHandler); - - return httpClientHandler; - } - - public void AddCertificates(HttpClientHandler handler) - { - if (handler == null) - { - throw new ArgumentNullException(nameof(handler)); - } - - var clientCert = CertUtils.GetClientCert(this); - if (clientCert != null) - { - handler.ClientCertificates.Add(clientCert); - } - } - } -} diff --git a/src/KubernetesClient/KubernetesClientConfiguration.InCluster.cs b/src/KubernetesClient/KubernetesClientConfiguration.InCluster.cs index af2e0d567..4846b7425 100644 --- a/src/KubernetesClient/KubernetesClientConfiguration.InCluster.cs +++ b/src/KubernetesClient/KubernetesClientConfiguration.InCluster.cs @@ -1,5 +1,3 @@ -using System; -using System.IO; using k8s.Authentication; using k8s.Exceptions; @@ -25,14 +23,19 @@ public static bool IsInCluster() var host = Environment.GetEnvironmentVariable("KUBERNETES_SERVICE_HOST"); var port = Environment.GetEnvironmentVariable("KUBERNETES_SERVICE_PORT"); + if (string.IsNullOrEmpty(host) || string.IsNullOrEmpty(port)) + { + return false; + } + var tokenPath = Path.Combine(ServiceAccountPath, ServiceAccountTokenKeyFileName); - if (!FileUtils.FileSystem().File.Exists(tokenPath)) + if (!FileSystem.Current.Exists(tokenPath)) { return false; } var certPath = Path.Combine(ServiceAccountPath, ServiceAccountRootCAKeyFileName); - return FileUtils.FileSystem().File.Exists(certPath); + return FileSystem.Current.Exists(certPath); } public static KubernetesClientConfiguration InClusterConfig() @@ -40,7 +43,7 @@ public static KubernetesClientConfiguration InClusterConfig() if (!IsInCluster()) { throw new KubeConfigException( - "unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined"); + "Unable to load in-cluster configuration. Missing environment variables KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT or service account token. Hint: consider using option \"automountServiceAccountToken: true\" in deployment declaration."); } var rootCAFile = Path.Combine(ServiceAccountPath, ServiceAccountRootCAKeyFileName); @@ -64,9 +67,9 @@ public static KubernetesClientConfiguration InClusterConfig() }; var namespaceFile = Path.Combine(ServiceAccountPath, ServiceAccountNamespaceFileName); - if (FileUtils.FileSystem().File.Exists(namespaceFile)) + if (FileSystem.Current.Exists(namespaceFile)) { - result.Namespace = FileUtils.FileSystem().File.ReadAllText(namespaceFile); + result.Namespace = FileSystem.Current.ReadAllText(namespaceFile); } return result; diff --git a/src/KubernetesClient/KubernetesClientConfiguration.cs b/src/KubernetesClient/KubernetesClientConfiguration.cs index 423dbb12f..ac4a66719 100644 --- a/src/KubernetesClient/KubernetesClientConfiguration.cs +++ b/src/KubernetesClient/KubernetesClientConfiguration.cs @@ -1,8 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; +using k8s.Authentication; +using System.Net.Http; using System.Security.Cryptography.X509Certificates; -using Microsoft.Rest; namespace k8s { @@ -11,6 +9,8 @@ namespace k8s /// public partial class KubernetesClientConfiguration { + private JsonSerializerOptions jsonSerializerOptions; + /// /// Gets current namespace /// @@ -56,6 +56,11 @@ public partial class KubernetesClientConfiguration /// public bool SkipTlsVerify { get; set; } + /// + /// Option to override the TLS server name + /// + public string TlsServerName { get; set; } + /// /// Gets or sets the HTTP user agent. /// @@ -86,19 +91,62 @@ public partial class KubernetesClientConfiguration /// The access token. public ITokenProvider TokenProvider { get; set; } - /// - /// Set true to enable tcp keep alive - /// You have to set https://tldp.org/HOWTO/TCP-Keepalive-HOWTO/usingkeepalive.html as well - /// - /// true or false - public bool TcpKeepAlive { get; set; } = true; - - /// /// Timeout of REST calls to Kubernetes server /// Does not apply to watch related api /// /// timeout public TimeSpan HttpClientTimeout { get; set; } = TimeSpan.FromSeconds(100); + + /// + /// Gets or sets the FirstMessageHandler setup callback. + /// + /// + /// Allow custom configuration of the first http handler. + /// + /// The FirstMessageHandler factory. +#if NET5_0_OR_GREATER + public Action FirstMessageHandlerSetup { get; set; } +#else + public Action FirstMessageHandlerSetup { get; set; } +#endif + + /// + /// Do not use http2 even it is available + /// + public bool DisableHttp2 { get; set; } = false; + + /// + /// Options for the to override the default ones. + /// + public JsonSerializerOptions JsonSerializerOptions + { + get + { + // If not yet set, use defaults from KubernetesJson. + if (jsonSerializerOptions is null) + { + KubernetesJson.AddJsonOptions(options => + { + jsonSerializerOptions = new JsonSerializerOptions(options); + }); + } + + return jsonSerializerOptions; + } + + private set => jsonSerializerOptions = value; + } + + /// + public void AddJsonOptions(Action configure) + { + if (configure is null) + { + throw new ArgumentNullException(nameof(configure)); + } + + configure(JsonSerializerOptions); + } } } diff --git a/src/KubernetesClient/KubernetesException.cs b/src/KubernetesClient/KubernetesException.cs index 2ab5f3933..7d5ab6fb5 100644 --- a/src/KubernetesClient/KubernetesException.cs +++ b/src/KubernetesClient/KubernetesException.cs @@ -1,7 +1,3 @@ -using k8s.Models; -using System; -using System.Runtime.Serialization; - namespace k8s { /// @@ -74,22 +70,6 @@ public KubernetesException(string message, Exception innerException) { } - /// - /// Initializes a new instance of the class with serialized data. - /// - /// - /// The that holds the serialized - /// object data about the exception being thrown. - /// - /// - /// The that contains contextual information - /// about the source or destination. - /// - protected KubernetesException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - /// /// Gets, when this exception was raised because of a Kubernetes status message, the underlying /// Kubernetes status message. diff --git a/src/KubernetesClient/KubernetesJson.cs b/src/KubernetesClient/KubernetesJson.cs new file mode 100644 index 000000000..69ecdf43e --- /dev/null +++ b/src/KubernetesClient/KubernetesJson.cs @@ -0,0 +1,212 @@ +using System.Globalization; +using System.Text.Json.Nodes; +using System.Text.RegularExpressions; +using System.Xml; + +#if NET8_0_OR_GREATER +using System.Text.Json.Serialization.Metadata; +#endif + +namespace k8s +{ + public static class KubernetesJson + { + internal static readonly JsonSerializerOptions JsonSerializerOptions = new JsonSerializerOptions(); + + public sealed class Iso8601TimeSpanConverter : JsonConverter + { + public override TimeSpan Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var str = reader.GetString(); + return XmlConvert.ToTimeSpan(str); + } + + public override void Write(Utf8JsonWriter writer, TimeSpan value, JsonSerializerOptions options) + { + var iso8601TimeSpanString = XmlConvert.ToString(value); // XmlConvert for TimeSpan uses ISO8601, so delegate serialization to it + writer.WriteStringValue(iso8601TimeSpanString); + } + } + + public sealed class KubernetesDateTimeOffsetConverter : JsonConverter + { + private const string RFC3339MicroFormat = "yyyy'-'MM'-'dd'T'HH':'mm':'ss.ffffffZ"; + private const string RFC3339NanoFormat = "yyyy-MM-dd'T'HH':'mm':'ss.fffffffZ"; + private const string RFC3339Format = "yyyy'-'MM'-'dd'T'HH':'mm':'ssZ"; + + public override DateTimeOffset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var str = reader.GetString(); + + if (DateTimeOffset.TryParseExact(str, new[] { RFC3339Format, RFC3339MicroFormat }, CultureInfo.InvariantCulture, DateTimeStyles.None, out var result)) + { + return result; + } + + // try RFC3339NanoLenient by trimming 1-9 digits to 7 digits + var originalstr = str; + str = Regex.Replace(str, @"\.\d+", m => (m.Value + "000000000").Substring(0, 7 + 1)); // 7 digits + 1 for the dot + if (DateTimeOffset.TryParseExact(str, new[] { RFC3339NanoFormat }, CultureInfo.InvariantCulture, DateTimeStyles.None, out result)) + { + return result; + } + + throw new FormatException($"Unable to parse {originalstr} as RFC3339 RFC3339Micro or RFC3339Nano"); + } + + + public override void Write(Utf8JsonWriter writer, DateTimeOffset value, JsonSerializerOptions options) + { + // Output as RFC3339Micro + var date = value.ToUniversalTime(); + + var basePart = date.ToString("yyyy-MM-dd'T'HH:mm:ss", CultureInfo.InvariantCulture); + var frac = date.ToString(".ffffff", CultureInfo.InvariantCulture) + .TrimEnd('0') + .TrimEnd('.'); + + writer.WriteStringValue(basePart + frac + "Z"); + } + } + + public sealed class KubernetesDateTimeConverter : JsonConverter + { + private static readonly JsonConverter UtcConverter = new KubernetesDateTimeOffsetConverter(); + public override DateTime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + return UtcConverter.Read(ref reader, typeToConvert, options).UtcDateTime; + } + + public override void Write(Utf8JsonWriter writer, DateTime value, JsonSerializerOptions options) + { + UtcConverter.Write(writer, value, options); + } + } + + static KubernetesJson() + { +#if K8S_AOT + // Uses Source Generated IJsonTypeInfoResolver + JsonSerializerOptions.TypeInfoResolver = SourceGenerationContext.Default; +#else +#if NET8_0_OR_GREATER + // Uses Source Generated IJsonTypeInfoResolver when available and falls back to reflection + JsonSerializerOptions.TypeInfoResolver = JsonTypeInfoResolver.Combine(SourceGenerationContext.Default, new DefaultJsonTypeInfoResolver()); +#endif + JsonSerializerOptions.Converters.Add(new JsonStringEnumConverter()); +#endif + JsonSerializerOptions.DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull; + JsonSerializerOptions.PropertyNamingPolicy = JsonNamingPolicy.CamelCase; + JsonSerializerOptions.Converters.Add(new Iso8601TimeSpanConverter()); + JsonSerializerOptions.Converters.Add(new KubernetesDateTimeConverter()); + JsonSerializerOptions.Converters.Add(new KubernetesDateTimeOffsetConverter()); + JsonSerializerOptions.Converters.Add(new V1Status.V1StatusObjectViewConverter()); + } + + /// + /// Configures for the . + /// To override existing converters, add them to the top of the list + /// e.g. as follows: options.Converters.Insert(index: 0, new JsonStringEnumConverter(JsonNamingPolicy.CamelCase)); + /// + /// An to configure the . + public static void AddJsonOptions(Action configure) + { + if (configure is null) + { + throw new ArgumentNullException(nameof(configure)); + } + + configure(JsonSerializerOptions); + } + + public static TValue Deserialize(string json, JsonSerializerOptions jsonSerializerOptions = null) + { +#if NET8_0_OR_GREATER + var info = (JsonTypeInfo)(jsonSerializerOptions ?? JsonSerializerOptions).GetTypeInfo(typeof(TValue)); + return JsonSerializer.Deserialize(json, info); +#else + return JsonSerializer.Deserialize(json, jsonSerializerOptions ?? JsonSerializerOptions); +#endif + } + + public static TValue Deserialize(Stream json, JsonSerializerOptions jsonSerializerOptions = null) + { +#if NET8_0_OR_GREATER + var info = (JsonTypeInfo)(jsonSerializerOptions ?? JsonSerializerOptions).GetTypeInfo(typeof(TValue)); + return JsonSerializer.Deserialize(json, info); +#else + return JsonSerializer.Deserialize(json, jsonSerializerOptions ?? JsonSerializerOptions); +#endif + } + + public static TValue Deserialize(JsonDocument json, JsonSerializerOptions jsonSerializerOptions = null) + { +#if NET8_0_OR_GREATER + var info = (JsonTypeInfo)(jsonSerializerOptions ?? JsonSerializerOptions).GetTypeInfo(typeof(TValue)); + return JsonSerializer.Deserialize(json, info); +#else + return JsonSerializer.Deserialize(json, jsonSerializerOptions ?? JsonSerializerOptions); +#endif + } + + public static TValue Deserialize(JsonElement json, JsonSerializerOptions jsonSerializerOptions = null) + { +#if NET8_0_OR_GREATER + var info = (JsonTypeInfo)(jsonSerializerOptions ?? JsonSerializerOptions).GetTypeInfo(typeof(TValue)); + return JsonSerializer.Deserialize(json, info); +#else + return JsonSerializer.Deserialize(json, jsonSerializerOptions ?? JsonSerializerOptions); +#endif + } + + public static TValue Deserialize(JsonNode json, JsonSerializerOptions jsonSerializerOptions = null) + { +#if NET8_0_OR_GREATER + var info = (JsonTypeInfo)(jsonSerializerOptions ?? JsonSerializerOptions).GetTypeInfo(typeof(TValue)); + return JsonSerializer.Deserialize(json, info); +#else + return JsonSerializer.Deserialize(json, jsonSerializerOptions ?? JsonSerializerOptions); +#endif + } + + public static string Serialize(object value, JsonSerializerOptions jsonSerializerOptions = null) + { +#if NET8_0_OR_GREATER + var info = (jsonSerializerOptions ?? JsonSerializerOptions).GetTypeInfo(value.GetType()); + return JsonSerializer.Serialize(value, info); +#else + return JsonSerializer.Serialize(value, jsonSerializerOptions ?? JsonSerializerOptions); +#endif + } + + public static string Serialize(JsonDocument value, JsonSerializerOptions jsonSerializerOptions = null) + { +#if NET8_0_OR_GREATER + var info = (jsonSerializerOptions ?? JsonSerializerOptions).GetTypeInfo(value.GetType()); + return JsonSerializer.Serialize(value, info); +#else + return JsonSerializer.Serialize(value, jsonSerializerOptions ?? JsonSerializerOptions); +#endif + } + + public static string Serialize(JsonElement value, JsonSerializerOptions jsonSerializerOptions = null) + { +#if NET8_0_OR_GREATER + var info = (jsonSerializerOptions ?? JsonSerializerOptions).GetTypeInfo(value.GetType()); + return JsonSerializer.Serialize(value, info); +#else + return JsonSerializer.Serialize(value, jsonSerializerOptions ?? JsonSerializerOptions); +#endif + } + + public static string Serialize(JsonNode value, JsonSerializerOptions jsonSerializerOptions = null) + { +#if NET8_0_OR_GREATER + var info = (jsonSerializerOptions ?? JsonSerializerOptions).GetTypeInfo(value.GetType()); + return JsonSerializer.Serialize(value, info); +#else + return JsonSerializer.Serialize(value, jsonSerializerOptions ?? JsonSerializerOptions); +#endif + } + } +} diff --git a/src/KubernetesClient/KubernetesMetricsExtensions.cs b/src/KubernetesClient/KubernetesMetricsExtensions.cs index 1e1d450f2..b676cd542 100644 --- a/src/KubernetesClient/KubernetesMetricsExtensions.cs +++ b/src/KubernetesClient/KubernetesMetricsExtensions.cs @@ -1,7 +1,3 @@ -using k8s.Models; -using Newtonsoft.Json.Linq; -using System.Threading.Tasks; - namespace k8s { /// @@ -16,8 +12,13 @@ public static class KubernetesMetricsExtensions /// the metrics public static async Task GetKubernetesNodesMetricsAsync(this IKubernetes kubernetes) { - var customObject = (JObject)await kubernetes.GetClusterCustomObjectAsync("metrics.k8s.io", "v1beta1", "nodes", string.Empty).ConfigureAwait(false); - return customObject.ToObject(); + if (kubernetes is null) + { + throw new ArgumentNullException(nameof(kubernetes)); + } + + var customObject = (JsonElement)await kubernetes.CustomObjects.GetClusterCustomObjectAsync("metrics.k8s.io", "v1beta1", "nodes", string.Empty).ConfigureAwait(false); + return customObject.Deserialize(); } /// @@ -27,8 +28,13 @@ public static async Task GetKubernetesNodesMetricsAsync(this IK /// the metrics public static async Task GetKubernetesPodsMetricsAsync(this IKubernetes kubernetes) { - var customObject = (JObject)await kubernetes.GetClusterCustomObjectAsync("metrics.k8s.io", "v1beta1", "pods", string.Empty).ConfigureAwait(false); - return customObject.ToObject(); + if (kubernetes is null) + { + throw new ArgumentNullException(nameof(kubernetes)); + } + + var customObject = (JsonElement)await kubernetes.CustomObjects.GetClusterCustomObjectAsync("metrics.k8s.io", "v1beta1", "pods", string.Empty).ConfigureAwait(false); + return customObject.Deserialize(); } /// @@ -39,8 +45,13 @@ public static async Task GetKubernetesPodsMetricsAsync(this IKub /// the metrics public static async Task GetKubernetesPodsMetricsByNamespaceAsync(this IKubernetes kubernetes, string namespaceParameter) { - var customObject = (JObject)await kubernetes.GetNamespacedCustomObjectAsync("metrics.k8s.io", "v1beta1", namespaceParameter, "pods", string.Empty).ConfigureAwait(false); - return customObject.ToObject(); + if (kubernetes is null) + { + throw new ArgumentNullException(nameof(kubernetes)); + } + + var customObject = (JsonElement)await kubernetes.CustomObjects.GetNamespacedCustomObjectAsync("metrics.k8s.io", "v1beta1", namespaceParameter, "pods", string.Empty).ConfigureAwait(false); + return customObject.Deserialize(); } } } diff --git a/src/KubernetesClient/KubernetesObject.cs b/src/KubernetesClient/KubernetesObject.cs index d7994d5ab..ff25e8be4 100644 --- a/src/KubernetesClient/KubernetesObject.cs +++ b/src/KubernetesClient/KubernetesObject.cs @@ -1,5 +1,3 @@ -using Newtonsoft.Json; - namespace k8s { /// @@ -20,7 +18,7 @@ public class KubernetesObject : IKubernetesObject /// values. More info: /// https://git.k8s.io/community/contributors/devel/api-conventions.md#resources /// - [JsonProperty(PropertyName = "apiVersion")] + [JsonPropertyName("apiVersion")] public string ApiVersion { get; set; } /// @@ -30,7 +28,7 @@ public class KubernetesObject : IKubernetesObject /// More info: /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds /// - [JsonProperty(PropertyName = "kind")] + [JsonPropertyName("kind")] public string Kind { get; set; } } } diff --git a/src/KubernetesClient/KubernetesRequestDigest.cs b/src/KubernetesClient/KubernetesRequestDigest.cs index cc7430ca0..8024d9f34 100644 --- a/src/KubernetesClient/KubernetesRequestDigest.cs +++ b/src/KubernetesClient/KubernetesRequestDigest.cs @@ -1,15 +1,14 @@ // Derived from // https://github.com/kubernetes-client/java/blob/master/util/src/main/java/io/kubernetes/client/apimachinery/KubernetesResource.java -using System; using System.Net.Http; using System.Text.RegularExpressions; using System.Web; namespace k8s { - public class KubernetesRequestDigest + internal class KubernetesRequestDigest { - private static Regex resourcePattern = + private static readonly Regex ResourcePattern = new Regex(@"^/(api|apis)(/\S+)?/v\d\w*/\S+", RegexOptions.Compiled); public string Path { get; } @@ -95,13 +94,13 @@ public static KubernetesRequestDigest Parse(HttpRequestMessage request) private static KubernetesRequestDigest NonResource(string urlPath) { - KubernetesRequestDigest digest = new KubernetesRequestDigest(urlPath, true, "nonresource", "na", "na", "na"); + var digest = new KubernetesRequestDigest(urlPath, true, "nonresource", "na", "na", "na"); return digest; } public static bool IsResourceRequest(string urlPath) { - return resourcePattern.Matches(urlPath).Count > 0; + return ResourcePattern.Matches(urlPath).Count > 0; } private static bool HasWatchParameter(HttpRequestMessage request) diff --git a/src/KubernetesClient/Yaml.cs b/src/KubernetesClient/KubernetesYaml.cs similarity index 57% rename from src/KubernetesClient/Yaml.cs rename to src/KubernetesClient/KubernetesYaml.cs index 79981cd50..ef5384c72 100644 --- a/src/KubernetesClient/Yaml.cs +++ b/src/KubernetesClient/KubernetesYaml.cs @@ -1,32 +1,40 @@ -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using System.Reflection; using System.Text; -using System.Threading.Tasks; using YamlDotNet.Core; using YamlDotNet.Core.Events; using YamlDotNet.Serialization; using YamlDotNet.Serialization.NamingConventions; -using k8s.Models; namespace k8s { /// /// This is a utility class that helps you load objects from YAML files. /// - public static class Yaml + public static class KubernetesYaml { - private static readonly IDeserializer Deserializer = + private static readonly object DeserializerLockObject = new object(); + private static readonly object SerializerLockObject = new object(); + + private static DeserializerBuilder CommonDeserializerBuilder => new DeserializerBuilder() .WithNamingConvention(CamelCaseNamingConvention.Instance) .WithTypeConverter(new IntOrStringYamlConverter()) .WithTypeConverter(new ByteArrayStringYamlConverter()) - .WithOverridesFromJsonPropertyAttributes() - .IgnoreUnmatchedProperties() - .Build(); + .WithTypeConverter(new ResourceQuantityYamlConverter()) + .WithTypeConverter(new KubernetesDateTimeYamlConverter()) + .WithTypeConverter(new KubernetesDateTimeOffsetYamlConverter()) + .WithAttemptingUnquotedStringTypeDeserialization() + .WithOverridesFromJsonPropertyAttributes(); + + private static readonly IDeserializer StrictDeserializer = + CommonDeserializerBuilder + .WithDuplicateKeyChecking() + .Build(); + private static readonly IDeserializer Deserializer = + CommonDeserializerBuilder + .IgnoreUnmatchedProperties() + .Build(); + private static IDeserializer GetDeserializer(bool strict) => strict ? StrictDeserializer : Deserializer; private static readonly IValueSerializer Serializer = new SerializerBuilder() @@ -34,7 +42,11 @@ public static class Yaml .WithNamingConvention(CamelCaseNamingConvention.Instance) .WithTypeConverter(new IntOrStringYamlConverter()) .WithTypeConverter(new ByteArrayStringYamlConverter()) + .WithTypeConverter(new ResourceQuantityYamlConverter()) + .WithTypeConverter(new KubernetesDateTimeYamlConverter()) + .WithTypeConverter(new KubernetesDateTimeOffsetYamlConverter()) .WithEventEmitter(e => new StringQuotingEmitter(e)) + .WithEventEmitter(e => new FloatEmitter(e)) .ConfigureDefaultValuesHandling(DefaultValuesHandling.OmitNull) .WithOverridesFromJsonPropertyAttributes() .BuildValueSerializer(); @@ -52,14 +64,14 @@ public static class Yaml }, t => t); - public class ByteArrayStringYamlConverter : IYamlTypeConverter + private class ByteArrayStringYamlConverter : IYamlTypeConverter { public bool Accepts(Type type) { return type == typeof(byte[]); } - public object ReadYaml(IParser parser, Type type) + public object ReadYaml(IParser parser, Type type, ObjectDeserializer rootDeserializer) { if (parser?.Current is Scalar scalar) { @@ -70,7 +82,7 @@ public object ReadYaml(IParser parser, Type type) return null; } - return Encoding.UTF8.GetBytes(scalar.Value); + return Convert.FromBase64String(scalar.Value); } finally { @@ -81,10 +93,17 @@ public object ReadYaml(IParser parser, Type type) throw new InvalidOperationException(parser.Current?.ToString()); } - public void WriteYaml(IEmitter emitter, object value, Type type) + public void WriteYaml(IEmitter emitter, object value, Type type, ObjectSerializer serializer) { + if (value == null) + { + emitter.Emit(new Scalar(string.Empty)); + return; + } + var obj = (byte[])value; - emitter?.Emit(new Scalar(Encoding.UTF8.GetString(obj))); + var encoded = Convert.ToBase64String(obj); + emitter.Emit(new Scalar(encoded)); } } @@ -100,8 +119,9 @@ public void WriteYaml(IEmitter emitter, object value, Type type) /// A map from apiVersion/kind to Type. For example "v1/Pod" -> typeof(V1Pod). If null, a default mapping will /// be used. /// + /// true if a strict deserializer should be used (throwing exception on unknown properties), false otherwise /// collection of objects - public static async Task> LoadAllFromStreamAsync(Stream stream, IDictionary typeMap = null) + public static async Task> LoadAllFromStreamAsync(Stream stream, IDictionary typeMap = null, bool strict = false) { var reader = new StreamReader(stream); var content = await reader.ReadToEndAsync().ConfigureAwait(false); @@ -117,8 +137,9 @@ public static async Task> LoadAllFromStreamAsync(Stream stream, IDi /// A map from apiVersion/kind to Type. For example "v1/Pod" -> typeof(V1Pod). If null, a default mapping will /// be used. /// + /// true if a strict deserializer should be used (throwing exception on unknown properties), false otherwise /// collection of objects - public static async Task> LoadAllFromFileAsync(string fileName, IDictionary typeMap = null) + public static async Task> LoadAllFromFileAsync(string fileName, IDictionary typeMap = null, bool strict = false) { using (var fileStream = File.OpenRead(fileName)) { @@ -136,66 +157,135 @@ public static async Task> LoadAllFromFileAsync(string fileName, IDi /// A map from apiVersion/kind to Type. For example "v1/Pod" -> typeof(V1Pod). If null, a default mapping will /// be used. /// + /// true if a strict deserializer should be used (throwing exception on unknown properties), false otherwise /// collection of objects - public static List LoadAllFromString(string content, IDictionary typeMap = null) + public static List LoadAllFromString(string content, IDictionary typeMap = null, bool strict = false) { var mergedTypeMap = new Dictionary(ModelTypeMap); // merge in KVPs from typeMap, overriding any in ModelTypeMap typeMap?.ToList().ForEach(x => mergedTypeMap[x.Key] = x.Value); var types = new List(); - var parser = new Parser(new StringReader(content)); + var parser = new MergingParser(new Parser(new StringReader(content))); parser.Consume(); while (parser.Accept(out _)) { - var obj = Deserializer.Deserialize(parser); - types.Add(mergedTypeMap[obj.ApiVersion + "/" + obj.Kind]); + lock (DeserializerLockObject) + { + var dict = GetDeserializer(strict).Deserialize>(parser); + types.Add(mergedTypeMap[dict["apiVersion"] + "/" + dict["kind"]]); + } } - parser = new Parser(new StringReader(content)); + parser = new MergingParser(new Parser(new StringReader(content))); parser.Consume(); var ix = 0; var results = new List(); while (parser.Accept(out _)) { var objType = types[ix++]; - var obj = Deserializer.Deserialize(parser, objType); - results.Add(obj); + lock (DeserializerLockObject) + { + var obj = GetDeserializer(strict).Deserialize(parser, objType); + results.Add(obj); + } } return results; } - public static async Task LoadFromStreamAsync(Stream stream) + public static async Task LoadFromStreamAsync(Stream stream, bool strict = false) { var reader = new StreamReader(stream); var content = await reader.ReadToEndAsync().ConfigureAwait(false); - return LoadFromString(content); + return Deserialize(content, strict); } - public static async Task LoadFromFileAsync(string file) + public static async Task LoadFromFileAsync(string file, bool strict = false) { using (var fs = File.OpenRead(file)) { - return await LoadFromStreamAsync(fs).ConfigureAwait(false); + return await LoadFromStreamAsync(fs, strict).ConfigureAwait(false); } } - public static T LoadFromString(string content) + [Obsolete("use Deserialize")] + public static T LoadFromString(string content, bool strict = false) { - var obj = Deserializer.Deserialize(content); - return obj; + return Deserialize(content, strict); } + [Obsolete("use Serialize")] public static string SaveToString(T value) { + return Serialize(value); + } + + public static TValue Deserialize(string yaml, bool strict = false) + { + using var reader = new StringReader(yaml); + lock (DeserializerLockObject) + { + return GetDeserializer(strict).Deserialize(new MergingParser(new Parser(reader))); + } + } + + public static TValue Deserialize(Stream yaml, bool strict = false) + { + using var reader = new StreamReader(yaml); + lock (DeserializerLockObject) + { + return GetDeserializer(strict).Deserialize(new MergingParser(new Parser(reader))); + } + } + + public static string SerializeAll(IEnumerable values) + { + if (values == null) + { + return ""; + } + + var stringBuilder = new StringBuilder(); + var writer = new StringWriter(stringBuilder); + var emitter = new Emitter(writer); + + emitter.Emit(new StreamStart()); + + foreach (var value in values) + { + if (value != null) + { + emitter.Emit(new DocumentStart()); + lock (SerializerLockObject) + { + Serializer.SerializeValue(emitter, value, value.GetType()); + } + + emitter.Emit(new DocumentEnd(true)); + } + } + + return stringBuilder.ToString(); + } + + public static string Serialize(object value) + { + if (value == null) + { + return ""; + } + var stringBuilder = new StringBuilder(); var writer = new StringWriter(stringBuilder); var emitter = new Emitter(writer); emitter.Emit(new StreamStart()); emitter.Emit(new DocumentStart()); - Serializer.SerializeValue(emitter, value, typeof(T)); + lock (SerializerLockObject) + { + Serializer.SerializeValue(emitter, value, value.GetType()); + } return stringBuilder.ToString(); } @@ -219,13 +309,13 @@ private static TBuilder WithOverridesFromJsonPropertyAttributes(this T { foreach (var property in type.GetProperties()) { - var jsonAttribute = property.GetCustomAttribute(); + var jsonAttribute = property.GetCustomAttribute(); if (jsonAttribute == null) { continue; } - var yamlAttribute = new YamlMemberAttribute { Alias = jsonAttribute.PropertyName }; + var yamlAttribute = new YamlMemberAttribute { Alias = jsonAttribute.Name, ApplyNamingConventions = false }; builder.WithAttributeOverride(type, property.Name, yamlAttribute); } } diff --git a/src/KubernetesClient/LeaderElection/ILock.cs b/src/KubernetesClient/LeaderElection/ILock.cs index 2fd5cdd47..a56e0fd38 100644 --- a/src/KubernetesClient/LeaderElection/ILock.cs +++ b/src/KubernetesClient/LeaderElection/ILock.cs @@ -1,6 +1,3 @@ -using System.Threading; -using System.Threading.Tasks; - namespace k8s.LeaderElection { /// diff --git a/src/KubernetesClient/LeaderElection/LeaderElectionConfig.cs b/src/KubernetesClient/LeaderElection/LeaderElectionConfig.cs index a5ca95b10..bdc0dee38 100644 --- a/src/KubernetesClient/LeaderElection/LeaderElectionConfig.cs +++ b/src/KubernetesClient/LeaderElection/LeaderElectionConfig.cs @@ -1,5 +1,3 @@ -using System; - namespace k8s.LeaderElection { public class LeaderElectionConfig diff --git a/src/KubernetesClient/LeaderElection/LeaderElectionRecord.cs b/src/KubernetesClient/LeaderElection/LeaderElectionRecord.cs index e08c9454d..98bae7dac 100644 --- a/src/KubernetesClient/LeaderElection/LeaderElectionRecord.cs +++ b/src/KubernetesClient/LeaderElection/LeaderElectionRecord.cs @@ -1,5 +1,3 @@ -using System; - namespace k8s.LeaderElection { /// @@ -64,7 +62,7 @@ public override int GetHashCode() { unchecked { - var hashCode = (HolderIdentity != null ? HolderIdentity.GetHashCode() : 0); + var hashCode = HolderIdentity != null ? HolderIdentity.GetHashCode() : 0; hashCode = (hashCode * 397) ^ AcquireTime.GetHashCode(); hashCode = (hashCode * 397) ^ RenewTime.GetHashCode(); return hashCode; diff --git a/src/KubernetesClient/LeaderElection/LeaderElector.cs b/src/KubernetesClient/LeaderElection/LeaderElector.cs index c7cc32835..e7d86f9af 100644 --- a/src/KubernetesClient/LeaderElection/LeaderElector.cs +++ b/src/KubernetesClient/LeaderElection/LeaderElector.cs @@ -1,8 +1,4 @@ -using System; using System.Net; -using System.Threading; -using System.Threading.Tasks; -using Microsoft.Rest; namespace k8s.LeaderElection { @@ -29,6 +25,11 @@ public class LeaderElector : IDisposable /// public event Action OnNewLeader; + /// + /// OnError is called when there is an error trying to determine leadership. + /// + public event Action OnError; + private volatile LeaderElectionRecord observedRecord; private DateTimeOffset observedTime = DateTimeOffset.MinValue; private string reportedLeader; @@ -48,7 +49,13 @@ public string GetLeader() return observedRecord?.HolderIdentity; } - public async Task RunAsync(CancellationToken cancellationToken = default) + /// + /// Tries to acquire and hold leadership once via a Kubernetes Lease resource. + /// Will complete the returned Task and not retry to acquire leadership again after leadership is lost once. + /// + /// A token to cancel the operation. + /// A Task representing the asynchronous operation. + public async Task RunUntilLeadershipLostAsync(CancellationToken cancellationToken = default) { await AcquireAsync(cancellationToken).ConfigureAwait(false); @@ -70,8 +77,9 @@ public async Task RunAsync(CancellationToken cancellationToken = default) MaybeReportTransition(); } } - catch + catch (Exception e) { + OnError?.Invoke(e); // ignore return false; } @@ -105,6 +113,33 @@ public async Task RunAsync(CancellationToken cancellationToken = default) } } + /// + /// Tries to acquire leadership via a Kubernetes Lease resource. + /// Will retry to acquire leadership again after leadership was lost. + /// + /// A Task which completes only on cancellation + /// A token to cancel the operation. + public async Task RunAndTryToHoldLeadershipForeverAsync(CancellationToken cancellationToken = default) + { + while (!cancellationToken.IsCancellationRequested) + { + await RunUntilLeadershipLostAsync(cancellationToken).ConfigureAwait(false); + } + } + + /// + /// Tries to acquire leadership once via a Kubernetes Lease resource. + /// Will complete the returned Task and not retry to acquire leadership again after leadership is lost once. + /// + /// + /// A token to cancel the operation. + /// A Task representing the asynchronous operation. + [Obsolete("Replaced by RunUntilLeadershipLostAsync to encode behavior in method name.")] + public Task RunAsync(CancellationToken cancellationToken = default) + { + return RunUntilLeadershipLostAsync(cancellationToken); + } + private async Task TryAcquireOrRenew(CancellationToken cancellationToken) { var l = config.Lock; @@ -128,6 +163,7 @@ private async Task TryAcquireOrRenew(CancellationToken cancellationToken) { if (e.Response.StatusCode != HttpStatusCode.NotFound) { + OnError?.Invoke(e); return false; } } @@ -196,7 +232,7 @@ private async Task AcquireAsync(CancellationToken cancellationToken) { var acq = TryAcquireOrRenew(cancellationToken); - if (await Task.WhenAny(acq, Task.Delay(delay, cancellationToken)) + if (await Task.WhenAny(acq, Task.Delay((int)(delay * JitterFactor * (new Random().NextDouble() + 1)), cancellationToken)) .ConfigureAwait(false) == acq) { if (await acq.ConfigureAwait(false)) @@ -207,10 +243,11 @@ private async Task AcquireAsync(CancellationToken cancellationToken) // wait RetryPeriod since acq return immediately await Task.Delay(delay, cancellationToken).ConfigureAwait(false); } - - // else timeout - - delay = (int)(delay * JitterFactor); + else + { + // else timeout + _ = acq.ContinueWith(t => OnError?.Invoke(t.Exception), TaskContinuationOptions.OnlyOnFaulted); + } } finally { diff --git a/src/KubernetesClient/LeaderElection/ResourceLock/ConfigMapLock.cs b/src/KubernetesClient/LeaderElection/ResourceLock/ConfigMapLock.cs index 9b97cf9bb..eef16edde 100644 --- a/src/KubernetesClient/LeaderElection/ResourceLock/ConfigMapLock.cs +++ b/src/KubernetesClient/LeaderElection/ResourceLock/ConfigMapLock.cs @@ -1,7 +1,3 @@ -using System.Threading; -using System.Threading.Tasks; -using k8s.Models; - namespace k8s.LeaderElection.ResourceLock { public class ConfigMapLock : MetaObjectAnnotationLock @@ -15,22 +11,36 @@ protected override Task ReadMetaObjectAsync(IKubernetes client, str string namespaceParameter, CancellationToken cancellationToken) { - return client.ReadNamespacedConfigMapAsync(name, namespaceParameter, cancellationToken: cancellationToken); + if (client is null) + { + throw new ArgumentNullException(nameof(client)); + } + + return client.CoreV1.ReadNamespacedConfigMapAsync(name, namespaceParameter, cancellationToken: cancellationToken); } protected override Task CreateMetaObjectAsync(IKubernetes client, V1ConfigMap obj, string namespaceParameter, CancellationToken cancellationToken) { - return client.CreateNamespacedConfigMapAsync(obj, namespaceParameter, cancellationToken: cancellationToken); + if (client is null) + { + throw new ArgumentNullException(nameof(client)); + } + + return client.CoreV1.CreateNamespacedConfigMapAsync(obj, namespaceParameter, cancellationToken: cancellationToken); } protected override Task ReplaceMetaObjectAsync(IKubernetes client, V1ConfigMap obj, string name, string namespaceParameter, CancellationToken cancellationToken) { - return client.ReplaceNamespacedConfigMapAsync(obj, name, namespaceParameter, - cancellationToken: cancellationToken); + if (client is null) + { + throw new ArgumentNullException(nameof(client)); + } + + return client.CoreV1.ReplaceNamespacedConfigMapAsync(obj, name, namespaceParameter, cancellationToken: cancellationToken); } } } diff --git a/src/KubernetesClient/LeaderElection/ResourceLock/EndpointsLock.cs b/src/KubernetesClient/LeaderElection/ResourceLock/EndpointsLock.cs index 2800951c0..23ebaab1f 100644 --- a/src/KubernetesClient/LeaderElection/ResourceLock/EndpointsLock.cs +++ b/src/KubernetesClient/LeaderElection/ResourceLock/EndpointsLock.cs @@ -1,7 +1,3 @@ -using System.Threading; -using System.Threading.Tasks; -using k8s.Models; - namespace k8s.LeaderElection.ResourceLock { public class EndpointsLock : MetaObjectAnnotationLock @@ -13,19 +9,34 @@ public EndpointsLock(IKubernetes client, string @namespace, string name, string protected override Task ReadMetaObjectAsync(IKubernetes client, string name, string namespaceParameter, CancellationToken cancellationToken) { - return client.ReadNamespacedEndpointsAsync(name, namespaceParameter, cancellationToken: cancellationToken); + if (client is null) + { + throw new ArgumentNullException(nameof(client)); + } + + return client.CoreV1.ReadNamespacedEndpointsAsync(name, namespaceParameter, cancellationToken: cancellationToken); } protected override Task CreateMetaObjectAsync(IKubernetes client, V1Endpoints obj, string namespaceParameter, CancellationToken cancellationToken) { - return client.CreateNamespacedEndpointsAsync(obj, namespaceParameter, cancellationToken: cancellationToken); + if (client is null) + { + throw new ArgumentNullException(nameof(client)); + } + + return client.CoreV1.CreateNamespacedEndpointsAsync(obj, namespaceParameter, cancellationToken: cancellationToken); } protected override Task ReplaceMetaObjectAsync(IKubernetes client, V1Endpoints obj, string name, string namespaceParameter, CancellationToken cancellationToken) { - return client.ReplaceNamespacedEndpointsAsync(obj, name, namespaceParameter, cancellationToken: cancellationToken); + if (client is null) + { + throw new ArgumentNullException(nameof(client)); + } + + return client.CoreV1.ReplaceNamespacedEndpointsAsync(obj, name, namespaceParameter, cancellationToken: cancellationToken); } } } diff --git a/src/KubernetesClient/LeaderElection/ResourceLock/LeaseLock.cs b/src/KubernetesClient/LeaderElection/ResourceLock/LeaseLock.cs index 183b6bef1..38de063ce 100644 --- a/src/KubernetesClient/LeaderElection/ResourceLock/LeaseLock.cs +++ b/src/KubernetesClient/LeaderElection/ResourceLock/LeaseLock.cs @@ -1,8 +1,3 @@ -using System; -using System.Threading; -using System.Threading.Tasks; -using k8s.Models; - namespace k8s.LeaderElection.ResourceLock { public class LeaseLock : MetaObjectLock @@ -15,7 +10,12 @@ public LeaseLock(IKubernetes client, string @namespace, string name, string iden protected override Task ReadMetaObjectAsync(IKubernetes client, string name, string namespaceParameter, CancellationToken cancellationToken) { - return client.ReadNamespacedLeaseAsync(name, namespaceParameter, cancellationToken: cancellationToken); + if (client is null) + { + throw new ArgumentNullException(nameof(client)); + } + + return client.CoordinationV1.ReadNamespacedLeaseAsync(name, namespaceParameter, cancellationToken: cancellationToken); } protected override LeaderElectionRecord GetLeaderElectionRecord(V1Lease obj) @@ -62,13 +62,23 @@ protected override V1Lease SetLeaderElectionRecord(LeaderElectionRecord record, protected override Task CreateMetaObjectAsync(IKubernetes client, V1Lease obj, string namespaceParameter, CancellationToken cancellationToken) { - return client.CreateNamespacedLeaseAsync(obj, namespaceParameter, cancellationToken: cancellationToken); + if (client is null) + { + throw new ArgumentNullException(nameof(client)); + } + + return client.CoordinationV1.CreateNamespacedLeaseAsync(obj, namespaceParameter, cancellationToken: cancellationToken); } protected override Task ReplaceMetaObjectAsync(IKubernetes client, V1Lease obj, string name, string namespaceParameter, CancellationToken cancellationToken) { - return client.ReplaceNamespacedLeaseAsync(obj, name, namespaceParameter, cancellationToken: cancellationToken); + if (client is null) + { + throw new ArgumentNullException(nameof(client)); + } + + return client.CoordinationV1.ReplaceNamespacedLeaseAsync(obj, name, namespaceParameter, cancellationToken: cancellationToken); } } } diff --git a/src/KubernetesClient/LeaderElection/ResourceLock/MetaObjectAnnotationLock.cs b/src/KubernetesClient/LeaderElection/ResourceLock/MetaObjectAnnotationLock.cs index da302aa36..42f948db8 100644 --- a/src/KubernetesClient/LeaderElection/ResourceLock/MetaObjectAnnotationLock.cs +++ b/src/KubernetesClient/LeaderElection/ResourceLock/MetaObjectAnnotationLock.cs @@ -1,23 +1,11 @@ -using System; -using System.Threading; -using System.Threading.Tasks; -using k8s.Models; -using Microsoft.Rest; -using Newtonsoft.Json; - namespace k8s.LeaderElection.ResourceLock { public abstract class MetaObjectAnnotationLock : MetaObjectLock where T : class, IMetadata, new() { - private readonly JsonSerializerSettings serializationSettings; - private readonly JsonSerializerSettings derializationSettings; - protected MetaObjectAnnotationLock(IKubernetes client, string @namespace, string name, string identity) : base(client, @namespace, name, identity) { - serializationSettings = client.SerializationSettings; - derializationSettings = client.DeserializationSettings; } private const string LeaderElectionRecordAnnotationKey = "control-plane.alpha.kubernetes.io/leader"; @@ -31,20 +19,14 @@ protected override LeaderElectionRecord GetLeaderElectionRecord(T obj) return new LeaderElectionRecord(); } - var record = - JsonConvert.DeserializeObject( - recordRawStringContent, - derializationSettings); + var record = KubernetesJson.Deserialize(recordRawStringContent); return record; } protected override T SetLeaderElectionRecord(LeaderElectionRecord record, T metaObj) { - metaObj.SetAnnotation( - LeaderElectionRecordAnnotationKey, - JsonConvert.SerializeObject(record, serializationSettings)); - + metaObj.SetAnnotation(LeaderElectionRecordAnnotationKey, KubernetesJson.Serialize(record)); return metaObj; } } diff --git a/src/KubernetesClient/LeaderElection/ResourceLock/MetaObjectLock.cs b/src/KubernetesClient/LeaderElection/ResourceLock/MetaObjectLock.cs index bb2c8d7c4..e2540482f 100644 --- a/src/KubernetesClient/LeaderElection/ResourceLock/MetaObjectLock.cs +++ b/src/KubernetesClient/LeaderElection/ResourceLock/MetaObjectLock.cs @@ -1,21 +1,19 @@ -using System; -using System.Threading; -using System.Threading.Tasks; -using k8s.Models; -using Microsoft.Rest; -using Newtonsoft.Json; - namespace k8s.LeaderElection.ResourceLock { public abstract class MetaObjectLock : ILock where T : class, IMetadata, new() { - private IKubernetes client; - private string ns; - private string name; - private string identity; + private readonly IKubernetes client; + private readonly string ns; + private readonly string name; + private readonly string identity; private T metaObjCache; + /// + /// OnHttpError is called when there is a http operation error. + /// + public event Action OnHttpError; + protected MetaObjectLock(IKubernetes client, string @namespace, string name, string identity) { this.client = client ?? throw new ArgumentNullException(nameof(client)); @@ -54,8 +52,9 @@ public async Task CreateAsync(LeaderElectionRecord record, CancellationTok Interlocked.Exchange(ref metaObjCache, createdObj); return true; } - catch (HttpOperationException) + catch (HttpOperationException e) { + OnHttpError?.Invoke(e); // ignore } @@ -86,8 +85,9 @@ public async Task UpdateAsync(LeaderElectionRecord record, CancellationTok Interlocked.Exchange(ref metaObjCache, replacedObj); return true; } - catch (HttpOperationException) + catch (HttpOperationException e) { + OnHttpError?.Invoke(e); // ignore } diff --git a/src/KubernetesClient/LeaderElection/ResourceLock/MultiLock.cs b/src/KubernetesClient/LeaderElection/ResourceLock/MultiLock.cs index 4ce667976..64256612e 100644 --- a/src/KubernetesClient/LeaderElection/ResourceLock/MultiLock.cs +++ b/src/KubernetesClient/LeaderElection/ResourceLock/MultiLock.cs @@ -1,12 +1,9 @@ -using System.Threading; -using System.Threading.Tasks; - namespace k8s.LeaderElection.ResourceLock { public class MultiLock : ILock { - private ILock primary; - private ILock secondary; + private readonly ILock primary; + private readonly ILock secondary; public MultiLock(ILock primary, ILock secondary) { diff --git a/src/KubernetesClient/LineSeparatedHttpContent.cs b/src/KubernetesClient/LineSeparatedHttpContent.cs index d8d0d2f74..9206fe4ff 100644 --- a/src/KubernetesClient/LineSeparatedHttpContent.cs +++ b/src/KubernetesClient/LineSeparatedHttpContent.cs @@ -1,14 +1,9 @@ -using System; -using System.Collections.Generic; -using System.IO; using System.Net; using System.Net.Http; -using System.Threading; -using System.Threading.Tasks; namespace k8s { - internal class LineSeparatedHttpContent : HttpContent + internal sealed class LineSeparatedHttpContent : HttpContent { private readonly HttpContent _originContent; private readonly CancellationToken _cancellationToken; @@ -43,7 +38,7 @@ protected override bool TryComputeLength(out long length) return false; } - internal class CancelableStream : Stream + internal sealed class CancelableStream : Stream { private readonly Stream _innerStream; private readonly CancellationToken _cancellationToken; @@ -151,7 +146,7 @@ public void Dispose() } } - internal class PeekableStreamReader : TextReader + internal sealed class PeekableStreamReader : TextReader { private readonly Queue _buffer; private readonly StreamReader _inner; @@ -177,6 +172,11 @@ public override Task ReadLineAsync() public async Task PeekLineAsync() { var line = await ReadLineAsync().ConfigureAwait(false); + if (line == null) + { + throw new EndOfStreamException(); + } + _buffer.Enqueue(line); return line; } diff --git a/src/KubernetesClient/ContainerMetrics.cs b/src/KubernetesClient/Models/ContainerMetrics.cs similarity index 77% rename from src/KubernetesClient/ContainerMetrics.cs rename to src/KubernetesClient/Models/ContainerMetrics.cs index 738557ad9..816efcf65 100644 --- a/src/KubernetesClient/ContainerMetrics.cs +++ b/src/KubernetesClient/Models/ContainerMetrics.cs @@ -1,6 +1,3 @@ -using Newtonsoft.Json; -using System.Collections.Generic; - namespace k8s.Models { /// @@ -11,13 +8,13 @@ public class ContainerMetrics /// /// Defines container name corresponding to the one from pod.spec.containers. /// - [JsonProperty(PropertyName = "name")] + [JsonPropertyName("name")] public string Name { get; set; } /// /// The resource usage. /// - [JsonProperty(PropertyName = "usage")] + [JsonPropertyName("usage")] public IDictionary Usage { get; set; } } } diff --git a/src/KubernetesClient/Models/GeneratedModelVersion.cs b/src/KubernetesClient/Models/GeneratedModelVersion.cs new file mode 100644 index 000000000..e1b5ccb2d --- /dev/null +++ b/src/KubernetesClient/Models/GeneratedModelVersion.cs @@ -0,0 +1,7 @@ +namespace k8s.Models; + +public static class GeneratedModelVersion +{ + public const string AssemblyVersion = ThisAssembly.AssemblyInformationalVersion; + public const string SwaggerVersion = ThisAssembly.KubernetesSwaggerVersion; +} diff --git a/src/KubernetesClient/Models/IItems.cs b/src/KubernetesClient/Models/IItems.cs new file mode 100644 index 000000000..b82c4c3de --- /dev/null +++ b/src/KubernetesClient/Models/IItems.cs @@ -0,0 +1,27 @@ +namespace k8s.Models; + +/// +/// Kubernetes object that exposes list of objects +/// +/// type of the objects +public interface IItems +{ + /// + /// Gets or sets list of objects. More info: + /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md + /// + IList Items { get; set; } +} + +public static class ItemsExt +{ + public static IEnumerator GetEnumerator(this IItems items) + { + if (items is null) + { + throw new ArgumentNullException(nameof(items)); + } + + return items.Items.GetEnumerator(); + } +} diff --git a/src/KubernetesClient/Models/IMetadata.cs b/src/KubernetesClient/Models/IMetadata.cs new file mode 100644 index 000000000..4fa7f3292 --- /dev/null +++ b/src/KubernetesClient/Models/IMetadata.cs @@ -0,0 +1,15 @@ +namespace k8s.Models; + +/// +/// Kubernetes object that exposes metadata +/// +/// Type of metadata exposed. Usually this will be either +/// for lists or for objects +public interface IMetadata +{ + /// + /// Gets or sets standard object's metadata. More info: + /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + /// + T Metadata { get; set; } +} diff --git a/src/KubernetesClient/Models/ISpec.cs b/src/KubernetesClient/Models/ISpec.cs new file mode 100644 index 000000000..d05d62fab --- /dev/null +++ b/src/KubernetesClient/Models/ISpec.cs @@ -0,0 +1,15 @@ +namespace k8s.Models; + +/// +/// Represents a Kubernetes object that has a spec +/// +/// type of Kubernetes object +public interface ISpec +{ + /// + /// Gets or sets specification of the desired behavior of the entity. More + /// info: + /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + /// + T Spec { get; set; } +} diff --git a/src/KubernetesClient/IStatus.cs b/src/KubernetesClient/Models/IStatus.cs similarity index 96% rename from src/KubernetesClient/IStatus.cs rename to src/KubernetesClient/Models/IStatus.cs index e60f59fec..75d796666 100644 --- a/src/KubernetesClient/IStatus.cs +++ b/src/KubernetesClient/Models/IStatus.cs @@ -1,4 +1,4 @@ -namespace k8s +namespace k8s.Models { /// /// Kubernetes object that exposes status diff --git a/src/KubernetesClient/Models/IntOrString.cs b/src/KubernetesClient/Models/IntOrString.cs new file mode 100644 index 000000000..65e9cd486 --- /dev/null +++ b/src/KubernetesClient/Models/IntOrString.cs @@ -0,0 +1,38 @@ +namespace k8s.Models +{ + [JsonConverter(typeof(IntOrStringJsonConverter))] + public class IntOrString + { + public string Value { get; private init; } + + public static implicit operator IntOrString(int v) + { + return Convert.ToString(v); + } + + public static implicit operator IntOrString(long v) + { + return Convert.ToString(v); + } + + public static implicit operator string(IntOrString v) + { + return v?.Value; + } + + public static implicit operator IntOrString(string v) + { + return new IntOrString { Value = v }; + } + + public override string ToString() + { + return Value; + } + + public int ToInt() + { + return int.Parse(Value); + } + } +} diff --git a/src/KubernetesClient/Models/IntOrStringJsonConverter.cs b/src/KubernetesClient/Models/IntOrStringJsonConverter.cs new file mode 100644 index 000000000..c7cbe273a --- /dev/null +++ b/src/KubernetesClient/Models/IntOrStringJsonConverter.cs @@ -0,0 +1,38 @@ +namespace k8s.Models +{ + internal sealed class IntOrStringJsonConverter : JsonConverter + { + public override IntOrString Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case JsonTokenType.String: + return reader.GetString(); + case JsonTokenType.Number: + return reader.GetInt64(); + default: + break; + } + + throw new NotSupportedException(); + } + + public override void Write(Utf8JsonWriter writer, IntOrString value, JsonSerializerOptions options) + { + if (writer == null) + { + throw new ArgumentNullException(nameof(writer)); + } + + var s = value.Value; + + if (long.TryParse(s, out var intv)) + { + writer.WriteNumberValue(intv); + return; + } + + writer.WriteStringValue(s); + } + } +} diff --git a/src/KubernetesClient/IntOrStringYamlConverter.cs b/src/KubernetesClient/Models/IntOrStringYamlConverter.cs similarity index 76% rename from src/KubernetesClient/IntOrStringYamlConverter.cs rename to src/KubernetesClient/Models/IntOrStringYamlConverter.cs index d3b5e0c5d..cfaa42205 100644 --- a/src/KubernetesClient/IntOrStringYamlConverter.cs +++ b/src/KubernetesClient/Models/IntOrStringYamlConverter.cs @@ -1,4 +1,3 @@ -using System; using YamlDotNet.Core; using YamlDotNet.Serialization; @@ -8,10 +7,10 @@ public class IntOrStringYamlConverter : IYamlTypeConverter { public bool Accepts(Type type) { - return type == typeof(IntstrIntOrString); + return type == typeof(IntOrString); } - public object ReadYaml(IParser parser, Type type) + public object ReadYaml(IParser parser, Type type, ObjectDeserializer rootDeserializer) { if (parser?.Current is YamlDotNet.Core.Events.Scalar scalar) { @@ -22,7 +21,7 @@ public object ReadYaml(IParser parser, Type type) return null; } - return new IntstrIntOrString(scalar?.Value); + return scalar?.Value; } finally { @@ -33,9 +32,9 @@ public object ReadYaml(IParser parser, Type type) throw new InvalidOperationException(parser?.Current?.ToString()); } - public void WriteYaml(IEmitter emitter, object value, Type type) + public void WriteYaml(IEmitter emitter, object value, Type type, ObjectSerializer serializer) { - var obj = (IntstrIntOrString)value; + var obj = (IntOrString)value; emitter?.Emit(new YamlDotNet.Core.Events.Scalar(obj?.Value)); } } diff --git a/src/KubernetesClient/Models/KubernetesDateTimeOffsetYamlConverter.cs b/src/KubernetesClient/Models/KubernetesDateTimeOffsetYamlConverter.cs new file mode 100644 index 000000000..5eb4153eb --- /dev/null +++ b/src/KubernetesClient/Models/KubernetesDateTimeOffsetYamlConverter.cs @@ -0,0 +1,64 @@ +using System.Globalization; +using System.Text.RegularExpressions; +using YamlDotNet.Core; +using YamlDotNet.Core.Events; +using YamlDotNet.Serialization; + +namespace k8s.Models; + +public sealed class KubernetesDateTimeOffsetYamlConverter : IYamlTypeConverter +{ + private const string RFC3339MicroFormat = "yyyy'-'MM'-'dd'T'HH':'mm':'ss.ffffff'Z'"; + private const string RFC3339NanoFormat = "yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffff'Z'"; + private const string RFC3339Format = "yyyy'-'MM'-'dd'T'HH':'mm':'ss'Z'"; + + public bool Accepts(Type type) => type == typeof(DateTimeOffset); + + public object ReadYaml(IParser parser, Type type, ObjectDeserializer rootDeserializer) + { + if (parser?.Current is Scalar scalar) + { + try + { + if (string.IsNullOrEmpty(scalar.Value)) + { + return null; + } + + var str = scalar.Value; + + if (DateTimeOffset.TryParseExact(str, new[] { RFC3339Format, RFC3339MicroFormat }, CultureInfo.InvariantCulture, DateTimeStyles.None, out var result)) + { + return result; + } + + // try RFC3339NanoLenient by trimming 1-9 digits to 7 digits + var originalstr = str; + str = Regex.Replace(str, @"\.\d+", m => (m.Value + "000000000").Substring(0, 7 + 1)); // 7 digits + 1 for the dot + if (DateTimeOffset.TryParseExact(str, new[] { RFC3339NanoFormat }, CultureInfo.InvariantCulture, DateTimeStyles.None, out result)) + { + return result; + } + } + finally + { + parser.MoveNext(); + } + } + + throw new InvalidOperationException($"Unable to parse '{parser.Current?.ToString()}' as RFC3339, RFC3339Micro, or RFC3339Nano"); + } + + public void WriteYaml(IEmitter emitter, object value, Type type, ObjectSerializer serializer) + { + // Output as RFC3339Micro + var date = ((DateTimeOffset)value).ToUniversalTime(); + + var basePart = date.ToString("yyyy-MM-dd'T'HH:mm:ss", CultureInfo.InvariantCulture); + var frac = date.ToString(".ffffff", CultureInfo.InvariantCulture) + .TrimEnd('0') + .TrimEnd('.'); + + emitter.Emit(new Scalar(AnchorName.Empty, TagName.Empty, basePart + frac + "Z", ScalarStyle.DoubleQuoted, true, false)); + } +} diff --git a/src/KubernetesClient/Models/KubernetesDateTimeYamlConverter.cs b/src/KubernetesClient/Models/KubernetesDateTimeYamlConverter.cs new file mode 100644 index 000000000..d6095983d --- /dev/null +++ b/src/KubernetesClient/Models/KubernetesDateTimeYamlConverter.cs @@ -0,0 +1,23 @@ +using YamlDotNet.Core; +using YamlDotNet.Serialization; + +namespace k8s.Models; + +public sealed class KubernetesDateTimeYamlConverter : IYamlTypeConverter +{ + private static readonly KubernetesDateTimeOffsetYamlConverter OffsetConverter = new(); + + public bool Accepts(Type type) => type == typeof(DateTime); + + public object ReadYaml(IParser parser, Type type, ObjectDeserializer rootDeserializer) + { + var dto = (DateTimeOffset)OffsetConverter.ReadYaml(parser, typeof(DateTimeOffset), rootDeserializer); + return dto.DateTime; + } + + public void WriteYaml(IEmitter emitter, object value, Type type, ObjectSerializer serializer) + { + var date = new DateTimeOffset((DateTime)value); + OffsetConverter.WriteYaml(emitter, date, typeof(DateTimeOffset), serializer); + } +} diff --git a/src/KubernetesClient/KubernetesEntityAttribute.cs b/src/KubernetesClient/Models/KubernetesEntityAttribute.cs similarity index 98% rename from src/KubernetesClient/KubernetesEntityAttribute.cs rename to src/KubernetesClient/Models/KubernetesEntityAttribute.cs index 5c9870917..1246d3049 100644 --- a/src/KubernetesClient/KubernetesEntityAttribute.cs +++ b/src/KubernetesClient/Models/KubernetesEntityAttribute.cs @@ -1,5 +1,3 @@ -using System; - namespace k8s.Models { /// diff --git a/src/KubernetesClient/KubernetesList.cs b/src/KubernetesClient/Models/KubernetesList.cs similarity index 63% rename from src/KubernetesClient/KubernetesList.cs rename to src/KubernetesClient/Models/KubernetesList.cs index 679f8a927..069c410b2 100644 --- a/src/KubernetesClient/KubernetesList.cs +++ b/src/KubernetesClient/Models/KubernetesList.cs @@ -1,8 +1,3 @@ -using System.Collections.Generic; -using System.Linq; -using Microsoft.Rest; -using Newtonsoft.Json; - namespace k8s.Models { public class KubernetesList : IMetadata, IItems @@ -24,10 +19,10 @@ public KubernetesList(IList items, string apiVersion = default, string kind = /// values. More info: /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources /// - [JsonProperty(PropertyName = "apiVersion")] + [JsonPropertyName("apiVersion")] public string ApiVersion { get; set; } - [JsonProperty(PropertyName = "items")] + [JsonPropertyName("items")] public IList Items { get; set; } /// @@ -37,35 +32,13 @@ public KubernetesList(IList items, string apiVersion = default, string kind = /// More info: /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds /// - [JsonProperty(PropertyName = "kind")] + [JsonPropertyName("kind")] public string Kind { get; set; } /// /// Gets or sets standard object's metadata. /// - [JsonProperty(PropertyName = "metadata")] + [JsonPropertyName("metadata")] public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public void Validate() - { - if (Items == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - - if (Items != null) - { - foreach (var element in Items.OfType()) - { - element.Validate(); - } - } - } } } diff --git a/src/KubernetesClient/ModelExtensions.cs b/src/KubernetesClient/Models/ModelExtensions.cs similarity index 98% rename from src/KubernetesClient/ModelExtensions.cs rename to src/KubernetesClient/Models/ModelExtensions.cs index e25bbd7ca..f2c6f6045 100644 --- a/src/KubernetesClient/ModelExtensions.cs +++ b/src/KubernetesClient/Models/ModelExtensions.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; - namespace k8s.Models { /// Adds convenient extensions for Kubernetes objects. @@ -212,7 +208,7 @@ public static int FindOwnerReference(this IMetadata obj, IKubernet /// reference could be found. /// /// the object meta - /// a to test owner reference + /// a to test owner reference /// the index of the that matches the given object, or -1 if no such /// reference could be found. public static int FindOwnerReference(this IMetadata obj, Predicate predicate) @@ -304,7 +300,7 @@ public static V1OwnerReference GetOwnerReference( /// Gets the that matches the given predicate, or null if no matching reference exists. /// the object meta - /// a to test owner reference + /// a to test owner reference /// the that matches the given object, or null if no matching reference exists. public static V1OwnerReference GetOwnerReference( this IMetadata obj, @@ -404,7 +400,7 @@ public static V1OwnerReference RemoveOwnerReference( /// any were removed. /// /// the object meta - /// a to test owner reference + /// a to test owner reference /// true if any were removed public static bool RemoveOwnerReferences( this IMetadata obj, diff --git a/src/KubernetesClient/NodeMetrics.cs b/src/KubernetesClient/Models/NodeMetrics.cs similarity index 71% rename from src/KubernetesClient/NodeMetrics.cs rename to src/KubernetesClient/Models/NodeMetrics.cs index ab641bd89..9080da920 100644 --- a/src/KubernetesClient/NodeMetrics.cs +++ b/src/KubernetesClient/Models/NodeMetrics.cs @@ -1,36 +1,32 @@ -using Newtonsoft.Json; -using System; -using System.Collections.Generic; - namespace k8s.Models { /// /// Describes the resource usage metrics of a node pull from metrics server API. /// - public class NodeMetrics + public class NodeMetrics : IMetadata { /// /// The kubernetes standard object's metadata. /// - [JsonProperty(PropertyName = "metadata")] + [JsonPropertyName("metadata")] public V1ObjectMeta Metadata { get; set; } /// /// The timestamp when metrics were collected. /// - [JsonProperty(PropertyName = "timestamp")] + [JsonPropertyName("timestamp")] public DateTime? Timestamp { get; set; } /// /// The interval from which metrics were collected. /// - [JsonProperty(PropertyName = "window")] + [JsonPropertyName("window")] public string Window { get; set; } /// /// The resource usage. /// - [JsonProperty(PropertyName = "usage")] + [JsonPropertyName("usage")] public IDictionary Usage { get; set; } } } diff --git a/src/KubernetesClient/NodeMetricsList.cs b/src/KubernetesClient/Models/NodeMetricsList.cs similarity index 69% rename from src/KubernetesClient/NodeMetricsList.cs rename to src/KubernetesClient/Models/NodeMetricsList.cs index 6c305a619..846f6f7bf 100644 --- a/src/KubernetesClient/NodeMetricsList.cs +++ b/src/KubernetesClient/Models/NodeMetricsList.cs @@ -1,32 +1,29 @@ -using Newtonsoft.Json; -using System.Collections.Generic; - namespace k8s.Models { - public class NodeMetricsList + public class NodeMetricsList : IMetadata { /// /// Defines the versioned schema of this representation of an object. /// - [JsonProperty(PropertyName = "apiVersion")] + [JsonPropertyName("apiVersion")] public string ApiVersion { get; set; } /// /// Defines the REST resource this object represents. /// - [JsonProperty(PropertyName = "kind")] + [JsonPropertyName("kind")] public string Kind { get; set; } /// /// The kubernetes standard object's metadata. /// - [JsonProperty(PropertyName = "metadata")] + [JsonPropertyName("metadata")] public V1ObjectMeta Metadata { get; set; } /// /// The list of node metrics. /// - [JsonProperty(PropertyName = "items")] + [JsonPropertyName("items")] public IEnumerable Items { get; set; } } } diff --git a/src/KubernetesClient/PodMetrics.cs b/src/KubernetesClient/Models/PodMetrics.cs similarity index 71% rename from src/KubernetesClient/PodMetrics.cs rename to src/KubernetesClient/Models/PodMetrics.cs index 3e18831a1..c58af4585 100644 --- a/src/KubernetesClient/PodMetrics.cs +++ b/src/KubernetesClient/Models/PodMetrics.cs @@ -1,36 +1,32 @@ -using Newtonsoft.Json; -using System; -using System.Collections.Generic; - namespace k8s.Models { /// /// Describes the resource usage metrics of a pod pull from metrics server API. /// - public class PodMetrics + public class PodMetrics : IMetadata { /// /// The kubernetes standard object's metadata. /// - [JsonProperty(PropertyName = "metadata")] + [JsonPropertyName("metadata")] public V1ObjectMeta Metadata { get; set; } /// /// The timestamp when metrics were collected. /// - [JsonProperty(PropertyName = "timestamp")] + [JsonPropertyName("timestamp")] public DateTime? Timestamp { get; set; } /// /// The interval from which metrics were collected. /// - [JsonProperty(PropertyName = "window")] + [JsonPropertyName("window")] public string Window { get; set; } /// /// The list of containers metrics. /// - [JsonProperty(PropertyName = "containers")] + [JsonPropertyName("containers")] public List Containers { get; set; } } } diff --git a/src/KubernetesClient/PodMetricsList.cs b/src/KubernetesClient/Models/PodMetricsList.cs similarity index 69% rename from src/KubernetesClient/PodMetricsList.cs rename to src/KubernetesClient/Models/PodMetricsList.cs index 0ab5ec33d..940b1ed9e 100644 --- a/src/KubernetesClient/PodMetricsList.cs +++ b/src/KubernetesClient/Models/PodMetricsList.cs @@ -1,32 +1,29 @@ -using Newtonsoft.Json; -using System.Collections.Generic; - namespace k8s.Models { - public class PodMetricsList + public class PodMetricsList : IMetadata { /// /// Defines the versioned schema of this representation of an object. /// - [JsonProperty(PropertyName = "apiVersion")] + [JsonPropertyName("apiVersion")] public string ApiVersion { get; set; } /// /// Defines the REST resource this object represents. /// - [JsonProperty(PropertyName = "kind")] + [JsonPropertyName("kind")] public string Kind { get; set; } /// /// The kubernetes standard object's metadata. /// - [JsonProperty(PropertyName = "metadata")] + [JsonPropertyName("metadata")] public V1ObjectMeta Metadata { get; set; } /// /// The list of pod metrics. /// - [JsonProperty(PropertyName = "items")] + [JsonPropertyName("items")] public IEnumerable Items { get; set; } } } diff --git a/src/KubernetesClient/ResourceQuantity.cs b/src/KubernetesClient/Models/ResourceQuantity.cs similarity index 88% rename from src/KubernetesClient/ResourceQuantity.cs rename to src/KubernetesClient/Models/ResourceQuantity.cs index 5359dba75..eee89c678 100644 --- a/src/KubernetesClient/ResourceQuantity.cs +++ b/src/KubernetesClient/Models/ResourceQuantity.cs @@ -1,13 +1,6 @@ -using System; -using System.Collections.Generic; +using Fractions; using System.Globalization; -using System.Linq; using System.Numerics; -using Fractions; -using Newtonsoft.Json; -using YamlDotNet.Core; -using YamlDotNet.Core.Events; -using YamlDotNet.Serialization; namespace k8s.Models { @@ -60,8 +53,8 @@ namespace k8s.Models /// writing some sort of special handling code in the hopes that that will /// cause implementors to also use a fixed point implementation. /// - [JsonConverter(typeof(QuantityConverter))] - public partial class ResourceQuantity : IYamlConvertible + [JsonConverter(typeof(ResourceQuantityJsonConverter))] + public class ResourceQuantity { public enum SuffixFormat { @@ -104,39 +97,6 @@ public override string ToString() return CanonicalizeString(); } - protected bool Equals(ResourceQuantity other) - { - return Format == other?.Format && _unitlessValue.Equals(other._unitlessValue); - } - - public override bool Equals(object obj) - { - if (ReferenceEquals(null, obj)) - { - return false; - } - - if (ReferenceEquals(this, obj)) - { - return true; - } - - if (obj.GetType() != GetType()) - { - return false; - } - - return Equals((ResourceQuantity)obj); - } - - public override int GetHashCode() - { - unchecked - { - return ((int)Format * 397) ^ _unitlessValue.GetHashCode(); - } - } - // // CanonicalizeString = go version CanonicalizeBytes // CanonicalizeBytes returns the canonical form of q and its suffix (see comment on Quantity). @@ -164,10 +124,9 @@ public string CanonicalizeString(SuffixFormat suffixFormat) return Suffixer.AppendMaxSuffix(_unitlessValue, suffixFormat); } - // ctor - partial void CustomInit() + public ResourceQuantity(string v) { - if (Value == null) + if (v == null) { // No value has been defined, initialize to 0. _unitlessValue = new Fraction(0); @@ -175,7 +134,7 @@ partial void CustomInit() return; } - var value = Value.Trim(); + var value = v.Trim(); var si = value.IndexOfAny(SuffixChars); if (si == -1) @@ -195,6 +154,11 @@ partial void CustomInit() } } + public static implicit operator ResourceQuantity(string v) + { + return new ResourceQuantity(v); + } + private static bool HasMantissa(Fraction value) { if (value.IsZero) @@ -205,39 +169,57 @@ private static bool HasMantissa(Fraction value) return BigInteger.Remainder(value.Numerator, value.Denominator) > 0; } - /// - public void Read(IParser parser, Type expectedType, ObjectDeserializer nestedObjectDeserializer) + public static implicit operator decimal(ResourceQuantity v) { - if (expectedType != typeof(ResourceQuantity)) + return v.ToDecimal(); + } + + public static implicit operator ResourceQuantity(decimal v) + { + return new ResourceQuantity(v, 0, SuffixFormat.DecimalExponent); + } + + public bool Equals(ResourceQuantity other) + { + if (ReferenceEquals(null, other)) { - throw new ArgumentOutOfRangeException(nameof(expectedType)); + return false; } - if (parser?.Current is Scalar) + if (ReferenceEquals(this, other)) { - Value = ((Scalar)parser.Current).Value; - parser.MoveNext(); - CustomInit(); + return true; } + + return _unitlessValue.Equals(other._unitlessValue); } - /// - public void Write(IEmitter emitter, ObjectSerializer nestedObjectSerializer) + public override bool Equals(object obj) { - emitter?.Emit(new Scalar(ToString())); + return Equals(obj as ResourceQuantity); } - public static implicit operator decimal(ResourceQuantity v) + public override int GetHashCode() { - return v?.ToDecimal() ?? 0; + return _unitlessValue.GetHashCode(); } - public static implicit operator ResourceQuantity(decimal v) + public static bool operator ==(ResourceQuantity left, ResourceQuantity right) { - return new ResourceQuantity(v, 0, SuffixFormat.DecimalExponent); + if (left is null) + { + return right is null; + } + + return left.Equals(right); + } + + public static bool operator !=(ResourceQuantity left, ResourceQuantity right) + { + return !(left == right); } - private class Suffixer + private sealed class Suffixer { private static readonly IReadOnlyDictionary BinSuffixes = new Dictionary diff --git a/src/KubernetesClient/Models/ResourceQuantityJsonConverter.cs b/src/KubernetesClient/Models/ResourceQuantityJsonConverter.cs new file mode 100644 index 000000000..a99eb334b --- /dev/null +++ b/src/KubernetesClient/Models/ResourceQuantityJsonConverter.cs @@ -0,0 +1,34 @@ +namespace k8s.Models +{ + internal sealed class ResourceQuantityJsonConverter : JsonConverter + { + // https://github.com/kubernetes/apimachinery/blob/4b14f804a0babdcc58e695d72f77ad29f536511e/pkg/api/resource/quantity.go#L683 + public override ResourceQuantity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case JsonTokenType.Null: + return null; + case JsonTokenType.Number: + if (reader.TryGetDouble(out var val)) + { + return Convert.ToString(val); + } + + return reader.GetDecimal(); + default: + return reader.GetString(); + } + } + + public override void Write(Utf8JsonWriter writer, ResourceQuantity value, JsonSerializerOptions options) + { + if (writer == null) + { + throw new ArgumentNullException(nameof(writer)); + } + + writer.WriteStringValue(value.ToString()); + } + } +} diff --git a/src/KubernetesClient/Models/ResourceQuantityYamlConverter.cs b/src/KubernetesClient/Models/ResourceQuantityYamlConverter.cs new file mode 100644 index 000000000..1006a3cd7 --- /dev/null +++ b/src/KubernetesClient/Models/ResourceQuantityYamlConverter.cs @@ -0,0 +1,41 @@ +using YamlDotNet.Core; +using YamlDotNet.Serialization; + +namespace k8s.Models +{ + public class ResourceQuantityYamlConverter : IYamlTypeConverter + { + public bool Accepts(Type type) + { + return type == typeof(ResourceQuantity); + } + + public object ReadYaml(IParser parser, Type type, ObjectDeserializer rootDeserializer) + { + if (parser?.Current is YamlDotNet.Core.Events.Scalar scalar) + { + try + { + if (string.IsNullOrEmpty(scalar?.Value)) + { + return null; + } + + return scalar?.Value; + } + finally + { + parser?.MoveNext(); + } + } + + throw new InvalidOperationException(parser?.Current?.ToString()); + } + + public void WriteYaml(IEmitter emitter, object value, Type type, ObjectSerializer serializer) + { + var obj = (ResourceQuantity)value; + emitter?.Emit(new YamlDotNet.Core.Events.Scalar(obj?.ToString())); + } + } +} diff --git a/src/KubernetesClient/V1Patch.cs b/src/KubernetesClient/Models/V1Patch.cs similarity index 73% rename from src/KubernetesClient/V1Patch.cs rename to src/KubernetesClient/Models/V1Patch.cs index 5f248613b..5838e4b05 100644 --- a/src/KubernetesClient/V1Patch.cs +++ b/src/KubernetesClient/Models/V1Patch.cs @@ -1,10 +1,7 @@ -using System; -using Newtonsoft.Json; - namespace k8s.Models { [JsonConverter(typeof(V1PatchJsonConverter))] - public partial class V1Patch + public record V1Patch { public enum PatchType { @@ -34,26 +31,21 @@ public enum PatchType ApplyPatch, } + [JsonPropertyName("content")] + [JsonInclude] + public object Content { get; private set; } + public PatchType Type { get; private set; } public V1Patch(object body, PatchType type) { - Content = body; - Type = type; - CustomInit(); - } - - partial void CustomInit() - { - if (Content == null) + if (type == PatchType.Unknown) { - throw new ArgumentNullException(nameof(Content), "object must be set"); + throw new ArgumentException("patch type must be set", nameof(type)); } - if (Type == PatchType.Unknown) - { - throw new ArgumentException("patch type must be set", nameof(Type)); - } + Content = body ?? throw new ArgumentNullException(nameof(body), "object must be set"); + Type = type; } } } diff --git a/src/KubernetesClient/Models/V1PatchJsonConverter.cs b/src/KubernetesClient/Models/V1PatchJsonConverter.cs new file mode 100644 index 000000000..a8db06961 --- /dev/null +++ b/src/KubernetesClient/Models/V1PatchJsonConverter.cs @@ -0,0 +1,27 @@ +namespace k8s.Models +{ + internal sealed class V1PatchJsonConverter : JsonConverter + { + public override V1Patch Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + throw new NotImplementedException(); + } + + public override void Write(Utf8JsonWriter writer, V1Patch value, JsonSerializerOptions options) + { + if (writer == null) + { + throw new ArgumentNullException(nameof(writer)); + } + + var content = value?.Content; + if (content is string s) + { + writer.WriteRawValue(s); + return; + } + + JsonSerializer.Serialize(writer, content, options); + } + } +} diff --git a/src/KubernetesClient/Models/V1PodTemplateSpec.cs b/src/KubernetesClient/Models/V1PodTemplateSpec.cs new file mode 100644 index 000000000..4efa3cdbb --- /dev/null +++ b/src/KubernetesClient/Models/V1PodTemplateSpec.cs @@ -0,0 +1,10 @@ +namespace k8s.Models +{ + /// + /// Partial implementation of the IMetadata interface + /// to open this class up to ModelExtensions methods + /// + public partial record V1PodTemplateSpec : IMetadata + { + } +} diff --git a/src/KubernetesClient/Models/V1Status.ObjectView.cs b/src/KubernetesClient/Models/V1Status.ObjectView.cs new file mode 100644 index 000000000..710657847 --- /dev/null +++ b/src/KubernetesClient/Models/V1Status.ObjectView.cs @@ -0,0 +1,47 @@ +namespace k8s.Models +{ + public partial record V1Status + { + public sealed class V1StatusObjectViewConverter : JsonConverter + { + public override V1Status Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + using var doc = JsonDocument.ParseValue(ref reader); + var ele = doc.RootElement.Clone(); + + try + { +#if NET8_0_OR_GREATER + return JsonSerializer.Deserialize(ele, StatusSourceGenerationContext.Default.V1Status); +#else + return ele.Deserialize(); +#endif + } + catch (JsonException) + { + // should be an object + } + + return new V1Status { _original = ele, HasObject = true }; + } + + public override void Write(Utf8JsonWriter writer, V1Status value, JsonSerializerOptions options) + { + throw new NotImplementedException(); // will not send v1status to server + } + } + + private JsonElement _original; + + public bool HasObject { get; private set; } + + public T ObjectView() + { +#if NET8_0_OR_GREATER + return KubernetesJson.Deserialize(_original); +#else + return _original.Deserialize(); +#endif + } + } +} diff --git a/src/KubernetesClient/V1Status.cs b/src/KubernetesClient/Models/V1Status.cs similarity index 95% rename from src/KubernetesClient/V1Status.cs rename to src/KubernetesClient/Models/V1Status.cs index 87e4be055..d69116d2e 100644 --- a/src/KubernetesClient/V1Status.cs +++ b/src/KubernetesClient/Models/V1Status.cs @@ -2,7 +2,7 @@ namespace k8s.Models { - public partial class V1Status + public partial record V1Status { /// Converts a object into a short description of the status. /// string description of the status diff --git a/src/KubernetesClient/MuxedStream.cs b/src/KubernetesClient/MuxedStream.cs index 122706357..17edc1f0e 100644 --- a/src/KubernetesClient/MuxedStream.cs +++ b/src/KubernetesClient/MuxedStream.cs @@ -1,6 +1,3 @@ -using System; -using System.IO; - namespace k8s { /// @@ -8,9 +5,9 @@ namespace k8s /// public class MuxedStream : Stream { - private ByteBuffer inputBuffer; - private byte? outputIndex; - private StreamDemuxer muxer; + private readonly ByteBuffer inputBuffer; + private readonly byte? outputIndex; + private readonly StreamDemuxer muxer; /// /// Initializes a new instance of the class. diff --git a/src/KubernetesClient/PrometheusHandler.cs b/src/KubernetesClient/PrometheusHandler.cs index 1447edefa..7b7bd5461 100644 --- a/src/KubernetesClient/PrometheusHandler.cs +++ b/src/KubernetesClient/PrometheusHandler.cs @@ -1,58 +1,79 @@ -using Prometheus; -using System; -using System.Net.Http; -using System.Threading; -using System.Threading.Tasks; - -namespace k8s.Monitoring -{ - public class PrometheusHandler : DelegatingHandler - { - private const string PREFIX = "k8s_dotnet"; - private readonly Counter requests = Metrics.CreateCounter( - $"{PREFIX}_request_total", "Number of requests sent by this client", - new CounterConfiguration - { - LabelNames = new[] { "method" }, - }); - - private readonly Histogram requestLatency = Metrics.CreateHistogram( - $"{PREFIX}_request_latency_seconds", "Latency of requests sent by this client", - new HistogramConfiguration - { - LabelNames = new[] { "verb", "group", "version", "kind" }, - }); - - private readonly Counter responseCodes = Metrics.CreateCounter( - $"{PREFIX}_response_code_total", "Number of response codes received by the client", - new CounterConfiguration - { - LabelNames = new[] { "method", "code" }, - }); - - private readonly Gauge activeRequests = Metrics.CreateGauge( - $"{PREFIX}_active_requests", "Number of requests currently in progress", - new GaugeConfiguration - { - LabelNames = new[] { "method" }, - }); - - protected override async Task SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) - { - if (request == null) - { - throw new ArgumentNullException(nameof(request)); - } - - var digest = KubernetesRequestDigest.Parse(request); - requests.WithLabels(digest.Verb).Inc(); - using (activeRequests.WithLabels(digest.Verb).TrackInProgress()) - using (requestLatency.WithLabels(digest.Verb, digest.ApiGroup, digest.ApiVersion, digest.Kind).NewTimer()) - { - var resp = await base.SendAsync(request, cancellationToken).ConfigureAwait(false); - responseCodes.WithLabels(request.Method.ToString(), ((int)resp.StatusCode).ToString()).Inc(); - return resp; - } - } - } -} +using System.Diagnostics; +using System.Diagnostics.Metrics; +using System.Net.Http; + +namespace k8s +{ + /// + /// Implements legacy Prometheus metrics + /// + /// Provided for compatibility for existing usages of PrometheusHandler. It is recommended + /// to transition to using OpenTelemetry and the default HttpClient metrics. + /// + /// Note that the tags/labels are not appropriately named for some metrics. This + /// incorrect naming is retained to maintain compatibility and won't be fixed on this implementation. + /// Use OpenTelemetry and the standard HttpClient metrics instead. + public class PrometheusHandler : DelegatingHandler + { + private const string Prefix = "k8s_dotnet"; + private static readonly Meter Meter = new Meter("k8s.dotnet"); + + private static readonly Counter RequestsSent = Meter.CreateCounter( + $"{Prefix}_request_total", + description: "Number of requests sent by this client"); + + private static readonly Histogram RequestLatency = Meter.CreateHistogram( + $"{Prefix}_request_latency_seconds", unit: "milliseconds", + description: "Latency of requests sent by this client"); + + private static readonly Counter ResponseCodes = Meter.CreateCounter( + $"{Prefix}_response_code_total", + description: "Number of response codes received by the client"); + + private static readonly UpDownCounter ActiveRequests = + Meter.CreateUpDownCounter( + $"{Prefix}_active_requests", + description: "Number of requests currently in progress"); + + /// + protected override async Task SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) + { + if (request == null) + { + throw new ArgumentNullException(nameof(request)); + } + + var digest = KubernetesRequestDigest.Parse(request); + var timer = Stopwatch.StartNew(); + // Note that this is a tag called "method" but the value is the Verb. + // This is incorrect, but existing behavior. + var methodWithVerbValue = new KeyValuePair("method", digest.Verb); + try + { + ActiveRequests.Add(1, methodWithVerbValue); + RequestsSent.Add(1, methodWithVerbValue); + + var resp = await base.SendAsync(request, cancellationToken).ConfigureAwait(false); + ResponseCodes.Add( + 1, + new KeyValuePair("method", request.Method.ToString()), + new KeyValuePair("code", (int)resp.StatusCode)); + return resp; + } + finally + { + timer.Stop(); + ActiveRequests.Add(-1, methodWithVerbValue); + var tags = new TagList + { + { "verb", digest.Verb }, + { "group", digest.ApiGroup }, + { "version", digest.ApiVersion }, + { "kind", digest.Kind }, + } + ; + RequestLatency.Record(timer.Elapsed.TotalMilliseconds, tags); + } + } + } +} diff --git a/src/KubernetesClient/Properties/AssemblyInfo.cs b/src/KubernetesClient/Properties/AssemblyInfo.cs deleted file mode 100644 index a70d9e832..000000000 --- a/src/KubernetesClient/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,3 +0,0 @@ -using System.Runtime.CompilerServices; - -[assembly: InternalsVisibleTo("KubernetesClient.Tests")] diff --git a/src/KubernetesClient/QuantityConverter.cs b/src/KubernetesClient/QuantityConverter.cs deleted file mode 100644 index e498faee3..000000000 --- a/src/KubernetesClient/QuantityConverter.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using Newtonsoft.Json; - -namespace k8s.Models -{ - internal class QuantityConverter : JsonConverter - { - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - var q = (ResourceQuantity)value; - - if (q != null) - { - serializer.Serialize(writer, q.ToString()); - return; - } - - serializer.Serialize(writer, value); - } - - public override object ReadJson(JsonReader reader, Type objectType, object existingValue, - JsonSerializer serializer) - { - return new ResourceQuantity(serializer.Deserialize(reader)); - } - - public override bool CanConvert(Type objectType) - { - return objectType == typeof(string); - } - } -} diff --git a/src/KubernetesClient/SourceGenerationContext.cs b/src/KubernetesClient/SourceGenerationContext.cs new file mode 100644 index 000000000..22cc9fa00 --- /dev/null +++ b/src/KubernetesClient/SourceGenerationContext.cs @@ -0,0 +1,28 @@ +using static k8s.KubernetesJson; +using static k8s.Models.V1Status; + +namespace k8s; + +[JsonSourceGenerationOptions( + DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull, + PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase, + UseStringEnumConverter = true, + Converters = new[] { typeof(Iso8601TimeSpanConverter), typeof(KubernetesDateTimeConverter), typeof(KubernetesDateTimeOffsetConverter), typeof(V1StatusObjectViewConverter) }) + ] +public partial class SourceGenerationContext : JsonSerializerContext +{ +} + +/// +/// Used by V1Status in order to avoid the recursive loop as SourceGenerationContext contains V1StatusObjectViewConverter +/// +[JsonSerializable(typeof(V1Status))] +[JsonSourceGenerationOptions( + DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull, + PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase, + UseStringEnumConverter = true, + Converters = new[] { typeof(Iso8601TimeSpanConverter), typeof(KubernetesDateTimeConverter), typeof(KubernetesDateTimeOffsetConverter) }) + ] +public partial class StatusSourceGenerationContext : JsonSerializerContext +{ +} diff --git a/src/KubernetesClient/StreamDemuxer.cs b/src/KubernetesClient/StreamDemuxer.cs index 91ef0ad35..30263b9eb 100644 --- a/src/KubernetesClient/StreamDemuxer.cs +++ b/src/KubernetesClient/StreamDemuxer.cs @@ -1,28 +1,24 @@ -using System; using System.Buffers; -using System.Collections.Generic; using System.Diagnostics; -using System.IO; using System.Net.WebSockets; -using System.Threading; -using System.Threading.Tasks; namespace k8s { /// /// /// The allows you to interact with processes running in a container in a Kubernetes pod. You can start an exec or attach command - /// by calling - /// or . These methods - /// will return you a connection. + /// by calling + /// or . These methods + /// will return you a connection. /// /// - /// Kubernetes 'multiplexes' multiple channels over this connection, such as standard input, standard output and standard error. The - /// allows you to extract individual s from this class. You can then use these streams to send/receive data from that process. + /// Kubernetes 'multiplexes' multiple channels over this connection, such as standard input, standard output and standard error. The + /// allows you to extract individual s from this . You can then use these streams to send/receive data from that process. /// /// public class StreamDemuxer : IStreamDemuxer { + private const int MAXFRAMESIZE = 15 * 1024 * 1024; // 15MB private readonly WebSocket webSocket; private readonly Dictionary buffers = new Dictionary(); private readonly CancellationTokenSource cts = new CancellationTokenSource(); @@ -158,15 +154,19 @@ public Task Write(ChannelIndex index, byte[] buffer, int offset, int count, public async Task Write(byte index, byte[] buffer, int offset, int count, CancellationToken cancellationToken = default) { - var writeBuffer = ArrayPool.Shared.Rent(count + 1); + var writeBuffer = ArrayPool.Shared.Rent(Math.Min(count, MAXFRAMESIZE) + 1); try { - writeBuffer[0] = (byte)index; - Array.Copy(buffer, offset, writeBuffer, 1, count); - var segment = new ArraySegment(writeBuffer, 0, count + 1); - await webSocket.SendAsync(segment, WebSocketMessageType.Binary, false, cancellationToken) - .ConfigureAwait(false); + writeBuffer[0] = index; + for (var i = 0; i < count; i += MAXFRAMESIZE) + { + var c = Math.Min(count - i, MAXFRAMESIZE); + Buffer.BlockCopy(buffer, offset + i, writeBuffer, 1, c); + var segment = new ArraySegment(writeBuffer, 0, c + 1); + await webSocket.SendAsync(segment, WebSocketMessageType.Binary, false, cancellationToken) + .ConfigureAwait(false); + } } finally { diff --git a/src/KubernetesClient/StringQuotingEmitter.cs b/src/KubernetesClient/StringQuotingEmitter.cs index 2430dcb1f..550412358 100644 --- a/src/KubernetesClient/StringQuotingEmitter.cs +++ b/src/KubernetesClient/StringQuotingEmitter.cs @@ -1,4 +1,3 @@ -using System; using System.Text.RegularExpressions; using YamlDotNet.Core; using YamlDotNet.Serialization; @@ -9,9 +8,9 @@ namespace k8s // adapted from https://github.com/cloudbase/powershell-yaml/blob/master/powershell-yaml.psm1 public class StringQuotingEmitter : ChainedEventEmitter { - // Patterns from https://yaml.org/spec/1.2/spec.html#id2804356 + // Patterns from https://yaml.org/spec/1.2/spec.html#id2804356 and https://yaml.org/type/bool.html (spec v1.1) private static readonly Regex QuotedRegex = - new Regex(@"^(\~|null|true|false|-?(0|[0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?)?$"); + new Regex(@"^(\~|null|Null|NULL|true|True|TRUE|false|False|FALSE|y|Y|yes|Yes|YES|on|On|ON|n|N|no|No|NO|off|Off|OFF|-?(0|[0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?)?$"); public StringQuotingEmitter(IEventEmitter next) : base(next) diff --git a/src/KubernetesClient/Util/Common/BadNotificationException.cs b/src/KubernetesClient/Util/Common/BadNotificationException.cs deleted file mode 100644 index 1546bb818..000000000 --- a/src/KubernetesClient/Util/Common/BadNotificationException.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; - -namespace k8s.Util.Common -{ - public class BadNotificationException : Exception - { - public BadNotificationException() - { - } - - public BadNotificationException(string message) - : base(message) - { - } - } -} diff --git a/src/KubernetesClient/Util/Common/CallGeneratorParams.cs b/src/KubernetesClient/Util/Common/CallGeneratorParams.cs deleted file mode 100644 index fbdc6ac2d..000000000 --- a/src/KubernetesClient/Util/Common/CallGeneratorParams.cs +++ /dev/null @@ -1,16 +0,0 @@ -namespace k8s.Util.Common -{ - public class CallGeneratorParams - { - public bool Watch { get; } - public string ResourceVersion { get; } - public int? TimeoutSeconds { get; } - - public CallGeneratorParams(bool watch, string resourceVersion, int? timeoutSeconds) - { - Watch = watch; - ResourceVersion = resourceVersion; - TimeoutSeconds = timeoutSeconds; - } - } -} diff --git a/src/KubernetesClient/Util/Common/CollectionsExtensions.cs b/src/KubernetesClient/Util/Common/CollectionsExtensions.cs deleted file mode 100644 index 4043f53df..000000000 --- a/src/KubernetesClient/Util/Common/CollectionsExtensions.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace k8s.Util.Common -{ - internal static class CollectionsExtensions - { - public static void AddRange(this HashSet hashSet, ICollection items) - { - if (items == null) - { - return; - } - - foreach (var item in items) - { - hashSet?.Add(item); - } - } - - internal static TValue ComputeIfAbsent(this IDictionary dictionary, TKey key, Func mappingFunction) - { - if (dictionary is null) - { - throw new ArgumentNullException(nameof(dictionary)); - } - - if (dictionary.TryGetValue(key, out var value)) - { - return value; - } - - if (mappingFunction == null) - { - throw new ArgumentNullException(nameof(mappingFunction)); - } - - var newKey = mappingFunction(key); - dictionary[key] = newKey; - return newKey; - } - } -} diff --git a/src/KubernetesClient/Util/Common/Config.cs b/src/KubernetesClient/Util/Common/Config.cs deleted file mode 100644 index f4609d841..000000000 --- a/src/KubernetesClient/Util/Common/Config.cs +++ /dev/null @@ -1,15 +0,0 @@ -namespace k8s.Util.Common -{ - public static class Config - { - public static string ServiceAccountCaPath => KubernetesClientConfiguration.ServiceAccountPath + "/ca.crt"; - public static string ServiceAccountTokenPath => KubernetesClientConfiguration.ServiceAccountPath + "/token"; - public static string ServiceAccountNamespacePath => KubernetesClientConfiguration.ServiceAccountPath + "/namespace"; - public static string EnvKubeconfig => "KUBECONFIG"; - public static string EnvServiceHost => "KUBERNETES_SERVICE_HOST"; - public static string EnvServicePort => "KUBERNETES_SERVICE_PORT"; - - // The last resort host to try - public static string DefaultFallbackHost => "http://localhost:8080/"; - } -} diff --git a/src/KubernetesClient/Util/Common/Generic/GenericKubernetesApi.cs b/src/KubernetesClient/Util/Common/Generic/GenericKubernetesApi.cs deleted file mode 100644 index 38e49684a..000000000 --- a/src/KubernetesClient/Util/Common/Generic/GenericKubernetesApi.cs +++ /dev/null @@ -1,657 +0,0 @@ -using System; -using System.Net.Http; -using System.Threading; -using System.Threading.Tasks; -using k8s.Models; -using k8s.Util.Common.Generic.Options; -using Microsoft.Rest; -using Microsoft.Rest.Serialization; - -namespace k8s.Util.Common.Generic -{ - /// - /// - /// The Generic kubernetes api provides a unified client interface for not only the non-core-group - /// built-in resources from kubernetes but also the custom-resources models meet the following - /// requirements: - /// - /// 1. there's a `V1ObjectMeta` field in the model along with its getter/setter. 2. there's a - /// `V1ListMeta` field in the list model along with its getter/setter. - supports Json - /// serialization/deserialization. 3. the generic kubernetes api covers all the basic operations over - /// the custom resources including {get, list, watch, create, update, patch, delete}. - /// - /// - For kubernetes-defined failures, the server will return a {@link V1Status} with 4xx/5xx - /// code. The status object will be nested in {@link KubernetesApiResponse#getStatus()} - For the - /// other unknown reason (including network, JVM..), throws an unchecked exception. - /// - public class GenericKubernetesApi - { - private readonly string _apiGroup; - private readonly string _apiVersion; - private readonly string _resourcePlural; - private readonly IKubernetes _client; - - /// - /// Initializes a new instance of the class. - /// - /// the api group"> - /// the api version"> - /// the resource plural, e.g. "jobs""> - /// optional client"> - public GenericKubernetesApi(string apiGroup = default, string apiVersion = default, string resourcePlural = default, IKubernetes apiClient = default) - { - _apiGroup = apiGroup ?? throw new ArgumentNullException(nameof(apiGroup)); - _apiVersion = apiVersion ?? throw new ArgumentNullException(nameof(apiVersion)); - _resourcePlural = resourcePlural ?? throw new ArgumentNullException(nameof(resourcePlural)); - _client = apiClient ?? new Kubernetes(KubernetesClientConfiguration.BuildDefaultConfig()); - } - - public TimeSpan ClientTimeout => _client.HttpClient.Timeout; - - public void SetClientTimeout(TimeSpan value) - { - _client.HttpClient.Timeout = value; - } - - /// - /// Get kubernetes object. - /// - /// the object type - /// the object name - /// the token - /// The object - public Task GetAsync(string name, CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - return GetAsync(name, new GetOptions(), cancellationToken); - } - - /// - /// Get kubernetes object under the namespaceProperty. - /// - /// the object type - /// the namespaceProperty - /// the name - /// the token - /// the kubernetes object - public Task GetAsync(string namespaceProperty, string name, CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - return GetAsync(namespaceProperty, name, new GetOptions(), cancellationToken); - } - - /// - /// List kubernetes object cluster-scoped. - /// - /// the object type - /// the token - /// the kubernetes object - public Task ListAsync(CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - return ListAsync(new ListOptions(), cancellationToken); - } - - /// - /// List kubernetes object under the namespaceProperty. - /// - /// the object type - /// the namespace - /// the token - /// the kubernetes object - public Task ListAsync(string namespaceProperty, CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - return ListAsync(namespaceProperty, new ListOptions(), cancellationToken); - } - - /// - /// Create kubernetes object, if the namespaceProperty in the object is present, it will send a - /// namespaceProperty-scoped requests, vice versa. - /// - /// the object type - /// the object - /// the token - /// the kubernetes object - public Task CreateAsync(T obj, CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - return CreateAsync(obj, new CreateOptions(), cancellationToken); - } - - /// - /// Create kubernetes object, if the namespaceProperty in the object is present, it will send a - /// namespaceProperty-scoped requests, vice versa. - /// - /// the object - /// the token - /// the object type - /// the kubernetes object - public Task UpdateAsync(T obj, CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - return UpdateAsync(obj, new UpdateOptions(), cancellationToken); - } - - /// - /// Patch kubernetes object. - /// - /// the name - /// the string patch content - /// the token - /// the object type - /// the kubernetes object - public Task PatchAsync(string name, object patch, CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - return PatchAsync(name, patch, new PatchOptions(), cancellationToken); - } - - /// - /// Patch kubernetes object under the namespaceProperty. - /// - /// the namespaceProperty - /// the name - /// the string patch content - /// the token - /// the object type - /// the kubernetes object - public Task PatchAsync(string namespaceProperty, string name, object patch, CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - return PatchAsync(namespaceProperty, name, patch, new PatchOptions(), cancellationToken); - } - - /// - /// Delete kubernetes object. - /// - /// the name - /// the token - /// the object type - /// the kubernetes object - public Task DeleteAsync(string name, CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - return DeleteAsync(name, new V1DeleteOptions(), cancellationToken); - } - - /// - /// Delete kubernetes object under the namespaceProperty. - /// - /// the namespaceProperty - /// the name - /// the token - /// the object type - /// the kubernetes object - public Task DeleteAsync(string namespaceProperty, string name, CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - return DeleteAsync(namespaceProperty, name, new V1DeleteOptions(), cancellationToken); - } - - /// - /// Creates a cluster-scoped Watch on the resource. - /// - /// action on event - /// action on error - /// action on closed - /// the token - /// the object type - /// the watchable - public Watcher Watch(Action onEvent, Action onError = default, Action onClosed = default, CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - return Watch(new ListOptions(), onEvent, onError, onClosed, cancellationToken); - } - - /// - /// Creates a namespaceProperty-scoped Watch on the resource. - /// - /// the object type - /// the namespaceProperty - /// action on event - /// action on error - /// action on closed - /// the token - /// the watchable - public Watcher Watch(string namespaceProperty, Action onEvent, Action onError = default, Action onClosed = default, - CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - return Watch(namespaceProperty, new ListOptions(), onEvent, onError, onClosed, cancellationToken); - } - - // TODO(yue9944882): watch one resource? - - /// - /// Get kubernetes object. - /// - /// the object type - /// the name - /// the get options - /// the token - /// the kubernetes object - public async Task GetAsync(string name, GetOptions getOptions, CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - if (string.IsNullOrEmpty(name)) - { - throw new ArgumentNullException(nameof(name)); - } - - var resp = await _client.GetClusterCustomObjectWithHttpMessagesAsync(group: _apiGroup, plural: _resourcePlural, version: _apiVersion, name: name, cancellationToken: cancellationToken) - .ConfigureAwait(false); - return SafeJsonConvert.DeserializeObject(resp.Body.ToString()); - } - - /// - /// Get kubernetes object. - /// - /// the object type - /// the namespaceProperty - /// the name - /// the get options - /// the token - /// the kubernetes object - public async Task GetAsync(string namespaceProperty, string name, GetOptions getOptions, CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - if (string.IsNullOrEmpty(name)) - { - throw new ArgumentNullException(nameof(name)); - } - - if (string.IsNullOrEmpty(namespaceProperty)) - { - throw new ArgumentNullException(nameof(namespaceProperty)); - } - - var resp = await _client.GetNamespacedCustomObjectWithHttpMessagesAsync(group: _apiGroup, plural: _resourcePlural, version: _apiVersion, name: name, namespaceParameter: namespaceProperty, - cancellationToken: cancellationToken).ConfigureAwait(false); - return SafeJsonConvert.DeserializeObject(resp.Body.ToString()); - } - - /// - /// List kubernetes object. - /// - /// the object type - /// the list options - /// the token - /// the kubernetes object - public async Task ListAsync(ListOptions listOptions, CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - if (listOptions == null) - { - throw new ArgumentNullException(nameof(listOptions)); - } - - var resp = await _client.ListClusterCustomObjectWithHttpMessagesAsync(group: _apiGroup, plural: _resourcePlural, version: _apiVersion, resourceVersion: listOptions.ResourceVersion, - continueParameter: listOptions.Continue, fieldSelector: listOptions.FieldSelector, labelSelector: listOptions.LabelSelector, limit: listOptions.Limit, - timeoutSeconds: listOptions.TimeoutSeconds, cancellationToken: cancellationToken).ConfigureAwait(false); - return SafeJsonConvert.DeserializeObject(resp.Body.ToString()); - } - - /// - /// List kubernetes object. - /// - /// the object type - /// the namespaceProperty - /// the list options - /// the token - /// the kubernetes object - public async Task ListAsync(string namespaceProperty, ListOptions listOptions, CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - if (listOptions == null) - { - throw new ArgumentNullException(nameof(listOptions)); - } - - if (string.IsNullOrEmpty(namespaceProperty)) - { - throw new ArgumentNullException(nameof(namespaceProperty)); - } - - var resp = await _client.ListNamespacedCustomObjectWithHttpMessagesAsync(group: _apiGroup, plural: _resourcePlural, version: _apiVersion, resourceVersion: listOptions.ResourceVersion, - continueParameter: listOptions.Continue, fieldSelector: listOptions.FieldSelector, labelSelector: listOptions.LabelSelector, limit: listOptions.Limit, - timeoutSeconds: listOptions.TimeoutSeconds, namespaceParameter: namespaceProperty, cancellationToken: cancellationToken).ConfigureAwait(false); - - return SafeJsonConvert.DeserializeObject(resp.Body.ToString()); - } - - /// - /// Create kubernetes object. - /// - /// the object type - /// the object - /// the create options - /// the token - /// the kubernetes object - public async Task CreateAsync(T obj, CreateOptions createOptions, CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - if (obj == null) - { - throw new ArgumentNullException(nameof(obj)); - } - - if (createOptions == null) - { - throw new ArgumentNullException(nameof(createOptions)); - } - - V1ObjectMeta objectMeta = obj.Metadata; - - var isNamespaced = !string.IsNullOrEmpty(objectMeta.NamespaceProperty); - if (isNamespaced) - { - return await CreateAsync(objectMeta.NamespaceProperty, obj, createOptions, cancellationToken).ConfigureAwait(false); - } - - var resp = await _client.CreateClusterCustomObjectWithHttpMessagesAsync(body: obj, group: _apiGroup, plural: _resourcePlural, version: _apiVersion, dryRun: createOptions.DryRun, - fieldManager: createOptions.FieldManager, cancellationToken: cancellationToken).ConfigureAwait(false); - - return SafeJsonConvert.DeserializeObject(resp.Body.ToString()); - } - - /// - /// Create namespaced kubernetes object. - /// - /// the object type - /// the namespace - /// the object - /// the create options - /// the token - /// the kubernetes object - public async Task CreateAsync(string namespaceProperty, T obj, CreateOptions createOptions, CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - if (obj == null) - { - throw new ArgumentNullException(nameof(obj)); - } - - if (createOptions == null) - { - throw new ArgumentNullException(nameof(createOptions)); - } - - var resp = await _client.CreateNamespacedCustomObjectWithHttpMessagesAsync(body: obj, group: _apiGroup, plural: _resourcePlural, version: _apiVersion, - namespaceParameter: namespaceProperty, dryRun: createOptions.DryRun, fieldManager: createOptions.FieldManager, cancellationToken: cancellationToken).ConfigureAwait(false); - - return SafeJsonConvert.DeserializeObject(resp.Body.ToString()); - } - - /// - /// Update kubernetes object. - /// - /// the object type - /// the object - /// the update options - /// the token - /// the kubernetes object - public async Task UpdateAsync(T obj, UpdateOptions updateOptions, CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - if (obj == null) - { - throw new ArgumentNullException(nameof(obj)); - } - - if (updateOptions == null) - { - throw new ArgumentNullException(nameof(updateOptions)); - } - - V1ObjectMeta objectMeta = obj.Metadata; - - var isNamespaced = !string.IsNullOrEmpty(objectMeta.NamespaceProperty); - HttpOperationResponse resp; - if (isNamespaced) - { - resp = await _client.ReplaceNamespacedCustomObjectWithHttpMessagesAsync(body: obj, name: objectMeta.Name, group: _apiGroup, plural: _resourcePlural, version: _apiVersion, - namespaceParameter: objectMeta.NamespaceProperty, dryRun: updateOptions.DryRun, fieldManager: updateOptions.FieldManager, cancellationToken: cancellationToken) - .ConfigureAwait(false); - } - else - { - resp = await _client.ReplaceClusterCustomObjectWithHttpMessagesAsync(body: obj, name: objectMeta.Name, group: _apiGroup ?? obj.ApiGroup(), plural: _resourcePlural, - version: _apiVersion, dryRun: updateOptions.DryRun, fieldManager: updateOptions.FieldManager, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - return SafeJsonConvert.DeserializeObject(resp.Body.ToString()); - } - - /// - /// Create kubernetes object, if the namespaceProperty in the object is present, it will send a - /// namespaceProperty-scoped requests, vice versa. - /// - /// the object type - /// the object - /// function to extract the status from the object - /// the token - /// the kubernetes object - public Task UpdateStatusAsync(T obj, Func status, CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - return UpdateStatusAsync(obj, status, new UpdateOptions(), cancellationToken); - } - - /// - /// Update status of kubernetes object. - /// - /// the object type - /// the object - /// function to extract the status from the object - /// the update options - /// the token - /// the kubernetes object - public async Task UpdateStatusAsync(T obj, Func status, UpdateOptions updateOptions, CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - if (obj == null) - { - throw new ArgumentNullException(nameof(obj)); - } - - if (updateOptions == null) - { - throw new ArgumentNullException(nameof(updateOptions)); - } - - V1ObjectMeta objectMeta = obj.Metadata; - HttpOperationResponse resp; - var isNamespaced = !string.IsNullOrEmpty(objectMeta.NamespaceProperty); - if (isNamespaced) - { - resp = await _client.PatchNamespacedCustomObjectStatusWithHttpMessagesAsync(body: obj, group: _apiGroup, version: _apiVersion, namespaceParameter: objectMeta.NamespaceProperty, - plural: _resourcePlural, name: objectMeta.Name, dryRun: updateOptions.DryRun, fieldManager: updateOptions.FieldManager, force: updateOptions.Force, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - else - { - resp = await _client.PatchClusterCustomObjectStatusWithHttpMessagesAsync(body: obj, group: _apiGroup, version: _apiVersion, plural: _resourcePlural, name: objectMeta.Name, - dryRun: updateOptions.DryRun, fieldManager: updateOptions.FieldManager, force: updateOptions.Force, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - return SafeJsonConvert.DeserializeObject(resp.Body.ToString()); - } - - /// - /// Patch kubernetes object. - /// - /// the object type - /// the name - /// the object - /// the patch options - /// the token - /// the kubernetes object - public async Task PatchAsync(string name, object obj, PatchOptions patchOptions, CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - if (obj == null) - { - throw new ArgumentNullException(nameof(obj)); - } - - if (patchOptions == null) - { - throw new ArgumentNullException(nameof(patchOptions)); - } - - if (string.IsNullOrEmpty(name)) - { - throw new ArgumentNullException(nameof(name)); - } - - var resp = await _client.PatchClusterCustomObjectWithHttpMessagesAsync(body: obj, group: _apiGroup, version: _apiVersion, plural: _resourcePlural, name: name, dryRun: patchOptions.DryRun, - fieldManager: patchOptions.FieldManager, force: patchOptions.Force, cancellationToken: cancellationToken).ConfigureAwait(false); - return SafeJsonConvert.DeserializeObject(resp.Body.ToString()); - } - - /// - /// Patch kubernetes object. - /// - /// the object type - /// the namespaceProperty - /// the name - /// the object - /// the patch options - /// the token - /// the kubernetes object - public async Task PatchAsync(string namespaceProperty, string name, object obj, PatchOptions patchOptions, CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - if (string.IsNullOrEmpty(namespaceProperty)) - { - throw new ArgumentNullException(nameof(namespaceProperty)); - } - - if (string.IsNullOrEmpty(name)) - { - throw new ArgumentNullException(nameof(name)); - } - - if (obj == null) - { - throw new ArgumentNullException(nameof(obj)); - } - - if (patchOptions == null) - { - throw new ArgumentNullException(nameof(patchOptions)); - } - - var resp = await _client.PatchNamespacedCustomObjectWithHttpMessagesAsync(body: obj, group: _apiGroup, version: _apiVersion, namespaceParameter: namespaceProperty, plural: _resourcePlural, - name: name, dryRun: patchOptions.DryRun, fieldManager: patchOptions.FieldManager, force: patchOptions.Force, cancellationToken: cancellationToken).ConfigureAwait(false); - return SafeJsonConvert.DeserializeObject(resp.Body.ToString()); - } - - /// - /// Delete kubernetes object. - /// - /// the object type - /// the name - /// the delete options - /// the token - /// the kubernetes object - public async Task DeleteAsync(string name, V1DeleteOptions deleteOptions, CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - if (string.IsNullOrEmpty(name)) - { - throw new ArgumentNullException(nameof(name)); - } - - var resp = await _client.DeleteClusterCustomObjectWithHttpMessagesAsync( - group: _apiGroup, version: _apiVersion, plural: _resourcePlural, name: name, body: deleteOptions, cancellationToken: cancellationToken).ConfigureAwait(false); - return SafeJsonConvert.DeserializeObject(resp.Body.ToString()); - } - - /// - /// Delete kubernetes object. - /// - /// the object type - /// the namespaceProperty - /// the name - /// the delete options - /// the token - /// the kubernetes object - public async Task DeleteAsync(string namespaceProperty, string name, V1DeleteOptions deleteOptions, CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - if (string.IsNullOrEmpty(namespaceProperty)) - { - throw new ArgumentNullException(nameof(namespaceProperty)); - } - - if (string.IsNullOrEmpty(name)) - { - throw new ArgumentNullException(nameof(name)); - } - - var resp = await _client.DeleteNamespacedCustomObjectWithHttpMessagesAsync(group: _apiGroup, version: _apiVersion, namespaceParameter: namespaceProperty, plural: _resourcePlural, - name: name, body: deleteOptions, cancellationToken: cancellationToken).ConfigureAwait(false); - return SafeJsonConvert.DeserializeObject(resp.Body.ToString()); - } - - /// - /// Watch watchable. - /// - /// the list options - /// action on event - /// action on error - /// action on closed - /// the token - /// the object type - /// the watchable - public Watcher Watch(ListOptions listOptions, Action onEvent, Action onError = default, Action onClosed = default, - CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - if (listOptions == null) - { - throw new ArgumentNullException(nameof(listOptions)); - } - - var resp = _client.ListClusterCustomObjectWithHttpMessagesAsync(group: _apiGroup, version: _apiVersion, plural: _resourcePlural, continueParameter: listOptions.Continue, - fieldSelector: listOptions.FieldSelector, labelSelector: listOptions.LabelSelector, limit: listOptions.Limit, resourceVersion: listOptions.ResourceVersion, - timeoutSeconds: listOptions.TimeoutSeconds, watch: true, cancellationToken: cancellationToken); - - return resp.Watch(onEvent, onError, onClosed); - } - - /// - /// Watch watchable. - /// - /// the namespaceProperty - /// the list options - /// action on event - /// action on error - /// action on closed - /// the token - /// the object type - /// the watchable - public Watcher Watch(string namespaceProperty, ListOptions listOptions, Action onEvent, Action onError = default, Action onClosed = default, - CancellationToken cancellationToken = default) - where T : class, IKubernetesObject - { - if (listOptions == null) - { - throw new ArgumentNullException(nameof(listOptions)); - } - - if (string.IsNullOrEmpty(namespaceProperty)) - { - throw new ArgumentNullException(nameof(namespaceProperty)); - } - - var resp = _client.ListNamespacedCustomObjectWithHttpMessagesAsync(group: _apiGroup, version: _apiVersion, namespaceParameter: namespaceProperty, plural: _resourcePlural, - continueParameter: listOptions.Continue, fieldSelector: listOptions.FieldSelector, labelSelector: listOptions.LabelSelector, limit: listOptions.Limit, - resourceVersion: listOptions.ResourceVersion, timeoutSeconds: listOptions.TimeoutSeconds, watch: true, cancellationToken: cancellationToken); - - return resp.Watch(onEvent, onError, onClosed); - } - } -} diff --git a/src/KubernetesClient/Util/Common/Generic/KubernetesApiResponse.cs b/src/KubernetesClient/Util/Common/Generic/KubernetesApiResponse.cs deleted file mode 100644 index 086878380..000000000 --- a/src/KubernetesClient/Util/Common/Generic/KubernetesApiResponse.cs +++ /dev/null @@ -1,65 +0,0 @@ -using System.Net; -using k8s.Models; - -namespace k8s.Util.Common.Generic -{ - public class KubernetesApiResponse - where TDataType : IKubernetesObject - { - public KubernetesApiResponse(TDataType @object) - { - Object = @object; - Status = null; - HttpStatusCode = HttpStatusCode.OK; // 200 - } - - public KubernetesApiResponse(V1Status status, HttpStatusCode httpStatusCode) - { - Object = default(TDataType); - Status = status; - HttpStatusCode = httpStatusCode; - } - - public TDataType Object { get; } - - public V1Status Status { get; } - - public HttpStatusCode HttpStatusCode { get; } - - public bool IsSuccess => ((int)HttpStatusCode > 199 && (int)HttpStatusCode < 300); // 400 - - /// - /// Throws api exception kubernetes api response on failure. This is the recommended approach to - /// deal with errors returned from server. - /// - /// the kubernetes api response - /// the api exception - public KubernetesApiResponse ThrowsApiException() - { - return OnFailure(new ErrorStatusHandler()); - } - - /// - /// Calling errorStatusHandler upon errors from server - /// - /// the error status handler - /// the kubernetes api response - public KubernetesApiResponse OnFailure(ErrorStatusHandler errorStatusHandler) - { - if (!IsSuccess && errorStatusHandler != null) - { - errorStatusHandler.Handle((int)HttpStatusCode, Status); - } - - return this; - } - - public class ErrorStatusHandler - { - public void Handle(int code, V1Status errorStatus) - { - throw new HttpListenerException(code, errorStatus?.Message); - } - } - } -} diff --git a/src/KubernetesClient/Util/Common/Generic/Options/CreateOptions.cs b/src/KubernetesClient/Util/Common/Generic/Options/CreateOptions.cs deleted file mode 100644 index d688d5378..000000000 --- a/src/KubernetesClient/Util/Common/Generic/Options/CreateOptions.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Newtonsoft.Json; - -namespace k8s.Util.Common.Generic.Options -{ - public class CreateOptions - { - public string DryRun { get; private set; } - - public string FieldManager { get; private set; } - - public CreateOptions(string dryRun = default, string fieldManager = default) - { - DryRun = dryRun; - FieldManager = fieldManager; - } - } -} diff --git a/src/KubernetesClient/Util/Common/Generic/Options/GetOptions.cs b/src/KubernetesClient/Util/Common/Generic/Options/GetOptions.cs deleted file mode 100644 index 7a1425f0b..000000000 --- a/src/KubernetesClient/Util/Common/Generic/Options/GetOptions.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace k8s.Util.Common.Generic.Options -{ - public class GetOptions - { - } -} diff --git a/src/KubernetesClient/Util/Common/Generic/Options/ListOptions.cs b/src/KubernetesClient/Util/Common/Generic/Options/ListOptions.cs deleted file mode 100644 index 2181729ee..000000000 --- a/src/KubernetesClient/Util/Common/Generic/Options/ListOptions.cs +++ /dev/null @@ -1,30 +0,0 @@ -using Newtonsoft.Json; - -namespace k8s.Util.Common.Generic.Options -{ - public class ListOptions - { - public int? TimeoutSeconds { get; private set; } - - public int Limit { get; private set; } - - public string FieldSelector { get; private set; } - - public string LabelSelector { get; private set; } - - public string ResourceVersion { get; private set; } - - public string Continue { get; private set; } - - public ListOptions(int? timeoutSeconds = default, int limit = default, string fieldSelector = default, string labelSelector = default, string resourceVersion = default, - string @continue = default) - { - TimeoutSeconds = timeoutSeconds; - Limit = limit; - FieldSelector = fieldSelector; - LabelSelector = labelSelector; - ResourceVersion = resourceVersion; - Continue = @continue; - } - } -} diff --git a/src/KubernetesClient/Util/Common/Generic/Options/PatchOptions.cs b/src/KubernetesClient/Util/Common/Generic/Options/PatchOptions.cs deleted file mode 100644 index 98610b01f..000000000 --- a/src/KubernetesClient/Util/Common/Generic/Options/PatchOptions.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Newtonsoft.Json; - -namespace k8s.Util.Common.Generic.Options -{ - public class PatchOptions - { - public string DryRun { get; private set; } - - public bool Force { get; private set; } - - public string FieldManager { get; private set; } - - public PatchOptions(string dryRun = default, bool force = false, string fieldManager = default) - { - DryRun = dryRun; - Force = force; - FieldManager = fieldManager; - } - } -} diff --git a/src/KubernetesClient/Util/Common/Generic/Options/UpdateOptions.cs b/src/KubernetesClient/Util/Common/Generic/Options/UpdateOptions.cs deleted file mode 100644 index f378fe91b..000000000 --- a/src/KubernetesClient/Util/Common/Generic/Options/UpdateOptions.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Newtonsoft.Json; - -namespace k8s.Util.Common.Generic.Options -{ - public class UpdateOptions - { - public string DryRun { get; private set; } - - public bool Force { get; private set; } - - public string FieldManager { get; private set; } - - public UpdateOptions(string dryRun = default, bool force = false, string fieldManager = default) - { - DryRun = dryRun; - Force = force; - FieldManager = fieldManager; - } - } -} diff --git a/src/KubernetesClient/Util/Common/Namespaces.cs b/src/KubernetesClient/Util/Common/Namespaces.cs deleted file mode 100644 index 1bb705c34..000000000 --- a/src/KubernetesClient/Util/Common/Namespaces.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System.IO; -using System.Text; - -namespace k8s.Util.Common -{ - /// - /// Namespaces provides a set of helpers for operating namespaces. - /// - public class Namespaces - { - public const string NamespaceAll = ""; - - public const string NamespaceDefault = "default"; - - public const string NamespaceKubeSystem = "kube-system"; - - public static string GetPodNamespace() - { - return File.ReadAllText(Config.ServiceAccountNamespacePath, Encoding.UTF8); - } - } -} diff --git a/src/KubernetesClient/Util/Informer/Cache/Cache.cs b/src/KubernetesClient/Util/Informer/Cache/Cache.cs deleted file mode 100644 index 193ffc926..000000000 --- a/src/KubernetesClient/Util/Informer/Cache/Cache.cs +++ /dev/null @@ -1,444 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using k8s.Models; -using k8s.Util.Common; - -namespace k8s.Util.Informer.Cache -{ - /// - /// Cache is a C# port of Java's Cache which is a port of k/client-go's ThreadSafeStore. It basically saves and indexes all the entries. - /// - /// The type of K8s object to save - public class Cache : IIndexer - where TApiType : class, IKubernetesObject - { - /// - /// keyFunc defines how to map index objects into indices - /// - private Func, string> _keyFunc; - - /// - /// indexers stores index functions by their names - /// - /// The indexer name(string) is a label marking the different ways it can be calculated. - /// The default label is "namespace". The default func is to look in the object's metadata and combine the - /// namespace and name values, as namespace/name. - /// - private readonly Dictionary>> _indexers = new Dictionary>>(); - - /// - /// indices stores objects' keys by their indices - /// - /// Similar to 'indexers', an indice has the same label as its corresponding indexer except it's value - /// is the result of the func. - /// if the indexer func is to calculate the namespace and name values as namespace/name, then the indice HashSet - /// holds those values. - /// - private Dictionary>> _indices = new Dictionary>>(); - - /// - /// items stores object instances - /// - /// Indices hold the HashSet of calculated keys (namespace/name) for a given resource and items map each of - /// those keys to actual K8s object that was originally returned. - private Dictionary _items = new Dictionary(); - - /// - /// object used to track locking - /// - /// methods interacting with the store need to lock to secure the thread for race conditions, - /// learn more: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/lock-statement - private readonly object _lock = new object(); - - /// - /// Initializes a new instance of the class. Uses an object's namespace as the key. - /// - public Cache() - : this(Caches.NamespaceIndex, Caches.MetaNamespaceIndexFunc, Caches.DeletionHandlingMetaNamespaceKeyFunc) - { - } - - /// - /// Initializes a new instance of the class. - /// Constructor. - /// - /// the index name, an unique name representing the index - /// the index func by which we map multiple object to an index for querying - /// the key func by which we map one object to an unique key for storing - public Cache(string indexName, Func> indexFunc, Func, string> keyFunc) - { - _indexers[indexName] = indexFunc; - _keyFunc = keyFunc; - _indices[indexName] = new Dictionary>(); - } - - public void Clear() - { - lock (_lock) - { - _items?.Clear(); - _indices?.Clear(); - _indexers?.Clear(); - } - } - - /// - /// Add objects. - /// - /// the obj - public void Add(TApiType obj) - { - var key = _keyFunc(obj); - - lock (_lock) - { - var oldObj = _items.GetValueOrDefault(key); - _items[key] = obj; - UpdateIndices(oldObj, obj, key); - } - } - - /// - /// Update the object. - /// - /// the obj - public void Update(TApiType obj) - { - var key = _keyFunc(obj); - - lock (_lock) - { - var oldObj = _items.GetValueOrDefault(key); - _items[key] = obj; - UpdateIndices(oldObj, obj, key); - } - } - - /// - /// Delete the object. - /// - /// the obj - public void Delete(TApiType obj) - { - var key = _keyFunc(obj); - lock (_lock) - { - if (!_items.TryGetValue(key, out var value)) - { - return; - } - - DeleteFromIndices(value, key); - _items.Remove(key); - } - } - - /// - /// Replace the content in the cache completely. - /// - /// the list - /// optional, unused param from interface - /// list is null - public void Replace(IEnumerable list, string resourceVersion = default) - { - if (list is null) - { - throw new ArgumentNullException(nameof(list)); - } - - var newItems = new Dictionary(); - foreach (var item in list) - { - var key = _keyFunc(item); - newItems[key] = item; - } - - lock (_lock) - { - _items = newItems; - - // rebuild any index - _indices = new Dictionary>>(); - foreach (var (key, value) in _items) - { - UpdateIndices(default, value, key); - } - } - } - - /// - /// Resync. - /// - public void Resync() - { - // Do nothing by default - } - - /// - /// List keys. - /// - /// the list - public IEnumerable ListKeys() - { - return _items.Select(item => item.Key); - } - - /// - /// Get object t. - /// - /// the obj - /// the t - public TApiType Get(TApiType obj) - { - var key = _keyFunc(obj); - - lock (_lock) - { - // Todo: to make this lock striped or reader/writer (or use ConcurrentDictionary) - return _items.GetValueOrDefault(key); - } - } - - /// - /// List all objects in the cache. - /// - /// all items - public IEnumerable List() - { - lock (_lock) - { - return _items.Select(item => item.Value); - } - } - - /// - /// Get object t. - /// - /// the key - /// the get by key - public TApiType GetByKey(string key) - { - lock (_lock) - { - _items.TryGetValue(key, out var value); - return value; - } - } - - /// - /// Get objects. - /// - /// the index name - /// the obj - /// the list - /// indexers does not contain the provided index name - public IEnumerable Index(string indexName, TApiType obj) - { - if (!_indexers.ContainsKey(indexName)) - { - throw new ArgumentException($"index {indexName} doesn't exist!", nameof(indexName)); - } - - lock (_lock) - { - var indexFunc = _indexers[indexName]; - var indexKeys = indexFunc(obj); - var index = _indices.GetValueOrDefault(indexName); - if (index is null || index.Count == 0) - { - return new List(); - } - - var returnKeySet = new HashSet(); - foreach (var set in indexKeys.Select(indexKey => index.GetValueOrDefault(indexKey)).Where(set => set != null && set.Count != 0)) - { - returnKeySet.AddRange(set); - } - - var items = new List(returnKeySet.Count); - items.AddRange(returnKeySet.Select(absoluteKey => _items[absoluteKey])); - - return items; - } - } - - /// - /// Index keys list. - /// - /// the index name - /// the index key - /// the list - /// indexers does not contain the provided index name - /// indices collection does not contain the provided index name - public IEnumerable IndexKeys(string indexName, string indexKey) - { - if (!_indexers.ContainsKey(indexName)) - { - throw new ArgumentException($"index {indexName} doesn't exist!", nameof(indexName)); - } - - lock (_lock) - { - var index = _indices.GetValueOrDefault(indexName); - - if (index is null) - { - throw new KeyNotFoundException($"no value could be found for name '{indexName}'"); - } - - return index[indexKey]; - } - } - - /// - /// By index list. - /// - /// the index name - /// the index key - /// the list - /// indexers does not contain the provided index name - /// indices collection does not contain the provided index name - public IEnumerable ByIndex(string indexName, string indexKey) - { - if (!_indexers.ContainsKey(indexName)) - { - throw new ArgumentException($"index {indexName} doesn't exist!", nameof(indexName)); - } - - var index = _indices.GetValueOrDefault(indexName); - - if (index is null) - { - throw new KeyNotFoundException($"no value could be found for name '{indexName}'"); - } - - var set = index[indexKey]; - return set is null ? new List() : set.Select(key => _items[key]); - } - - /// - /// Return the indexers registered with the cache. - /// - /// registered indexers - public IDictionary>> GetIndexers() => _indexers; - - /// - /// Add additional indexers to the cache. - /// - /// indexers to add - /// newIndexers is null - /// items collection is not empty - /// conflict between keys in existing index and new indexers provided - public void AddIndexers(IDictionary>> newIndexers) - { - if (newIndexers is null) - { - throw new ArgumentNullException(nameof(newIndexers)); - } - - if (_items.Any()) - { - throw new InvalidOperationException("cannot add indexers to a non-empty cache"); - } - - var oldKeys = _indexers.Keys; - var newKeys = newIndexers.Keys; - var intersection = oldKeys.Intersect(newKeys); - - if (intersection.Any()) - { - throw new ArgumentException("indexer conflict: " + intersection); - } - - foreach (var (key, value) in newIndexers) - { - AddIndexFunc(key, value); - } - } - - /// - /// UpdateIndices modifies the objects location in the managed indexes, if this is an update, you - /// must provide an oldObj. - /// - /// UpdateIndices must be called from a function that already has a lock on the cache. - /// the old obj - /// the new obj - /// the key - private void UpdateIndices(TApiType oldObj, TApiType newObj, string key) - { - // if we got an old object, we need to remove it before we can add - // it again. - if (oldObj != null) - { - DeleteFromIndices(oldObj, key); - } - - foreach (var (indexName, indexFunc) in _indexers) - { - var indexValues = indexFunc(newObj); - if (indexValues is null || indexValues.Count == 0) - { - continue; - } - - var index = _indices.ComputeIfAbsent(indexName, _ => new Dictionary>()); - - foreach (var indexValue in indexValues) - { - HashSet indexSet = index.ComputeIfAbsent(indexValue, k => new HashSet()); - indexSet.Add(key); - - index[indexValue] = indexSet; - } - } - } - - /// - /// DeleteFromIndices removes the object from each of the managed indexes. - /// - /// It is intended to be called from a function that already has a lock on the cache. - /// the old obj - /// the key - private void DeleteFromIndices(TApiType oldObj, string key) - { - foreach (var (s, indexFunc) in _indexers) - { - var indexValues = indexFunc(oldObj); - if (indexValues is null || indexValues.Count == 0) - { - continue; - } - - var index = _indices.GetValueOrDefault(s); - if (index is null) - { - continue; - } - - foreach (var indexSet in indexValues.Select(indexValue => index[indexValue])) - { - indexSet?.Remove(key); - } - } - } - - /// - /// Add index func. - /// - /// the index name - /// the index func - public void AddIndexFunc(string indexName, Func> indexFunc) - { - _indices[indexName] = new Dictionary>(); - _indexers[indexName] = indexFunc; - } - - public Func, string> KeyFunc => _keyFunc; - - public void SetKeyFunc(Func, string> keyFunc) - { - _keyFunc = keyFunc; - } - } -} diff --git a/src/KubernetesClient/Util/Informer/Cache/Caches.cs b/src/KubernetesClient/Util/Informer/Cache/Caches.cs deleted file mode 100644 index 74e31739a..000000000 --- a/src/KubernetesClient/Util/Informer/Cache/Caches.cs +++ /dev/null @@ -1,85 +0,0 @@ -using System; -using System.Collections.Generic; -using k8s.Models; - -namespace k8s.Util.Informer.Cache -{ - /// - /// A set of helper utilities for constructing a cache. - /// - public static class Caches - { - /// - /// NamespaceIndex is the default index function for caching objects - /// - public const string NamespaceIndex = "namespace"; - - /// - /// deletionHandlingMetaNamespaceKeyFunc checks for DeletedFinalStateUnknown objects before calling - /// metaNamespaceKeyFunc. - /// - /// specific object - /// the type parameter - /// if obj is null - /// the key - public static string DeletionHandlingMetaNamespaceKeyFunc(TApiType obj) - where TApiType : class, IKubernetesObject - { - if (obj is null) - { - throw new ArgumentNullException(nameof(obj)); - } - - if (obj.GetType() == typeof(DeletedFinalStateUnknown)) - { - var deleteObj = obj as DeletedFinalStateUnknown; - return deleteObj.GetKey(); - } - - return MetaNamespaceKeyFunc(obj); - } - - /// - /// MetaNamespaceKeyFunc is a convenient default KeyFunc which knows how to make keys for API - /// objects which implement V1ObjectMeta Interface. The key uses the format <namespace>/<name> - /// unless <namespace> is empty, then it's just <name>. - /// - /// specific object - /// the key - /// if obj is null - /// if metadata can't be found on obj - public static string MetaNamespaceKeyFunc(IKubernetesObject obj) - { - if (obj is null) - { - throw new ArgumentNullException(nameof(obj)); - } - - if (!string.IsNullOrEmpty(obj.Metadata.NamespaceProperty)) - { - return obj.Metadata.NamespaceProperty + "/" + obj.Metadata.Name; - } - - return obj.Metadata.Name; - } - - /// - /// MetaNamespaceIndexFunc is a default index function that indexes based on an object's namespace. - /// - /// specific object - /// the type parameter - /// the indexed value - /// if obj is null - /// if metadata can't be found on obj - public static List MetaNamespaceIndexFunc(TApiType obj) - where TApiType : IKubernetesObject - { - if (obj is null) - { - throw new ArgumentNullException(nameof(obj)); - } - - return obj.Metadata is null ? new List() : new List() { obj.Metadata.NamespaceProperty }; - } - } -} diff --git a/src/KubernetesClient/Util/Informer/Cache/DeletedFinalStateUnknown.cs b/src/KubernetesClient/Util/Informer/Cache/DeletedFinalStateUnknown.cs deleted file mode 100644 index 7e8a99553..000000000 --- a/src/KubernetesClient/Util/Informer/Cache/DeletedFinalStateUnknown.cs +++ /dev/null @@ -1,47 +0,0 @@ -using k8s.Models; - -namespace k8s.Util.Informer.Cache -{ - // DeletedFinalStateUnknown is placed into a DeltaFIFO in the case where - // an object was deleted but the watch deletion event was missed. In this - // case we don't know the final "resting" state of the object, so there's - // a chance the included `Obj` is stale. - public class DeletedFinalStateUnknown : IKubernetesObject - where TApi : class, IKubernetesObject - { - private readonly string _key; - private readonly TApi _obj; - - public DeletedFinalStateUnknown(string key, TApi obj) - { - _key = key; - _obj = obj; - } - - public string GetKey() => _key; - - /// - /// Gets get obj. - /// - /// the get obj - public TApi GetObj() => _obj; - - public V1ObjectMeta Metadata - { - get => _obj.Metadata; - set => _obj.Metadata = value; - } - - public string ApiVersion - { - get => _obj.ApiVersion; - set => _obj.ApiVersion = value; - } - - public string Kind - { - get => _obj.Kind; - set => _obj.Kind = value; - } - } -} diff --git a/src/KubernetesClient/Util/Informer/Cache/DeltaType.cs b/src/KubernetesClient/Util/Informer/Cache/DeltaType.cs deleted file mode 100644 index b8f10c4fa..000000000 --- a/src/KubernetesClient/Util/Informer/Cache/DeltaType.cs +++ /dev/null @@ -1,30 +0,0 @@ -namespace k8s.Util.Informer.Cache -{ - public enum DeltaType - { - /// - /// Item added - /// - Added, - - /// - /// Item updated - /// - Updated, - - /// - /// Item deleted - /// - Deleted, - - /// - /// Item synchronized - /// - Sync, - - /// - /// Item replaced - /// - Replaced, - } -} diff --git a/src/KubernetesClient/Util/Informer/Cache/IIndexer.cs b/src/KubernetesClient/Util/Informer/Cache/IIndexer.cs deleted file mode 100644 index 7da66d248..000000000 --- a/src/KubernetesClient/Util/Informer/Cache/IIndexer.cs +++ /dev/null @@ -1,46 +0,0 @@ -using System; -using System.Collections.Generic; -using k8s.Models; - -namespace k8s.Util.Informer.Cache -{ - public interface IIndexer : IStore - where TApiType : class, IKubernetesObject - { - /// - /// Retrieve list of objects that match on the named indexing function. - /// - /// specific indexing function - /// . - /// matched objects - IEnumerable Index(string indexName, TApiType obj); - - /// - /// IndexKeys returns the set of keys that match on the named indexing function. - /// - /// specific indexing function - /// specific index key - /// matched keys - IEnumerable IndexKeys(string indexName, string indexKey); - - /// - /// ByIndex lists object that match on the named indexing function with the exact key. - /// - /// specific indexing function - /// specific index key - /// matched objects - IEnumerable ByIndex(string indexName, string indexKey); - - /// - /// Return the indexers registered with the store. - /// - /// registered indexers - IDictionary>> GetIndexers(); - - /// - /// Add additional indexers to the store. - /// - /// indexers to add - void AddIndexers(IDictionary>> indexers); - } -} diff --git a/src/KubernetesClient/Util/Informer/Cache/IStore.cs b/src/KubernetesClient/Util/Informer/Cache/IStore.cs deleted file mode 100644 index bbc26188d..000000000 --- a/src/KubernetesClient/Util/Informer/Cache/IStore.cs +++ /dev/null @@ -1,71 +0,0 @@ -using System; -using System.Collections.Generic; -using k8s.Models; - -namespace k8s.Util.Informer.Cache -{ - public interface IStore - where TApiType : class, IKubernetesObject - { - /// - /// add inserts an item into the store. - /// - /// specific obj - void Add(TApiType obj); - - /// - /// update sets an item in the store to its updated state. - /// - /// specific obj - void Update(TApiType obj); - - /// - /// delete removes an item from the store. - /// - /// specific obj - void Delete(TApiType obj); - - /// - /// Replace will delete the contents of 'c', using instead the given list. - /// - /// list of objects - /// specific resource version - void Replace(IEnumerable list, string resourceVersion); - - /// - /// resync will send a resync event for each item. - /// - void Resync(); - - /// - /// listKeys returns a list of all the keys of the object currently in the store. - /// - /// list of all keys - IEnumerable ListKeys(); - - /// - /// get returns the requested item. - /// - /// specific obj - /// the requested item if exist - TApiType Get(TApiType obj); - - /// - /// getByKey returns the request item with specific key. - /// - /// specific key - /// the request item - TApiType GetByKey(string key); - - /// - /// list returns a list of all the items. - /// - /// list of all the items - IEnumerable List(); - - /// - /// Empty the store - /// - void Clear(); - } -} diff --git a/src/KubernetesClient/Util/Informer/Cache/Lister.cs b/src/KubernetesClient/Util/Informer/Cache/Lister.cs deleted file mode 100644 index 4e11e99be..000000000 --- a/src/KubernetesClient/Util/Informer/Cache/Lister.cs +++ /dev/null @@ -1,45 +0,0 @@ -using System.Collections.Generic; -using k8s.Models; - -namespace k8s.Util.Informer.Cache -{ - /// - /// Lister interface is used to list cached items from a running informer. - /// - /// the type - public class Lister - where TApiType : class, IKubernetesObject - { - private readonly string _namespace; - private readonly string _indexName; - private readonly IIndexer _indexer; - - public Lister(IIndexer indexer, string @namespace = default, string indexName = Caches.NamespaceIndex) - { - _indexer = indexer; - _namespace = @namespace; - _indexName = indexName; - } - - public IEnumerable List() - { - return string.IsNullOrEmpty(_namespace) ? _indexer.List() : _indexer.ByIndex(_indexName, _namespace); - } - - public TApiType Get(string name) - { - var key = name; - if (!string.IsNullOrEmpty(_namespace)) - { - key = _namespace + "/" + name; - } - - return _indexer.GetByKey(key); - } - - public Lister Namespace(string @namespace) - { - return new Lister(_indexer, @namespace, Caches.NamespaceIndex); - } - } -} diff --git a/src/KubernetesClient/Util/Informer/Cache/MutablePair.cs b/src/KubernetesClient/Util/Informer/Cache/MutablePair.cs deleted file mode 100644 index 03851112d..000000000 --- a/src/KubernetesClient/Util/Informer/Cache/MutablePair.cs +++ /dev/null @@ -1,55 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace k8s.Util.Informer.Cache -{ - public class MutablePair - { - protected bool Equals(MutablePair other) - { - if (other is null) - { - throw new ArgumentNullException(nameof(other)); - } - - return EqualityComparer.Default.Equals(Left, other.Left) && EqualityComparer.Default.Equals(Right, other.Right); - } - - public override bool Equals(object obj) - { - if (ReferenceEquals(null, obj)) - { - return false; - } - - if (ReferenceEquals(this, obj)) - { - return true; - } - - return obj.GetType() == this.GetType() && Equals((MutablePair)obj); - } - - public override int GetHashCode() - { - unchecked - { - return (EqualityComparer.Default.GetHashCode(Left) * 397) ^ EqualityComparer.Default.GetHashCode(Right); - } - } - - public TRight Right { get; } - - public TLeft Left { get; } - - public MutablePair() - { - } - - public MutablePair(TLeft left, TRight right) - { - Left = left; - Right = right; - } - } -} diff --git a/src/KubernetesClient/Utilities.cs b/src/KubernetesClient/Utilities.cs index 250d4f8f3..8356bc65a 100644 --- a/src/KubernetesClient/Utilities.cs +++ b/src/KubernetesClient/Utilities.cs @@ -1,4 +1,3 @@ -using System; using System.Text; namespace k8s diff --git a/src/KubernetesClient/V1PatchJsonConverter.cs b/src/KubernetesClient/V1PatchJsonConverter.cs deleted file mode 100644 index 4a494e7e2..000000000 --- a/src/KubernetesClient/V1PatchJsonConverter.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using Newtonsoft.Json; - -namespace k8s.Models -{ - internal class V1PatchJsonConverter : JsonConverter - { - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - var content = (value as V1Patch)?.Content; - if (content is string s) - { - writer.WriteRaw(s); - return; - } - - serializer.Serialize(writer, (value as V1Patch)?.Content); - } - - // no read patch object supported at the moment - public override object ReadJson(JsonReader reader, Type objectType, object existingValue, - JsonSerializer serializer) - { - throw new NotImplementedException(); - } - - public override bool CanConvert(Type objectType) - { - return objectType == typeof(V1Patch); - } - } -} diff --git a/src/KubernetesClient/V1Status.ObjectView.cs b/src/KubernetesClient/V1Status.ObjectView.cs deleted file mode 100644 index 474fbe767..000000000 --- a/src/KubernetesClient/V1Status.ObjectView.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System; -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; - -namespace k8s.Models -{ - public partial class V1Status - { - internal class V1StatusObjectViewConverter : JsonConverter - { - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - serializer.Serialize(writer, value); - } - - public override object ReadJson(JsonReader reader, Type objectType, object existingValue, - JsonSerializer serializer) - { - var obj = JToken.Load(reader); - - try - { - return obj.ToObject(objectType); - } - catch (JsonException) - { - // should be an object - } - - return new V1Status { _original = obj, HasObject = true }; - } - - public override bool CanConvert(Type objectType) - { - return typeof(V1Status) == objectType; - } - } - - private JToken _original; - - public bool HasObject { get; private set; } - - public T ObjectView() - { - return _original.ToObject(); - } - } -} diff --git a/src/KubernetesClient/Versioning/KubernetesVersionComparer.cs b/src/KubernetesClient/Versioning/KubernetesVersionComparer.cs deleted file mode 100644 index 93f1d4e16..000000000 --- a/src/KubernetesClient/Versioning/KubernetesVersionComparer.cs +++ /dev/null @@ -1,59 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text.RegularExpressions; - -namespace k8s.Versioning -{ - public class KubernetesVersionComparer : IComparer - { - public static KubernetesVersionComparer Instance { get; } = new KubernetesVersionComparer(); - private static readonly Regex KubernetesVersionRegex = new Regex(@"^v(?[0-9]+)((?alpha|beta)(?[0-9]+))?$", RegexOptions.Compiled); - - internal KubernetesVersionComparer() - { - } - - public int Compare(string x, string y) - { - if (x == null || y == null) - { - return StringComparer.CurrentCulture.Compare(x, y); - } - - var matchX = KubernetesVersionRegex.Match(x); - if (!matchX.Success) - { - return StringComparer.CurrentCulture.Compare(x, y); - } - - var matchY = KubernetesVersionRegex.Match(y); - if (!matchY.Success) - { - return StringComparer.CurrentCulture.Compare(x, y); - } - - var versionX = ExtractVersion(matchX); - var versionY = ExtractVersion(matchY); - return versionX.CompareTo(versionY); - } - - private Version ExtractVersion(Match match) - { - var major = int.Parse(match.Groups["major"].Value); - if (!Enum.TryParse(match.Groups["stream"].Value, true, out var stream)) - { - stream = Stream.Final; - } - - _ = int.TryParse(match.Groups["minor"].Value, out var minor); - return new Version(major, (int)stream, minor); - } - - private enum Stream - { - Alpha = 1, - Beta = 2, - Final = 3, - } - } -} diff --git a/src/KubernetesClient/Versioning/ModelConvertionOperators.cs b/src/KubernetesClient/Versioning/ModelConvertionOperators.cs deleted file mode 100644 index a94053e9b..000000000 --- a/src/KubernetesClient/Versioning/ModelConvertionOperators.cs +++ /dev/null @@ -1,726 +0,0 @@ -// using k8s.Versioning; -// namespace k8s.Models -// { -// public partial class V1MutatingWebhookConfiguration -// { -// public static explicit operator V1MutatingWebhookConfiguration(V1beta1MutatingWebhookConfiguration s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1MutatingWebhookConfiguration -// { -// public static explicit operator V1beta1MutatingWebhookConfiguration(V1MutatingWebhookConfiguration s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1MutatingWebhookConfigurationList -// { -// public static explicit operator V1MutatingWebhookConfigurationList(V1beta1MutatingWebhookConfigurationList s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1MutatingWebhookConfigurationList -// { -// public static explicit operator V1beta1MutatingWebhookConfigurationList(V1MutatingWebhookConfigurationList s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1ValidatingWebhookConfiguration -// { -// public static explicit operator V1ValidatingWebhookConfiguration(V1beta1ValidatingWebhookConfiguration s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1ValidatingWebhookConfiguration -// { -// public static explicit operator V1beta1ValidatingWebhookConfiguration(V1ValidatingWebhookConfiguration s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1ValidatingWebhookConfigurationList -// { -// public static explicit operator V1ValidatingWebhookConfigurationList(V1beta1ValidatingWebhookConfigurationList s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1ValidatingWebhookConfigurationList -// { -// public static explicit operator V1beta1ValidatingWebhookConfigurationList(V1ValidatingWebhookConfigurationList s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1TokenReview -// { -// public static explicit operator V1TokenReview(V1beta1TokenReview s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1TokenReview -// { -// public static explicit operator V1beta1TokenReview(V1TokenReview s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1LocalSubjectAccessReview -// { -// public static explicit operator V1LocalSubjectAccessReview(V1beta1LocalSubjectAccessReview s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1LocalSubjectAccessReview -// { -// public static explicit operator V1beta1LocalSubjectAccessReview(V1LocalSubjectAccessReview s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1SelfSubjectAccessReview -// { -// public static explicit operator V1SelfSubjectAccessReview(V1beta1SelfSubjectAccessReview s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1SelfSubjectAccessReview -// { -// public static explicit operator V1beta1SelfSubjectAccessReview(V1SelfSubjectAccessReview s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1SelfSubjectRulesReview -// { -// public static explicit operator V1SelfSubjectRulesReview(V1beta1SelfSubjectRulesReview s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1SelfSubjectRulesReview -// { -// public static explicit operator V1beta1SelfSubjectRulesReview(V1SelfSubjectRulesReview s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1SubjectAccessReview -// { -// public static explicit operator V1SubjectAccessReview(V1beta1SubjectAccessReview s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1SubjectAccessReview -// { -// public static explicit operator V1beta1SubjectAccessReview(V1SubjectAccessReview s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1Lease -// { -// public static explicit operator V1Lease(V1beta1Lease s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1Lease -// { -// public static explicit operator V1beta1Lease(V1Lease s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1LeaseList -// { -// public static explicit operator V1LeaseList(V1beta1LeaseList s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1LeaseList -// { -// public static explicit operator V1beta1LeaseList(V1LeaseList s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1Event -// { -// public static explicit operator V1Event(V1beta1Event s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1Event -// { -// public static explicit operator V1beta1Event(V1Event s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1EventList -// { -// public static explicit operator V1EventList(V1beta1EventList s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1EventList -// { -// public static explicit operator V1beta1EventList(V1EventList s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1ClusterRole -// { -// public static explicit operator V1ClusterRole(V1beta1ClusterRole s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1ClusterRole -// { -// public static explicit operator V1beta1ClusterRole(V1ClusterRole s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1ClusterRoleBinding -// { -// public static explicit operator V1ClusterRoleBinding(V1beta1ClusterRoleBinding s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1ClusterRoleBinding -// { -// public static explicit operator V1beta1ClusterRoleBinding(V1ClusterRoleBinding s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1ClusterRoleBindingList -// { -// public static explicit operator V1ClusterRoleBindingList(V1beta1ClusterRoleBindingList s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1ClusterRoleBindingList -// { -// public static explicit operator V1beta1ClusterRoleBindingList(V1ClusterRoleBindingList s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1ClusterRoleList -// { -// public static explicit operator V1ClusterRoleList(V1beta1ClusterRoleList s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1ClusterRoleList -// { -// public static explicit operator V1beta1ClusterRoleList(V1ClusterRoleList s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1Role -// { -// public static explicit operator V1Role(V1beta1Role s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1Role -// { -// public static explicit operator V1beta1Role(V1Role s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1RoleBinding -// { -// public static explicit operator V1RoleBinding(V1beta1RoleBinding s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1RoleBinding -// { -// public static explicit operator V1beta1RoleBinding(V1RoleBinding s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1RoleBindingList -// { -// public static explicit operator V1RoleBindingList(V1beta1RoleBindingList s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1RoleBindingList -// { -// public static explicit operator V1beta1RoleBindingList(V1RoleBindingList s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1RoleList -// { -// public static explicit operator V1RoleList(V1beta1RoleList s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1RoleList -// { -// public static explicit operator V1beta1RoleList(V1RoleList s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1PriorityClass -// { -// public static explicit operator V1PriorityClass(V1beta1PriorityClass s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1PriorityClass -// { -// public static explicit operator V1beta1PriorityClass(V1PriorityClass s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1PriorityClassList -// { -// public static explicit operator V1PriorityClassList(V1beta1PriorityClassList s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1PriorityClassList -// { -// public static explicit operator V1beta1PriorityClassList(V1PriorityClassList s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1CSIDriver -// { -// public static explicit operator V1CSIDriver(V1beta1CSIDriver s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1CSIDriver -// { -// public static explicit operator V1beta1CSIDriver(V1CSIDriver s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1CSIDriverList -// { -// public static explicit operator V1CSIDriverList(V1beta1CSIDriverList s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1CSIDriverList -// { -// public static explicit operator V1beta1CSIDriverList(V1CSIDriverList s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1CSINode -// { -// public static explicit operator V1CSINode(V1beta1CSINode s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1CSINode -// { -// public static explicit operator V1beta1CSINode(V1CSINode s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1CSINodeList -// { -// public static explicit operator V1CSINodeList(V1beta1CSINodeList s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1CSINodeList -// { -// public static explicit operator V1beta1CSINodeList(V1CSINodeList s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1StorageClass -// { -// public static explicit operator V1StorageClass(V1beta1StorageClass s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1StorageClass -// { -// public static explicit operator V1beta1StorageClass(V1StorageClass s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1StorageClassList -// { -// public static explicit operator V1StorageClassList(V1beta1StorageClassList s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1StorageClassList -// { -// public static explicit operator V1beta1StorageClassList(V1StorageClassList s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1VolumeAttachment -// { -// public static explicit operator V1VolumeAttachment(V1beta1VolumeAttachment s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1VolumeAttachment -// { -// public static explicit operator V1beta1VolumeAttachment(V1VolumeAttachment s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1VolumeAttachmentList -// { -// public static explicit operator V1VolumeAttachmentList(V1beta1VolumeAttachmentList s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1VolumeAttachmentList -// { -// public static explicit operator V1beta1VolumeAttachmentList(V1VolumeAttachmentList s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1CustomResourceDefinition -// { -// public static explicit operator V1CustomResourceDefinition(V1beta1CustomResourceDefinition s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1CustomResourceDefinition -// { -// public static explicit operator V1beta1CustomResourceDefinition(V1CustomResourceDefinition s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1CustomResourceDefinitionList -// { -// public static explicit operator V1CustomResourceDefinitionList(V1beta1CustomResourceDefinitionList s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1CustomResourceDefinitionList -// { -// public static explicit operator V1beta1CustomResourceDefinitionList(V1CustomResourceDefinitionList s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1APIService -// { -// public static explicit operator V1APIService(V1beta1APIService s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1APIService -// { -// public static explicit operator V1beta1APIService(V1APIService s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1APIServiceList -// { -// public static explicit operator V1APIServiceList(V1beta1APIServiceList s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1APIServiceList -// { -// public static explicit operator V1beta1APIServiceList(V1APIServiceList s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1AggregationRule -// { -// public static explicit operator V1AggregationRule(V1beta1AggregationRule s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1AggregationRule -// { -// public static explicit operator V1beta1AggregationRule(V1AggregationRule s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1APIServiceCondition -// { -// public static explicit operator V1APIServiceCondition(V1beta1APIServiceCondition s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1APIServiceCondition -// { -// public static explicit operator V1beta1APIServiceCondition(V1APIServiceCondition s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1APIServiceSpec -// { -// public static explicit operator V1APIServiceSpec(V1beta1APIServiceSpec s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1APIServiceSpec -// { -// public static explicit operator V1beta1APIServiceSpec(V1APIServiceSpec s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1APIServiceStatus -// { -// public static explicit operator V1APIServiceStatus(V1beta1APIServiceStatus s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1APIServiceStatus -// { -// public static explicit operator V1beta1APIServiceStatus(V1APIServiceStatus s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1CSIDriverSpec -// { -// public static explicit operator V1CSIDriverSpec(V1beta1CSIDriverSpec s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1CSIDriverSpec -// { -// public static explicit operator V1beta1CSIDriverSpec(V1CSIDriverSpec s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1CSINodeDriver -// { -// public static explicit operator V1CSINodeDriver(V1beta1CSINodeDriver s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1CSINodeDriver -// { -// public static explicit operator V1beta1CSINodeDriver(V1CSINodeDriver s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1CSINodeSpec -// { -// public static explicit operator V1CSINodeSpec(V1beta1CSINodeSpec s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1CSINodeSpec -// { -// public static explicit operator V1beta1CSINodeSpec(V1CSINodeSpec s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1CustomResourceColumnDefinition -// { -// public static explicit operator V1CustomResourceColumnDefinition(V1beta1CustomResourceColumnDefinition s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1CustomResourceColumnDefinition -// { -// public static explicit operator V1beta1CustomResourceColumnDefinition(V1CustomResourceColumnDefinition s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1CustomResourceConversion -// { -// public static explicit operator V1CustomResourceConversion(V1beta1CustomResourceConversion s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1CustomResourceConversion -// { -// public static explicit operator V1beta1CustomResourceConversion(V1CustomResourceConversion s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1CustomResourceDefinitionCondition -// { -// public static explicit operator V1CustomResourceDefinitionCondition(V1beta1CustomResourceDefinitionCondition s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1CustomResourceDefinitionCondition -// { -// public static explicit operator V1beta1CustomResourceDefinitionCondition(V1CustomResourceDefinitionCondition s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1CustomResourceDefinitionNames -// { -// public static explicit operator V1CustomResourceDefinitionNames(V1beta1CustomResourceDefinitionNames s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1CustomResourceDefinitionNames -// { -// public static explicit operator V1beta1CustomResourceDefinitionNames(V1CustomResourceDefinitionNames s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1CustomResourceDefinitionSpec -// { -// public static explicit operator V1CustomResourceDefinitionSpec(V1beta1CustomResourceDefinitionSpec s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1CustomResourceDefinitionSpec -// { -// public static explicit operator V1beta1CustomResourceDefinitionSpec(V1CustomResourceDefinitionSpec s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1CustomResourceDefinitionStatus -// { -// public static explicit operator V1CustomResourceDefinitionStatus(V1beta1CustomResourceDefinitionStatus s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1CustomResourceDefinitionStatus -// { -// public static explicit operator V1beta1CustomResourceDefinitionStatus(V1CustomResourceDefinitionStatus s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1CustomResourceDefinitionVersion -// { -// public static explicit operator V1CustomResourceDefinitionVersion(V1beta1CustomResourceDefinitionVersion s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1CustomResourceDefinitionVersion -// { -// public static explicit operator V1beta1CustomResourceDefinitionVersion(V1CustomResourceDefinitionVersion s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1CustomResourceSubresources -// { -// public static explicit operator V1CustomResourceSubresources(V1beta1CustomResourceSubresources s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1CustomResourceSubresources -// { -// public static explicit operator V1beta1CustomResourceSubresources(V1CustomResourceSubresources s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1CustomResourceSubresourceScale -// { -// public static explicit operator V1CustomResourceSubresourceScale(V1beta1CustomResourceSubresourceScale s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1CustomResourceSubresourceScale -// { -// public static explicit operator V1beta1CustomResourceSubresourceScale(V1CustomResourceSubresourceScale s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1CustomResourceValidation -// { -// public static explicit operator V1CustomResourceValidation(V1beta1CustomResourceValidation s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1CustomResourceValidation -// { -// public static explicit operator V1beta1CustomResourceValidation(V1CustomResourceValidation s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1EndpointPort -// { -// public static explicit operator V1EndpointPort(V1beta1EndpointPort s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1EndpointPort -// { -// public static explicit operator V1beta1EndpointPort(V1EndpointPort s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1EventSeries -// { -// public static explicit operator V1EventSeries(V1beta1EventSeries s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1EventSeries -// { -// public static explicit operator V1beta1EventSeries(V1EventSeries s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1ExternalDocumentation -// { -// public static explicit operator V1ExternalDocumentation(V1beta1ExternalDocumentation s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1ExternalDocumentation -// { -// public static explicit operator V1beta1ExternalDocumentation(V1ExternalDocumentation s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1JSONSchemaProps -// { -// public static explicit operator V1JSONSchemaProps(V1beta1JSONSchemaProps s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1JSONSchemaProps -// { -// public static explicit operator V1beta1JSONSchemaProps(V1JSONSchemaProps s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1LeaseSpec -// { -// public static explicit operator V1LeaseSpec(V1beta1LeaseSpec s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1LeaseSpec -// { -// public static explicit operator V1beta1LeaseSpec(V1LeaseSpec s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1MutatingWebhook -// { -// public static explicit operator V1MutatingWebhook(V1beta1MutatingWebhook s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1MutatingWebhook -// { -// public static explicit operator V1beta1MutatingWebhook(V1MutatingWebhook s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1NonResourceAttributes -// { -// public static explicit operator V1NonResourceAttributes(V1beta1NonResourceAttributes s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1NonResourceAttributes -// { -// public static explicit operator V1beta1NonResourceAttributes(V1NonResourceAttributes s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1NonResourceRule -// { -// public static explicit operator V1NonResourceRule(V1beta1NonResourceRule s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1NonResourceRule -// { -// public static explicit operator V1beta1NonResourceRule(V1NonResourceRule s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1PolicyRule -// { -// public static explicit operator V1PolicyRule(V1beta1PolicyRule s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1PolicyRule -// { -// public static explicit operator V1beta1PolicyRule(V1PolicyRule s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1ResourceAttributes -// { -// public static explicit operator V1ResourceAttributes(V1beta1ResourceAttributes s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1ResourceAttributes -// { -// public static explicit operator V1beta1ResourceAttributes(V1ResourceAttributes s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1ResourceRule -// { -// public static explicit operator V1ResourceRule(V1beta1ResourceRule s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1ResourceRule -// { -// public static explicit operator V1beta1ResourceRule(V1ResourceRule s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1RoleRef -// { -// public static explicit operator V1RoleRef(V1beta1RoleRef s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1RoleRef -// { -// public static explicit operator V1beta1RoleRef(V1RoleRef s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1RuleWithOperations -// { -// public static explicit operator V1RuleWithOperations(V1beta1RuleWithOperations s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1RuleWithOperations -// { -// public static explicit operator V1beta1RuleWithOperations(V1RuleWithOperations s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1SelfSubjectAccessReviewSpec -// { -// public static explicit operator V1SelfSubjectAccessReviewSpec(V1beta1SelfSubjectAccessReviewSpec s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1SelfSubjectAccessReviewSpec -// { -// public static explicit operator V1beta1SelfSubjectAccessReviewSpec(V1SelfSubjectAccessReviewSpec s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1SelfSubjectRulesReviewSpec -// { -// public static explicit operator V1SelfSubjectRulesReviewSpec(V1beta1SelfSubjectRulesReviewSpec s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1SelfSubjectRulesReviewSpec -// { -// public static explicit operator V1beta1SelfSubjectRulesReviewSpec(V1SelfSubjectRulesReviewSpec s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1Subject -// { -// public static explicit operator V1Subject(V1beta1Subject s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1Subject -// { -// public static explicit operator V1beta1Subject(V1Subject s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1SubjectAccessReviewSpec -// { -// public static explicit operator V1SubjectAccessReviewSpec(V1beta1SubjectAccessReviewSpec s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1SubjectAccessReviewSpec -// { -// public static explicit operator V1beta1SubjectAccessReviewSpec(V1SubjectAccessReviewSpec s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1SubjectAccessReviewStatus -// { -// public static explicit operator V1SubjectAccessReviewStatus(V1beta1SubjectAccessReviewStatus s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1SubjectAccessReviewStatus -// { -// public static explicit operator V1beta1SubjectAccessReviewStatus(V1SubjectAccessReviewStatus s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1SubjectRulesReviewStatus -// { -// public static explicit operator V1SubjectRulesReviewStatus(V1beta1SubjectRulesReviewStatus s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1SubjectRulesReviewStatus -// { -// public static explicit operator V1beta1SubjectRulesReviewStatus(V1SubjectRulesReviewStatus s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1TokenReviewSpec -// { -// public static explicit operator V1TokenReviewSpec(V1beta1TokenReviewSpec s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1TokenReviewSpec -// { -// public static explicit operator V1beta1TokenReviewSpec(V1TokenReviewSpec s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1TokenReviewStatus -// { -// public static explicit operator V1TokenReviewStatus(V1beta1TokenReviewStatus s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1TokenReviewStatus -// { -// public static explicit operator V1beta1TokenReviewStatus(V1TokenReviewStatus s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1UserInfo -// { -// public static explicit operator V1UserInfo(V1beta1UserInfo s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1UserInfo -// { -// public static explicit operator V1beta1UserInfo(V1UserInfo s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1ValidatingWebhook -// { -// public static explicit operator V1ValidatingWebhook(V1beta1ValidatingWebhook s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1ValidatingWebhook -// { -// public static explicit operator V1beta1ValidatingWebhook(V1ValidatingWebhook s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1VolumeAttachmentSource -// { -// public static explicit operator V1VolumeAttachmentSource(V1beta1VolumeAttachmentSource s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1VolumeAttachmentSource -// { -// public static explicit operator V1beta1VolumeAttachmentSource(V1VolumeAttachmentSource s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1VolumeAttachmentSpec -// { -// public static explicit operator V1VolumeAttachmentSpec(V1beta1VolumeAttachmentSpec s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1VolumeAttachmentSpec -// { -// public static explicit operator V1beta1VolumeAttachmentSpec(V1VolumeAttachmentSpec s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1VolumeAttachmentStatus -// { -// public static explicit operator V1VolumeAttachmentStatus(V1beta1VolumeAttachmentStatus s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1VolumeAttachmentStatus -// { -// public static explicit operator V1beta1VolumeAttachmentStatus(V1VolumeAttachmentStatus s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1VolumeError -// { -// public static explicit operator V1VolumeError(V1beta1VolumeError s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1VolumeError -// { -// public static explicit operator V1beta1VolumeError(V1VolumeError s) => VersionConverter.Mapper.Map(s); -// } -// -// public partial class V1VolumeNodeResources -// { -// public static explicit operator V1VolumeNodeResources(V1beta1VolumeNodeResources s) => VersionConverter.Mapper.Map(s); -// } -// public partial class V1beta1VolumeNodeResources -// { -// public static explicit operator V1beta1VolumeNodeResources(V1VolumeNodeResources s) => VersionConverter.Mapper.Map(s); -// } -// -// -// -// } diff --git a/src/KubernetesClient/Versioning/VersionConverter.cs b/src/KubernetesClient/Versioning/VersionConverter.cs deleted file mode 100644 index e00ca61d9..000000000 --- a/src/KubernetesClient/Versioning/VersionConverter.cs +++ /dev/null @@ -1,357 +0,0 @@ -// WARNING: DO NOT LEAVE COMMENTED CODE IN THIS FILE. IT GETS SCANNED BY GEN PROJECT SO IT CAN EXCLUDE ANY MANUALLY DEFINED MAPS - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; -using System.Text; -using AutoMapper; -using k8s.Models; -using Newtonsoft.Json; - -namespace k8s.Versioning -{ - /// - /// Provides mappers that converts Kubernetes models between different versions - /// - public static partial class VersionConverter - { - static VersionConverter() - { - UpdateMappingConfiguration(expression => { }); - } - - public static IMapper Mapper { get; private set; } - internal static MapperConfiguration MapperConfiguration { get; private set; } - - /// - /// Two level lookup of model types by Kind and then Version - /// - internal static Dictionary> KindVersionsMap { get; private set; } - - public static Type GetTypeForVersion(string version) - { - return GetTypeForVersion(typeof(T), version); - } - - public static Type GetTypeForVersion(Type type, string version) - { - return KindVersionsMap[type.GetKubernetesTypeMetadata().Kind][version]; - } - - public static void UpdateMappingConfiguration(Action configuration) - { - MapperConfiguration = new MapperConfiguration(cfg => - { - GetConfigurations(cfg); - configuration(cfg); - }); - Mapper = MapperConfiguration.CreateMapper(); - KindVersionsMap = MapperConfiguration - .GetAllTypeMaps() - .SelectMany(x => new[] { x.Types.SourceType, x.Types.DestinationType }) - .Where(x => x.GetCustomAttribute() != null) - .Select(x => - { - var attr = GetKubernetesEntityAttribute(x); - return new { attr.Kind, attr.ApiVersion, Type = x }; - }) - .GroupBy(x => x.Kind) - .ToDictionary(x => x.Key, kindGroup => kindGroup - .GroupBy(x => x.ApiVersion) - .ToDictionary( - x => x.Key, - versionGroup => versionGroup.Select(x => x.Type).Distinct().Single())); // should only be one type for each Kind/Version combination - } - - public static object ConvertToVersion(object source, string apiVersion) - { - if (source == null) - { - throw new ArgumentNullException(nameof(source)); - } - - var type = source.GetType(); - var attr = GetKubernetesEntityAttribute(type); - if (attr.ApiVersion == apiVersion) - { - return source; - } - - if (!KindVersionsMap.TryGetValue(attr.Kind, out var kindVersions)) - { - throw new InvalidOperationException($"Version converter does not have any registered types for Kind `{attr.Kind}`"); - } - - if (!kindVersions.TryGetValue(apiVersion, out var targetType) || !kindVersions.TryGetValue(attr.ApiVersion, out var sourceType) || MapperConfiguration.FindTypeMapFor(sourceType, targetType) == null) - { - throw new InvalidOperationException($"There is no conversion mapping registered for Kind `{attr.Kind}` from ApiVersion {attr.ApiVersion} to {apiVersion}"); - } - - return Mapper.Map(source, sourceType, targetType); - } - - private static KubernetesEntityAttribute GetKubernetesEntityAttribute(Type type) - { - if (type == null) - { - throw new ArgumentNullException(nameof(type)); - } - - var attr = type.GetCustomAttribute(); - if (attr == null) - { - throw new InvalidOperationException($"Type {type} does not have {nameof(KubernetesEntityAttribute)}"); - } - - return attr; - } - - internal static void GetConfigurations(IMapperConfigurationExpression cfg) - { - AutoConfigurations(cfg); - ManualConfigurations(cfg); - } - - private static void ManualConfigurations(IMapperConfigurationExpression cfg) - { - cfg.AllowNullCollections = true; - cfg.DisableConstructorMapping(); - cfg.ForAllMaps((typeMap, opt) => - { - if (!typeof(IKubernetesObject).IsAssignableFrom(typeMap.Types.DestinationType)) - { - return; - } - - var metadata = typeMap.Types.DestinationType.GetKubernetesTypeMetadata(); - opt.ForMember(nameof(IKubernetesObject.ApiVersion), x => x.Ignore()); - opt.ForMember(nameof(IKubernetesObject.Kind), x => x.Ignore()); - opt.AfterMap((from, to) => - { - var obj = (IKubernetesObject)to; - obj.ApiVersion = !string.IsNullOrEmpty(metadata.Group) ? $"{metadata.Group}/{metadata.ApiVersion}" : metadata.ApiVersion; - obj.Kind = metadata.Kind; - }); - }); - cfg.CreateMap() - .ForMember(dest => dest.ApiVersion, opt => opt.Ignore()) - .ForMember(dest => dest.Name, opt => opt.Ignore()) - .ForMember(dest => dest.NamespaceProperty, opt => opt.Ignore()) - .ReverseMap(); - cfg.CreateMap() - .ForMember(dest => dest.ApiVersion, opt => opt.Ignore()) - .ForMember(dest => dest.Name, opt => opt.Ignore()) - .ForMember(dest => dest.NamespaceProperty, opt => opt.Ignore()) - .ReverseMap(); - cfg.CreateMap() - .ForMember(dest => dest.Group, opt => opt.Ignore()) - .ForMember(dest => dest.ServiceAccount, opt => opt.Ignore()) - .ForMember(dest => dest.User, opt => opt.Ignore()) - .ReverseMap(); - - cfg.CreateMap() - .ForMember(dest => dest.Handler, opt => opt.MapFrom(src => src.Spec.RuntimeHandler)) - .ForMember(dest => dest.Overhead, opt => opt.MapFrom(src => src.Spec.Overhead)) - .ForMember(dest => dest.Scheduling, opt => opt.MapFrom(src => src.Spec.Scheduling)) - .ReverseMap(); - cfg.CreateMap() - .ForMember(dest => dest.Handler, opt => opt.MapFrom(src => src.Handler)) - .ForMember(dest => dest.Overhead, opt => opt.MapFrom(src => src.Overhead)) - .ForMember(dest => dest.Scheduling, opt => opt.MapFrom(src => src.Scheduling)) - .ReverseMap(); - cfg.CreateMap() - .ForMember(dest => dest.Handler, opt => opt.MapFrom(src => src.Spec.RuntimeHandler)) - .ForMember(dest => dest.Overhead, opt => opt.MapFrom(src => src.Spec.Overhead)) - .ForMember(dest => dest.Scheduling, opt => opt.MapFrom(src => src.Spec.Scheduling)) - .ReverseMap(); - cfg.CreateMap() - .ForMember(dest => dest.AverageValue, opt => opt.MapFrom(src => src.CurrentAverageValue)) - .ForMember(dest => dest.AverageUtilization, opt => opt.MapFrom(src => src.CurrentAverageUtilization)) - .ForMember(dest => dest.Value, opt => opt.Ignore()); - cfg.CreateMap() - .ForMember(dest => dest.Current, opt => opt.MapFrom(src => src)); - cfg.CreateMap() - .ForMember(dest => dest.CurrentAverageValue, opt => opt.MapFrom(src => src.Current.AverageValue)) - .ForMember(dest => dest.CurrentAverageUtilization, opt => opt.MapFrom(src => src.Current.AverageUtilization)); - cfg.CreateMap() - .ForMember(dest => dest.AverageValue, opt => opt.MapFrom(src => src.TargetAverageValue)) - .ForMember(dest => dest.Value, opt => opt.Ignore()) - .ForMember(dest => dest.Type, opt => opt.MapFrom((src, dest) => src.TargetAverageValue != null ? "AverageValue" : "Utilization")) - .ForMember(dest => dest.AverageUtilization, opt => opt.MapFrom(src => src.TargetAverageUtilization)); - cfg.CreateMap() - .ForMember(dest => dest.Target, opt => opt.MapFrom(src => src)); - cfg.CreateMap() - .ForMember(dest => dest.TargetAverageUtilization, opt => opt.MapFrom(src => src.Target.AverageUtilization)) - .ForMember(dest => dest.TargetAverageValue, opt => opt.MapFrom(src => src.Target.Value)); - cfg.CreateMap() - .ForMember(dest => dest.AverageValue, opt => opt.MapFrom(src => src.CurrentAverageValue)) - .ForMember(dest => dest.Value, opt => opt.Ignore()) - .ForMember(dest => dest.AverageUtilization, opt => opt.Ignore()); - cfg.CreateMap() - .ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.MetricName)) - .ForMember(dest => dest.Selector, opt => opt.MapFrom(src => src.Selector)); - cfg.CreateMap() - .ForMember(dest => dest.Current, opt => opt.MapFrom(src => src)) - .ForMember(dest => dest.Metric, opt => opt.MapFrom(src => src)); - cfg.CreateMap() - .ForMember(dest => dest.Selector, opt => opt.MapFrom(src => src.Metric.Selector)) - .ForMember(dest => dest.CurrentAverageValue, opt => opt.MapFrom(src => src.Current.AverageValue)) - .ForMember(dest => dest.MetricName, opt => opt.MapFrom(src => src.Metric.Name)); - cfg.CreateMap() - .ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.MetricName)) - .ForMember(dest => dest.Selector, opt => opt.MapFrom(src => src.Selector)) - .ReverseMap(); - cfg.CreateMap() - .ForMember(dest => dest.AverageValue, opt => opt.MapFrom(src => src.TargetAverageValue)) - .ForMember(dest => dest.Type, opt => opt.MapFrom((src, dest) => "AverageValue")) - .ForMember(dest => dest.Value, opt => opt.Ignore()) - .ForMember(dest => dest.AverageUtilization, opt => opt.Ignore()); - cfg.CreateMap() - .ForMember(dest => dest.Metric, opt => opt.MapFrom(src => src)) - .ForMember(dest => dest.Target, opt => opt.MapFrom(src => src)); - cfg.CreateMap() - .ForMember(x => x.Selector, opt => opt.MapFrom(src => src.Metric.Selector)) - .ForMember(x => x.MetricName, opt => opt.MapFrom(src => src.Metric.Name)) - .ForMember(x => x.TargetAverageValue, opt => opt.MapFrom(src => src.Target.AverageValue)); - cfg.CreateMap() - .ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.MetricName)) - .ForMember(dest => dest.Selector, opt => opt.MapFrom(src => src.Selector)) - .ReverseMap(); - cfg.CreateMap() - .ForMember(dest => dest.Value, opt => opt.MapFrom(src => src.CurrentValue)) - .ForMember(dest => dest.AverageValue, opt => opt.MapFrom(src => src.AverageValue)) - .ForMember(dest => dest.AverageUtilization, opt => opt.Ignore()) - .ReverseMap(); - cfg.CreateMap() - .ForMember(x => x.Current, opt => opt.MapFrom(src => src)) - .ForMember(x => x.Metric, opt => opt.MapFrom(src => src)) - .ForMember(x => x.DescribedObject, opt => opt.MapFrom(src => src.Target)); - cfg.CreateMap() - .ForMember(x => x.CurrentValue, opt => opt.MapFrom(src => src.Current.Value)) - .ForMember(x => x.AverageValue, opt => opt.MapFrom(src => src.Current.AverageValue)) - .ForMember(x => x.MetricName, opt => opt.MapFrom(src => src.Metric.Name)) - .ForMember(x => x.Target, opt => opt.MapFrom(src => src.DescribedObject)) - .ForMember(x => x.Selector, opt => opt.MapFrom(src => src.Metric.Selector)); - cfg.CreateMap() - .ForMember(x => x.Value, opt => opt.MapFrom(src => src.TargetValue)) - .ForMember(x => x.AverageValue, opt => opt.MapFrom(src => src.TargetAverageValue)) - .ForMember(x => x.AverageUtilization, opt => opt.Ignore()) - .ForMember(x => x.Type, opt => opt.MapFrom((src, dest) => src.TargetValue != null ? "Value" : "AverageValue")); - cfg.CreateMap() - .ForMember(x => x.Metric, opt => opt.MapFrom(src => src)) - .ForMember(x => x.Target, opt => opt.MapFrom(src => src)); - cfg.CreateMap() - .ForMember(x => x.TargetValue, opt => opt.MapFrom(src => src.Target.Value)) - .ForMember(x => x.TargetAverageValue, opt => opt.MapFrom(src => src.Target.AverageValue)) - .ForMember(x => x.MetricName, opt => opt.MapFrom(src => src.Metric.Name)) - .ForMember(x => x.MetricSelector, opt => opt.MapFrom(src => src.Metric.Selector)); - cfg.CreateMap() - .ForMember(x => x.Current, opt => opt.MapFrom(src => src)) - .ForMember(x => x.Metric, opt => opt.MapFrom(src => src)); - cfg.CreateMap() - .ForMember(x => x.CurrentValue, opt => opt.MapFrom(src => src.Current.Value)) - .ForMember(x => x.CurrentAverageValue, opt => opt.MapFrom(src => src.Current.AverageValue)) - .ForMember(x => x.MetricName, opt => opt.MapFrom(src => src.Metric.Name)) - .ForMember(x => x.MetricSelector, opt => opt.MapFrom(src => src.Metric.Selector)); - cfg.CreateMap() - .ForMember(x => x.Name, opt => opt.MapFrom(src => src.MetricName)) - .ForMember(x => x.Selector, opt => opt.MapFrom(src => src.MetricSelector)) - .ReverseMap(); - cfg.CreateMap() - .ForMember(x => x.Value, opt => opt.MapFrom(src => src.CurrentValue)) - .ForMember(x => x.AverageValue, opt => opt.MapFrom(src => src.CurrentAverageValue)) - .ForMember(x => x.AverageUtilization, opt => opt.Ignore()) - .ReverseMap(); - cfg.CreateMap() - .ForMember(dest => dest.Value, opt => opt.MapFrom(src => src.TargetValue)) - .ForMember(dest => dest.AverageUtilization, opt => opt.Ignore()) - .ForMember(dest => dest.AverageValue, opt => opt.MapFrom(src => src.AverageValue)) - .ForMember(dest => dest.Type, opt => opt.MapFrom((src, dest) => src.TargetValue != null ? "Value" : "AverageValue")); - cfg.CreateMap() - .ForMember(dest => dest.Metric, opt => opt.MapFrom(src => src)) - .ForMember(dest => dest.Target, opt => opt.MapFrom(src => src)) - .ForMember(dest => dest.DescribedObject, opt => opt.MapFrom(src => src.Target)); - cfg.CreateMap() - .ForMember(dest => dest.Target, opt => opt.MapFrom(src => src.DescribedObject)) - .ForMember(dest => dest.MetricName, opt => opt.MapFrom(src => src.Metric.Name)) - .ForMember(dest => dest.TargetValue, opt => opt.MapFrom(src => src.Target.Value)) - .ForMember(dest => dest.AverageValue, opt => opt.MapFrom(src => src.Target.AverageValue)) - .ForMember(dest => dest.Selector, opt => opt.MapFrom(src => src.Metric.Selector)); - cfg.CreateMap() - .ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.MetricName)) - .ForMember(dest => dest.Selector, opt => opt.MapFrom(src => src.Selector)) - .ReverseMap(); - cfg.CreateMap() - .ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.MetricName)) - .ForMember(dest => dest.Selector, opt => opt.MapFrom(src => src.MetricSelector)); - cfg.CreateMap() // todo: not needed - .ForMember(dest => dest.MetricName, opt => opt.Ignore()) - .ForMember(dest => dest.MetricSelector, opt => opt.Ignore()) - .ForMember(dest => dest.TargetValue, opt => opt.MapFrom(src => src.Value)) - .ForMember(dest => dest.TargetValue, opt => opt.MapFrom(src => src.Value)) - .ForMember(dest => dest.TargetAverageValue, opt => opt.MapFrom(src => src.AverageValue)); - - cfg.CreateMap() - .ForMember(dest => dest.Metrics, opt => opt.Ignore()) - .ForMember(dest => dest.Behavior, opt => opt.Ignore()) - .ReverseMap(); - - cfg.CreateMap() - .ForMember(dest => dest.Metrics, opt => opt.Ignore()) - .ReverseMap(); - - cfg.CreateMap() - .ForMember(dest => dest.Behavior, opt => opt.Ignore()) - .ReverseMap(); - - cfg.CreateMap() - .ForMember(dest => dest.Conditions, opt => opt.Ignore()) - .ForMember(dest => dest.CurrentMetrics, opt => opt.Ignore()) - .ReverseMap(); - cfg.CreateMap() - .ForMember(dest => dest.Conditions, opt => opt.Ignore()) - .ForMember(dest => dest.CurrentMetrics, opt => opt.Ignore()) - .ReverseMap(); - - cfg.CreateMap() - .ForMember(dest => dest.LastObservedTime, opt => opt.MapFrom(src => src.LastObservedTime)) - .ReverseMap(); - - cfg.CreateMap() - .ForMember(dest => dest.DeprecatedCount, opt => opt.Ignore()) - .ForMember(dest => dest.DeprecatedFirstTimestamp, opt => opt.MapFrom(src => src.FirstTimestamp)) - .ForMember(dest => dest.DeprecatedLastTimestamp, opt => opt.MapFrom(src => src.LastTimestamp)) - .ForMember(dest => dest.DeprecatedSource, opt => opt.MapFrom(src => src.Source)) - .ForMember(dest => dest.Note, opt => opt.MapFrom(src => src.Message)) - .ForMember(dest => dest.Regarding, opt => opt.MapFrom(src => src.InvolvedObject)) - .ForMember(dest => dest.ReportingController, opt => opt.MapFrom(src => src.ReportingComponent)) - .ReverseMap(); - - cfg.CreateMap() - .ForMember(dest => dest.TargetAverageValue, opt => opt.MapFrom(src => src.Target.AverageValue)) - .ForMember(dest => dest.TargetAverageUtilization, opt => opt.MapFrom(src => src.Target.AverageUtilization)) - .ReverseMap(); - - cfg.CreateMap() - .ForMember(dest => dest.CurrentAverageValue, opt => opt.MapFrom(src => src.Current.AverageValue)) - .ForMember(dest => dest.CurrentAverageUtilization, opt => opt.MapFrom(src => src.Current.AverageUtilization)) - .ReverseMap(); - - - cfg.CreateMap().ReverseMap(); - - - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - - cfg.CreateMap() - .ForMember(dest => dest.DeprecatedTopology, opt => opt.Ignore()) - .ForMember(dest => dest.Zone, opt => opt.Ignore()) - .ReverseMap(); - - cfg.CreateMap() - .ReverseMap(); - } - } -} diff --git a/src/KubernetesClient/Watcher.cs b/src/KubernetesClient/Watcher.cs index 11106e91c..23868d4e0 100644 --- a/src/KubernetesClient/Watcher.cs +++ b/src/KubernetesClient/Watcher.cs @@ -1,17 +1,12 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.IO; using System.Runtime.CompilerServices; using System.Runtime.Serialization; -using System.Threading; -using System.Threading.Tasks; -using k8s.Models; -using Microsoft.Rest.Serialization; namespace k8s { /// Describes the type of a watch event. +#if NET8_0_OR_GREATER + [JsonConverter(typeof(JsonStringEnumConverter))] +#endif public enum WatchEventType { /// Emitted when an object is created, modified to match a watch's filter, or when a watch is first opened. @@ -50,6 +45,7 @@ public class Watcher : IDisposable private readonly Func> _streamReaderCreator; private bool disposedValue; + [System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "IDE0052:Remove unread private members", Justification = "Used in an async task loop")] private readonly Task _watcherLoop; @@ -120,8 +116,10 @@ public Watcher(Func> streamReaderCreator, Action AttachCancellationToken(Task task) try { - var genericEvent = SafeJsonConvert.DeserializeObject.WatchEvent>(line); + var genericEvent = KubernetesJson.Deserialize.WatchEvent>(line); if (genericEvent.Object.Kind == "Status") { - var statusEvent = SafeJsonConvert.DeserializeObject.WatchEvent>(line); + var statusEvent = KubernetesJson.Deserialize.WatchEvent>(line); var exception = new KubernetesException(statusEvent.Object); onError?.Invoke(exception); } else { - @event = SafeJsonConvert.DeserializeObject(line); + @event = KubernetesJson.Deserialize(line); } } catch (Exception e) diff --git a/src/KubernetesClient/WatcherExt.cs b/src/KubernetesClient/WatcherExt.cs index bd49f58ee..28863341f 100644 --- a/src/KubernetesClient/WatcherExt.cs +++ b/src/KubernetesClient/WatcherExt.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; using k8s.Exceptions; -using Microsoft.Rest; namespace k8s { @@ -16,11 +11,12 @@ public static class WatcherExt /// type of the HttpOperationResponse object /// the api response /// a callback when any event raised from api server - /// a callbak when any exception was caught during watching + /// a callback when any exception was caught during watching /// /// The action to invoke when the server closes the connection. /// /// a watch object + [Obsolete("This method will be deprecated in future versions. Please use the Watch method instead.")] public static Watcher Watch( this Task> responseTask, Action onEvent, @@ -52,11 +48,12 @@ private static Func> MakeStreamReaderCreator(Tasktype of the HttpOperationResponse object /// the api response /// a callback when any event raised from api server - /// a callbak when any exception was caught during watching + /// a callback when any exception was caught during watching /// /// The action to invoke when the server closes the connection. /// /// a watch object + [Obsolete("This method will be deprecated in future versions. Please use the Watch method instead.")] public static Watcher Watch( this HttpOperationResponse response, Action onEvent, @@ -73,13 +70,16 @@ public static Watcher Watch( /// type of the event object /// type of the HttpOperationResponse object /// the api response - /// a callbak when any exception was caught during watching + /// a callback when any exception was caught during watching + /// cancellation token /// IAsyncEnumerable of watch events + [Obsolete("This method will be deprecated in future versions. Please use the WatchAsync method instead.")] public static IAsyncEnumerable<(WatchEventType, T)> WatchAsync( this Task> responseTask, - Action onError = null) + Action onError = null, + CancellationToken cancellationToken = default) { - return Watcher.CreateWatchEventEnumerator(MakeStreamReaderCreator(responseTask), onError); + return Watcher.CreateWatchEventEnumerator(MakeStreamReaderCreator(responseTask), onError, cancellationToken); } } } diff --git a/src/KubernetesClient/WebSocketBuilder.cs b/src/KubernetesClient/WebSocketBuilder.cs index 679d6c13d..8acc3c5ce 100644 --- a/src/KubernetesClient/WebSocketBuilder.cs +++ b/src/KubernetesClient/WebSocketBuilder.cs @@ -1,9 +1,5 @@ -using System; using System.Net.WebSockets; -using System.Net.Security; using System.Security.Cryptography.X509Certificates; -using System.Threading; -using System.Threading.Tasks; namespace k8s { @@ -38,20 +34,23 @@ public virtual WebSocketBuilder AddClientCertificate(X509Certificate2 certificat public WebSocketBuilder ExpectServerCertificate(X509Certificate2Collection serverCertificate) { +#if NETSTANDARD2_1 || NET5_0_OR_GREATER Options.RemoteCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => { return Kubernetes.CertificateValidationCallBack(sender, serverCertificate, certificate, chain, sslPolicyErrors); }; - +#endif return this; } public WebSocketBuilder SkipServerCertificateValidation() { +#if NETSTANDARD2_1 || NET5_0_OR_GREATER Options.RemoteCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => true; +#endif return this; } diff --git a/src/KubernetesClient/generated/.openapi-generator/COMMIT b/src/KubernetesClient/generated/.openapi-generator/COMMIT deleted file mode 100644 index 768730d96..000000000 --- a/src/KubernetesClient/generated/.openapi-generator/COMMIT +++ /dev/null @@ -1,2 +0,0 @@ -Requested Commit: v3.3.4 -Actual Commit: 2353d71d4b02be6dbabe25aac1a9e56eb3b812a2 diff --git a/src/KubernetesClient/generated/IKubernetes.Watch.cs b/src/KubernetesClient/generated/IKubernetes.Watch.cs deleted file mode 100644 index 664d72daf..000000000 --- a/src/KubernetesClient/generated/IKubernetes.Watch.cs +++ /dev/null @@ -1,8489 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// -using k8s.Models; -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace k8s -{ - public partial interface IKubernetes - { - /// - /// watch changes to an object of kind ConfigMap. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the ConfigMap - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedConfigMapAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind Endpoints. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the Endpoints - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedEndpointsAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind Event. deprecated: use the 'watch' parameter - /// with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedEventAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind LimitRange. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the LimitRange - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedLimitRangeAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind PersistentVolumeClaim. deprecated: use the - /// 'watch' parameter with a list operation instead, filtered to a single item with - /// the 'fieldSelector' parameter. - /// - /// - /// name of the PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedPersistentVolumeClaimAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind Pod. deprecated: use the 'watch' parameter - /// with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedPodAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind PodTemplate. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the PodTemplate - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedPodTemplateAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind ReplicationController. deprecated: use the - /// 'watch' parameter with a list operation instead, filtered to a single item with - /// the 'fieldSelector' parameter. - /// - /// - /// name of the ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedReplicationControllerAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind ResourceQuota. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedResourceQuotaAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind Secret. deprecated: use the 'watch' parameter - /// with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the Secret - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedSecretAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind ServiceAccount. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the ServiceAccount - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedServiceAccountAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind Service. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedServiceAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind Namespace. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the Namespace - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespaceAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind Node. deprecated: use the 'watch' parameter - /// with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the Node - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNodeAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind PersistentVolume. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the PersistentVolume - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchPersistentVolumeAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind MutatingWebhookConfiguration. deprecated: use - /// the 'watch' parameter with a list operation instead, filtered to a single item - /// with the 'fieldSelector' parameter. - /// - /// - /// name of the MutatingWebhookConfiguration - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchMutatingWebhookConfigurationAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind ValidatingWebhookConfiguration. deprecated: - /// use the 'watch' parameter with a list operation instead, filtered to a single - /// item with the 'fieldSelector' parameter. - /// - /// - /// name of the ValidatingWebhookConfiguration - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchValidatingWebhookConfigurationAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind CustomResourceDefinition. deprecated: use the - /// 'watch' parameter with a list operation instead, filtered to a single item with - /// the 'fieldSelector' parameter. - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchCustomResourceDefinitionAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind APIService. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the APIService - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchAPIServiceAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind ControllerRevision. deprecated: use the - /// 'watch' parameter with a list operation instead, filtered to a single item with - /// the 'fieldSelector' parameter. - /// - /// - /// name of the ControllerRevision - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedControllerRevisionAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind DaemonSet. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedDaemonSetAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind Deployment. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedDeploymentAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind ReplicaSet. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedReplicaSetAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind StatefulSet. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedStatefulSetAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind HorizontalPodAutoscaler. deprecated: use the - /// 'watch' parameter with a list operation instead, filtered to a single item with - /// the 'fieldSelector' parameter. - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedHorizontalPodAutoscalerAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind HorizontalPodAutoscaler. deprecated: use the - /// 'watch' parameter with a list operation instead, filtered to a single item with - /// the 'fieldSelector' parameter. - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedHorizontalPodAutoscalerAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind HorizontalPodAutoscaler. deprecated: use the - /// 'watch' parameter with a list operation instead, filtered to a single item with - /// the 'fieldSelector' parameter. - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedHorizontalPodAutoscalerAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind CronJob. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedCronJobAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind Job. deprecated: use the 'watch' parameter - /// with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedJobAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind CronJob. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedCronJobAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind CertificateSigningRequest. deprecated: use - /// the 'watch' parameter with a list operation instead, filtered to a single item - /// with the 'fieldSelector' parameter. - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchCertificateSigningRequestAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind Lease. deprecated: use the 'watch' parameter - /// with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the Lease - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedLeaseAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind EndpointSlice. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedEndpointSliceAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind EndpointSlice. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedEndpointSliceAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind Event. deprecated: use the 'watch' parameter - /// with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedEventAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind Event. deprecated: use the 'watch' parameter - /// with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedEventAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind FlowSchema. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the FlowSchema - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchFlowSchemaAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind PriorityLevelConfiguration. deprecated: use - /// the 'watch' parameter with a list operation instead, filtered to a single item - /// with the 'fieldSelector' parameter. - /// - /// - /// name of the PriorityLevelConfiguration - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchPriorityLevelConfigurationAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind StorageVersion. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the StorageVersion - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchStorageVersionAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind IngressClass. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the IngressClass - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchIngressClassAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind Ingress. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedIngressAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind NetworkPolicy. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the NetworkPolicy - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedNetworkPolicyAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind RuntimeClass. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the RuntimeClass - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchRuntimeClassAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind RuntimeClass. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the RuntimeClass - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchRuntimeClassAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind RuntimeClass. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the RuntimeClass - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchRuntimeClassAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind PodDisruptionBudget. deprecated: use the - /// 'watch' parameter with a list operation instead, filtered to a single item with - /// the 'fieldSelector' parameter. - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedPodDisruptionBudgetAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind PodDisruptionBudget. deprecated: use the - /// 'watch' parameter with a list operation instead, filtered to a single item with - /// the 'fieldSelector' parameter. - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedPodDisruptionBudgetAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind PodSecurityPolicy. deprecated: use the - /// 'watch' parameter with a list operation instead, filtered to a single item with - /// the 'fieldSelector' parameter. - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchPodSecurityPolicyAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind ClusterRoleBinding. deprecated: use the - /// 'watch' parameter with a list operation instead, filtered to a single item with - /// the 'fieldSelector' parameter. - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchClusterRoleBindingAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind ClusterRole. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the ClusterRole - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchClusterRoleAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind RoleBinding. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedRoleBindingAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind Role. deprecated: use the 'watch' parameter - /// with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedRoleAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind ClusterRoleBinding. deprecated: use the - /// 'watch' parameter with a list operation instead, filtered to a single item with - /// the 'fieldSelector' parameter. - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchClusterRoleBindingAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind ClusterRole. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the ClusterRole - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchClusterRoleAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind RoleBinding. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedRoleBindingAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind Role. deprecated: use the 'watch' parameter - /// with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedRoleAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind PriorityClass. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the PriorityClass - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchPriorityClassAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind PriorityClass. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the PriorityClass - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchPriorityClassAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind CSIDriver. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the CSIDriver - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchCSIDriverAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind CSINode. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the CSINode - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchCSINodeAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind StorageClass. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the StorageClass - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchStorageClassAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind VolumeAttachment. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the VolumeAttachment - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchVolumeAttachmentAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind CSIStorageCapacity. deprecated: use the - /// 'watch' parameter with a list operation instead, filtered to a single item with - /// the 'fieldSelector' parameter. - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedCSIStorageCapacityAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind VolumeAttachment. deprecated: use the 'watch' - /// parameter with a list operation instead, filtered to a single item with the - /// 'fieldSelector' parameter. - /// - /// - /// name of the VolumeAttachment - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchVolumeAttachmentAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// watch changes to an object of kind CSIStorageCapacity. deprecated: use the - /// 'watch' parameter with a list operation instead, filtered to a single item with - /// the 'fieldSelector' parameter. - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> WatchNamespacedCSIStorageCapacityAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - } -} diff --git a/src/KubernetesClient/generated/IKubernetes.cs b/src/KubernetesClient/generated/IKubernetes.cs deleted file mode 100644 index b45d2ed7b..000000000 --- a/src/KubernetesClient/generated/IKubernetes.cs +++ /dev/null @@ -1,40751 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s -{ - using Microsoft.Rest; - using Models; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.IO; - using System.Threading; - using System.Threading.Tasks; - - /// - /// - public partial interface IKubernetes : System.IDisposable - { - /// - /// The base URI of the service. - /// - System.Uri BaseUri { get; set; } - - /// - /// Gets or sets json serialization settings. - /// - JsonSerializerSettings SerializationSettings { get; } - - /// - /// Gets or sets json deserialization settings. - /// - JsonSerializerSettings DeserializationSettings { get; } - - /// - /// Subscription credentials which uniquely identify client - /// subscription. - /// - ServiceClientCredentials Credentials { get; } - - /// - /// get service account issuer OpenID configuration, also known as the 'OIDC - /// discovery doc' - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetServiceAccountIssuerOpenIDConfigurationWithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available API versions - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIVersionsWithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available API versions - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIVersions1WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResourcesWithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources1WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources2WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources3WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources4WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources5WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources6WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources7WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources8WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources9WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources10WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources11WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources12WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources13WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources14WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources15WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources16WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources17WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources18WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources19WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources20WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources21WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources22WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources23WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources24WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources25WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources26WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources27WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources28WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources29WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources30WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources31WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIResources32WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list objects of kind ComponentStatus - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListComponentStatusWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified ComponentStatus - /// - /// - /// name of the ComponentStatus - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadComponentStatusWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ConfigMap - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListConfigMapForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Endpoints - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListEndpointsForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Event - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListEventForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Event - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListEventForAllNamespaces1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Event - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListEventForAllNamespaces2WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind LimitRange - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListLimitRangeForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Namespace - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespaceWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a Namespace - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespaceWithHttpMessagesAsync( - V1Namespace body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a Binding - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedBindingWithHttpMessagesAsync( - V1Binding body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of ConfigMap - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedConfigMapWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ConfigMap - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedConfigMapWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a ConfigMap - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedConfigMapWithHttpMessagesAsync( - V1ConfigMap body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a ConfigMap - /// - /// - /// name of the ConfigMap - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedConfigMapWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified ConfigMap - /// - /// - /// name of the ConfigMap - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedConfigMapWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified ConfigMap - /// - /// - /// - /// - /// - /// name of the ConfigMap - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedConfigMapWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified ConfigMap - /// - /// - /// - /// - /// - /// name of the ConfigMap - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedConfigMapWithHttpMessagesAsync( - V1ConfigMap body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of Endpoints - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedEndpointsWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Endpoints - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedEndpointsWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create Endpoints - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedEndpointsWithHttpMessagesAsync( - V1Endpoints body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete Endpoints - /// - /// - /// name of the Endpoints - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedEndpointsWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified Endpoints - /// - /// - /// name of the Endpoints - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedEndpointsWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified Endpoints - /// - /// - /// - /// - /// - /// name of the Endpoints - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedEndpointsWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified Endpoints - /// - /// - /// - /// - /// - /// name of the Endpoints - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedEndpointsWithHttpMessagesAsync( - V1Endpoints body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedEventWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedEvent1WithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedEvent2WithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedEventWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedEvent1WithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedEvent2WithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create an Event - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedEventWithHttpMessagesAsync( - Corev1Event body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create an Event - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedEvent1WithHttpMessagesAsync( - Eventsv1Event body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create an Event - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedEvent2WithHttpMessagesAsync( - V1beta1Event body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete an Event - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedEventWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete an Event - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedEvent1WithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete an Event - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedEvent2WithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified Event - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedEventWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified Event - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedEvent1WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified Event - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedEvent2WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified Event - /// - /// - /// - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedEventWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified Event - /// - /// - /// - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedEvent1WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified Event - /// - /// - /// - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedEvent2WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified Event - /// - /// - /// - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedEventWithHttpMessagesAsync( - Corev1Event body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified Event - /// - /// - /// - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedEvent1WithHttpMessagesAsync( - Eventsv1Event body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified Event - /// - /// - /// - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedEvent2WithHttpMessagesAsync( - V1beta1Event body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of LimitRange - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedLimitRangeWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind LimitRange - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedLimitRangeWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a LimitRange - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedLimitRangeWithHttpMessagesAsync( - V1LimitRange body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a LimitRange - /// - /// - /// name of the LimitRange - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedLimitRangeWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified LimitRange - /// - /// - /// name of the LimitRange - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedLimitRangeWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified LimitRange - /// - /// - /// - /// - /// - /// name of the LimitRange - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedLimitRangeWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified LimitRange - /// - /// - /// - /// - /// - /// name of the LimitRange - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedLimitRangeWithHttpMessagesAsync( - V1LimitRange body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedPersistentVolumeClaimWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedPersistentVolumeClaimWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a PersistentVolumeClaim - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedPersistentVolumeClaimWithHttpMessagesAsync( - V1PersistentVolumeClaim body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a PersistentVolumeClaim - /// - /// - /// name of the PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedPersistentVolumeClaimWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified PersistentVolumeClaim - /// - /// - /// name of the PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedPersistentVolumeClaimWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified PersistentVolumeClaim - /// - /// - /// - /// - /// - /// name of the PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedPersistentVolumeClaimWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified PersistentVolumeClaim - /// - /// - /// - /// - /// - /// name of the PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedPersistentVolumeClaimWithHttpMessagesAsync( - V1PersistentVolumeClaim body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified PersistentVolumeClaim - /// - /// - /// name of the PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedPersistentVolumeClaimStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified PersistentVolumeClaim - /// - /// - /// - /// - /// - /// name of the PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedPersistentVolumeClaimStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified PersistentVolumeClaim - /// - /// - /// - /// - /// - /// name of the PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedPersistentVolumeClaimStatusWithHttpMessagesAsync( - V1PersistentVolumeClaim body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedPodWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedPodWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a Pod - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedPodWithHttpMessagesAsync( - V1Pod body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedPodWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedPodWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified Pod - /// - /// - /// - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedPodWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified Pod - /// - /// - /// - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedPodWithHttpMessagesAsync( - V1Pod body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect GET requests to attach of Pod - /// - /// - /// name of the PodAttachOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The container in which to execute the command. Defaults to only container if - /// there is only one container in the pod. - /// - /// - /// Stderr if true indicates that stderr is to be redirected for the attach call. - /// Defaults to true. - /// - /// - /// Stdin if true, redirects the standard input stream of the pod for this call. - /// Defaults to false. - /// - /// - /// Stdout if true indicates that stdout is to be redirected for the attach call. - /// Defaults to true. - /// - /// - /// TTY if true indicates that a tty will be allocated for the attach call. This is - /// passed through the container runtime so the tty is allocated on the worker node - /// by the container runtime. Defaults to false. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectGetNamespacedPodAttachWithHttpMessagesAsync( - string name, - string namespaceParameter, - string container = null, - bool? stderr = null, - bool? stdin = null, - bool? stdout = null, - bool? tty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect POST requests to attach of Pod - /// - /// - /// name of the PodAttachOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The container in which to execute the command. Defaults to only container if - /// there is only one container in the pod. - /// - /// - /// Stderr if true indicates that stderr is to be redirected for the attach call. - /// Defaults to true. - /// - /// - /// Stdin if true, redirects the standard input stream of the pod for this call. - /// Defaults to false. - /// - /// - /// Stdout if true indicates that stdout is to be redirected for the attach call. - /// Defaults to true. - /// - /// - /// TTY if true indicates that a tty will be allocated for the attach call. This is - /// passed through the container runtime so the tty is allocated on the worker node - /// by the container runtime. Defaults to false. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectPostNamespacedPodAttachWithHttpMessagesAsync( - string name, - string namespaceParameter, - string container = null, - bool? stderr = null, - bool? stdin = null, - bool? stdout = null, - bool? tty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create binding of a Pod - /// - /// - /// - /// - /// - /// name of the Binding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedPodBindingWithHttpMessagesAsync( - V1Binding body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read ephemeralcontainers of the specified Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedPodEphemeralcontainersWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update ephemeralcontainers of the specified Pod - /// - /// - /// - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedPodEphemeralcontainersWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace ephemeralcontainers of the specified Pod - /// - /// - /// - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedPodEphemeralcontainersWithHttpMessagesAsync( - V1Pod body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create eviction of a Pod - /// - /// - /// - /// - /// - /// name of the Eviction - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedPodEvictionWithHttpMessagesAsync( - V1Eviction body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect GET requests to exec of Pod - /// - /// - /// name of the PodExecOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Command is the remote command to execute. argv array. Not executed within a - /// shell. - /// - /// - /// Container in which to execute the command. Defaults to only container if there - /// is only one container in the pod. - /// - /// - /// Redirect the standard error stream of the pod for this call. Defaults to true. - /// - /// - /// Redirect the standard input stream of the pod for this call. Defaults to false. - /// - /// - /// Redirect the standard output stream of the pod for this call. Defaults to true. - /// - /// - /// TTY if true indicates that a tty will be allocated for the exec call. Defaults - /// to false. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectGetNamespacedPodExecWithHttpMessagesAsync( - string name, - string namespaceParameter, - string command = null, - string container = null, - bool? stderr = null, - bool? stdin = null, - bool? stdout = null, - bool? tty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect POST requests to exec of Pod - /// - /// - /// name of the PodExecOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Command is the remote command to execute. argv array. Not executed within a - /// shell. - /// - /// - /// Container in which to execute the command. Defaults to only container if there - /// is only one container in the pod. - /// - /// - /// Redirect the standard error stream of the pod for this call. Defaults to true. - /// - /// - /// Redirect the standard input stream of the pod for this call. Defaults to false. - /// - /// - /// Redirect the standard output stream of the pod for this call. Defaults to true. - /// - /// - /// TTY if true indicates that a tty will be allocated for the exec call. Defaults - /// to false. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectPostNamespacedPodExecWithHttpMessagesAsync( - string name, - string namespaceParameter, - string command = null, - string container = null, - bool? stderr = null, - bool? stdin = null, - bool? stdout = null, - bool? tty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read log of the specified Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The container for which to stream logs. Defaults to only container if there is - /// one container in the pod. - /// - /// - /// Follow the log stream of the pod. Defaults to false. - /// - /// - /// insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the - /// validity of the serving certificate of the backend it is connecting to. This - /// will make the HTTPS connection between the apiserver and the backend insecure. - /// This means the apiserver cannot verify the log data it is receiving came from - /// the real kubelet. If the kubelet is configured to verify the apiserver's TLS - /// credentials, it does not mean the connection to the real kubelet is vulnerable - /// to a man in the middle attack (e.g. an attacker could not intercept the actual - /// log data coming from the real kubelet). - /// - /// - /// If set, the number of bytes to read from the server before terminating the log - /// output. This may not display a complete final line of logging, and may return - /// slightly more or slightly less than the specified limit. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Return previous terminated container logs. Defaults to false. - /// - /// - /// 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. - /// - /// - /// 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 - /// - /// - /// If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line - /// of log output. Defaults to false. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedPodLogWithHttpMessagesAsync( - string name, - string namespaceParameter, - string container = null, - bool? follow = null, - bool? insecureSkipTLSVerifyBackend = null, - int? limitBytes = null, - bool? pretty = null, - bool? previous = null, - int? sinceSeconds = null, - int? tailLines = null, - bool? timestamps = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect GET requests to portforward of Pod - /// - /// - /// name of the PodPortForwardOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// List of ports to forward Required when using WebSockets - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectGetNamespacedPodPortforwardWithHttpMessagesAsync( - string name, - string namespaceParameter, - int? ports = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect POST requests to portforward of Pod - /// - /// - /// name of the PodPortForwardOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// List of ports to forward Required when using WebSockets - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectPostNamespacedPodPortforwardWithHttpMessagesAsync( - string name, - string namespaceParameter, - int? ports = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect DELETE requests to proxy of Pod - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectDeleteNamespacedPodProxyWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect GET requests to proxy of Pod - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectGetNamespacedPodProxyWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect HEAD requests to proxy of Pod - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectHeadNamespacedPodProxyWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect PATCH requests to proxy of Pod - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectPatchNamespacedPodProxyWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect POST requests to proxy of Pod - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectPostNamespacedPodProxyWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect PUT requests to proxy of Pod - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectPutNamespacedPodProxyWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect DELETE requests to proxy of Pod - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectDeleteNamespacedPodProxyWithPathWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect GET requests to proxy of Pod - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectGetNamespacedPodProxyWithPathWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect HEAD requests to proxy of Pod - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectHeadNamespacedPodProxyWithPathWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect PATCH requests to proxy of Pod - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectPatchNamespacedPodProxyWithPathWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect POST requests to proxy of Pod - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectPostNamespacedPodProxyWithPathWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect PUT requests to proxy of Pod - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectPutNamespacedPodProxyWithPathWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedPodStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified Pod - /// - /// - /// - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedPodStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified Pod - /// - /// - /// - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedPodStatusWithHttpMessagesAsync( - V1Pod body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of PodTemplate - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedPodTemplateWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind PodTemplate - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedPodTemplateWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a PodTemplate - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedPodTemplateWithHttpMessagesAsync( - V1PodTemplate body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a PodTemplate - /// - /// - /// name of the PodTemplate - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedPodTemplateWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified PodTemplate - /// - /// - /// name of the PodTemplate - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedPodTemplateWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified PodTemplate - /// - /// - /// - /// - /// - /// name of the PodTemplate - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedPodTemplateWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified PodTemplate - /// - /// - /// - /// - /// - /// name of the PodTemplate - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedPodTemplateWithHttpMessagesAsync( - V1PodTemplate body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedReplicationControllerWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedReplicationControllerWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a ReplicationController - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedReplicationControllerWithHttpMessagesAsync( - V1ReplicationController body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a ReplicationController - /// - /// - /// name of the ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedReplicationControllerWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified ReplicationController - /// - /// - /// name of the ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedReplicationControllerWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified ReplicationController - /// - /// - /// - /// - /// - /// name of the ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedReplicationControllerWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified ReplicationController - /// - /// - /// - /// - /// - /// name of the ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedReplicationControllerWithHttpMessagesAsync( - V1ReplicationController body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read scale of the specified ReplicationController - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedReplicationControllerScaleWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update scale of the specified ReplicationController - /// - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedReplicationControllerScaleWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace scale of the specified ReplicationController - /// - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedReplicationControllerScaleWithHttpMessagesAsync( - V1Scale body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified ReplicationController - /// - /// - /// name of the ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedReplicationControllerStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified ReplicationController - /// - /// - /// - /// - /// - /// name of the ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedReplicationControllerStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified ReplicationController - /// - /// - /// - /// - /// - /// name of the ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedReplicationControllerStatusWithHttpMessagesAsync( - V1ReplicationController body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedResourceQuotaWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedResourceQuotaWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a ResourceQuota - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedResourceQuotaWithHttpMessagesAsync( - V1ResourceQuota body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a ResourceQuota - /// - /// - /// name of the ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedResourceQuotaWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified ResourceQuota - /// - /// - /// name of the ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedResourceQuotaWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified ResourceQuota - /// - /// - /// - /// - /// - /// name of the ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedResourceQuotaWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified ResourceQuota - /// - /// - /// - /// - /// - /// name of the ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedResourceQuotaWithHttpMessagesAsync( - V1ResourceQuota body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified ResourceQuota - /// - /// - /// name of the ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedResourceQuotaStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified ResourceQuota - /// - /// - /// - /// - /// - /// name of the ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedResourceQuotaStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified ResourceQuota - /// - /// - /// - /// - /// - /// name of the ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedResourceQuotaStatusWithHttpMessagesAsync( - V1ResourceQuota body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of Secret - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedSecretWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Secret - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedSecretWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a Secret - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedSecretWithHttpMessagesAsync( - V1Secret body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a Secret - /// - /// - /// name of the Secret - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedSecretWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified Secret - /// - /// - /// name of the Secret - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedSecretWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified Secret - /// - /// - /// - /// - /// - /// name of the Secret - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedSecretWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified Secret - /// - /// - /// - /// - /// - /// name of the Secret - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedSecretWithHttpMessagesAsync( - V1Secret body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of ServiceAccount - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedServiceAccountWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ServiceAccount - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedServiceAccountWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a ServiceAccount - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedServiceAccountWithHttpMessagesAsync( - V1ServiceAccount body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a ServiceAccount - /// - /// - /// name of the ServiceAccount - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedServiceAccountWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified ServiceAccount - /// - /// - /// name of the ServiceAccount - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedServiceAccountWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified ServiceAccount - /// - /// - /// - /// - /// - /// name of the ServiceAccount - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedServiceAccountWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified ServiceAccount - /// - /// - /// - /// - /// - /// name of the ServiceAccount - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedServiceAccountWithHttpMessagesAsync( - V1ServiceAccount body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create token of a ServiceAccount - /// - /// - /// - /// - /// - /// name of the TokenRequest - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedServiceAccountTokenWithHttpMessagesAsync( - Authenticationv1TokenRequest body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedServiceWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a Service - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedServiceWithHttpMessagesAsync( - V1Service body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedServiceWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedServiceWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified Service - /// - /// - /// - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedServiceWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified Service - /// - /// - /// - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedServiceWithHttpMessagesAsync( - V1Service body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect DELETE requests to proxy of Service - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectDeleteNamespacedServiceProxyWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect GET requests to proxy of Service - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectGetNamespacedServiceProxyWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect HEAD requests to proxy of Service - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectHeadNamespacedServiceProxyWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect PATCH requests to proxy of Service - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectPatchNamespacedServiceProxyWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect POST requests to proxy of Service - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectPostNamespacedServiceProxyWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect PUT requests to proxy of Service - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectPutNamespacedServiceProxyWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect DELETE requests to proxy of Service - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectDeleteNamespacedServiceProxyWithPathWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect GET requests to proxy of Service - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectGetNamespacedServiceProxyWithPathWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect HEAD requests to proxy of Service - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectHeadNamespacedServiceProxyWithPathWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect PATCH requests to proxy of Service - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectPatchNamespacedServiceProxyWithPathWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect POST requests to proxy of Service - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectPostNamespacedServiceProxyWithPathWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect PUT requests to proxy of Service - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectPutNamespacedServiceProxyWithPathWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedServiceStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified Service - /// - /// - /// - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedServiceStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified Service - /// - /// - /// - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedServiceStatusWithHttpMessagesAsync( - V1Service body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a Namespace - /// - /// - /// name of the Namespace - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespaceWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified Namespace - /// - /// - /// name of the Namespace - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespaceWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified Namespace - /// - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespaceWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified Namespace - /// - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespaceWithHttpMessagesAsync( - V1Namespace body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace finalize of the specified Namespace - /// - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespaceFinalizeWithHttpMessagesAsync( - V1Namespace body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified Namespace - /// - /// - /// name of the Namespace - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespaceStatusWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified Namespace - /// - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespaceStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified Namespace - /// - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespaceStatusWithHttpMessagesAsync( - V1Namespace body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of Node - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNodeWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Node - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNodeWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a Node - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNodeWithHttpMessagesAsync( - V1Node body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a Node - /// - /// - /// name of the Node - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNodeWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified Node - /// - /// - /// name of the Node - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNodeWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified Node - /// - /// - /// - /// - /// - /// name of the Node - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNodeWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified Node - /// - /// - /// - /// - /// - /// name of the Node - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNodeWithHttpMessagesAsync( - V1Node body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect DELETE requests to proxy of Node - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectDeleteNodeProxyWithHttpMessagesAsync( - string name, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect GET requests to proxy of Node - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectGetNodeProxyWithHttpMessagesAsync( - string name, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect HEAD requests to proxy of Node - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectHeadNodeProxyWithHttpMessagesAsync( - string name, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect PATCH requests to proxy of Node - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectPatchNodeProxyWithHttpMessagesAsync( - string name, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect POST requests to proxy of Node - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectPostNodeProxyWithHttpMessagesAsync( - string name, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect PUT requests to proxy of Node - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectPutNodeProxyWithHttpMessagesAsync( - string name, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect DELETE requests to proxy of Node - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectDeleteNodeProxyWithPathWithHttpMessagesAsync( - string name, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect GET requests to proxy of Node - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectGetNodeProxyWithPathWithHttpMessagesAsync( - string name, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect HEAD requests to proxy of Node - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectHeadNodeProxyWithPathWithHttpMessagesAsync( - string name, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect PATCH requests to proxy of Node - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectPatchNodeProxyWithPathWithHttpMessagesAsync( - string name, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect POST requests to proxy of Node - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectPostNodeProxyWithPathWithHttpMessagesAsync( - string name, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect PUT requests to proxy of Node - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ConnectPutNodeProxyWithPathWithHttpMessagesAsync( - string name, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified Node - /// - /// - /// name of the Node - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNodeStatusWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified Node - /// - /// - /// - /// - /// - /// name of the Node - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNodeStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified Node - /// - /// - /// - /// - /// - /// name of the Node - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNodeStatusWithHttpMessagesAsync( - V1Node body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind PersistentVolumeClaim - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListPersistentVolumeClaimForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of PersistentVolume - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionPersistentVolumeWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind PersistentVolume - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListPersistentVolumeWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a PersistentVolume - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreatePersistentVolumeWithHttpMessagesAsync( - V1PersistentVolume body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a PersistentVolume - /// - /// - /// name of the PersistentVolume - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeletePersistentVolumeWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified PersistentVolume - /// - /// - /// name of the PersistentVolume - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadPersistentVolumeWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified PersistentVolume - /// - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchPersistentVolumeWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified PersistentVolume - /// - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplacePersistentVolumeWithHttpMessagesAsync( - V1PersistentVolume body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified PersistentVolume - /// - /// - /// name of the PersistentVolume - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadPersistentVolumeStatusWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified PersistentVolume - /// - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchPersistentVolumeStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified PersistentVolume - /// - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplacePersistentVolumeStatusWithHttpMessagesAsync( - V1PersistentVolume body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Pod - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListPodForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind PodTemplate - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListPodTemplateForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ReplicationController - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListReplicationControllerForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ResourceQuota - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListResourceQuotaForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Secret - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListSecretForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ServiceAccount - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListServiceAccountForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Service - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListServiceForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIGroupWithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIGroup1WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIGroup2WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIGroup3WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIGroup4WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIGroup5WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIGroup6WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIGroup7WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIGroup8WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIGroup9WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIGroup10WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIGroup11WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIGroup12WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIGroup13WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIGroup14WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIGroup15WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIGroup16WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIGroup17WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIGroup18WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetAPIGroup19WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of MutatingWebhookConfiguration - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionMutatingWebhookConfigurationWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind MutatingWebhookConfiguration - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListMutatingWebhookConfigurationWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a MutatingWebhookConfiguration - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateMutatingWebhookConfigurationWithHttpMessagesAsync( - V1MutatingWebhookConfiguration body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a MutatingWebhookConfiguration - /// - /// - /// name of the MutatingWebhookConfiguration - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteMutatingWebhookConfigurationWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified MutatingWebhookConfiguration - /// - /// - /// name of the MutatingWebhookConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadMutatingWebhookConfigurationWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified MutatingWebhookConfiguration - /// - /// - /// - /// - /// - /// name of the MutatingWebhookConfiguration - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchMutatingWebhookConfigurationWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified MutatingWebhookConfiguration - /// - /// - /// - /// - /// - /// name of the MutatingWebhookConfiguration - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceMutatingWebhookConfigurationWithHttpMessagesAsync( - V1MutatingWebhookConfiguration body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of ValidatingWebhookConfiguration - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionValidatingWebhookConfigurationWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ValidatingWebhookConfiguration - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListValidatingWebhookConfigurationWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a ValidatingWebhookConfiguration - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateValidatingWebhookConfigurationWithHttpMessagesAsync( - V1ValidatingWebhookConfiguration body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a ValidatingWebhookConfiguration - /// - /// - /// name of the ValidatingWebhookConfiguration - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteValidatingWebhookConfigurationWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified ValidatingWebhookConfiguration - /// - /// - /// name of the ValidatingWebhookConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadValidatingWebhookConfigurationWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified ValidatingWebhookConfiguration - /// - /// - /// - /// - /// - /// name of the ValidatingWebhookConfiguration - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchValidatingWebhookConfigurationWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified ValidatingWebhookConfiguration - /// - /// - /// - /// - /// - /// name of the ValidatingWebhookConfiguration - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceValidatingWebhookConfigurationWithHttpMessagesAsync( - V1ValidatingWebhookConfiguration body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of CustomResourceDefinition - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionCustomResourceDefinitionWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind CustomResourceDefinition - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListCustomResourceDefinitionWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a CustomResourceDefinition - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateCustomResourceDefinitionWithHttpMessagesAsync( - V1CustomResourceDefinition body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a CustomResourceDefinition - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCustomResourceDefinitionWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified CustomResourceDefinition - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadCustomResourceDefinitionWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified CustomResourceDefinition - /// - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchCustomResourceDefinitionWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified CustomResourceDefinition - /// - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceCustomResourceDefinitionWithHttpMessagesAsync( - V1CustomResourceDefinition body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified CustomResourceDefinition - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadCustomResourceDefinitionStatusWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified CustomResourceDefinition - /// - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchCustomResourceDefinitionStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified CustomResourceDefinition - /// - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceCustomResourceDefinitionStatusWithHttpMessagesAsync( - V1CustomResourceDefinition body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of APIService - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionAPIServiceWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind APIService - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListAPIServiceWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create an APIService - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateAPIServiceWithHttpMessagesAsync( - V1APIService body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete an APIService - /// - /// - /// name of the APIService - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteAPIServiceWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified APIService - /// - /// - /// name of the APIService - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadAPIServiceWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified APIService - /// - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchAPIServiceWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified APIService - /// - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceAPIServiceWithHttpMessagesAsync( - V1APIService body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified APIService - /// - /// - /// name of the APIService - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadAPIServiceStatusWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified APIService - /// - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchAPIServiceStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified APIService - /// - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceAPIServiceStatusWithHttpMessagesAsync( - V1APIService body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ControllerRevision - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListControllerRevisionForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind DaemonSet - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListDaemonSetForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Deployment - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListDeploymentForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of ControllerRevision - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedControllerRevisionWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ControllerRevision - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedControllerRevisionWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a ControllerRevision - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedControllerRevisionWithHttpMessagesAsync( - V1ControllerRevision body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a ControllerRevision - /// - /// - /// name of the ControllerRevision - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedControllerRevisionWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified ControllerRevision - /// - /// - /// name of the ControllerRevision - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedControllerRevisionWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified ControllerRevision - /// - /// - /// - /// - /// - /// name of the ControllerRevision - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedControllerRevisionWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified ControllerRevision - /// - /// - /// - /// - /// - /// name of the ControllerRevision - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedControllerRevisionWithHttpMessagesAsync( - V1ControllerRevision body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedDaemonSetWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedDaemonSetWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a DaemonSet - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedDaemonSetWithHttpMessagesAsync( - V1DaemonSet body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a DaemonSet - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedDaemonSetWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified DaemonSet - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedDaemonSetWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified DaemonSet - /// - /// - /// - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedDaemonSetWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified DaemonSet - /// - /// - /// - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedDaemonSetWithHttpMessagesAsync( - V1DaemonSet body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified DaemonSet - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedDaemonSetStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified DaemonSet - /// - /// - /// - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedDaemonSetStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified DaemonSet - /// - /// - /// - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedDaemonSetStatusWithHttpMessagesAsync( - V1DaemonSet body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedDeploymentWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedDeploymentWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a Deployment - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedDeploymentWithHttpMessagesAsync( - V1Deployment body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a Deployment - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedDeploymentWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified Deployment - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedDeploymentWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified Deployment - /// - /// - /// - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedDeploymentWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified Deployment - /// - /// - /// - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedDeploymentWithHttpMessagesAsync( - V1Deployment body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read scale of the specified Deployment - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedDeploymentScaleWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update scale of the specified Deployment - /// - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedDeploymentScaleWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace scale of the specified Deployment - /// - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedDeploymentScaleWithHttpMessagesAsync( - V1Scale body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified Deployment - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedDeploymentStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified Deployment - /// - /// - /// - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedDeploymentStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified Deployment - /// - /// - /// - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedDeploymentStatusWithHttpMessagesAsync( - V1Deployment body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedReplicaSetWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedReplicaSetWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a ReplicaSet - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedReplicaSetWithHttpMessagesAsync( - V1ReplicaSet body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a ReplicaSet - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedReplicaSetWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified ReplicaSet - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedReplicaSetWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified ReplicaSet - /// - /// - /// - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedReplicaSetWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified ReplicaSet - /// - /// - /// - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedReplicaSetWithHttpMessagesAsync( - V1ReplicaSet body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read scale of the specified ReplicaSet - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedReplicaSetScaleWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update scale of the specified ReplicaSet - /// - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedReplicaSetScaleWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace scale of the specified ReplicaSet - /// - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedReplicaSetScaleWithHttpMessagesAsync( - V1Scale body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified ReplicaSet - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedReplicaSetStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified ReplicaSet - /// - /// - /// - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedReplicaSetStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified ReplicaSet - /// - /// - /// - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedReplicaSetStatusWithHttpMessagesAsync( - V1ReplicaSet body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedStatefulSetWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedStatefulSetWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a StatefulSet - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedStatefulSetWithHttpMessagesAsync( - V1StatefulSet body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a StatefulSet - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedStatefulSetWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified StatefulSet - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedStatefulSetWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified StatefulSet - /// - /// - /// - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedStatefulSetWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified StatefulSet - /// - /// - /// - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedStatefulSetWithHttpMessagesAsync( - V1StatefulSet body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read scale of the specified StatefulSet - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedStatefulSetScaleWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update scale of the specified StatefulSet - /// - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedStatefulSetScaleWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace scale of the specified StatefulSet - /// - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedStatefulSetScaleWithHttpMessagesAsync( - V1Scale body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified StatefulSet - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedStatefulSetStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified StatefulSet - /// - /// - /// - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedStatefulSetStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified StatefulSet - /// - /// - /// - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedStatefulSetStatusWithHttpMessagesAsync( - V1StatefulSet body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ReplicaSet - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListReplicaSetForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind StatefulSet - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListStatefulSetForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a TokenReview - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateTokenReviewWithHttpMessagesAsync( - V1TokenReview body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a LocalSubjectAccessReview - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedLocalSubjectAccessReviewWithHttpMessagesAsync( - V1LocalSubjectAccessReview body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a SelfSubjectAccessReview - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateSelfSubjectAccessReviewWithHttpMessagesAsync( - V1SelfSubjectAccessReview body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a SelfSubjectRulesReview - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateSelfSubjectRulesReviewWithHttpMessagesAsync( - V1SelfSubjectRulesReview body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a SubjectAccessReview - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateSubjectAccessReviewWithHttpMessagesAsync( - V1SubjectAccessReview body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListHorizontalPodAutoscalerForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListHorizontalPodAutoscalerForAllNamespaces1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListHorizontalPodAutoscalerForAllNamespaces2WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedHorizontalPodAutoscaler2WithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedHorizontalPodAutoscaler2WithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a HorizontalPodAutoscaler - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync( - V1HorizontalPodAutoscaler body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a HorizontalPodAutoscaler - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync( - V2beta1HorizontalPodAutoscaler body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a HorizontalPodAutoscaler - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedHorizontalPodAutoscaler2WithHttpMessagesAsync( - V2beta2HorizontalPodAutoscaler body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a HorizontalPodAutoscaler - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a HorizontalPodAutoscaler - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a HorizontalPodAutoscaler - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedHorizontalPodAutoscaler2WithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified HorizontalPodAutoscaler - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified HorizontalPodAutoscaler - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified HorizontalPodAutoscaler - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedHorizontalPodAutoscaler2WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified HorizontalPodAutoscaler - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified HorizontalPodAutoscaler - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified HorizontalPodAutoscaler - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedHorizontalPodAutoscaler2WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified HorizontalPodAutoscaler - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync( - V1HorizontalPodAutoscaler body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified HorizontalPodAutoscaler - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync( - V2beta1HorizontalPodAutoscaler body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified HorizontalPodAutoscaler - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedHorizontalPodAutoscaler2WithHttpMessagesAsync( - V2beta2HorizontalPodAutoscaler body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified HorizontalPodAutoscaler - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedHorizontalPodAutoscalerStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified HorizontalPodAutoscaler - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedHorizontalPodAutoscalerStatus1WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified HorizontalPodAutoscaler - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedHorizontalPodAutoscalerStatus2WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified HorizontalPodAutoscaler - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedHorizontalPodAutoscalerStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified HorizontalPodAutoscaler - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedHorizontalPodAutoscalerStatus1WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified HorizontalPodAutoscaler - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedHorizontalPodAutoscalerStatus2WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified HorizontalPodAutoscaler - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedHorizontalPodAutoscalerStatusWithHttpMessagesAsync( - V1HorizontalPodAutoscaler body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified HorizontalPodAutoscaler - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedHorizontalPodAutoscalerStatus1WithHttpMessagesAsync( - V2beta1HorizontalPodAutoscaler body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified HorizontalPodAutoscaler - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedHorizontalPodAutoscalerStatus2WithHttpMessagesAsync( - V2beta2HorizontalPodAutoscaler body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind CronJob - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListCronJobForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind CronJob - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListCronJobForAllNamespaces1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Job - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListJobForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedCronJobWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedCronJob1WithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedCronJobWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedCronJob1WithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a CronJob - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedCronJobWithHttpMessagesAsync( - V1CronJob body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a CronJob - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedCronJob1WithHttpMessagesAsync( - V1beta1CronJob body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a CronJob - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedCronJobWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a CronJob - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedCronJob1WithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified CronJob - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedCronJobWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified CronJob - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedCronJob1WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified CronJob - /// - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedCronJobWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified CronJob - /// - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedCronJob1WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified CronJob - /// - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedCronJobWithHttpMessagesAsync( - V1CronJob body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified CronJob - /// - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedCronJob1WithHttpMessagesAsync( - V1beta1CronJob body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified CronJob - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedCronJobStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified CronJob - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedCronJobStatus1WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified CronJob - /// - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedCronJobStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified CronJob - /// - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedCronJobStatus1WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified CronJob - /// - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedCronJobStatusWithHttpMessagesAsync( - V1CronJob body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified CronJob - /// - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedCronJobStatus1WithHttpMessagesAsync( - V1beta1CronJob body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedJobWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedJobWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a Job - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedJobWithHttpMessagesAsync( - V1Job body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a Job - /// - /// - /// name of the Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedJobWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified Job - /// - /// - /// name of the Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedJobWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified Job - /// - /// - /// - /// - /// - /// name of the Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedJobWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified Job - /// - /// - /// - /// - /// - /// name of the Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedJobWithHttpMessagesAsync( - V1Job body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified Job - /// - /// - /// name of the Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedJobStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified Job - /// - /// - /// - /// - /// - /// name of the Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedJobStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified Job - /// - /// - /// - /// - /// - /// name of the Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedJobStatusWithHttpMessagesAsync( - V1Job body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of CertificateSigningRequest - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionCertificateSigningRequestWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind CertificateSigningRequest - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListCertificateSigningRequestWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a CertificateSigningRequest - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateCertificateSigningRequestWithHttpMessagesAsync( - V1CertificateSigningRequest body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a CertificateSigningRequest - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCertificateSigningRequestWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified CertificateSigningRequest - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadCertificateSigningRequestWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified CertificateSigningRequest - /// - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchCertificateSigningRequestWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified CertificateSigningRequest - /// - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceCertificateSigningRequestWithHttpMessagesAsync( - V1CertificateSigningRequest body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read approval of the specified CertificateSigningRequest - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadCertificateSigningRequestApprovalWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update approval of the specified CertificateSigningRequest - /// - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchCertificateSigningRequestApprovalWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace approval of the specified CertificateSigningRequest - /// - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceCertificateSigningRequestApprovalWithHttpMessagesAsync( - V1CertificateSigningRequest body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified CertificateSigningRequest - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadCertificateSigningRequestStatusWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified CertificateSigningRequest - /// - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchCertificateSigningRequestStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified CertificateSigningRequest - /// - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceCertificateSigningRequestStatusWithHttpMessagesAsync( - V1CertificateSigningRequest body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Lease - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListLeaseForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of Lease - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedLeaseWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Lease - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedLeaseWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a Lease - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedLeaseWithHttpMessagesAsync( - V1Lease body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a Lease - /// - /// - /// name of the Lease - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedLeaseWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified Lease - /// - /// - /// name of the Lease - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedLeaseWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified Lease - /// - /// - /// - /// - /// - /// name of the Lease - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedLeaseWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified Lease - /// - /// - /// - /// - /// - /// name of the Lease - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedLeaseWithHttpMessagesAsync( - V1Lease body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind EndpointSlice - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListEndpointSliceForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind EndpointSlice - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListEndpointSliceForAllNamespaces1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedEndpointSliceWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedEndpointSlice1WithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedEndpointSliceWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedEndpointSlice1WithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create an EndpointSlice - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedEndpointSliceWithHttpMessagesAsync( - V1EndpointSlice body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create an EndpointSlice - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedEndpointSlice1WithHttpMessagesAsync( - V1beta1EndpointSlice body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete an EndpointSlice - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedEndpointSliceWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete an EndpointSlice - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedEndpointSlice1WithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified EndpointSlice - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedEndpointSliceWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified EndpointSlice - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedEndpointSlice1WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified EndpointSlice - /// - /// - /// - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedEndpointSliceWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified EndpointSlice - /// - /// - /// - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedEndpointSlice1WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified EndpointSlice - /// - /// - /// - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedEndpointSliceWithHttpMessagesAsync( - V1EndpointSlice body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified EndpointSlice - /// - /// - /// - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedEndpointSlice1WithHttpMessagesAsync( - V1beta1EndpointSlice body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of FlowSchema - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionFlowSchemaWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind FlowSchema - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListFlowSchemaWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a FlowSchema - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateFlowSchemaWithHttpMessagesAsync( - V1beta1FlowSchema body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a FlowSchema - /// - /// - /// name of the FlowSchema - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteFlowSchemaWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified FlowSchema - /// - /// - /// name of the FlowSchema - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadFlowSchemaWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified FlowSchema - /// - /// - /// - /// - /// - /// name of the FlowSchema - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchFlowSchemaWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified FlowSchema - /// - /// - /// - /// - /// - /// name of the FlowSchema - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceFlowSchemaWithHttpMessagesAsync( - V1beta1FlowSchema body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified FlowSchema - /// - /// - /// name of the FlowSchema - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadFlowSchemaStatusWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified FlowSchema - /// - /// - /// - /// - /// - /// name of the FlowSchema - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchFlowSchemaStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified FlowSchema - /// - /// - /// - /// - /// - /// name of the FlowSchema - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceFlowSchemaStatusWithHttpMessagesAsync( - V1beta1FlowSchema body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of PriorityLevelConfiguration - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionPriorityLevelConfigurationWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind PriorityLevelConfiguration - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListPriorityLevelConfigurationWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a PriorityLevelConfiguration - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreatePriorityLevelConfigurationWithHttpMessagesAsync( - V1beta1PriorityLevelConfiguration body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a PriorityLevelConfiguration - /// - /// - /// name of the PriorityLevelConfiguration - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeletePriorityLevelConfigurationWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified PriorityLevelConfiguration - /// - /// - /// name of the PriorityLevelConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadPriorityLevelConfigurationWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified PriorityLevelConfiguration - /// - /// - /// - /// - /// - /// name of the PriorityLevelConfiguration - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchPriorityLevelConfigurationWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified PriorityLevelConfiguration - /// - /// - /// - /// - /// - /// name of the PriorityLevelConfiguration - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplacePriorityLevelConfigurationWithHttpMessagesAsync( - V1beta1PriorityLevelConfiguration body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified PriorityLevelConfiguration - /// - /// - /// name of the PriorityLevelConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadPriorityLevelConfigurationStatusWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified PriorityLevelConfiguration - /// - /// - /// - /// - /// - /// name of the PriorityLevelConfiguration - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchPriorityLevelConfigurationStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified PriorityLevelConfiguration - /// - /// - /// - /// - /// - /// name of the PriorityLevelConfiguration - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplacePriorityLevelConfigurationStatusWithHttpMessagesAsync( - V1beta1PriorityLevelConfiguration body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of StorageVersion - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionStorageVersionWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind StorageVersion - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListStorageVersionWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a StorageVersion - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateStorageVersionWithHttpMessagesAsync( - V1alpha1StorageVersion body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a StorageVersion - /// - /// - /// name of the StorageVersion - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteStorageVersionWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified StorageVersion - /// - /// - /// name of the StorageVersion - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadStorageVersionWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified StorageVersion - /// - /// - /// - /// - /// - /// name of the StorageVersion - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchStorageVersionWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified StorageVersion - /// - /// - /// - /// - /// - /// name of the StorageVersion - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceStorageVersionWithHttpMessagesAsync( - V1alpha1StorageVersion body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified StorageVersion - /// - /// - /// name of the StorageVersion - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadStorageVersionStatusWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified StorageVersion - /// - /// - /// - /// - /// - /// name of the StorageVersion - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchStorageVersionStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified StorageVersion - /// - /// - /// - /// - /// - /// name of the StorageVersion - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceStorageVersionStatusWithHttpMessagesAsync( - V1alpha1StorageVersion body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of IngressClass - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionIngressClassWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind IngressClass - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListIngressClassWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create an IngressClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateIngressClassWithHttpMessagesAsync( - V1IngressClass body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete an IngressClass - /// - /// - /// name of the IngressClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteIngressClassWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified IngressClass - /// - /// - /// name of the IngressClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadIngressClassWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified IngressClass - /// - /// - /// - /// - /// - /// name of the IngressClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchIngressClassWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified IngressClass - /// - /// - /// - /// - /// - /// name of the IngressClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceIngressClassWithHttpMessagesAsync( - V1IngressClass body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Ingress - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListIngressForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedIngressWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedIngressWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create an Ingress - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedIngressWithHttpMessagesAsync( - V1Ingress body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete an Ingress - /// - /// - /// name of the Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedIngressWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified Ingress - /// - /// - /// name of the Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedIngressWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified Ingress - /// - /// - /// - /// - /// - /// name of the Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedIngressWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified Ingress - /// - /// - /// - /// - /// - /// name of the Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedIngressWithHttpMessagesAsync( - V1Ingress body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified Ingress - /// - /// - /// name of the Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedIngressStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified Ingress - /// - /// - /// - /// - /// - /// name of the Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedIngressStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified Ingress - /// - /// - /// - /// - /// - /// name of the Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedIngressStatusWithHttpMessagesAsync( - V1Ingress body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of NetworkPolicy - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedNetworkPolicyWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind NetworkPolicy - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedNetworkPolicyWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a NetworkPolicy - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedNetworkPolicyWithHttpMessagesAsync( - V1NetworkPolicy body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a NetworkPolicy - /// - /// - /// name of the NetworkPolicy - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedNetworkPolicyWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified NetworkPolicy - /// - /// - /// name of the NetworkPolicy - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedNetworkPolicyWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified NetworkPolicy - /// - /// - /// - /// - /// - /// name of the NetworkPolicy - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedNetworkPolicyWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified NetworkPolicy - /// - /// - /// - /// - /// - /// name of the NetworkPolicy - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedNetworkPolicyWithHttpMessagesAsync( - V1NetworkPolicy body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind NetworkPolicy - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNetworkPolicyForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of RuntimeClass - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionRuntimeClassWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of RuntimeClass - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionRuntimeClass1WithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of RuntimeClass - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionRuntimeClass2WithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind RuntimeClass - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListRuntimeClassWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind RuntimeClass - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListRuntimeClass1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind RuntimeClass - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListRuntimeClass2WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a RuntimeClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateRuntimeClassWithHttpMessagesAsync( - V1RuntimeClass body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a RuntimeClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateRuntimeClass1WithHttpMessagesAsync( - V1alpha1RuntimeClass body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a RuntimeClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateRuntimeClass2WithHttpMessagesAsync( - V1beta1RuntimeClass body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a RuntimeClass - /// - /// - /// name of the RuntimeClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteRuntimeClassWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a RuntimeClass - /// - /// - /// name of the RuntimeClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteRuntimeClass1WithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a RuntimeClass - /// - /// - /// name of the RuntimeClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteRuntimeClass2WithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified RuntimeClass - /// - /// - /// name of the RuntimeClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadRuntimeClassWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified RuntimeClass - /// - /// - /// name of the RuntimeClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadRuntimeClass1WithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified RuntimeClass - /// - /// - /// name of the RuntimeClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadRuntimeClass2WithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified RuntimeClass - /// - /// - /// - /// - /// - /// name of the RuntimeClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchRuntimeClassWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified RuntimeClass - /// - /// - /// - /// - /// - /// name of the RuntimeClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchRuntimeClass1WithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified RuntimeClass - /// - /// - /// - /// - /// - /// name of the RuntimeClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchRuntimeClass2WithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified RuntimeClass - /// - /// - /// - /// - /// - /// name of the RuntimeClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceRuntimeClassWithHttpMessagesAsync( - V1RuntimeClass body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified RuntimeClass - /// - /// - /// - /// - /// - /// name of the RuntimeClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceRuntimeClass1WithHttpMessagesAsync( - V1alpha1RuntimeClass body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified RuntimeClass - /// - /// - /// - /// - /// - /// name of the RuntimeClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceRuntimeClass2WithHttpMessagesAsync( - V1beta1RuntimeClass body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedPodDisruptionBudgetWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedPodDisruptionBudget1WithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedPodDisruptionBudgetWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedPodDisruptionBudget1WithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a PodDisruptionBudget - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedPodDisruptionBudgetWithHttpMessagesAsync( - V1PodDisruptionBudget body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a PodDisruptionBudget - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedPodDisruptionBudget1WithHttpMessagesAsync( - V1beta1PodDisruptionBudget body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a PodDisruptionBudget - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedPodDisruptionBudgetWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a PodDisruptionBudget - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedPodDisruptionBudget1WithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified PodDisruptionBudget - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedPodDisruptionBudgetWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified PodDisruptionBudget - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedPodDisruptionBudget1WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified PodDisruptionBudget - /// - /// - /// - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedPodDisruptionBudgetWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified PodDisruptionBudget - /// - /// - /// - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedPodDisruptionBudget1WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified PodDisruptionBudget - /// - /// - /// - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedPodDisruptionBudgetWithHttpMessagesAsync( - V1PodDisruptionBudget body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified PodDisruptionBudget - /// - /// - /// - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedPodDisruptionBudget1WithHttpMessagesAsync( - V1beta1PodDisruptionBudget body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified PodDisruptionBudget - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedPodDisruptionBudgetStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified PodDisruptionBudget - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedPodDisruptionBudgetStatus1WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified PodDisruptionBudget - /// - /// - /// - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedPodDisruptionBudgetStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified PodDisruptionBudget - /// - /// - /// - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedPodDisruptionBudgetStatus1WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified PodDisruptionBudget - /// - /// - /// - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedPodDisruptionBudgetStatusWithHttpMessagesAsync( - V1PodDisruptionBudget body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified PodDisruptionBudget - /// - /// - /// - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedPodDisruptionBudgetStatus1WithHttpMessagesAsync( - V1beta1PodDisruptionBudget body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind PodDisruptionBudget - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListPodDisruptionBudgetForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind PodDisruptionBudget - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListPodDisruptionBudgetForAllNamespaces1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of PodSecurityPolicy - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionPodSecurityPolicyWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind PodSecurityPolicy - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListPodSecurityPolicyWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a PodSecurityPolicy - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreatePodSecurityPolicyWithHttpMessagesAsync( - V1beta1PodSecurityPolicy body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a PodSecurityPolicy - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeletePodSecurityPolicyWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified PodSecurityPolicy - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadPodSecurityPolicyWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified PodSecurityPolicy - /// - /// - /// - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchPodSecurityPolicyWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified PodSecurityPolicy - /// - /// - /// - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplacePodSecurityPolicyWithHttpMessagesAsync( - V1beta1PodSecurityPolicy body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of ClusterRoleBinding - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionClusterRoleBindingWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of ClusterRoleBinding - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionClusterRoleBinding1WithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ClusterRoleBinding - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListClusterRoleBindingWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ClusterRoleBinding - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListClusterRoleBinding1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a ClusterRoleBinding - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateClusterRoleBindingWithHttpMessagesAsync( - V1ClusterRoleBinding body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a ClusterRoleBinding - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateClusterRoleBinding1WithHttpMessagesAsync( - V1alpha1ClusterRoleBinding body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a ClusterRoleBinding - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteClusterRoleBindingWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a ClusterRoleBinding - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteClusterRoleBinding1WithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified ClusterRoleBinding - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadClusterRoleBindingWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified ClusterRoleBinding - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadClusterRoleBinding1WithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified ClusterRoleBinding - /// - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchClusterRoleBindingWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified ClusterRoleBinding - /// - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchClusterRoleBinding1WithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified ClusterRoleBinding - /// - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceClusterRoleBindingWithHttpMessagesAsync( - V1ClusterRoleBinding body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified ClusterRoleBinding - /// - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceClusterRoleBinding1WithHttpMessagesAsync( - V1alpha1ClusterRoleBinding body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of ClusterRole - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionClusterRoleWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of ClusterRole - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionClusterRole1WithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ClusterRole - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListClusterRoleWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ClusterRole - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListClusterRole1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a ClusterRole - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateClusterRoleWithHttpMessagesAsync( - V1ClusterRole body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a ClusterRole - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateClusterRole1WithHttpMessagesAsync( - V1alpha1ClusterRole body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a ClusterRole - /// - /// - /// name of the ClusterRole - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteClusterRoleWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a ClusterRole - /// - /// - /// name of the ClusterRole - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteClusterRole1WithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified ClusterRole - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadClusterRoleWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified ClusterRole - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadClusterRole1WithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified ClusterRole - /// - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchClusterRoleWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified ClusterRole - /// - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchClusterRole1WithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified ClusterRole - /// - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceClusterRoleWithHttpMessagesAsync( - V1ClusterRole body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified ClusterRole - /// - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceClusterRole1WithHttpMessagesAsync( - V1alpha1ClusterRole body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedRoleBindingWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedRoleBinding1WithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedRoleBindingWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedRoleBinding1WithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a RoleBinding - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedRoleBindingWithHttpMessagesAsync( - V1RoleBinding body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a RoleBinding - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedRoleBinding1WithHttpMessagesAsync( - V1alpha1RoleBinding body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a RoleBinding - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedRoleBindingWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a RoleBinding - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedRoleBinding1WithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified RoleBinding - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedRoleBindingWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified RoleBinding - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedRoleBinding1WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified RoleBinding - /// - /// - /// - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedRoleBindingWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified RoleBinding - /// - /// - /// - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedRoleBinding1WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified RoleBinding - /// - /// - /// - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedRoleBindingWithHttpMessagesAsync( - V1RoleBinding body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified RoleBinding - /// - /// - /// - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedRoleBinding1WithHttpMessagesAsync( - V1alpha1RoleBinding body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedRoleWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedRole1WithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedRoleWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedRole1WithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a Role - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedRoleWithHttpMessagesAsync( - V1Role body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a Role - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedRole1WithHttpMessagesAsync( - V1alpha1Role body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a Role - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedRoleWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a Role - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedRole1WithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified Role - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedRoleWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified Role - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedRole1WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified Role - /// - /// - /// - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedRoleWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified Role - /// - /// - /// - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedRole1WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified Role - /// - /// - /// - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedRoleWithHttpMessagesAsync( - V1Role body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified Role - /// - /// - /// - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedRole1WithHttpMessagesAsync( - V1alpha1Role body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind RoleBinding - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListRoleBindingForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind RoleBinding - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListRoleBindingForAllNamespaces1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Role - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListRoleForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Role - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListRoleForAllNamespaces1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of PriorityClass - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionPriorityClassWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of PriorityClass - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionPriorityClass1WithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind PriorityClass - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListPriorityClassWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind PriorityClass - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListPriorityClass1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a PriorityClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreatePriorityClassWithHttpMessagesAsync( - V1PriorityClass body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a PriorityClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreatePriorityClass1WithHttpMessagesAsync( - V1alpha1PriorityClass body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a PriorityClass - /// - /// - /// name of the PriorityClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeletePriorityClassWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a PriorityClass - /// - /// - /// name of the PriorityClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeletePriorityClass1WithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified PriorityClass - /// - /// - /// name of the PriorityClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadPriorityClassWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified PriorityClass - /// - /// - /// name of the PriorityClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadPriorityClass1WithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified PriorityClass - /// - /// - /// - /// - /// - /// name of the PriorityClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchPriorityClassWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified PriorityClass - /// - /// - /// - /// - /// - /// name of the PriorityClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchPriorityClass1WithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified PriorityClass - /// - /// - /// - /// - /// - /// name of the PriorityClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplacePriorityClassWithHttpMessagesAsync( - V1PriorityClass body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified PriorityClass - /// - /// - /// - /// - /// - /// name of the PriorityClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplacePriorityClass1WithHttpMessagesAsync( - V1alpha1PriorityClass body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of CSIDriver - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionCSIDriverWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind CSIDriver - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListCSIDriverWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a CSIDriver - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateCSIDriverWithHttpMessagesAsync( - V1CSIDriver body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a CSIDriver - /// - /// - /// name of the CSIDriver - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCSIDriverWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified CSIDriver - /// - /// - /// name of the CSIDriver - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadCSIDriverWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified CSIDriver - /// - /// - /// - /// - /// - /// name of the CSIDriver - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchCSIDriverWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified CSIDriver - /// - /// - /// - /// - /// - /// name of the CSIDriver - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceCSIDriverWithHttpMessagesAsync( - V1CSIDriver body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of CSINode - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionCSINodeWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind CSINode - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListCSINodeWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a CSINode - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateCSINodeWithHttpMessagesAsync( - V1CSINode body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a CSINode - /// - /// - /// name of the CSINode - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCSINodeWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified CSINode - /// - /// - /// name of the CSINode - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadCSINodeWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified CSINode - /// - /// - /// - /// - /// - /// name of the CSINode - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchCSINodeWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified CSINode - /// - /// - /// - /// - /// - /// name of the CSINode - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceCSINodeWithHttpMessagesAsync( - V1CSINode body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of StorageClass - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionStorageClassWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind StorageClass - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListStorageClassWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a StorageClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateStorageClassWithHttpMessagesAsync( - V1StorageClass body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a StorageClass - /// - /// - /// name of the StorageClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteStorageClassWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified StorageClass - /// - /// - /// name of the StorageClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadStorageClassWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified StorageClass - /// - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchStorageClassWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified StorageClass - /// - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceStorageClassWithHttpMessagesAsync( - V1StorageClass body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of VolumeAttachment - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionVolumeAttachmentWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of VolumeAttachment - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionVolumeAttachment1WithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind VolumeAttachment - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListVolumeAttachmentWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind VolumeAttachment - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListVolumeAttachment1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a VolumeAttachment - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateVolumeAttachmentWithHttpMessagesAsync( - V1VolumeAttachment body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a VolumeAttachment - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateVolumeAttachment1WithHttpMessagesAsync( - V1alpha1VolumeAttachment body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a VolumeAttachment - /// - /// - /// name of the VolumeAttachment - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteVolumeAttachmentWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a VolumeAttachment - /// - /// - /// name of the VolumeAttachment - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteVolumeAttachment1WithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified VolumeAttachment - /// - /// - /// name of the VolumeAttachment - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadVolumeAttachmentWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified VolumeAttachment - /// - /// - /// name of the VolumeAttachment - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadVolumeAttachment1WithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified VolumeAttachment - /// - /// - /// - /// - /// - /// name of the VolumeAttachment - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchVolumeAttachmentWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified VolumeAttachment - /// - /// - /// - /// - /// - /// name of the VolumeAttachment - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchVolumeAttachment1WithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified VolumeAttachment - /// - /// - /// - /// - /// - /// name of the VolumeAttachment - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceVolumeAttachmentWithHttpMessagesAsync( - V1VolumeAttachment body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified VolumeAttachment - /// - /// - /// - /// - /// - /// name of the VolumeAttachment - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceVolumeAttachment1WithHttpMessagesAsync( - V1alpha1VolumeAttachment body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified VolumeAttachment - /// - /// - /// name of the VolumeAttachment - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadVolumeAttachmentStatusWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified VolumeAttachment - /// - /// - /// - /// - /// - /// name of the VolumeAttachment - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchVolumeAttachmentStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified VolumeAttachment - /// - /// - /// - /// - /// - /// name of the VolumeAttachment - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceVolumeAttachmentStatusWithHttpMessagesAsync( - V1VolumeAttachment body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind CSIStorageCapacity - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListCSIStorageCapacityForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind CSIStorageCapacity - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListCSIStorageCapacityForAllNamespaces1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedCSIStorageCapacityWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedCSIStorageCapacity1WithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedCSIStorageCapacityWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedCSIStorageCapacity1WithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a CSIStorageCapacity - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedCSIStorageCapacityWithHttpMessagesAsync( - V1alpha1CSIStorageCapacity body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a CSIStorageCapacity - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedCSIStorageCapacity1WithHttpMessagesAsync( - V1beta1CSIStorageCapacity body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a CSIStorageCapacity - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedCSIStorageCapacityWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a CSIStorageCapacity - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedCSIStorageCapacity1WithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified CSIStorageCapacity - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedCSIStorageCapacityWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified CSIStorageCapacity - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReadNamespacedCSIStorageCapacity1WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified CSIStorageCapacity - /// - /// - /// - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedCSIStorageCapacityWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified CSIStorageCapacity - /// - /// - /// - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedCSIStorageCapacity1WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified CSIStorageCapacity - /// - /// - /// - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedCSIStorageCapacityWithHttpMessagesAsync( - V1alpha1CSIStorageCapacity body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified CSIStorageCapacity - /// - /// - /// - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedCSIStorageCapacity1WithHttpMessagesAsync( - V1beta1CSIStorageCapacity body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task LogFileListHandlerWithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// - /// - /// - /// path to the log - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task LogFileHandlerWithHttpMessagesAsync( - string logpath, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get service account issuer OpenID JSON Web Key Set (contains public token - /// verification keys) - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetServiceAccountIssuerOpenIDKeysetWithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get the code version - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetCodeWithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// Creates a namespace scoped Custom object - /// - /// - /// The JSON schema of the Resource to create. - /// - /// - /// The custom resource's group name - /// - /// - /// The custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// The custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateNamespacedCustomObjectWithHttpMessagesAsync( - object body, - string group, - string version, - string namespaceParameter, - string plural, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// Delete collection of namespace scoped custom objects - /// - /// - /// The custom resource's group name - /// - /// - /// The custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// The custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionNamespacedCustomObjectWithHttpMessagesAsync( - string group, - string version, - string namespaceParameter, - string plural, - V1DeleteOptions body = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string dryRun = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch namespace scoped custom objects - /// - /// - /// The custom resource's group name - /// - /// - /// The custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// The custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, 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. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// 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. - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListNamespacedCustomObjectWithHttpMessagesAsync( - string group, - string version, - string namespaceParameter, - string plural, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// Creates a cluster scoped Custom object - /// - /// - /// The JSON schema of the Resource to create. - /// - /// - /// The custom resource's group name - /// - /// - /// The custom resource's version - /// - /// - /// The custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> CreateClusterCustomObjectWithHttpMessagesAsync( - object body, - string group, - string version, - string plural, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// Delete collection of cluster scoped custom objects - /// - /// - /// The custom resource's group name - /// - /// - /// The custom resource's version - /// - /// - /// The custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteCollectionClusterCustomObjectWithHttpMessagesAsync( - string group, - string version, - string plural, - V1DeleteOptions body = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string dryRun = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch cluster scoped custom objects - /// - /// - /// The custom resource's group name - /// - /// - /// The custom resource's version - /// - /// - /// The custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, 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. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// 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. - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ListClusterCustomObjectWithHttpMessagesAsync( - string group, - string version, - string plural, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the cluster scoped specified custom object - /// - /// - /// - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceClusterCustomObjectStatusWithHttpMessagesAsync( - object body, - string group, - string version, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified cluster scoped custom object - /// - /// - /// - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchClusterCustomObjectStatusWithHttpMessagesAsync( - object body, - string group, - string version, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified cluster scoped custom object - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetClusterCustomObjectStatusWithHttpMessagesAsync( - string group, - string version, - string plural, - string name, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified namespace scoped custom object - /// - /// - /// The JSON schema of the Resource to replace. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedCustomObjectWithHttpMessagesAsync( - object body, - string group, - string version, - string namespaceParameter, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// patch the specified namespace scoped custom object - /// - /// - /// The JSON schema of the Resource to patch. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedCustomObjectWithHttpMessagesAsync( - object body, - string group, - string version, - string namespaceParameter, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// Deletes the specified namespace scoped custom object - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteNamespacedCustomObjectWithHttpMessagesAsync( - string group, - string version, - string namespaceParameter, - string plural, - string name, - V1DeleteOptions body = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string dryRun = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// Returns a namespace scoped custom object - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetNamespacedCustomObjectWithHttpMessagesAsync( - string group, - string version, - string namespaceParameter, - string plural, - string name, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace scale of the specified namespace scoped custom object - /// - /// - /// - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedCustomObjectScaleWithHttpMessagesAsync( - object body, - string group, - string version, - string namespaceParameter, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update scale of the specified namespace scoped custom object - /// - /// - /// - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedCustomObjectScaleWithHttpMessagesAsync( - object body, - string group, - string version, - string namespaceParameter, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read scale of the specified namespace scoped custom object - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetNamespacedCustomObjectScaleWithHttpMessagesAsync( - string group, - string version, - string namespaceParameter, - string plural, - string name, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace scale of the specified cluster scoped custom object - /// - /// - /// - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceClusterCustomObjectScaleWithHttpMessagesAsync( - object body, - string group, - string version, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update scale of the specified cluster scoped custom object - /// - /// - /// - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchClusterCustomObjectScaleWithHttpMessagesAsync( - object body, - string group, - string version, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read scale of the specified custom object - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetClusterCustomObjectScaleWithHttpMessagesAsync( - string group, - string version, - string plural, - string name, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified cluster scoped custom object - /// - /// - /// The JSON schema of the Resource to replace. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom object's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceClusterCustomObjectWithHttpMessagesAsync( - object body, - string group, - string version, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// patch the specified cluster scoped custom object - /// - /// - /// The JSON schema of the Resource to patch. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom object's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchClusterCustomObjectWithHttpMessagesAsync( - object body, - string group, - string version, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// Deletes the specified cluster scoped custom object - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom object's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> DeleteClusterCustomObjectWithHttpMessagesAsync( - string group, - string version, - string plural, - string name, - V1DeleteOptions body = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string dryRun = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// Returns a cluster scoped custom object - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom object's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetClusterCustomObjectWithHttpMessagesAsync( - string group, - string version, - string plural, - string name, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace status of the specified namespace scoped custom object - /// - /// - /// - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> ReplaceNamespacedCustomObjectStatusWithHttpMessagesAsync( - object body, - string group, - string version, - string namespaceParameter, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update status of the specified namespace scoped custom object - /// - /// - /// - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> PatchNamespacedCustomObjectStatusWithHttpMessagesAsync( - object body, - string group, - string version, - string namespaceParameter, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read status of the specified namespace scoped custom object - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// The headers that will be added to request. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - Task> GetNamespacedCustomObjectStatusWithHttpMessagesAsync( - string group, - string version, - string namespaceParameter, - string plural, - string name, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)); - - } -} diff --git a/src/KubernetesClient/generated/Kubernetes.Watch.cs b/src/KubernetesClient/generated/Kubernetes.Watch.cs deleted file mode 100644 index 6b8b97cd3..000000000 --- a/src/KubernetesClient/generated/Kubernetes.Watch.cs +++ /dev/null @@ -1,1550 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// -using k8s.Models; -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace k8s -{ - public partial class Kubernetes - { - /// - public Task> WatchNamespacedConfigMapAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"api/v1/watch/namespaces/{namespaceParameter}/configmaps/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedEndpointsAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"api/v1/watch/namespaces/{namespaceParameter}/endpoints/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedEventAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"api/v1/watch/namespaces/{namespaceParameter}/events/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedLimitRangeAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"api/v1/watch/namespaces/{namespaceParameter}/limitranges/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedPersistentVolumeClaimAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"api/v1/watch/namespaces/{namespaceParameter}/persistentvolumeclaims/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedPodAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"api/v1/watch/namespaces/{namespaceParameter}/pods/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedPodTemplateAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"api/v1/watch/namespaces/{namespaceParameter}/podtemplates/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedReplicationControllerAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"api/v1/watch/namespaces/{namespaceParameter}/replicationcontrollers/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedResourceQuotaAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"api/v1/watch/namespaces/{namespaceParameter}/resourcequotas/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedSecretAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"api/v1/watch/namespaces/{namespaceParameter}/secrets/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedServiceAccountAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"api/v1/watch/namespaces/{namespaceParameter}/serviceaccounts/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedServiceAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"api/v1/watch/namespaces/{namespaceParameter}/services/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespaceAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"api/v1/watch/namespaces/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNodeAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"api/v1/watch/nodes/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchPersistentVolumeAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"api/v1/watch/persistentvolumes/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchMutatingWebhookConfigurationAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/admissionregistration.k8s.io/v1/watch/mutatingwebhookconfigurations/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchValidatingWebhookConfigurationAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/admissionregistration.k8s.io/v1/watch/validatingwebhookconfigurations/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchCustomResourceDefinitionAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchAPIServiceAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/apiregistration.k8s.io/v1/watch/apiservices/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedControllerRevisionAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/apps/v1/watch/namespaces/{namespaceParameter}/controllerrevisions/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedDaemonSetAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/apps/v1/watch/namespaces/{namespaceParameter}/daemonsets/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedDeploymentAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/apps/v1/watch/namespaces/{namespaceParameter}/deployments/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedReplicaSetAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/apps/v1/watch/namespaces/{namespaceParameter}/replicasets/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedStatefulSetAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/apps/v1/watch/namespaces/{namespaceParameter}/statefulsets/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedHorizontalPodAutoscalerAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/autoscaling/v1/watch/namespaces/{namespaceParameter}/horizontalpodautoscalers/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedHorizontalPodAutoscalerAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/autoscaling/v2beta1/watch/namespaces/{namespaceParameter}/horizontalpodautoscalers/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedHorizontalPodAutoscalerAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/autoscaling/v2beta2/watch/namespaces/{namespaceParameter}/horizontalpodautoscalers/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedCronJobAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/batch/v1/watch/namespaces/{namespaceParameter}/cronjobs/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedJobAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/batch/v1/watch/namespaces/{namespaceParameter}/jobs/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedCronJobAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/batch/v1beta1/watch/namespaces/{namespaceParameter}/cronjobs/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchCertificateSigningRequestAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedLeaseAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/coordination.k8s.io/v1/watch/namespaces/{namespaceParameter}/leases/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedEndpointSliceAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/discovery.k8s.io/v1/watch/namespaces/{namespaceParameter}/endpointslices/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedEndpointSliceAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/discovery.k8s.io/v1beta1/watch/namespaces/{namespaceParameter}/endpointslices/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedEventAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/events.k8s.io/v1/watch/namespaces/{namespaceParameter}/events/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedEventAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/events.k8s.io/v1beta1/watch/namespaces/{namespaceParameter}/events/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchFlowSchemaAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/flowschemas/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchPriorityLevelConfigurationAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/prioritylevelconfigurations/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchStorageVersionAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchIngressClassAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/networking.k8s.io/v1/watch/ingressclasses/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedIngressAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/networking.k8s.io/v1/watch/namespaces/{namespaceParameter}/ingresses/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedNetworkPolicyAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/networking.k8s.io/v1/watch/namespaces/{namespaceParameter}/networkpolicies/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchRuntimeClassAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/node.k8s.io/v1/watch/runtimeclasses/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchRuntimeClassAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/node.k8s.io/v1alpha1/watch/runtimeclasses/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchRuntimeClassAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/node.k8s.io/v1beta1/watch/runtimeclasses/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedPodDisruptionBudgetAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/policy/v1/watch/namespaces/{namespaceParameter}/poddisruptionbudgets/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedPodDisruptionBudgetAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/policy/v1beta1/watch/namespaces/{namespaceParameter}/poddisruptionbudgets/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchPodSecurityPolicyAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/policy/v1beta1/watch/podsecuritypolicies/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchClusterRoleBindingAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchClusterRoleAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedRoleBindingAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespaceParameter}/rolebindings/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedRoleAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespaceParameter}/roles/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchClusterRoleBindingAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchClusterRoleAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedRoleBindingAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespaceParameter}/rolebindings/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedRoleAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespaceParameter}/roles/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchPriorityClassAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchPriorityClassAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/scheduling.k8s.io/v1alpha1/watch/priorityclasses/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchCSIDriverAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/storage.k8s.io/v1/watch/csidrivers/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchCSINodeAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/storage.k8s.io/v1/watch/csinodes/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchStorageClassAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/storage.k8s.io/v1/watch/storageclasses/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchVolumeAttachmentAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/storage.k8s.io/v1/watch/volumeattachments/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedCSIStorageCapacityAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/storage.k8s.io/v1alpha1/watch/namespaces/{namespaceParameter}/csistoragecapacities/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchVolumeAttachmentAsync( - string name, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/storage.k8s.io/v1alpha1/watch/volumeattachments/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - /// - public Task> WatchNamespacedCSIStorageCapacityAsync( - string name, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"apis/storage.k8s.io/v1beta1/watch/namespaces/{namespaceParameter}/csistoragecapacities/{name}"; - return WatchObjectAsync(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - } -} diff --git a/src/KubernetesClient/generated/Kubernetes.cs b/src/KubernetesClient/generated/Kubernetes.cs deleted file mode 100644 index f0fbf248f..000000000 --- a/src/KubernetesClient/generated/Kubernetes.cs +++ /dev/null @@ -1,106604 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s -{ - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Models; - using System.Collections.Generic; - using System.IO; - using System.Net; - using System.Net.Http; - using System.Threading; - using System.Threading.Tasks; - - public partial class Kubernetes : ServiceClient, IKubernetes - { - /// - public async Task> GetServiceAccountIssuerOpenIDConfigurationWithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetServiceAccountIssuerOpenIDConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), ".well-known/openid-configuration/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIVersionsWithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIVersions", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIVersions1WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIVersions1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResourcesWithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources1WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources2WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apiextensions.k8s.io/v1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources3WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources3", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apiregistration.k8s.io/v1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources4WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources4", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources5WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources5", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/authentication.k8s.io/v1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources6WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources6", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/authorization.k8s.io/v1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources7WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources7", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources8WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources8", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v2beta1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources9WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources9", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v2beta2/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources10WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources10", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources11WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources11", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1beta1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources12WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources12", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/certificates.k8s.io/v1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources13WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources13", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/coordination.k8s.io/v1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources14WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources14", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/discovery.k8s.io/v1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources15WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources15", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/discovery.k8s.io/v1beta1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources16WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources16", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/events.k8s.io/v1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources17WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources17", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/events.k8s.io/v1beta1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources18WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources18", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/flowcontrol.apiserver.k8s.io/v1beta1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources19WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources19", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/internal.apiserver.k8s.io/v1alpha1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources20WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources20", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources21WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources21", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/node.k8s.io/v1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources22WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources22", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/node.k8s.io/v1alpha1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources23WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources23", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/node.k8s.io/v1beta1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources24WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources24", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources25WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources25", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1beta1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources26WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources26", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources27WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources27", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources28WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources28", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/scheduling.k8s.io/v1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources29WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources29", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/scheduling.k8s.io/v1alpha1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources30WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources30", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources31WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources31", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1alpha1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIResources32WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIResources32", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1beta1/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListComponentStatusWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListComponentStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/componentstatuses").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadComponentStatusWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadComponentStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/componentstatuses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListConfigMapForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListConfigMapForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/configmaps").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListEndpointsForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListEndpointsForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/endpoints").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListEventForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListEventForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/events").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListEventForAllNamespaces1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListEventForAllNamespaces1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/events.k8s.io/v1/events").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListEventForAllNamespaces2WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListEventForAllNamespaces2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/events.k8s.io/v1beta1/events").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListLimitRangeForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListLimitRangeForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/limitranges").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespaceWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespace", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespaceWithHttpMessagesAsync( - V1Namespace body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespace", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedBindingWithHttpMessagesAsync( - V1Binding body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedBinding", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/bindings").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedConfigMapWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedConfigMap", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/configmaps").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedConfigMapWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedConfigMap", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/configmaps").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedConfigMapWithHttpMessagesAsync( - V1ConfigMap body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedConfigMap", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/configmaps").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedConfigMapWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedConfigMap", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/configmaps/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedConfigMapWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedConfigMap", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/configmaps/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedConfigMapWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedConfigMap", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/configmaps/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedConfigMapWithHttpMessagesAsync( - V1ConfigMap body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedConfigMap", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/configmaps/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedEndpointsWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedEndpoints", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/endpoints").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedEndpointsWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedEndpoints", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/endpoints").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedEndpointsWithHttpMessagesAsync( - V1Endpoints body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedEndpoints", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/endpoints").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedEndpointsWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedEndpoints", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/endpoints/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedEndpointsWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedEndpoints", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/endpoints/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedEndpointsWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedEndpoints", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/endpoints/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedEndpointsWithHttpMessagesAsync( - V1Endpoints body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedEndpoints", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/endpoints/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedEventWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedEvent", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/events").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedEvent1WithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedEvent1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/events.k8s.io/v1/namespaces/{namespace}/events").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedEvent2WithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedEvent2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/events.k8s.io/v1beta1/namespaces/{namespace}/events").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedEventWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedEvent", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/events").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedEvent1WithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedEvent1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/events.k8s.io/v1/namespaces/{namespace}/events").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedEvent2WithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedEvent2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/events.k8s.io/v1beta1/namespaces/{namespace}/events").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedEventWithHttpMessagesAsync( - Corev1Event body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedEvent", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/events").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedEvent1WithHttpMessagesAsync( - Eventsv1Event body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedEvent1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/events.k8s.io/v1/namespaces/{namespace}/events").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedEvent2WithHttpMessagesAsync( - V1beta1Event body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedEvent2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/events.k8s.io/v1beta1/namespaces/{namespace}/events").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedEventWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedEvent", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/events/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedEvent1WithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedEvent1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedEvent2WithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedEvent2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedEventWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedEvent", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/events/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedEvent1WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedEvent1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedEvent2WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedEvent2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedEventWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedEvent", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/events/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedEvent1WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedEvent1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedEvent2WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedEvent2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedEventWithHttpMessagesAsync( - Corev1Event body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedEvent", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/events/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedEvent1WithHttpMessagesAsync( - Eventsv1Event body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedEvent1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedEvent2WithHttpMessagesAsync( - V1beta1Event body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedEvent2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedLimitRangeWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedLimitRange", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/limitranges").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedLimitRangeWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedLimitRange", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/limitranges").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedLimitRangeWithHttpMessagesAsync( - V1LimitRange body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedLimitRange", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/limitranges").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedLimitRangeWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedLimitRange", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/limitranges/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedLimitRangeWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedLimitRange", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/limitranges/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedLimitRangeWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedLimitRange", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/limitranges/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedLimitRangeWithHttpMessagesAsync( - V1LimitRange body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedLimitRange", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/limitranges/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedPersistentVolumeClaimWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedPersistentVolumeClaim", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/persistentvolumeclaims").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedPersistentVolumeClaimWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedPersistentVolumeClaim", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/persistentvolumeclaims").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedPersistentVolumeClaimWithHttpMessagesAsync( - V1PersistentVolumeClaim body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedPersistentVolumeClaim", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/persistentvolumeclaims").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedPersistentVolumeClaimWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedPersistentVolumeClaim", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedPersistentVolumeClaimWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedPersistentVolumeClaim", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedPersistentVolumeClaimWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedPersistentVolumeClaim", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedPersistentVolumeClaimWithHttpMessagesAsync( - V1PersistentVolumeClaim body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedPersistentVolumeClaim", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedPersistentVolumeClaimStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedPersistentVolumeClaimStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedPersistentVolumeClaimStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedPersistentVolumeClaimStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedPersistentVolumeClaimStatusWithHttpMessagesAsync( - V1PersistentVolumeClaim body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedPersistentVolumeClaimStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedPodWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedPod", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedPodWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedPod", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedPodWithHttpMessagesAsync( - V1Pod body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedPod", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedPodWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedPod", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedPodWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedPod", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedPodWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedPod", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedPodWithHttpMessagesAsync( - V1Pod body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedPod", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectGetNamespacedPodAttachWithHttpMessagesAsync( - string name, - string namespaceParameter, - string container = null, - bool? stderr = null, - bool? stdin = null, - bool? stdout = null, - bool? tty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("container", container); - tracingParameters.Add("stderr", stderr); - tracingParameters.Add("stdin", stdin); - tracingParameters.Add("stdout", stdout); - tracingParameters.Add("tty", tty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectGetNamespacedPodAttach", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/attach").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (container != null) - { - _queryParameters.Add(string.Format("container={0}", System.Uri.EscapeDataString(container))); - } - if (stderr != null) - { - _queryParameters.Add(string.Format("stderr={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(stderr, SerializationSettings).Trim('"')))); - } - if (stdin != null) - { - _queryParameters.Add(string.Format("stdin={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(stdin, SerializationSettings).Trim('"')))); - } - if (stdout != null) - { - _queryParameters.Add(string.Format("stdout={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(stdout, SerializationSettings).Trim('"')))); - } - if (tty != null) - { - _queryParameters.Add(string.Format("tty={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(tty, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectPostNamespacedPodAttachWithHttpMessagesAsync( - string name, - string namespaceParameter, - string container = null, - bool? stderr = null, - bool? stdin = null, - bool? stdout = null, - bool? tty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("container", container); - tracingParameters.Add("stderr", stderr); - tracingParameters.Add("stdin", stdin); - tracingParameters.Add("stdout", stdout); - tracingParameters.Add("tty", tty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectPostNamespacedPodAttach", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/attach").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (container != null) - { - _queryParameters.Add(string.Format("container={0}", System.Uri.EscapeDataString(container))); - } - if (stderr != null) - { - _queryParameters.Add(string.Format("stderr={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(stderr, SerializationSettings).Trim('"')))); - } - if (stdin != null) - { - _queryParameters.Add(string.Format("stdin={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(stdin, SerializationSettings).Trim('"')))); - } - if (stdout != null) - { - _queryParameters.Add(string.Format("stdout={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(stdout, SerializationSettings).Trim('"')))); - } - if (tty != null) - { - _queryParameters.Add(string.Format("tty={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(tty, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedPodBindingWithHttpMessagesAsync( - V1Binding body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedPodBinding", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/binding").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedPodEphemeralcontainersWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedPodEphemeralcontainers", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedPodEphemeralcontainersWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedPodEphemeralcontainers", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedPodEphemeralcontainersWithHttpMessagesAsync( - V1Pod body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedPodEphemeralcontainers", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedPodEvictionWithHttpMessagesAsync( - V1Eviction body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedPodEviction", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/eviction").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectGetNamespacedPodExecWithHttpMessagesAsync( - string name, - string namespaceParameter, - string command = null, - string container = null, - bool? stderr = null, - bool? stdin = null, - bool? stdout = null, - bool? tty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("command", command); - tracingParameters.Add("container", container); - tracingParameters.Add("stderr", stderr); - tracingParameters.Add("stdin", stdin); - tracingParameters.Add("stdout", stdout); - tracingParameters.Add("tty", tty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectGetNamespacedPodExec", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/exec").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (command != null) - { - _queryParameters.Add(string.Format("command={0}", System.Uri.EscapeDataString(command))); - } - if (container != null) - { - _queryParameters.Add(string.Format("container={0}", System.Uri.EscapeDataString(container))); - } - if (stderr != null) - { - _queryParameters.Add(string.Format("stderr={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(stderr, SerializationSettings).Trim('"')))); - } - if (stdin != null) - { - _queryParameters.Add(string.Format("stdin={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(stdin, SerializationSettings).Trim('"')))); - } - if (stdout != null) - { - _queryParameters.Add(string.Format("stdout={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(stdout, SerializationSettings).Trim('"')))); - } - if (tty != null) - { - _queryParameters.Add(string.Format("tty={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(tty, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectPostNamespacedPodExecWithHttpMessagesAsync( - string name, - string namespaceParameter, - string command = null, - string container = null, - bool? stderr = null, - bool? stdin = null, - bool? stdout = null, - bool? tty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("command", command); - tracingParameters.Add("container", container); - tracingParameters.Add("stderr", stderr); - tracingParameters.Add("stdin", stdin); - tracingParameters.Add("stdout", stdout); - tracingParameters.Add("tty", tty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectPostNamespacedPodExec", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/exec").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (command != null) - { - _queryParameters.Add(string.Format("command={0}", System.Uri.EscapeDataString(command))); - } - if (container != null) - { - _queryParameters.Add(string.Format("container={0}", System.Uri.EscapeDataString(container))); - } - if (stderr != null) - { - _queryParameters.Add(string.Format("stderr={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(stderr, SerializationSettings).Trim('"')))); - } - if (stdin != null) - { - _queryParameters.Add(string.Format("stdin={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(stdin, SerializationSettings).Trim('"')))); - } - if (stdout != null) - { - _queryParameters.Add(string.Format("stdout={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(stdout, SerializationSettings).Trim('"')))); - } - if (tty != null) - { - _queryParameters.Add(string.Format("tty={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(tty, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedPodLogWithHttpMessagesAsync( - string name, - string namespaceParameter, - string container = null, - bool? follow = null, - bool? insecureSkipTLSVerifyBackend = null, - int? limitBytes = null, - bool? pretty = null, - bool? previous = null, - int? sinceSeconds = null, - int? tailLines = null, - bool? timestamps = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("container", container); - tracingParameters.Add("follow", follow); - tracingParameters.Add("insecureSkipTLSVerifyBackend", insecureSkipTLSVerifyBackend); - tracingParameters.Add("limitBytes", limitBytes); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("previous", previous); - tracingParameters.Add("sinceSeconds", sinceSeconds); - tracingParameters.Add("tailLines", tailLines); - tracingParameters.Add("timestamps", timestamps); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedPodLog", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/log").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (container != null) - { - _queryParameters.Add(string.Format("container={0}", System.Uri.EscapeDataString(container))); - } - if (follow != null) - { - _queryParameters.Add(string.Format("follow={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(follow, SerializationSettings).Trim('"')))); - } - if (insecureSkipTLSVerifyBackend != null) - { - _queryParameters.Add(string.Format("insecureSkipTLSVerifyBackend={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(insecureSkipTLSVerifyBackend, SerializationSettings).Trim('"')))); - } - if (limitBytes != null) - { - _queryParameters.Add(string.Format("limitBytes={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limitBytes, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (previous != null) - { - _queryParameters.Add(string.Format("previous={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(previous, SerializationSettings).Trim('"')))); - } - if (sinceSeconds != null) - { - _queryParameters.Add(string.Format("sinceSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(sinceSeconds, SerializationSettings).Trim('"')))); - } - if (tailLines != null) - { - _queryParameters.Add(string.Format("tailLines={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(tailLines, SerializationSettings).Trim('"')))); - } - if (timestamps != null) - { - _queryParameters.Add(string.Format("timestamps={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timestamps, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectGetNamespacedPodPortforwardWithHttpMessagesAsync( - string name, - string namespaceParameter, - int? ports = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("ports", ports); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectGetNamespacedPodPortforward", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/portforward").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (ports != null) - { - _queryParameters.Add(string.Format("ports={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(ports, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectPostNamespacedPodPortforwardWithHttpMessagesAsync( - string name, - string namespaceParameter, - int? ports = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("ports", ports); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectPostNamespacedPodPortforward", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/portforward").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (ports != null) - { - _queryParameters.Add(string.Format("ports={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(ports, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectDeleteNamespacedPodProxyWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("path", path); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectDeleteNamespacedPodProxy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/proxy").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectGetNamespacedPodProxyWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("path", path); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectGetNamespacedPodProxy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/proxy").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectHeadNamespacedPodProxyWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("path", path); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectHeadNamespacedPodProxy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/proxy").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Head; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectPatchNamespacedPodProxyWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("path", path); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectPatchNamespacedPodProxy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/proxy").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectPostNamespacedPodProxyWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("path", path); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectPostNamespacedPodProxy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/proxy").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectPutNamespacedPodProxyWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("path", path); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectPutNamespacedPodProxy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/proxy").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectDeleteNamespacedPodProxyWithPathWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - if (path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("path", path); - tracingParameters.Add("path1", path1); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectDeleteNamespacedPodProxyWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("{path}", path); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path1={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectGetNamespacedPodProxyWithPathWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - if (path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("path", path); - tracingParameters.Add("path1", path1); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectGetNamespacedPodProxyWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("{path}", path); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path1={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectHeadNamespacedPodProxyWithPathWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - if (path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("path", path); - tracingParameters.Add("path1", path1); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectHeadNamespacedPodProxyWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("{path}", path); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path1={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Head; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectPatchNamespacedPodProxyWithPathWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - if (path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("path", path); - tracingParameters.Add("path1", path1); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectPatchNamespacedPodProxyWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("{path}", path); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path1={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectPostNamespacedPodProxyWithPathWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - if (path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("path", path); - tracingParameters.Add("path1", path1); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectPostNamespacedPodProxyWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("{path}", path); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path1={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectPutNamespacedPodProxyWithPathWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - if (path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("path", path); - tracingParameters.Add("path1", path1); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectPutNamespacedPodProxyWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("{path}", path); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path1={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedPodStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedPodStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedPodStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedPodStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedPodStatusWithHttpMessagesAsync( - V1Pod body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedPodStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/pods/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedPodTemplateWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedPodTemplate", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/podtemplates").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedPodTemplateWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedPodTemplate", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/podtemplates").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedPodTemplateWithHttpMessagesAsync( - V1PodTemplate body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedPodTemplate", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/podtemplates").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedPodTemplateWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedPodTemplate", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/podtemplates/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedPodTemplateWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedPodTemplate", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/podtemplates/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedPodTemplateWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedPodTemplate", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/podtemplates/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedPodTemplateWithHttpMessagesAsync( - V1PodTemplate body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedPodTemplate", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/podtemplates/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedReplicationControllerWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedReplicationController", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/replicationcontrollers").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedReplicationControllerWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedReplicationController", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/replicationcontrollers").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedReplicationControllerWithHttpMessagesAsync( - V1ReplicationController body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedReplicationController", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/replicationcontrollers").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedReplicationControllerWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedReplicationController", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/replicationcontrollers/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedReplicationControllerWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedReplicationController", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/replicationcontrollers/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedReplicationControllerWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedReplicationController", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/replicationcontrollers/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedReplicationControllerWithHttpMessagesAsync( - V1ReplicationController body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedReplicationController", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/replicationcontrollers/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedReplicationControllerScaleWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedReplicationControllerScale", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedReplicationControllerScaleWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedReplicationControllerScale", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedReplicationControllerScaleWithHttpMessagesAsync( - V1Scale body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedReplicationControllerScale", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedReplicationControllerStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedReplicationControllerStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedReplicationControllerStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedReplicationControllerStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedReplicationControllerStatusWithHttpMessagesAsync( - V1ReplicationController body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedReplicationControllerStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedResourceQuotaWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedResourceQuota", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/resourcequotas").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedResourceQuotaWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedResourceQuota", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/resourcequotas").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedResourceQuotaWithHttpMessagesAsync( - V1ResourceQuota body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedResourceQuota", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/resourcequotas").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedResourceQuotaWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedResourceQuota", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/resourcequotas/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedResourceQuotaWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedResourceQuota", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/resourcequotas/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedResourceQuotaWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedResourceQuota", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/resourcequotas/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedResourceQuotaWithHttpMessagesAsync( - V1ResourceQuota body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedResourceQuota", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/resourcequotas/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedResourceQuotaStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedResourceQuotaStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/resourcequotas/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedResourceQuotaStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedResourceQuotaStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/resourcequotas/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedResourceQuotaStatusWithHttpMessagesAsync( - V1ResourceQuota body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedResourceQuotaStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/resourcequotas/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedSecretWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedSecret", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/secrets").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedSecretWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedSecret", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/secrets").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedSecretWithHttpMessagesAsync( - V1Secret body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedSecret", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/secrets").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedSecretWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedSecret", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/secrets/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedSecretWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedSecret", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/secrets/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedSecretWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedSecret", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/secrets/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedSecretWithHttpMessagesAsync( - V1Secret body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedSecret", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/secrets/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedServiceAccountWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedServiceAccount", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/serviceaccounts").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedServiceAccountWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedServiceAccount", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/serviceaccounts").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedServiceAccountWithHttpMessagesAsync( - V1ServiceAccount body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedServiceAccount", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/serviceaccounts").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedServiceAccountWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedServiceAccount", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/serviceaccounts/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedServiceAccountWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedServiceAccount", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/serviceaccounts/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedServiceAccountWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedServiceAccount", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/serviceaccounts/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedServiceAccountWithHttpMessagesAsync( - V1ServiceAccount body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedServiceAccount", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/serviceaccounts/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedServiceAccountTokenWithHttpMessagesAsync( - Authenticationv1TokenRequest body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedServiceAccountToken", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/serviceaccounts/{name}/token").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedServiceWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedService", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/services").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedServiceWithHttpMessagesAsync( - V1Service body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedService", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/services").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedServiceWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedService", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/services/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedServiceWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedService", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/services/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedServiceWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedService", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/services/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedServiceWithHttpMessagesAsync( - V1Service body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedService", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/services/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectDeleteNamespacedServiceProxyWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("path", path); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectDeleteNamespacedServiceProxy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/services/{name}/proxy").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectGetNamespacedServiceProxyWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("path", path); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectGetNamespacedServiceProxy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/services/{name}/proxy").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectHeadNamespacedServiceProxyWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("path", path); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectHeadNamespacedServiceProxy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/services/{name}/proxy").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Head; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectPatchNamespacedServiceProxyWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("path", path); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectPatchNamespacedServiceProxy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/services/{name}/proxy").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectPostNamespacedServiceProxyWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("path", path); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectPostNamespacedServiceProxy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/services/{name}/proxy").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectPutNamespacedServiceProxyWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("path", path); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectPutNamespacedServiceProxy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/services/{name}/proxy").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectDeleteNamespacedServiceProxyWithPathWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - if (path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("path", path); - tracingParameters.Add("path1", path1); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectDeleteNamespacedServiceProxyWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/services/{name}/proxy/{path}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("{path}", path); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path1={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectGetNamespacedServiceProxyWithPathWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - if (path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("path", path); - tracingParameters.Add("path1", path1); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectGetNamespacedServiceProxyWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/services/{name}/proxy/{path}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("{path}", path); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path1={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectHeadNamespacedServiceProxyWithPathWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - if (path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("path", path); - tracingParameters.Add("path1", path1); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectHeadNamespacedServiceProxyWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/services/{name}/proxy/{path}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("{path}", path); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path1={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Head; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectPatchNamespacedServiceProxyWithPathWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - if (path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("path", path); - tracingParameters.Add("path1", path1); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectPatchNamespacedServiceProxyWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/services/{name}/proxy/{path}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("{path}", path); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path1={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectPostNamespacedServiceProxyWithPathWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - if (path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("path", path); - tracingParameters.Add("path1", path1); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectPostNamespacedServiceProxyWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/services/{name}/proxy/{path}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("{path}", path); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path1={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectPutNamespacedServiceProxyWithPathWithHttpMessagesAsync( - string name, - string namespaceParameter, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - if (path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("path", path); - tracingParameters.Add("path1", path1); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectPutNamespacedServiceProxyWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/services/{name}/proxy/{path}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("{path}", path); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path1={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedServiceStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedServiceStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/services/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedServiceStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedServiceStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/services/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedServiceStatusWithHttpMessagesAsync( - V1Service body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedServiceStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{namespace}/services/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespaceWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespace", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespaceWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespace", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespaceWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespace", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespaceWithHttpMessagesAsync( - V1Namespace body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespace", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespaceFinalizeWithHttpMessagesAsync( - V1Namespace body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespaceFinalize", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{name}/finalize").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespaceStatusWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespaceStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespaceStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespaceStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespaceStatusWithHttpMessagesAsync( - V1Namespace body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespaceStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/namespaces/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNodeWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNode", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/nodes").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNodeWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNode", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/nodes").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNodeWithHttpMessagesAsync( - V1Node body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNode", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/nodes").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNodeWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNode", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/nodes/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNodeWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNode", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/nodes/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNodeWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNode", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/nodes/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNodeWithHttpMessagesAsync( - V1Node body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNode", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/nodes/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectDeleteNodeProxyWithHttpMessagesAsync( - string name, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("path", path); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectDeleteNodeProxy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/nodes/{name}/proxy").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectGetNodeProxyWithHttpMessagesAsync( - string name, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("path", path); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectGetNodeProxy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/nodes/{name}/proxy").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectHeadNodeProxyWithHttpMessagesAsync( - string name, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("path", path); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectHeadNodeProxy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/nodes/{name}/proxy").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Head; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectPatchNodeProxyWithHttpMessagesAsync( - string name, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("path", path); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectPatchNodeProxy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/nodes/{name}/proxy").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectPostNodeProxyWithHttpMessagesAsync( - string name, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("path", path); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectPostNodeProxy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/nodes/{name}/proxy").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectPutNodeProxyWithHttpMessagesAsync( - string name, - string path = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("path", path); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectPutNodeProxy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/nodes/{name}/proxy").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectDeleteNodeProxyWithPathWithHttpMessagesAsync( - string name, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("path", path); - tracingParameters.Add("path1", path1); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectDeleteNodeProxyWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/nodes/{name}/proxy/{path}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{path}", path); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path1={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectGetNodeProxyWithPathWithHttpMessagesAsync( - string name, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("path", path); - tracingParameters.Add("path1", path1); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectGetNodeProxyWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/nodes/{name}/proxy/{path}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{path}", path); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path1={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectHeadNodeProxyWithPathWithHttpMessagesAsync( - string name, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("path", path); - tracingParameters.Add("path1", path1); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectHeadNodeProxyWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/nodes/{name}/proxy/{path}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{path}", path); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path1={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Head; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectPatchNodeProxyWithPathWithHttpMessagesAsync( - string name, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("path", path); - tracingParameters.Add("path1", path1); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectPatchNodeProxyWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/nodes/{name}/proxy/{path}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{path}", path); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path1={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectPostNodeProxyWithPathWithHttpMessagesAsync( - string name, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("path", path); - tracingParameters.Add("path1", path1); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectPostNodeProxyWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/nodes/{name}/proxy/{path}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{path}", path); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path1={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ConnectPutNodeProxyWithPathWithHttpMessagesAsync( - string name, - string path, - string path1 = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("path", path); - tracingParameters.Add("path1", path1); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ConnectPutNodeProxyWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/nodes/{name}/proxy/{path}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{path}", path); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path1={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new HttpOperationResponse() { - Request = _httpRequest, - Response = _httpResponse, - Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNodeStatusWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNodeStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/nodes/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNodeStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNodeStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/nodes/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNodeStatusWithHttpMessagesAsync( - V1Node body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNodeStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/nodes/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListPersistentVolumeClaimForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListPersistentVolumeClaimForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/persistentvolumeclaims").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionPersistentVolumeWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionPersistentVolume", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/persistentvolumes").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListPersistentVolumeWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListPersistentVolume", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/persistentvolumes").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreatePersistentVolumeWithHttpMessagesAsync( - V1PersistentVolume body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreatePersistentVolume", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/persistentvolumes").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeletePersistentVolumeWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeletePersistentVolume", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/persistentvolumes/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadPersistentVolumeWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadPersistentVolume", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/persistentvolumes/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchPersistentVolumeWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchPersistentVolume", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/persistentvolumes/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplacePersistentVolumeWithHttpMessagesAsync( - V1PersistentVolume body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplacePersistentVolume", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/persistentvolumes/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadPersistentVolumeStatusWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadPersistentVolumeStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/persistentvolumes/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchPersistentVolumeStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchPersistentVolumeStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/persistentvolumes/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplacePersistentVolumeStatusWithHttpMessagesAsync( - V1PersistentVolume body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplacePersistentVolumeStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/persistentvolumes/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListPodForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListPodForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/pods").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListPodTemplateForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListPodTemplateForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/podtemplates").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListReplicationControllerForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListReplicationControllerForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/replicationcontrollers").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListResourceQuotaForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListResourceQuotaForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/resourcequotas").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListSecretForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListSecretForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/secrets").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListServiceAccountForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListServiceAccountForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/serviceaccounts").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListServiceForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListServiceForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/services").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIGroupWithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIGroup", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIGroup1WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIGroup1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apiextensions.k8s.io/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIGroup2WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIGroup2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apiregistration.k8s.io/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIGroup3WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIGroup3", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIGroup4WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIGroup4", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/authentication.k8s.io/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIGroup5WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIGroup5", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/authorization.k8s.io/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIGroup6WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIGroup6", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIGroup7WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIGroup7", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIGroup8WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIGroup8", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/certificates.k8s.io/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIGroup9WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIGroup9", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/coordination.k8s.io/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIGroup10WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIGroup10", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/discovery.k8s.io/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIGroup11WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIGroup11", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/events.k8s.io/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIGroup12WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIGroup12", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/flowcontrol.apiserver.k8s.io/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIGroup13WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIGroup13", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/internal.apiserver.k8s.io/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIGroup14WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIGroup14", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIGroup15WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIGroup15", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/node.k8s.io/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIGroup16WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIGroup16", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIGroup17WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIGroup17", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIGroup18WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIGroup18", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/scheduling.k8s.io/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetAPIGroup19WithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAPIGroup19", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionMutatingWebhookConfigurationWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionMutatingWebhookConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListMutatingWebhookConfigurationWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListMutatingWebhookConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateMutatingWebhookConfigurationWithHttpMessagesAsync( - V1MutatingWebhookConfiguration body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateMutatingWebhookConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteMutatingWebhookConfigurationWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteMutatingWebhookConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadMutatingWebhookConfigurationWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadMutatingWebhookConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchMutatingWebhookConfigurationWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchMutatingWebhookConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceMutatingWebhookConfigurationWithHttpMessagesAsync( - V1MutatingWebhookConfiguration body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceMutatingWebhookConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionValidatingWebhookConfigurationWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionValidatingWebhookConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListValidatingWebhookConfigurationWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListValidatingWebhookConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateValidatingWebhookConfigurationWithHttpMessagesAsync( - V1ValidatingWebhookConfiguration body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateValidatingWebhookConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteValidatingWebhookConfigurationWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteValidatingWebhookConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadValidatingWebhookConfigurationWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadValidatingWebhookConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchValidatingWebhookConfigurationWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchValidatingWebhookConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceValidatingWebhookConfigurationWithHttpMessagesAsync( - V1ValidatingWebhookConfiguration body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceValidatingWebhookConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionCustomResourceDefinitionWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionCustomResourceDefinition", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apiextensions.k8s.io/v1/customresourcedefinitions").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListCustomResourceDefinitionWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListCustomResourceDefinition", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apiextensions.k8s.io/v1/customresourcedefinitions").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateCustomResourceDefinitionWithHttpMessagesAsync( - V1CustomResourceDefinition body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateCustomResourceDefinition", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apiextensions.k8s.io/v1/customresourcedefinitions").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCustomResourceDefinitionWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCustomResourceDefinition", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadCustomResourceDefinitionWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadCustomResourceDefinition", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchCustomResourceDefinitionWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchCustomResourceDefinition", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceCustomResourceDefinitionWithHttpMessagesAsync( - V1CustomResourceDefinition body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceCustomResourceDefinition", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadCustomResourceDefinitionStatusWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadCustomResourceDefinitionStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchCustomResourceDefinitionStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchCustomResourceDefinitionStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceCustomResourceDefinitionStatusWithHttpMessagesAsync( - V1CustomResourceDefinition body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceCustomResourceDefinitionStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionAPIServiceWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionAPIService", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apiregistration.k8s.io/v1/apiservices").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListAPIServiceWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListAPIService", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apiregistration.k8s.io/v1/apiservices").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateAPIServiceWithHttpMessagesAsync( - V1APIService body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateAPIService", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apiregistration.k8s.io/v1/apiservices").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteAPIServiceWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteAPIService", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apiregistration.k8s.io/v1/apiservices/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadAPIServiceWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadAPIService", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apiregistration.k8s.io/v1/apiservices/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchAPIServiceWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchAPIService", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apiregistration.k8s.io/v1/apiservices/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceAPIServiceWithHttpMessagesAsync( - V1APIService body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceAPIService", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apiregistration.k8s.io/v1/apiservices/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadAPIServiceStatusWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadAPIServiceStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apiregistration.k8s.io/v1/apiservices/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchAPIServiceStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchAPIServiceStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apiregistration.k8s.io/v1/apiservices/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceAPIServiceStatusWithHttpMessagesAsync( - V1APIService body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceAPIServiceStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apiregistration.k8s.io/v1/apiservices/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListControllerRevisionForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListControllerRevisionForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/controllerrevisions").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListDaemonSetForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListDaemonSetForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/daemonsets").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListDeploymentForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListDeploymentForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/deployments").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedControllerRevisionWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedControllerRevision", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/controllerrevisions").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedControllerRevisionWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedControllerRevision", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/controllerrevisions").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedControllerRevisionWithHttpMessagesAsync( - V1ControllerRevision body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedControllerRevision", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/controllerrevisions").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedControllerRevisionWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedControllerRevision", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedControllerRevisionWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedControllerRevision", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedControllerRevisionWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedControllerRevision", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedControllerRevisionWithHttpMessagesAsync( - V1ControllerRevision body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedControllerRevision", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedDaemonSetWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedDaemonSet", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/daemonsets").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedDaemonSetWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedDaemonSet", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/daemonsets").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedDaemonSetWithHttpMessagesAsync( - V1DaemonSet body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedDaemonSet", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/daemonsets").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedDaemonSetWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedDaemonSet", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/daemonsets/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedDaemonSetWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedDaemonSet", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/daemonsets/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedDaemonSetWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedDaemonSet", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/daemonsets/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedDaemonSetWithHttpMessagesAsync( - V1DaemonSet body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedDaemonSet", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/daemonsets/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedDaemonSetStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedDaemonSetStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedDaemonSetStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedDaemonSetStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedDaemonSetStatusWithHttpMessagesAsync( - V1DaemonSet body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedDaemonSetStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedDeploymentWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedDeployment", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/deployments").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedDeploymentWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedDeployment", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/deployments").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedDeploymentWithHttpMessagesAsync( - V1Deployment body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedDeployment", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/deployments").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedDeploymentWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedDeployment", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/deployments/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedDeploymentWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedDeployment", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/deployments/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedDeploymentWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedDeployment", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/deployments/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedDeploymentWithHttpMessagesAsync( - V1Deployment body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedDeployment", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/deployments/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedDeploymentScaleWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedDeploymentScale", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedDeploymentScaleWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedDeploymentScale", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedDeploymentScaleWithHttpMessagesAsync( - V1Scale body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedDeploymentScale", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedDeploymentStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedDeploymentStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/deployments/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedDeploymentStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedDeploymentStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/deployments/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedDeploymentStatusWithHttpMessagesAsync( - V1Deployment body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedDeploymentStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/deployments/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedReplicaSetWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedReplicaSet", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/replicasets").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedReplicaSetWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedReplicaSet", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/replicasets").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedReplicaSetWithHttpMessagesAsync( - V1ReplicaSet body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedReplicaSet", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/replicasets").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedReplicaSetWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedReplicaSet", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/replicasets/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedReplicaSetWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedReplicaSet", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/replicasets/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedReplicaSetWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedReplicaSet", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/replicasets/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedReplicaSetWithHttpMessagesAsync( - V1ReplicaSet body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedReplicaSet", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/replicasets/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedReplicaSetScaleWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedReplicaSetScale", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedReplicaSetScaleWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedReplicaSetScale", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedReplicaSetScaleWithHttpMessagesAsync( - V1Scale body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedReplicaSetScale", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedReplicaSetStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedReplicaSetStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedReplicaSetStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedReplicaSetStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedReplicaSetStatusWithHttpMessagesAsync( - V1ReplicaSet body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedReplicaSetStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedStatefulSetWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedStatefulSet", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/statefulsets").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedStatefulSetWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedStatefulSet", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/statefulsets").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedStatefulSetWithHttpMessagesAsync( - V1StatefulSet body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedStatefulSet", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/statefulsets").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedStatefulSetWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedStatefulSet", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/statefulsets/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedStatefulSetWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedStatefulSet", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/statefulsets/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedStatefulSetWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedStatefulSet", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/statefulsets/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedStatefulSetWithHttpMessagesAsync( - V1StatefulSet body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedStatefulSet", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/statefulsets/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedStatefulSetScaleWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedStatefulSetScale", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedStatefulSetScaleWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedStatefulSetScale", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedStatefulSetScaleWithHttpMessagesAsync( - V1Scale body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedStatefulSetScale", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedStatefulSetStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedStatefulSetStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedStatefulSetStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedStatefulSetStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedStatefulSetStatusWithHttpMessagesAsync( - V1StatefulSet body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedStatefulSetStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListReplicaSetForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListReplicaSetForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/replicasets").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListStatefulSetForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListStatefulSetForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1/statefulsets").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateTokenReviewWithHttpMessagesAsync( - V1TokenReview body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateTokenReview", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/authentication.k8s.io/v1/tokenreviews").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedLocalSubjectAccessReviewWithHttpMessagesAsync( - V1LocalSubjectAccessReview body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedLocalSubjectAccessReview", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateSelfSubjectAccessReviewWithHttpMessagesAsync( - V1SelfSubjectAccessReview body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateSelfSubjectAccessReview", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/authorization.k8s.io/v1/selfsubjectaccessreviews").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateSelfSubjectRulesReviewWithHttpMessagesAsync( - V1SelfSubjectRulesReview body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateSelfSubjectRulesReview", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/authorization.k8s.io/v1/selfsubjectrulesreviews").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateSubjectAccessReviewWithHttpMessagesAsync( - V1SubjectAccessReview body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateSubjectAccessReview", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/authorization.k8s.io/v1/subjectaccessreviews").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListHorizontalPodAutoscalerForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListHorizontalPodAutoscalerForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v1/horizontalpodautoscalers").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListHorizontalPodAutoscalerForAllNamespaces1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListHorizontalPodAutoscalerForAllNamespaces1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v2beta1/horizontalpodautoscalers").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListHorizontalPodAutoscalerForAllNamespaces2WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListHorizontalPodAutoscalerForAllNamespaces2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v2beta2/horizontalpodautoscalers").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedHorizontalPodAutoscaler", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedHorizontalPodAutoscaler1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedHorizontalPodAutoscaler2WithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedHorizontalPodAutoscaler2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedHorizontalPodAutoscaler", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedHorizontalPodAutoscaler1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedHorizontalPodAutoscaler2WithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedHorizontalPodAutoscaler2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync( - V1HorizontalPodAutoscaler body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedHorizontalPodAutoscaler", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync( - V2beta1HorizontalPodAutoscaler body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedHorizontalPodAutoscaler1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedHorizontalPodAutoscaler2WithHttpMessagesAsync( - V2beta2HorizontalPodAutoscaler body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedHorizontalPodAutoscaler2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedHorizontalPodAutoscaler", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedHorizontalPodAutoscaler1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedHorizontalPodAutoscaler2WithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedHorizontalPodAutoscaler2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedHorizontalPodAutoscaler", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedHorizontalPodAutoscaler1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedHorizontalPodAutoscaler2WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedHorizontalPodAutoscaler2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedHorizontalPodAutoscaler", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedHorizontalPodAutoscaler1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedHorizontalPodAutoscaler2WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedHorizontalPodAutoscaler2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync( - V1HorizontalPodAutoscaler body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedHorizontalPodAutoscaler", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync( - V2beta1HorizontalPodAutoscaler body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedHorizontalPodAutoscaler1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedHorizontalPodAutoscaler2WithHttpMessagesAsync( - V2beta2HorizontalPodAutoscaler body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedHorizontalPodAutoscaler2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedHorizontalPodAutoscalerStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedHorizontalPodAutoscalerStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedHorizontalPodAutoscalerStatus1WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedHorizontalPodAutoscalerStatus1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedHorizontalPodAutoscalerStatus2WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedHorizontalPodAutoscalerStatus2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedHorizontalPodAutoscalerStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedHorizontalPodAutoscalerStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedHorizontalPodAutoscalerStatus1WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedHorizontalPodAutoscalerStatus1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedHorizontalPodAutoscalerStatus2WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedHorizontalPodAutoscalerStatus2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedHorizontalPodAutoscalerStatusWithHttpMessagesAsync( - V1HorizontalPodAutoscaler body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedHorizontalPodAutoscalerStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedHorizontalPodAutoscalerStatus1WithHttpMessagesAsync( - V2beta1HorizontalPodAutoscaler body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedHorizontalPodAutoscalerStatus1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedHorizontalPodAutoscalerStatus2WithHttpMessagesAsync( - V2beta2HorizontalPodAutoscaler body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedHorizontalPodAutoscalerStatus2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListCronJobForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListCronJobForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1/cronjobs").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListCronJobForAllNamespaces1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListCronJobForAllNamespaces1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1beta1/cronjobs").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListJobForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListJobForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1/jobs").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedCronJobWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedCronJob", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1/namespaces/{namespace}/cronjobs").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedCronJob1WithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedCronJob1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1beta1/namespaces/{namespace}/cronjobs").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedCronJobWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedCronJob", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1/namespaces/{namespace}/cronjobs").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedCronJob1WithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedCronJob1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1beta1/namespaces/{namespace}/cronjobs").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedCronJobWithHttpMessagesAsync( - V1CronJob body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedCronJob", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1/namespaces/{namespace}/cronjobs").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedCronJob1WithHttpMessagesAsync( - V1beta1CronJob body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedCronJob1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1beta1/namespaces/{namespace}/cronjobs").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedCronJobWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedCronJob", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1/namespaces/{namespace}/cronjobs/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedCronJob1WithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedCronJob1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedCronJobWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedCronJob", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1/namespaces/{namespace}/cronjobs/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedCronJob1WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedCronJob1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedCronJobWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedCronJob", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1/namespaces/{namespace}/cronjobs/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedCronJob1WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedCronJob1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedCronJobWithHttpMessagesAsync( - V1CronJob body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedCronJob", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1/namespaces/{namespace}/cronjobs/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedCronJob1WithHttpMessagesAsync( - V1beta1CronJob body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedCronJob1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedCronJobStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedCronJobStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedCronJobStatus1WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedCronJobStatus1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedCronJobStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedCronJobStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedCronJobStatus1WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedCronJobStatus1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedCronJobStatusWithHttpMessagesAsync( - V1CronJob body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedCronJobStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedCronJobStatus1WithHttpMessagesAsync( - V1beta1CronJob body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedCronJobStatus1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedJobWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedJob", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1/namespaces/{namespace}/jobs").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedJobWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedJob", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1/namespaces/{namespace}/jobs").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedJobWithHttpMessagesAsync( - V1Job body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedJob", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1/namespaces/{namespace}/jobs").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedJobWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedJob", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1/namespaces/{namespace}/jobs/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedJobWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedJob", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1/namespaces/{namespace}/jobs/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedJobWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedJob", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1/namespaces/{namespace}/jobs/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedJobWithHttpMessagesAsync( - V1Job body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedJob", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1/namespaces/{namespace}/jobs/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedJobStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedJobStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1/namespaces/{namespace}/jobs/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedJobStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedJobStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1/namespaces/{namespace}/jobs/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedJobStatusWithHttpMessagesAsync( - V1Job body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedJobStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/batch/v1/namespaces/{namespace}/jobs/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionCertificateSigningRequestWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionCertificateSigningRequest", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/certificates.k8s.io/v1/certificatesigningrequests").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListCertificateSigningRequestWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListCertificateSigningRequest", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/certificates.k8s.io/v1/certificatesigningrequests").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateCertificateSigningRequestWithHttpMessagesAsync( - V1CertificateSigningRequest body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateCertificateSigningRequest", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/certificates.k8s.io/v1/certificatesigningrequests").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCertificateSigningRequestWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCertificateSigningRequest", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/certificates.k8s.io/v1/certificatesigningrequests/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadCertificateSigningRequestWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadCertificateSigningRequest", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/certificates.k8s.io/v1/certificatesigningrequests/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchCertificateSigningRequestWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchCertificateSigningRequest", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/certificates.k8s.io/v1/certificatesigningrequests/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceCertificateSigningRequestWithHttpMessagesAsync( - V1CertificateSigningRequest body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceCertificateSigningRequest", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/certificates.k8s.io/v1/certificatesigningrequests/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadCertificateSigningRequestApprovalWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadCertificateSigningRequestApproval", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchCertificateSigningRequestApprovalWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchCertificateSigningRequestApproval", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceCertificateSigningRequestApprovalWithHttpMessagesAsync( - V1CertificateSigningRequest body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceCertificateSigningRequestApproval", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadCertificateSigningRequestStatusWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadCertificateSigningRequestStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchCertificateSigningRequestStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchCertificateSigningRequestStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceCertificateSigningRequestStatusWithHttpMessagesAsync( - V1CertificateSigningRequest body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceCertificateSigningRequestStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListLeaseForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListLeaseForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/coordination.k8s.io/v1/leases").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedLeaseWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedLease", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/coordination.k8s.io/v1/namespaces/{namespace}/leases").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedLeaseWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedLease", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/coordination.k8s.io/v1/namespaces/{namespace}/leases").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedLeaseWithHttpMessagesAsync( - V1Lease body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedLease", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/coordination.k8s.io/v1/namespaces/{namespace}/leases").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedLeaseWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedLease", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedLeaseWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedLease", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedLeaseWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedLease", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedLeaseWithHttpMessagesAsync( - V1Lease body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedLease", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListEndpointSliceForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListEndpointSliceForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/discovery.k8s.io/v1/endpointslices").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListEndpointSliceForAllNamespaces1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListEndpointSliceForAllNamespaces1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/discovery.k8s.io/v1beta1/endpointslices").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedEndpointSliceWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedEndpointSlice", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedEndpointSlice1WithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedEndpointSlice1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedEndpointSliceWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedEndpointSlice", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedEndpointSlice1WithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedEndpointSlice1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedEndpointSliceWithHttpMessagesAsync( - V1EndpointSlice body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedEndpointSlice", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedEndpointSlice1WithHttpMessagesAsync( - V1beta1EndpointSlice body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedEndpointSlice1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedEndpointSliceWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedEndpointSlice", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedEndpointSlice1WithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedEndpointSlice1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedEndpointSliceWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedEndpointSlice", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedEndpointSlice1WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedEndpointSlice1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedEndpointSliceWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedEndpointSlice", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedEndpointSlice1WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedEndpointSlice1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedEndpointSliceWithHttpMessagesAsync( - V1EndpointSlice body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedEndpointSlice", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedEndpointSlice1WithHttpMessagesAsync( - V1beta1EndpointSlice body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedEndpointSlice1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionFlowSchemaWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionFlowSchema", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListFlowSchemaWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListFlowSchema", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateFlowSchemaWithHttpMessagesAsync( - V1beta1FlowSchema body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateFlowSchema", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteFlowSchemaWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteFlowSchema", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadFlowSchemaWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadFlowSchema", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchFlowSchemaWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchFlowSchema", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceFlowSchemaWithHttpMessagesAsync( - V1beta1FlowSchema body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceFlowSchema", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadFlowSchemaStatusWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadFlowSchemaStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchFlowSchemaStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchFlowSchemaStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceFlowSchemaStatusWithHttpMessagesAsync( - V1beta1FlowSchema body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceFlowSchemaStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionPriorityLevelConfigurationWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionPriorityLevelConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListPriorityLevelConfigurationWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListPriorityLevelConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreatePriorityLevelConfigurationWithHttpMessagesAsync( - V1beta1PriorityLevelConfiguration body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreatePriorityLevelConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeletePriorityLevelConfigurationWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeletePriorityLevelConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadPriorityLevelConfigurationWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadPriorityLevelConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchPriorityLevelConfigurationWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchPriorityLevelConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplacePriorityLevelConfigurationWithHttpMessagesAsync( - V1beta1PriorityLevelConfiguration body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplacePriorityLevelConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadPriorityLevelConfigurationStatusWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadPriorityLevelConfigurationStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchPriorityLevelConfigurationStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchPriorityLevelConfigurationStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplacePriorityLevelConfigurationStatusWithHttpMessagesAsync( - V1beta1PriorityLevelConfiguration body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplacePriorityLevelConfigurationStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionStorageVersionWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionStorageVersion", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/internal.apiserver.k8s.io/v1alpha1/storageversions").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListStorageVersionWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListStorageVersion", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/internal.apiserver.k8s.io/v1alpha1/storageversions").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateStorageVersionWithHttpMessagesAsync( - V1alpha1StorageVersion body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateStorageVersion", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/internal.apiserver.k8s.io/v1alpha1/storageversions").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteStorageVersionWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteStorageVersion", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadStorageVersionWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadStorageVersion", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchStorageVersionWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchStorageVersion", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceStorageVersionWithHttpMessagesAsync( - V1alpha1StorageVersion body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceStorageVersion", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadStorageVersionStatusWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadStorageVersionStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchStorageVersionStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchStorageVersionStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceStorageVersionStatusWithHttpMessagesAsync( - V1alpha1StorageVersion body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceStorageVersionStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionIngressClassWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionIngressClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/ingressclasses").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListIngressClassWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListIngressClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/ingressclasses").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateIngressClassWithHttpMessagesAsync( - V1IngressClass body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateIngressClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/ingressclasses").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteIngressClassWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteIngressClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/ingressclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadIngressClassWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadIngressClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/ingressclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchIngressClassWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchIngressClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/ingressclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceIngressClassWithHttpMessagesAsync( - V1IngressClass body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceIngressClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/ingressclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListIngressForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListIngressForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/ingresses").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedIngressWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedIngress", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedIngressWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedIngress", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedIngressWithHttpMessagesAsync( - V1Ingress body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedIngress", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedIngressWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedIngress", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedIngressWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedIngress", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedIngressWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedIngress", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedIngressWithHttpMessagesAsync( - V1Ingress body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedIngress", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedIngressStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedIngressStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedIngressStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedIngressStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedIngressStatusWithHttpMessagesAsync( - V1Ingress body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedIngressStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedNetworkPolicyWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedNetworkPolicy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedNetworkPolicyWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedNetworkPolicy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedNetworkPolicyWithHttpMessagesAsync( - V1NetworkPolicy body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedNetworkPolicy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedNetworkPolicyWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedNetworkPolicy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedNetworkPolicyWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedNetworkPolicy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedNetworkPolicyWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedNetworkPolicy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedNetworkPolicyWithHttpMessagesAsync( - V1NetworkPolicy body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedNetworkPolicy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNetworkPolicyForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNetworkPolicyForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/networking.k8s.io/v1/networkpolicies").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionRuntimeClassWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionRuntimeClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/node.k8s.io/v1/runtimeclasses").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionRuntimeClass1WithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionRuntimeClass1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/node.k8s.io/v1alpha1/runtimeclasses").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionRuntimeClass2WithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionRuntimeClass2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/node.k8s.io/v1beta1/runtimeclasses").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListRuntimeClassWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListRuntimeClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/node.k8s.io/v1/runtimeclasses").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListRuntimeClass1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListRuntimeClass1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/node.k8s.io/v1alpha1/runtimeclasses").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListRuntimeClass2WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListRuntimeClass2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/node.k8s.io/v1beta1/runtimeclasses").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateRuntimeClassWithHttpMessagesAsync( - V1RuntimeClass body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateRuntimeClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/node.k8s.io/v1/runtimeclasses").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateRuntimeClass1WithHttpMessagesAsync( - V1alpha1RuntimeClass body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateRuntimeClass1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/node.k8s.io/v1alpha1/runtimeclasses").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateRuntimeClass2WithHttpMessagesAsync( - V1beta1RuntimeClass body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateRuntimeClass2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/node.k8s.io/v1beta1/runtimeclasses").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteRuntimeClassWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteRuntimeClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/node.k8s.io/v1/runtimeclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteRuntimeClass1WithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteRuntimeClass1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/node.k8s.io/v1alpha1/runtimeclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteRuntimeClass2WithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteRuntimeClass2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/node.k8s.io/v1beta1/runtimeclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadRuntimeClassWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadRuntimeClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/node.k8s.io/v1/runtimeclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadRuntimeClass1WithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadRuntimeClass1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/node.k8s.io/v1alpha1/runtimeclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadRuntimeClass2WithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadRuntimeClass2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/node.k8s.io/v1beta1/runtimeclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchRuntimeClassWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchRuntimeClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/node.k8s.io/v1/runtimeclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchRuntimeClass1WithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchRuntimeClass1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/node.k8s.io/v1alpha1/runtimeclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchRuntimeClass2WithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchRuntimeClass2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/node.k8s.io/v1beta1/runtimeclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceRuntimeClassWithHttpMessagesAsync( - V1RuntimeClass body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceRuntimeClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/node.k8s.io/v1/runtimeclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceRuntimeClass1WithHttpMessagesAsync( - V1alpha1RuntimeClass body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceRuntimeClass1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/node.k8s.io/v1alpha1/runtimeclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceRuntimeClass2WithHttpMessagesAsync( - V1beta1RuntimeClass body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceRuntimeClass2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/node.k8s.io/v1beta1/runtimeclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedPodDisruptionBudgetWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedPodDisruptionBudget", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedPodDisruptionBudget1WithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedPodDisruptionBudget1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedPodDisruptionBudgetWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedPodDisruptionBudget", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedPodDisruptionBudget1WithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedPodDisruptionBudget1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedPodDisruptionBudgetWithHttpMessagesAsync( - V1PodDisruptionBudget body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedPodDisruptionBudget", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedPodDisruptionBudget1WithHttpMessagesAsync( - V1beta1PodDisruptionBudget body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedPodDisruptionBudget1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedPodDisruptionBudgetWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedPodDisruptionBudget", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedPodDisruptionBudget1WithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedPodDisruptionBudget1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedPodDisruptionBudgetWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedPodDisruptionBudget", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedPodDisruptionBudget1WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedPodDisruptionBudget1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedPodDisruptionBudgetWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedPodDisruptionBudget", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedPodDisruptionBudget1WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedPodDisruptionBudget1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedPodDisruptionBudgetWithHttpMessagesAsync( - V1PodDisruptionBudget body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedPodDisruptionBudget", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedPodDisruptionBudget1WithHttpMessagesAsync( - V1beta1PodDisruptionBudget body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedPodDisruptionBudget1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedPodDisruptionBudgetStatusWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedPodDisruptionBudgetStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedPodDisruptionBudgetStatus1WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedPodDisruptionBudgetStatus1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedPodDisruptionBudgetStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedPodDisruptionBudgetStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedPodDisruptionBudgetStatus1WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedPodDisruptionBudgetStatus1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedPodDisruptionBudgetStatusWithHttpMessagesAsync( - V1PodDisruptionBudget body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedPodDisruptionBudgetStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedPodDisruptionBudgetStatus1WithHttpMessagesAsync( - V1beta1PodDisruptionBudget body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedPodDisruptionBudgetStatus1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListPodDisruptionBudgetForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListPodDisruptionBudgetForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1/poddisruptionbudgets").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListPodDisruptionBudgetForAllNamespaces1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListPodDisruptionBudgetForAllNamespaces1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1beta1/poddisruptionbudgets").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionPodSecurityPolicyWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionPodSecurityPolicy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1beta1/podsecuritypolicies").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListPodSecurityPolicyWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListPodSecurityPolicy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1beta1/podsecuritypolicies").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreatePodSecurityPolicyWithHttpMessagesAsync( - V1beta1PodSecurityPolicy body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreatePodSecurityPolicy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1beta1/podsecuritypolicies").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeletePodSecurityPolicyWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeletePodSecurityPolicy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1beta1/podsecuritypolicies/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadPodSecurityPolicyWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadPodSecurityPolicy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1beta1/podsecuritypolicies/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchPodSecurityPolicyWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchPodSecurityPolicy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1beta1/podsecuritypolicies/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplacePodSecurityPolicyWithHttpMessagesAsync( - V1beta1PodSecurityPolicy body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplacePodSecurityPolicy", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/policy/v1beta1/podsecuritypolicies/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionClusterRoleBindingWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionClusterRoleBinding", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/clusterrolebindings").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionClusterRoleBinding1WithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionClusterRoleBinding1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListClusterRoleBindingWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListClusterRoleBinding", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/clusterrolebindings").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListClusterRoleBinding1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListClusterRoleBinding1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateClusterRoleBindingWithHttpMessagesAsync( - V1ClusterRoleBinding body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateClusterRoleBinding", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/clusterrolebindings").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateClusterRoleBinding1WithHttpMessagesAsync( - V1alpha1ClusterRoleBinding body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateClusterRoleBinding1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteClusterRoleBindingWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteClusterRoleBinding", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteClusterRoleBinding1WithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteClusterRoleBinding1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadClusterRoleBindingWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadClusterRoleBinding", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadClusterRoleBinding1WithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadClusterRoleBinding1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchClusterRoleBindingWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchClusterRoleBinding", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchClusterRoleBinding1WithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchClusterRoleBinding1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceClusterRoleBindingWithHttpMessagesAsync( - V1ClusterRoleBinding body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceClusterRoleBinding", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceClusterRoleBinding1WithHttpMessagesAsync( - V1alpha1ClusterRoleBinding body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceClusterRoleBinding1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionClusterRoleWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionClusterRole", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/clusterroles").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionClusterRole1WithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionClusterRole1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/clusterroles").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListClusterRoleWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListClusterRole", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/clusterroles").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListClusterRole1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListClusterRole1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/clusterroles").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateClusterRoleWithHttpMessagesAsync( - V1ClusterRole body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateClusterRole", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/clusterroles").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateClusterRole1WithHttpMessagesAsync( - V1alpha1ClusterRole body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateClusterRole1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/clusterroles").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteClusterRoleWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteClusterRole", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/clusterroles/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteClusterRole1WithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteClusterRole1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadClusterRoleWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadClusterRole", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/clusterroles/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadClusterRole1WithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadClusterRole1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchClusterRoleWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchClusterRole", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/clusterroles/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchClusterRole1WithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchClusterRole1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceClusterRoleWithHttpMessagesAsync( - V1ClusterRole body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceClusterRole", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/clusterroles/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceClusterRole1WithHttpMessagesAsync( - V1alpha1ClusterRole body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceClusterRole1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedRoleBindingWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedRoleBinding", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedRoleBinding1WithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedRoleBinding1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedRoleBindingWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedRoleBinding", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedRoleBinding1WithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedRoleBinding1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedRoleBindingWithHttpMessagesAsync( - V1RoleBinding body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedRoleBinding", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedRoleBinding1WithHttpMessagesAsync( - V1alpha1RoleBinding body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedRoleBinding1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedRoleBindingWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedRoleBinding", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedRoleBinding1WithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedRoleBinding1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedRoleBindingWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedRoleBinding", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedRoleBinding1WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedRoleBinding1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedRoleBindingWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedRoleBinding", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedRoleBinding1WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedRoleBinding1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedRoleBindingWithHttpMessagesAsync( - V1RoleBinding body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedRoleBinding", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedRoleBinding1WithHttpMessagesAsync( - V1alpha1RoleBinding body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedRoleBinding1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedRoleWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedRole", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedRole1WithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedRole1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedRoleWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedRole", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedRole1WithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedRole1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedRoleWithHttpMessagesAsync( - V1Role body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedRole", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedRole1WithHttpMessagesAsync( - V1alpha1Role body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedRole1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedRoleWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedRole", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedRole1WithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedRole1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedRoleWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedRole", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedRole1WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedRole1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedRoleWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedRole", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedRole1WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedRole1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedRoleWithHttpMessagesAsync( - V1Role body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedRole", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedRole1WithHttpMessagesAsync( - V1alpha1Role body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedRole1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListRoleBindingForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListRoleBindingForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/rolebindings").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListRoleBindingForAllNamespaces1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListRoleBindingForAllNamespaces1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/rolebindings").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListRoleForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListRoleForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1/roles").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListRoleForAllNamespaces1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListRoleForAllNamespaces1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1alpha1/roles").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionPriorityClassWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionPriorityClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/scheduling.k8s.io/v1/priorityclasses").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionPriorityClass1WithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionPriorityClass1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/scheduling.k8s.io/v1alpha1/priorityclasses").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListPriorityClassWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListPriorityClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/scheduling.k8s.io/v1/priorityclasses").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListPriorityClass1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListPriorityClass1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/scheduling.k8s.io/v1alpha1/priorityclasses").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreatePriorityClassWithHttpMessagesAsync( - V1PriorityClass body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreatePriorityClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/scheduling.k8s.io/v1/priorityclasses").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreatePriorityClass1WithHttpMessagesAsync( - V1alpha1PriorityClass body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreatePriorityClass1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/scheduling.k8s.io/v1alpha1/priorityclasses").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeletePriorityClassWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeletePriorityClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/scheduling.k8s.io/v1/priorityclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeletePriorityClass1WithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeletePriorityClass1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadPriorityClassWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadPriorityClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/scheduling.k8s.io/v1/priorityclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadPriorityClass1WithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadPriorityClass1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchPriorityClassWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchPriorityClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/scheduling.k8s.io/v1/priorityclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchPriorityClass1WithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchPriorityClass1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplacePriorityClassWithHttpMessagesAsync( - V1PriorityClass body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplacePriorityClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/scheduling.k8s.io/v1/priorityclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplacePriorityClass1WithHttpMessagesAsync( - V1alpha1PriorityClass body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplacePriorityClass1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionCSIDriverWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionCSIDriver", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/csidrivers").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListCSIDriverWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListCSIDriver", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/csidrivers").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateCSIDriverWithHttpMessagesAsync( - V1CSIDriver body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateCSIDriver", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/csidrivers").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCSIDriverWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCSIDriver", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/csidrivers/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadCSIDriverWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadCSIDriver", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/csidrivers/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchCSIDriverWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchCSIDriver", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/csidrivers/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceCSIDriverWithHttpMessagesAsync( - V1CSIDriver body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceCSIDriver", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/csidrivers/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionCSINodeWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionCSINode", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/csinodes").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListCSINodeWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListCSINode", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/csinodes").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateCSINodeWithHttpMessagesAsync( - V1CSINode body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateCSINode", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/csinodes").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCSINodeWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCSINode", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/csinodes/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadCSINodeWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadCSINode", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/csinodes/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchCSINodeWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchCSINode", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/csinodes/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceCSINodeWithHttpMessagesAsync( - V1CSINode body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceCSINode", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/csinodes/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionStorageClassWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionStorageClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/storageclasses").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListStorageClassWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListStorageClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/storageclasses").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateStorageClassWithHttpMessagesAsync( - V1StorageClass body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateStorageClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/storageclasses").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteStorageClassWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteStorageClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/storageclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadStorageClassWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadStorageClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/storageclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchStorageClassWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchStorageClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/storageclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceStorageClassWithHttpMessagesAsync( - V1StorageClass body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceStorageClass", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/storageclasses/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionVolumeAttachmentWithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionVolumeAttachment", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/volumeattachments").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionVolumeAttachment1WithHttpMessagesAsync( - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionVolumeAttachment1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1alpha1/volumeattachments").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListVolumeAttachmentWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListVolumeAttachment", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/volumeattachments").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListVolumeAttachment1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListVolumeAttachment1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1alpha1/volumeattachments").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateVolumeAttachmentWithHttpMessagesAsync( - V1VolumeAttachment body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateVolumeAttachment", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/volumeattachments").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateVolumeAttachment1WithHttpMessagesAsync( - V1alpha1VolumeAttachment body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateVolumeAttachment1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1alpha1/volumeattachments").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteVolumeAttachmentWithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteVolumeAttachment", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/volumeattachments/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteVolumeAttachment1WithHttpMessagesAsync( - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteVolumeAttachment1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1alpha1/volumeattachments/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadVolumeAttachmentWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadVolumeAttachment", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/volumeattachments/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadVolumeAttachment1WithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadVolumeAttachment1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1alpha1/volumeattachments/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchVolumeAttachmentWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchVolumeAttachment", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/volumeattachments/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchVolumeAttachment1WithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchVolumeAttachment1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1alpha1/volumeattachments/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceVolumeAttachmentWithHttpMessagesAsync( - V1VolumeAttachment body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceVolumeAttachment", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/volumeattachments/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceVolumeAttachment1WithHttpMessagesAsync( - V1alpha1VolumeAttachment body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceVolumeAttachment1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1alpha1/volumeattachments/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadVolumeAttachmentStatusWithHttpMessagesAsync( - string name, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadVolumeAttachmentStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/volumeattachments/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchVolumeAttachmentStatusWithHttpMessagesAsync( - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchVolumeAttachmentStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/volumeattachments/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceVolumeAttachmentStatusWithHttpMessagesAsync( - V1VolumeAttachment body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceVolumeAttachmentStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1/volumeattachments/{name}/status").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListCSIStorageCapacityForAllNamespacesWithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListCSIStorageCapacityForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1alpha1/csistoragecapacities").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListCSIStorageCapacityForAllNamespaces1WithHttpMessagesAsync( - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListCSIStorageCapacityForAllNamespaces1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1beta1/csistoragecapacities").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedCSIStorageCapacityWithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedCSIStorageCapacity", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1alpha1/namespaces/{namespace}/csistoragecapacities").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedCSIStorageCapacity1WithHttpMessagesAsync( - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedCSIStorageCapacity1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1beta1/namespaces/{namespace}/csistoragecapacities").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedCSIStorageCapacityWithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedCSIStorageCapacity", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1alpha1/namespaces/{namespace}/csistoragecapacities").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedCSIStorageCapacity1WithHttpMessagesAsync( - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedCSIStorageCapacity1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1beta1/namespaces/{namespace}/csistoragecapacities").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedCSIStorageCapacityWithHttpMessagesAsync( - V1alpha1CSIStorageCapacity body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedCSIStorageCapacity", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1alpha1/namespaces/{namespace}/csistoragecapacities").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedCSIStorageCapacity1WithHttpMessagesAsync( - V1beta1CSIStorageCapacity body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedCSIStorageCapacity1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1beta1/namespaces/{namespace}/csistoragecapacities").ToString(); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedCSIStorageCapacityWithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedCSIStorageCapacity", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1alpha1/namespaces/{namespace}/csistoragecapacities/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedCSIStorageCapacity1WithHttpMessagesAsync( - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("body", body); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedCSIStorageCapacity1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1beta1/namespaces/{namespace}/csistoragecapacities/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedCSIStorageCapacityWithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedCSIStorageCapacity", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1alpha1/namespaces/{namespace}/csistoragecapacities/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReadNamespacedCSIStorageCapacity1WithHttpMessagesAsync( - string name, - string namespaceParameter, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedCSIStorageCapacity1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1beta1/namespaces/{namespace}/csistoragecapacities/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedCSIStorageCapacityWithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedCSIStorageCapacity", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1alpha1/namespaces/{namespace}/csistoragecapacities/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedCSIStorageCapacity1WithHttpMessagesAsync( - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedCSIStorageCapacity1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1beta1/namespaces/{namespace}/csistoragecapacities/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedCSIStorageCapacityWithHttpMessagesAsync( - V1alpha1CSIStorageCapacity body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedCSIStorageCapacity", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1alpha1/namespaces/{namespace}/csistoragecapacities/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedCSIStorageCapacity1WithHttpMessagesAsync( - V1beta1CSIStorageCapacity body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedCSIStorageCapacity1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1beta1/namespaces/{namespace}/csistoragecapacities/{name}").ToString(); - _url = _url.Replace("{name}", name); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task LogFileListHandlerWithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "LogFileListHandler", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "logs/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - HttpOperationResponse _result = new HttpOperationResponse() { Request = _httpRequest, Response = _httpResponse }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task LogFileHandlerWithHttpMessagesAsync( - string logpath, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (logpath == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "logpath"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("logpath", logpath); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "LogFileHandler", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "logs/{logpath}").ToString(); - _url = _url.Replace("{logpath}", logpath); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - HttpOperationResponse _result = new HttpOperationResponse() { Request = _httpRequest, Response = _httpResponse }; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetServiceAccountIssuerOpenIDKeysetWithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetServiceAccountIssuerOpenIDKeyset", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "openid/v1/jwks/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetCodeWithHttpMessagesAsync( - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetCode", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "version/").ToString(); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateNamespacedCustomObjectWithHttpMessagesAsync( - object body, - string group, - string version, - string namespaceParameter, - string plural, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("plural", plural); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedCustomObject", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/namespaces/{namespace}/{plural}").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionNamespacedCustomObjectWithHttpMessagesAsync( - string group, - string version, - string namespaceParameter, - string plural, - V1DeleteOptions body = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string dryRun = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("plural", plural); - tracingParameters.Add("body", body); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedCustomObject", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/namespaces/{namespace}/{plural}").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListNamespacedCustomObjectWithHttpMessagesAsync( - string group, - string version, - string namespaceParameter, - string plural, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("plural", plural); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedCustomObject", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/namespaces/{namespace}/{plural}").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> CreateClusterCustomObjectWithHttpMessagesAsync( - object body, - string group, - string version, - string plural, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("plural", plural); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateClusterCustomObject", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/{plural}").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Post; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteCollectionClusterCustomObjectWithHttpMessagesAsync( - string group, - string version, - string plural, - V1DeleteOptions body = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string dryRun = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("plural", plural); - tracingParameters.Add("body", body); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionClusterCustomObject", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/{plural}").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ListClusterCustomObjectWithHttpMessagesAsync( - string group, - string version, - string plural, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - if (watch == true) - { - cts.CancelAfter(Timeout.InfiniteTimeSpan); - } - cancellationToken = cts.Token; - - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("plural", plural); - tracingParameters.Add("allowWatchBookmarks", allowWatchBookmarks); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("resourceVersionMatch", resourceVersionMatch); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListClusterCustomObject", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/{plural}").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (allowWatchBookmarks != null) - { - _queryParameters.Add(string.Format("allowWatchBookmarks={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(allowWatchBookmarks, SerializationSettings).Trim('"')))); - } - if (continueParameter != null) - { - _queryParameters.Add(string.Format("continue={0}", System.Uri.EscapeDataString(continueParameter))); - } - if (fieldSelector != null) - { - _queryParameters.Add(string.Format("fieldSelector={0}", System.Uri.EscapeDataString(fieldSelector))); - } - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (limit != null) - { - _queryParameters.Add(string.Format("limit={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(limit, SerializationSettings).Trim('"')))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - if (resourceVersionMatch != null) - { - _queryParameters.Add(string.Format("resourceVersionMatch={0}", System.Uri.EscapeDataString(resourceVersionMatch))); - } - if (timeoutSeconds != null) - { - _queryParameters.Add(string.Format("timeoutSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timeoutSeconds, SerializationSettings).Trim('"')))); - } - if (watch != null) - { - _queryParameters.Add(string.Format("watch={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(watch, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", pretty.Value == true ? "true" : "false")); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - watch, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceClusterCustomObjectStatusWithHttpMessagesAsync( - object body, - string group, - string version, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("plural", plural); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceClusterCustomObjectStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/{plural}/{name}/status").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchClusterCustomObjectStatusWithHttpMessagesAsync( - object body, - string group, - string version, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("plural", plural); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchClusterCustomObjectStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/{plural}/{name}/status").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetClusterCustomObjectStatusWithHttpMessagesAsync( - string group, - string version, - string plural, - string name, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("plural", plural); - tracingParameters.Add("name", name); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetClusterCustomObjectStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/{plural}/{name}/status").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedCustomObjectWithHttpMessagesAsync( - object body, - string group, - string version, - string namespaceParameter, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("plural", plural); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedCustomObject", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedCustomObjectWithHttpMessagesAsync( - object body, - string group, - string version, - string namespaceParameter, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("plural", plural); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedCustomObject", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteNamespacedCustomObjectWithHttpMessagesAsync( - string group, - string version, - string namespaceParameter, - string plural, - string name, - V1DeleteOptions body = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string dryRun = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("plural", plural); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedCustomObject", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetNamespacedCustomObjectWithHttpMessagesAsync( - string group, - string version, - string namespaceParameter, - string plural, - string name, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("plural", plural); - tracingParameters.Add("name", name); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetNamespacedCustomObject", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedCustomObjectScaleWithHttpMessagesAsync( - object body, - string group, - string version, - string namespaceParameter, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("plural", plural); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedCustomObjectScale", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedCustomObjectScaleWithHttpMessagesAsync( - object body, - string group, - string version, - string namespaceParameter, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("plural", plural); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedCustomObjectScale", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetNamespacedCustomObjectScaleWithHttpMessagesAsync( - string group, - string version, - string namespaceParameter, - string plural, - string name, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("plural", plural); - tracingParameters.Add("name", name); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetNamespacedCustomObjectScale", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceClusterCustomObjectScaleWithHttpMessagesAsync( - object body, - string group, - string version, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("plural", plural); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceClusterCustomObjectScale", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/{plural}/{name}/scale").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchClusterCustomObjectScaleWithHttpMessagesAsync( - object body, - string group, - string version, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("plural", plural); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchClusterCustomObjectScale", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/{plural}/{name}/scale").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetClusterCustomObjectScaleWithHttpMessagesAsync( - string group, - string version, - string plural, - string name, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("plural", plural); - tracingParameters.Add("name", name); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetClusterCustomObjectScale", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/{plural}/{name}/scale").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceClusterCustomObjectWithHttpMessagesAsync( - object body, - string group, - string version, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("plural", plural); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceClusterCustomObject", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/{plural}/{name}").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchClusterCustomObjectWithHttpMessagesAsync( - object body, - string group, - string version, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("plural", plural); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchClusterCustomObject", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/{plural}/{name}").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> DeleteClusterCustomObjectWithHttpMessagesAsync( - string group, - string version, - string plural, - string name, - V1DeleteOptions body = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string dryRun = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("plural", plural); - tracingParameters.Add("name", name); - tracingParameters.Add("body", body); - tracingParameters.Add("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteClusterCustomObject", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/{plural}/{name}").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (gracePeriodSeconds != null) - { - _queryParameters.Add(string.Format("gracePeriodSeconds={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(gracePeriodSeconds, SerializationSettings).Trim('"')))); - } - if (orphanDependents != null) - { - _queryParameters.Add(string.Format("orphanDependents={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(orphanDependents, SerializationSettings).Trim('"')))); - } - if (propagationPolicy != null) - { - _queryParameters.Add(string.Format("propagationPolicy={0}", System.Uri.EscapeDataString(propagationPolicy))); - } - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Delete; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetClusterCustomObjectWithHttpMessagesAsync( - string group, - string version, - string plural, - string name, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("plural", plural); - tracingParameters.Add("name", name); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetClusterCustomObject", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/{plural}/{name}").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> ReplaceNamespacedCustomObjectStatusWithHttpMessagesAsync( - object body, - string group, - string version, - string namespaceParameter, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("plural", plural); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedCustomObjectStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Put; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> PatchNamespacedCustomObjectStatusWithHttpMessagesAsync( - object body, - string group, - string version, - string namespaceParameter, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("plural", plural); - tracingParameters.Add("name", name); - tracingParameters.Add("dryRun", dryRun); - tracingParameters.Add("fieldManager", fieldManager); - tracingParameters.Add("force", force); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedCustomObjectStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (dryRun != null) - { - _queryParameters.Add(string.Format("dryRun={0}", System.Uri.EscapeDataString(dryRun))); - } - if (fieldManager != null) - { - _queryParameters.Add(string.Format("fieldManager={0}", System.Uri.EscapeDataString(fieldManager))); - } - if (force != null) - { - _queryParameters.Add(string.Format("force={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(force, SerializationSettings).Trim('"')))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Patch; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = GetHeader(body); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - /// - public async Task> GetNamespacedCustomObjectStatusWithHttpMessagesAsync( - string group, - string version, - string namespaceParameter, - string plural, - string name, - Dictionary> customHeaders = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); - cts.CancelAfter(HttpClientTimeout); - cancellationToken = cts.Token; - - if (group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "group"); - } - if (version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "version"); - } - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - if (plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "plural"); - } - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("plural", plural); - tracingParameters.Add("name", name); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetNamespacedCustomObjectStatus", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status").ToString(); - _url = _url.Replace("{group}", group); - _url = _url.Replace("{version}", version); - _url = _url.Replace("{namespace}", namespaceParameter); - _url = _url.Replace("{plural}", plural); - _url = _url.Replace("{name}", name); - _url = _url.Replace("/apis//", "/api/"); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = HttpMethod.Get; - _httpRequest.RequestUri = new System.Uri(_url); - _httpRequest.Version = HttpVersion.Version20; - // Set Headers - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - _httpRequest.Headers.Remove(_header.Key); - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - string _responseContent = null; - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = await CreateResultAsync(_httpRequest, - _httpResponse, - false, - cancellationToken); - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - - } - - } -} diff --git a/src/KubernetesClient/generated/KubernetesExtensions.cs b/src/KubernetesClient/generated/KubernetesExtensions.cs deleted file mode 100644 index d532a2d0d..000000000 --- a/src/KubernetesClient/generated/KubernetesExtensions.cs +++ /dev/null @@ -1,97951 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s -{ - using Models; - using System.IO; - using System.Threading; - using System.Threading.Tasks; - - /// - /// Extension methods for Kubernetes. - /// - public static partial class KubernetesExtensions - { - /// - /// get service account issuer OpenID configuration, also known as the 'OIDC - /// discovery doc' - /// - /// - /// The operations group for this extension method. - /// - public static string GetServiceAccountIssuerOpenIDConfiguration( - this IKubernetes operations - ) - { - return operations.GetServiceAccountIssuerOpenIDConfigurationAsync( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get service account issuer OpenID configuration, also known as the 'OIDC - /// discovery doc' - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetServiceAccountIssuerOpenIDConfigurationAsync( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetServiceAccountIssuerOpenIDConfigurationWithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available API versions - /// - /// - /// The operations group for this extension method. - /// - public static V1APIVersions GetAPIVersions( - this IKubernetes operations - ) - { - return operations.GetAPIVersionsAsync( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available API versions - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIVersionsAsync( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIVersionsWithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available API versions - /// - /// - /// The operations group for this extension method. - /// - public static V1APIGroupList GetAPIVersions1( - this IKubernetes operations - ) - { - return operations.GetAPIVersions1Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available API versions - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIVersions1Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIVersions1WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources( - this IKubernetes operations - ) - { - return operations.GetAPIResourcesAsync( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResourcesAsync( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResourcesWithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources1( - this IKubernetes operations - ) - { - return operations.GetAPIResources1Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources1Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources1WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources2( - this IKubernetes operations - ) - { - return operations.GetAPIResources2Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources2Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources2WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources3( - this IKubernetes operations - ) - { - return operations.GetAPIResources3Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources3Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources3WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources4( - this IKubernetes operations - ) - { - return operations.GetAPIResources4Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources4Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources4WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources5( - this IKubernetes operations - ) - { - return operations.GetAPIResources5Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources5Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources5WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources6( - this IKubernetes operations - ) - { - return operations.GetAPIResources6Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources6Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources6WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources7( - this IKubernetes operations - ) - { - return operations.GetAPIResources7Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources7Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources7WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources8( - this IKubernetes operations - ) - { - return operations.GetAPIResources8Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources8Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources8WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources9( - this IKubernetes operations - ) - { - return operations.GetAPIResources9Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources9Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources9WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources10( - this IKubernetes operations - ) - { - return operations.GetAPIResources10Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources10Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources10WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources11( - this IKubernetes operations - ) - { - return operations.GetAPIResources11Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources11Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources11WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources12( - this IKubernetes operations - ) - { - return operations.GetAPIResources12Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources12Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources12WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources13( - this IKubernetes operations - ) - { - return operations.GetAPIResources13Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources13Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources13WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources14( - this IKubernetes operations - ) - { - return operations.GetAPIResources14Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources14Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources14WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources15( - this IKubernetes operations - ) - { - return operations.GetAPIResources15Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources15Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources15WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources16( - this IKubernetes operations - ) - { - return operations.GetAPIResources16Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources16Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources16WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources17( - this IKubernetes operations - ) - { - return operations.GetAPIResources17Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources17Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources17WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources18( - this IKubernetes operations - ) - { - return operations.GetAPIResources18Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources18Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources18WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources19( - this IKubernetes operations - ) - { - return operations.GetAPIResources19Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources19Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources19WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources20( - this IKubernetes operations - ) - { - return operations.GetAPIResources20Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources20Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources20WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources21( - this IKubernetes operations - ) - { - return operations.GetAPIResources21Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources21Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources21WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources22( - this IKubernetes operations - ) - { - return operations.GetAPIResources22Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources22Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources22WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources23( - this IKubernetes operations - ) - { - return operations.GetAPIResources23Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources23Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources23WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources24( - this IKubernetes operations - ) - { - return operations.GetAPIResources24Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources24Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources24WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources25( - this IKubernetes operations - ) - { - return operations.GetAPIResources25Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources25Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources25WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources26( - this IKubernetes operations - ) - { - return operations.GetAPIResources26Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources26Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources26WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources27( - this IKubernetes operations - ) - { - return operations.GetAPIResources27Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources27Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources27WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources28( - this IKubernetes operations - ) - { - return operations.GetAPIResources28Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources28Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources28WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources29( - this IKubernetes operations - ) - { - return operations.GetAPIResources29Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources29Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources29WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources30( - this IKubernetes operations - ) - { - return operations.GetAPIResources30Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources30Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources30WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources31( - this IKubernetes operations - ) - { - return operations.GetAPIResources31Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources31Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources31WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources32( - this IKubernetes operations - ) - { - return operations.GetAPIResources32Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIResources32Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIResources32WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list objects of kind ComponentStatus - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1ComponentStatusList ListComponentStatus( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListComponentStatusAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list objects of kind ComponentStatus - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListComponentStatusAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListComponentStatusWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified ComponentStatus - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ComponentStatus - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ComponentStatus ReadComponentStatus( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadComponentStatusAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified ComponentStatus - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ComponentStatus - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadComponentStatusAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadComponentStatusWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind ConfigMap - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1ConfigMapList ListConfigMapForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListConfigMapForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ConfigMap - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListConfigMapForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListConfigMapForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Endpoints - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1EndpointsList ListEndpointsForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListEndpointsForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Endpoints - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListEndpointsForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListEndpointsForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static Corev1EventList ListEventForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListEventForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListEventForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListEventForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static Eventsv1EventList ListEventForAllNamespaces1( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListEventForAllNamespaces1Async( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListEventForAllNamespaces1Async( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListEventForAllNamespaces1WithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1beta1EventList ListEventForAllNamespaces2( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListEventForAllNamespaces2Async( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListEventForAllNamespaces2Async( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListEventForAllNamespaces2WithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind LimitRange - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1LimitRangeList ListLimitRangeForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListLimitRangeForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind LimitRange - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListLimitRangeForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListLimitRangeForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1NamespaceList ListNamespace( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespaceAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespaceAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespaceWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Namespace CreateNamespace( - this IKubernetes operations - ,V1Namespace body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespaceAsync( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespaceAsync( - this IKubernetes operations, - V1Namespace body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespaceWithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a Binding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Binding CreateNamespacedBinding( - this IKubernetes operations - ,V1Binding body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedBindingAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a Binding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedBindingAsync( - this IKubernetes operations, - V1Binding body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedBindingWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of ConfigMap - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedConfigMap( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedConfigMapAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of ConfigMap - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedConfigMapAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedConfigMapWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind ConfigMap - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ConfigMapList ListNamespacedConfigMap( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedConfigMapAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ConfigMap - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedConfigMapAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedConfigMapWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a ConfigMap - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ConfigMap CreateNamespacedConfigMap( - this IKubernetes operations - ,V1ConfigMap body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedConfigMapAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a ConfigMap - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedConfigMapAsync( - this IKubernetes operations, - V1ConfigMap body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedConfigMapWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a ConfigMap - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ConfigMap - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedConfigMap( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedConfigMapAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a ConfigMap - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ConfigMap - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedConfigMapAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedConfigMapWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified ConfigMap - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ConfigMap - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ConfigMap ReadNamespacedConfigMap( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedConfigMapAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified ConfigMap - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ConfigMap - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedConfigMapAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedConfigMapWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified ConfigMap - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ConfigMap - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ConfigMap PatchNamespacedConfigMap( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedConfigMapAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified ConfigMap - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ConfigMap - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedConfigMapAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedConfigMapWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified ConfigMap - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ConfigMap - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ConfigMap ReplaceNamespacedConfigMap( - this IKubernetes operations - ,V1ConfigMap body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedConfigMapAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified ConfigMap - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ConfigMap - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedConfigMapAsync( - this IKubernetes operations, - V1ConfigMap body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedConfigMapWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of Endpoints - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedEndpoints( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedEndpointsAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of Endpoints - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedEndpointsAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedEndpointsWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Endpoints - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1EndpointsList ListNamespacedEndpoints( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedEndpointsAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Endpoints - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedEndpointsAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedEndpointsWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create Endpoints - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Endpoints CreateNamespacedEndpoints( - this IKubernetes operations - ,V1Endpoints body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedEndpointsAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create Endpoints - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedEndpointsAsync( - this IKubernetes operations, - V1Endpoints body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedEndpointsWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete Endpoints - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Endpoints - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedEndpoints( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedEndpointsAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete Endpoints - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Endpoints - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedEndpointsAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedEndpointsWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified Endpoints - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Endpoints - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Endpoints ReadNamespacedEndpoints( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedEndpointsAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified Endpoints - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Endpoints - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedEndpointsAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedEndpointsWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified Endpoints - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Endpoints - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Endpoints PatchNamespacedEndpoints( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedEndpointsAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified Endpoints - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Endpoints - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedEndpointsAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedEndpointsWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified Endpoints - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Endpoints - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Endpoints ReplaceNamespacedEndpoints( - this IKubernetes operations - ,V1Endpoints body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedEndpointsAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified Endpoints - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Endpoints - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedEndpointsAsync( - this IKubernetes operations, - V1Endpoints body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedEndpointsWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedEvent( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedEventAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedEventAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedEventWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedEvent1( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedEvent1Async( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedEvent1Async( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedEvent1WithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedEvent2( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedEvent2Async( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedEvent2Async( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedEvent2WithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Corev1EventList ListNamespacedEvent( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedEventAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedEventAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedEventWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Eventsv1EventList ListNamespacedEvent1( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedEvent1Async( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedEvent1Async( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedEvent1WithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1EventList ListNamespacedEvent2( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedEvent2Async( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedEvent2Async( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedEvent2WithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create an Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Corev1Event CreateNamespacedEvent( - this IKubernetes operations - ,Corev1Event body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedEventAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create an Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedEventAsync( - this IKubernetes operations, - Corev1Event body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedEventWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create an Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Eventsv1Event CreateNamespacedEvent1( - this IKubernetes operations - ,Eventsv1Event body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedEvent1Async( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create an Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedEvent1Async( - this IKubernetes operations, - Eventsv1Event body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedEvent1WithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create an Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1Event CreateNamespacedEvent2( - this IKubernetes operations - ,V1beta1Event body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedEvent2Async( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create an Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedEvent2Async( - this IKubernetes operations, - V1beta1Event body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedEvent2WithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete an Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedEvent( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedEventAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete an Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedEventAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedEventWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete an Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedEvent1( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedEvent1Async( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete an Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedEvent1Async( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedEvent1WithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete an Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedEvent2( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedEvent2Async( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete an Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedEvent2Async( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedEvent2WithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Corev1Event ReadNamespacedEvent( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedEventAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedEventAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedEventWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Eventsv1Event ReadNamespacedEvent1( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedEvent1Async( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedEvent1Async( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedEvent1WithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1Event ReadNamespacedEvent2( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedEvent2Async( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedEvent2Async( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedEvent2WithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Corev1Event PatchNamespacedEvent( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedEventAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedEventAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedEventWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Eventsv1Event PatchNamespacedEvent1( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedEvent1Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedEvent1Async( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedEvent1WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1Event PatchNamespacedEvent2( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedEvent2Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedEvent2Async( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedEvent2WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Corev1Event ReplaceNamespacedEvent( - this IKubernetes operations - ,Corev1Event body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedEventAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedEventAsync( - this IKubernetes operations, - Corev1Event body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedEventWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Eventsv1Event ReplaceNamespacedEvent1( - this IKubernetes operations - ,Eventsv1Event body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedEvent1Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedEvent1Async( - this IKubernetes operations, - Eventsv1Event body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedEvent1WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1Event ReplaceNamespacedEvent2( - this IKubernetes operations - ,V1beta1Event body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedEvent2Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedEvent2Async( - this IKubernetes operations, - V1beta1Event body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedEvent2WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of LimitRange - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedLimitRange( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedLimitRangeAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of LimitRange - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedLimitRangeAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedLimitRangeWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind LimitRange - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1LimitRangeList ListNamespacedLimitRange( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedLimitRangeAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind LimitRange - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedLimitRangeAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedLimitRangeWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a LimitRange - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1LimitRange CreateNamespacedLimitRange( - this IKubernetes operations - ,V1LimitRange body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedLimitRangeAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a LimitRange - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedLimitRangeAsync( - this IKubernetes operations, - V1LimitRange body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedLimitRangeWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a LimitRange - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the LimitRange - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedLimitRange( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedLimitRangeAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a LimitRange - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the LimitRange - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedLimitRangeAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedLimitRangeWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified LimitRange - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the LimitRange - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1LimitRange ReadNamespacedLimitRange( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedLimitRangeAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified LimitRange - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the LimitRange - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedLimitRangeAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedLimitRangeWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified LimitRange - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the LimitRange - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1LimitRange PatchNamespacedLimitRange( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedLimitRangeAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified LimitRange - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the LimitRange - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedLimitRangeAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedLimitRangeWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified LimitRange - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the LimitRange - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1LimitRange ReplaceNamespacedLimitRange( - this IKubernetes operations - ,V1LimitRange body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedLimitRangeAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified LimitRange - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the LimitRange - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedLimitRangeAsync( - this IKubernetes operations, - V1LimitRange body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedLimitRangeWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of PersistentVolumeClaim - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedPersistentVolumeClaim( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedPersistentVolumeClaimAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of PersistentVolumeClaim - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedPersistentVolumeClaimAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedPersistentVolumeClaimWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind PersistentVolumeClaim - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolumeClaimList ListNamespacedPersistentVolumeClaim( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedPersistentVolumeClaimAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind PersistentVolumeClaim - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedPersistentVolumeClaimAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedPersistentVolumeClaimWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a PersistentVolumeClaim - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolumeClaim CreateNamespacedPersistentVolumeClaim( - this IKubernetes operations - ,V1PersistentVolumeClaim body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedPersistentVolumeClaimAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a PersistentVolumeClaim - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedPersistentVolumeClaimAsync( - this IKubernetes operations, - V1PersistentVolumeClaim body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedPersistentVolumeClaimWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a PersistentVolumeClaim - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolumeClaim DeleteNamespacedPersistentVolumeClaim( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedPersistentVolumeClaimAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a PersistentVolumeClaim - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedPersistentVolumeClaimAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedPersistentVolumeClaimWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified PersistentVolumeClaim - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolumeClaim ReadNamespacedPersistentVolumeClaim( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedPersistentVolumeClaimAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified PersistentVolumeClaim - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedPersistentVolumeClaimAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedPersistentVolumeClaimWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified PersistentVolumeClaim - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolumeClaim PatchNamespacedPersistentVolumeClaim( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedPersistentVolumeClaimAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified PersistentVolumeClaim - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedPersistentVolumeClaimAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedPersistentVolumeClaimWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified PersistentVolumeClaim - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolumeClaim ReplaceNamespacedPersistentVolumeClaim( - this IKubernetes operations - ,V1PersistentVolumeClaim body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedPersistentVolumeClaimAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified PersistentVolumeClaim - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedPersistentVolumeClaimAsync( - this IKubernetes operations, - V1PersistentVolumeClaim body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedPersistentVolumeClaimWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified PersistentVolumeClaim - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolumeClaim ReadNamespacedPersistentVolumeClaimStatus( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedPersistentVolumeClaimStatusAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified PersistentVolumeClaim - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedPersistentVolumeClaimStatusAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedPersistentVolumeClaimStatusWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified PersistentVolumeClaim - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolumeClaim PatchNamespacedPersistentVolumeClaimStatus( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedPersistentVolumeClaimStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified PersistentVolumeClaim - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedPersistentVolumeClaimStatusAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedPersistentVolumeClaimStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified PersistentVolumeClaim - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolumeClaim ReplaceNamespacedPersistentVolumeClaimStatus( - this IKubernetes operations - ,V1PersistentVolumeClaim body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedPersistentVolumeClaimStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified PersistentVolumeClaim - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedPersistentVolumeClaimStatusAsync( - this IKubernetes operations, - V1PersistentVolumeClaim body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedPersistentVolumeClaimStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedPod( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedPodAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedPodAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedPodWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PodList ListNamespacedPod( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedPodAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedPodAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedPodWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Pod CreateNamespacedPod( - this IKubernetes operations - ,V1Pod body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedPodAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedPodAsync( - this IKubernetes operations, - V1Pod body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedPodWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Pod DeleteNamespacedPod( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedPodAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedPodAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedPodWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Pod ReadNamespacedPod( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedPodAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedPodAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedPodWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Pod PatchNamespacedPod( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedPodAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedPodAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedPodWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Pod ReplaceNamespacedPod( - this IKubernetes operations - ,V1Pod body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedPodAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedPodAsync( - this IKubernetes operations, - V1Pod body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedPodWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect GET requests to attach of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodAttachOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The container in which to execute the command. Defaults to only container if - /// there is only one container in the pod. - /// - /// - /// Stderr if true indicates that stderr is to be redirected for the attach call. - /// Defaults to true. - /// - /// - /// Stdin if true, redirects the standard input stream of the pod for this call. - /// Defaults to false. - /// - /// - /// Stdout if true indicates that stdout is to be redirected for the attach call. - /// Defaults to true. - /// - /// - /// TTY if true indicates that a tty will be allocated for the attach call. This is - /// passed through the container runtime so the tty is allocated on the worker node - /// by the container runtime. Defaults to false. - /// - public static Stream ConnectGetNamespacedPodAttach( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string container = null - ,bool? stderr = null - ,bool? stdin = null - ,bool? stdout = null - ,bool? tty = null - ) - { - return operations.ConnectGetNamespacedPodAttachAsync( - name, - namespaceParameter, - container, - stderr, - stdin, - stdout, - tty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect GET requests to attach of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodAttachOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The container in which to execute the command. Defaults to only container if - /// there is only one container in the pod. - /// - /// - /// Stderr if true indicates that stderr is to be redirected for the attach call. - /// Defaults to true. - /// - /// - /// Stdin if true, redirects the standard input stream of the pod for this call. - /// Defaults to false. - /// - /// - /// Stdout if true indicates that stdout is to be redirected for the attach call. - /// Defaults to true. - /// - /// - /// TTY if true indicates that a tty will be allocated for the attach call. This is - /// passed through the container runtime so the tty is allocated on the worker node - /// by the container runtime. Defaults to false. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectGetNamespacedPodAttachAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string container = null, - bool? stderr = null, - bool? stdin = null, - bool? stdout = null, - bool? tty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectGetNamespacedPodAttachWithHttpMessagesAsync( - name, - namespaceParameter, - container, - stderr, - stdin, - stdout, - tty, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect POST requests to attach of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodAttachOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The container in which to execute the command. Defaults to only container if - /// there is only one container in the pod. - /// - /// - /// Stderr if true indicates that stderr is to be redirected for the attach call. - /// Defaults to true. - /// - /// - /// Stdin if true, redirects the standard input stream of the pod for this call. - /// Defaults to false. - /// - /// - /// Stdout if true indicates that stdout is to be redirected for the attach call. - /// Defaults to true. - /// - /// - /// TTY if true indicates that a tty will be allocated for the attach call. This is - /// passed through the container runtime so the tty is allocated on the worker node - /// by the container runtime. Defaults to false. - /// - public static Stream ConnectPostNamespacedPodAttach( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string container = null - ,bool? stderr = null - ,bool? stdin = null - ,bool? stdout = null - ,bool? tty = null - ) - { - return operations.ConnectPostNamespacedPodAttachAsync( - name, - namespaceParameter, - container, - stderr, - stdin, - stdout, - tty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect POST requests to attach of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodAttachOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The container in which to execute the command. Defaults to only container if - /// there is only one container in the pod. - /// - /// - /// Stderr if true indicates that stderr is to be redirected for the attach call. - /// Defaults to true. - /// - /// - /// Stdin if true, redirects the standard input stream of the pod for this call. - /// Defaults to false. - /// - /// - /// Stdout if true indicates that stdout is to be redirected for the attach call. - /// Defaults to true. - /// - /// - /// TTY if true indicates that a tty will be allocated for the attach call. This is - /// passed through the container runtime so the tty is allocated on the worker node - /// by the container runtime. Defaults to false. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectPostNamespacedPodAttachAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string container = null, - bool? stderr = null, - bool? stdin = null, - bool? stdout = null, - bool? tty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectPostNamespacedPodAttachWithHttpMessagesAsync( - name, - namespaceParameter, - container, - stderr, - stdin, - stdout, - tty, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// create binding of a Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Binding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Binding CreateNamespacedPodBinding( - this IKubernetes operations - ,V1Binding body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedPodBindingAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create binding of a Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Binding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedPodBindingAsync( - this IKubernetes operations, - V1Binding body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedPodBindingWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read ephemeralcontainers of the specified Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Pod ReadNamespacedPodEphemeralcontainers( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedPodEphemeralcontainersAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read ephemeralcontainers of the specified Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedPodEphemeralcontainersAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedPodEphemeralcontainersWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update ephemeralcontainers of the specified Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Pod PatchNamespacedPodEphemeralcontainers( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedPodEphemeralcontainersAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update ephemeralcontainers of the specified Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedPodEphemeralcontainersAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedPodEphemeralcontainersWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace ephemeralcontainers of the specified Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Pod ReplaceNamespacedPodEphemeralcontainers( - this IKubernetes operations - ,V1Pod body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedPodEphemeralcontainersAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace ephemeralcontainers of the specified Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedPodEphemeralcontainersAsync( - this IKubernetes operations, - V1Pod body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedPodEphemeralcontainersWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create eviction of a Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Eviction - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Eviction CreateNamespacedPodEviction( - this IKubernetes operations - ,V1Eviction body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedPodEvictionAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create eviction of a Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Eviction - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedPodEvictionAsync( - this IKubernetes operations, - V1Eviction body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedPodEvictionWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect GET requests to exec of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodExecOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Command is the remote command to execute. argv array. Not executed within a - /// shell. - /// - /// - /// Container in which to execute the command. Defaults to only container if there - /// is only one container in the pod. - /// - /// - /// Redirect the standard error stream of the pod for this call. Defaults to true. - /// - /// - /// Redirect the standard input stream of the pod for this call. Defaults to false. - /// - /// - /// Redirect the standard output stream of the pod for this call. Defaults to true. - /// - /// - /// TTY if true indicates that a tty will be allocated for the exec call. Defaults - /// to false. - /// - public static Stream ConnectGetNamespacedPodExec( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string command = null - ,string container = null - ,bool? stderr = null - ,bool? stdin = null - ,bool? stdout = null - ,bool? tty = null - ) - { - return operations.ConnectGetNamespacedPodExecAsync( - name, - namespaceParameter, - command, - container, - stderr, - stdin, - stdout, - tty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect GET requests to exec of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodExecOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Command is the remote command to execute. argv array. Not executed within a - /// shell. - /// - /// - /// Container in which to execute the command. Defaults to only container if there - /// is only one container in the pod. - /// - /// - /// Redirect the standard error stream of the pod for this call. Defaults to true. - /// - /// - /// Redirect the standard input stream of the pod for this call. Defaults to false. - /// - /// - /// Redirect the standard output stream of the pod for this call. Defaults to true. - /// - /// - /// TTY if true indicates that a tty will be allocated for the exec call. Defaults - /// to false. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectGetNamespacedPodExecAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string command = null, - string container = null, - bool? stderr = null, - bool? stdin = null, - bool? stdout = null, - bool? tty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectGetNamespacedPodExecWithHttpMessagesAsync( - name, - namespaceParameter, - command, - container, - stderr, - stdin, - stdout, - tty, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect POST requests to exec of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodExecOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Command is the remote command to execute. argv array. Not executed within a - /// shell. - /// - /// - /// Container in which to execute the command. Defaults to only container if there - /// is only one container in the pod. - /// - /// - /// Redirect the standard error stream of the pod for this call. Defaults to true. - /// - /// - /// Redirect the standard input stream of the pod for this call. Defaults to false. - /// - /// - /// Redirect the standard output stream of the pod for this call. Defaults to true. - /// - /// - /// TTY if true indicates that a tty will be allocated for the exec call. Defaults - /// to false. - /// - public static Stream ConnectPostNamespacedPodExec( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string command = null - ,string container = null - ,bool? stderr = null - ,bool? stdin = null - ,bool? stdout = null - ,bool? tty = null - ) - { - return operations.ConnectPostNamespacedPodExecAsync( - name, - namespaceParameter, - command, - container, - stderr, - stdin, - stdout, - tty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect POST requests to exec of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodExecOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Command is the remote command to execute. argv array. Not executed within a - /// shell. - /// - /// - /// Container in which to execute the command. Defaults to only container if there - /// is only one container in the pod. - /// - /// - /// Redirect the standard error stream of the pod for this call. Defaults to true. - /// - /// - /// Redirect the standard input stream of the pod for this call. Defaults to false. - /// - /// - /// Redirect the standard output stream of the pod for this call. Defaults to true. - /// - /// - /// TTY if true indicates that a tty will be allocated for the exec call. Defaults - /// to false. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectPostNamespacedPodExecAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string command = null, - string container = null, - bool? stderr = null, - bool? stdin = null, - bool? stdout = null, - bool? tty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectPostNamespacedPodExecWithHttpMessagesAsync( - name, - namespaceParameter, - command, - container, - stderr, - stdin, - stdout, - tty, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// read log of the specified Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The container for which to stream logs. Defaults to only container if there is - /// one container in the pod. - /// - /// - /// Follow the log stream of the pod. Defaults to false. - /// - /// - /// insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the - /// validity of the serving certificate of the backend it is connecting to. This - /// will make the HTTPS connection between the apiserver and the backend insecure. - /// This means the apiserver cannot verify the log data it is receiving came from - /// the real kubelet. If the kubelet is configured to verify the apiserver's TLS - /// credentials, it does not mean the connection to the real kubelet is vulnerable - /// to a man in the middle attack (e.g. an attacker could not intercept the actual - /// log data coming from the real kubelet). - /// - /// - /// If set, the number of bytes to read from the server before terminating the log - /// output. This may not display a complete final line of logging, and may return - /// slightly more or slightly less than the specified limit. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Return previous terminated container logs. Defaults to false. - /// - /// - /// 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. - /// - /// - /// 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 - /// - /// - /// If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line - /// of log output. Defaults to false. - /// - public static Stream ReadNamespacedPodLog( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string container = null - ,bool? follow = null - ,bool? insecureSkipTLSVerifyBackend = null - ,int? limitBytes = null - ,bool? pretty = null - ,bool? previous = null - ,int? sinceSeconds = null - ,int? tailLines = null - ,bool? timestamps = null - ) - { - return operations.ReadNamespacedPodLogAsync( - name, - namespaceParameter, - container, - follow, - insecureSkipTLSVerifyBackend, - limitBytes, - pretty, - previous, - sinceSeconds, - tailLines, - timestamps, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read log of the specified Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The container for which to stream logs. Defaults to only container if there is - /// one container in the pod. - /// - /// - /// Follow the log stream of the pod. Defaults to false. - /// - /// - /// insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the - /// validity of the serving certificate of the backend it is connecting to. This - /// will make the HTTPS connection between the apiserver and the backend insecure. - /// This means the apiserver cannot verify the log data it is receiving came from - /// the real kubelet. If the kubelet is configured to verify the apiserver's TLS - /// credentials, it does not mean the connection to the real kubelet is vulnerable - /// to a man in the middle attack (e.g. an attacker could not intercept the actual - /// log data coming from the real kubelet). - /// - /// - /// If set, the number of bytes to read from the server before terminating the log - /// output. This may not display a complete final line of logging, and may return - /// slightly more or slightly less than the specified limit. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Return previous terminated container logs. Defaults to false. - /// - /// - /// 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. - /// - /// - /// 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 - /// - /// - /// If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line - /// of log output. Defaults to false. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedPodLogAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string container = null, - bool? follow = null, - bool? insecureSkipTLSVerifyBackend = null, - int? limitBytes = null, - bool? pretty = null, - bool? previous = null, - int? sinceSeconds = null, - int? tailLines = null, - bool? timestamps = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ReadNamespacedPodLogWithHttpMessagesAsync( - name, - namespaceParameter, - container, - follow, - insecureSkipTLSVerifyBackend, - limitBytes, - pretty, - previous, - sinceSeconds, - tailLines, - timestamps, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect GET requests to portforward of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodPortForwardOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// List of ports to forward Required when using WebSockets - /// - public static Stream ConnectGetNamespacedPodPortforward( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,int? ports = null - ) - { - return operations.ConnectGetNamespacedPodPortforwardAsync( - name, - namespaceParameter, - ports, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect GET requests to portforward of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodPortForwardOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// List of ports to forward Required when using WebSockets - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectGetNamespacedPodPortforwardAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - int? ports = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectGetNamespacedPodPortforwardWithHttpMessagesAsync( - name, - namespaceParameter, - ports, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect POST requests to portforward of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodPortForwardOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// List of ports to forward Required when using WebSockets - /// - public static Stream ConnectPostNamespacedPodPortforward( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,int? ports = null - ) - { - return operations.ConnectPostNamespacedPodPortforwardAsync( - name, - namespaceParameter, - ports, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect POST requests to portforward of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodPortForwardOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// List of ports to forward Required when using WebSockets - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectPostNamespacedPodPortforwardAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - int? ports = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectPostNamespacedPodPortforwardWithHttpMessagesAsync( - name, - namespaceParameter, - ports, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect DELETE requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - public static Stream ConnectDeleteNamespacedPodProxy( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string path = null - ) - { - return operations.ConnectDeleteNamespacedPodProxyAsync( - name, - namespaceParameter, - path, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect DELETE requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectDeleteNamespacedPodProxyAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string path = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectDeleteNamespacedPodProxyWithHttpMessagesAsync( - name, - namespaceParameter, - path, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect GET requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - public static Stream ConnectGetNamespacedPodProxy( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string path = null - ) - { - return operations.ConnectGetNamespacedPodProxyAsync( - name, - namespaceParameter, - path, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect GET requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectGetNamespacedPodProxyAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string path = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectGetNamespacedPodProxyWithHttpMessagesAsync( - name, - namespaceParameter, - path, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect HEAD requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - public static Stream ConnectHeadNamespacedPodProxy( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string path = null - ) - { - return operations.ConnectHeadNamespacedPodProxyAsync( - name, - namespaceParameter, - path, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect HEAD requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectHeadNamespacedPodProxyAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string path = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectHeadNamespacedPodProxyWithHttpMessagesAsync( - name, - namespaceParameter, - path, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect PATCH requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - public static Stream ConnectPatchNamespacedPodProxy( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string path = null - ) - { - return operations.ConnectPatchNamespacedPodProxyAsync( - name, - namespaceParameter, - path, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect PATCH requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectPatchNamespacedPodProxyAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string path = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectPatchNamespacedPodProxyWithHttpMessagesAsync( - name, - namespaceParameter, - path, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect POST requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - public static Stream ConnectPostNamespacedPodProxy( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string path = null - ) - { - return operations.ConnectPostNamespacedPodProxyAsync( - name, - namespaceParameter, - path, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect POST requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectPostNamespacedPodProxyAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string path = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectPostNamespacedPodProxyWithHttpMessagesAsync( - name, - namespaceParameter, - path, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect PUT requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - public static Stream ConnectPutNamespacedPodProxy( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string path = null - ) - { - return operations.ConnectPutNamespacedPodProxyAsync( - name, - namespaceParameter, - path, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect PUT requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectPutNamespacedPodProxyAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string path = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectPutNamespacedPodProxyWithHttpMessagesAsync( - name, - namespaceParameter, - path, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect DELETE requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - public static Stream ConnectDeleteNamespacedPodProxyWithPath( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string path - ,string path1 = null - ) - { - return operations.ConnectDeleteNamespacedPodProxyWithPathAsync( - name, - namespaceParameter, - path, - path1, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect DELETE requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectDeleteNamespacedPodProxyWithPathAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string path, - string path1 = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectDeleteNamespacedPodProxyWithPathWithHttpMessagesAsync( - name, - namespaceParameter, - path, - path1, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect GET requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - public static Stream ConnectGetNamespacedPodProxyWithPath( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string path - ,string path1 = null - ) - { - return operations.ConnectGetNamespacedPodProxyWithPathAsync( - name, - namespaceParameter, - path, - path1, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect GET requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectGetNamespacedPodProxyWithPathAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string path, - string path1 = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectGetNamespacedPodProxyWithPathWithHttpMessagesAsync( - name, - namespaceParameter, - path, - path1, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect HEAD requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - public static Stream ConnectHeadNamespacedPodProxyWithPath( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string path - ,string path1 = null - ) - { - return operations.ConnectHeadNamespacedPodProxyWithPathAsync( - name, - namespaceParameter, - path, - path1, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect HEAD requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectHeadNamespacedPodProxyWithPathAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string path, - string path1 = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectHeadNamespacedPodProxyWithPathWithHttpMessagesAsync( - name, - namespaceParameter, - path, - path1, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect PATCH requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - public static Stream ConnectPatchNamespacedPodProxyWithPath( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string path - ,string path1 = null - ) - { - return operations.ConnectPatchNamespacedPodProxyWithPathAsync( - name, - namespaceParameter, - path, - path1, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect PATCH requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectPatchNamespacedPodProxyWithPathAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string path, - string path1 = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectPatchNamespacedPodProxyWithPathWithHttpMessagesAsync( - name, - namespaceParameter, - path, - path1, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect POST requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - public static Stream ConnectPostNamespacedPodProxyWithPath( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string path - ,string path1 = null - ) - { - return operations.ConnectPostNamespacedPodProxyWithPathAsync( - name, - namespaceParameter, - path, - path1, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect POST requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectPostNamespacedPodProxyWithPathAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string path, - string path1 = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectPostNamespacedPodProxyWithPathWithHttpMessagesAsync( - name, - namespaceParameter, - path, - path1, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect PUT requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - public static Stream ConnectPutNamespacedPodProxyWithPath( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string path - ,string path1 = null - ) - { - return operations.ConnectPutNamespacedPodProxyWithPathAsync( - name, - namespaceParameter, - path, - path1, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect PUT requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to pod. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectPutNamespacedPodProxyWithPathAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string path, - string path1 = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectPutNamespacedPodProxyWithPathWithHttpMessagesAsync( - name, - namespaceParameter, - path, - path1, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// read status of the specified Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Pod ReadNamespacedPodStatus( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedPodStatusAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedPodStatusAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedPodStatusWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Pod PatchNamespacedPodStatus( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedPodStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedPodStatusAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedPodStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Pod ReplaceNamespacedPodStatus( - this IKubernetes operations - ,V1Pod body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedPodStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedPodStatusAsync( - this IKubernetes operations, - V1Pod body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedPodStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of PodTemplate - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedPodTemplate( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedPodTemplateAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of PodTemplate - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedPodTemplateAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedPodTemplateWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind PodTemplate - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PodTemplateList ListNamespacedPodTemplate( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedPodTemplateAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind PodTemplate - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedPodTemplateAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedPodTemplateWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a PodTemplate - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PodTemplate CreateNamespacedPodTemplate( - this IKubernetes operations - ,V1PodTemplate body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedPodTemplateAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a PodTemplate - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedPodTemplateAsync( - this IKubernetes operations, - V1PodTemplate body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedPodTemplateWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a PodTemplate - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodTemplate - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PodTemplate DeleteNamespacedPodTemplate( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedPodTemplateAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a PodTemplate - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodTemplate - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedPodTemplateAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedPodTemplateWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified PodTemplate - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodTemplate - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PodTemplate ReadNamespacedPodTemplate( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedPodTemplateAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified PodTemplate - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodTemplate - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedPodTemplateAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedPodTemplateWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified PodTemplate - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PodTemplate - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PodTemplate PatchNamespacedPodTemplate( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedPodTemplateAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified PodTemplate - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PodTemplate - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedPodTemplateAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedPodTemplateWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified PodTemplate - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PodTemplate - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PodTemplate ReplaceNamespacedPodTemplate( - this IKubernetes operations - ,V1PodTemplate body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedPodTemplateAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified PodTemplate - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PodTemplate - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedPodTemplateAsync( - this IKubernetes operations, - V1PodTemplate body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedPodTemplateWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedReplicationController( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedReplicationControllerAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedReplicationControllerAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedReplicationControllerWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ReplicationControllerList ListNamespacedReplicationController( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedReplicationControllerAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedReplicationControllerAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedReplicationControllerWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ReplicationController CreateNamespacedReplicationController( - this IKubernetes operations - ,V1ReplicationController body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedReplicationControllerAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedReplicationControllerAsync( - this IKubernetes operations, - V1ReplicationController body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedReplicationControllerWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedReplicationController( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedReplicationControllerAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedReplicationControllerAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedReplicationControllerWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ReplicationController ReadNamespacedReplicationController( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedReplicationControllerAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedReplicationControllerAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedReplicationControllerWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ReplicationController PatchNamespacedReplicationController( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedReplicationControllerAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedReplicationControllerAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedReplicationControllerWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ReplicationController ReplaceNamespacedReplicationController( - this IKubernetes operations - ,V1ReplicationController body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedReplicationControllerAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedReplicationControllerAsync( - this IKubernetes operations, - V1ReplicationController body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedReplicationControllerWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read scale of the specified ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Scale ReadNamespacedReplicationControllerScale( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedReplicationControllerScaleAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read scale of the specified ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedReplicationControllerScaleAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedReplicationControllerScaleWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update scale of the specified ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Scale PatchNamespacedReplicationControllerScale( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedReplicationControllerScaleAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update scale of the specified ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedReplicationControllerScaleAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedReplicationControllerScaleWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace scale of the specified ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Scale ReplaceNamespacedReplicationControllerScale( - this IKubernetes operations - ,V1Scale body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedReplicationControllerScaleAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace scale of the specified ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedReplicationControllerScaleAsync( - this IKubernetes operations, - V1Scale body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedReplicationControllerScaleWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ReplicationController ReadNamespacedReplicationControllerStatus( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedReplicationControllerStatusAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedReplicationControllerStatusAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedReplicationControllerStatusWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ReplicationController PatchNamespacedReplicationControllerStatus( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedReplicationControllerStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedReplicationControllerStatusAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedReplicationControllerStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ReplicationController ReplaceNamespacedReplicationControllerStatus( - this IKubernetes operations - ,V1ReplicationController body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedReplicationControllerStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedReplicationControllerStatusAsync( - this IKubernetes operations, - V1ReplicationController body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedReplicationControllerStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of ResourceQuota - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedResourceQuota( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedResourceQuotaAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of ResourceQuota - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedResourceQuotaAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedResourceQuotaWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind ResourceQuota - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ResourceQuotaList ListNamespacedResourceQuota( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedResourceQuotaAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ResourceQuota - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedResourceQuotaAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedResourceQuotaWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a ResourceQuota - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ResourceQuota CreateNamespacedResourceQuota( - this IKubernetes operations - ,V1ResourceQuota body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedResourceQuotaAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a ResourceQuota - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedResourceQuotaAsync( - this IKubernetes operations, - V1ResourceQuota body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedResourceQuotaWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a ResourceQuota - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ResourceQuota DeleteNamespacedResourceQuota( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedResourceQuotaAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a ResourceQuota - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedResourceQuotaAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedResourceQuotaWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified ResourceQuota - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ResourceQuota ReadNamespacedResourceQuota( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedResourceQuotaAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified ResourceQuota - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedResourceQuotaAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedResourceQuotaWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified ResourceQuota - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ResourceQuota PatchNamespacedResourceQuota( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedResourceQuotaAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified ResourceQuota - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedResourceQuotaAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedResourceQuotaWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified ResourceQuota - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ResourceQuota ReplaceNamespacedResourceQuota( - this IKubernetes operations - ,V1ResourceQuota body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedResourceQuotaAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified ResourceQuota - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedResourceQuotaAsync( - this IKubernetes operations, - V1ResourceQuota body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedResourceQuotaWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified ResourceQuota - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ResourceQuota ReadNamespacedResourceQuotaStatus( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedResourceQuotaStatusAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified ResourceQuota - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedResourceQuotaStatusAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedResourceQuotaStatusWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified ResourceQuota - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ResourceQuota PatchNamespacedResourceQuotaStatus( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedResourceQuotaStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified ResourceQuota - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedResourceQuotaStatusAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedResourceQuotaStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified ResourceQuota - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ResourceQuota ReplaceNamespacedResourceQuotaStatus( - this IKubernetes operations - ,V1ResourceQuota body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedResourceQuotaStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified ResourceQuota - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedResourceQuotaStatusAsync( - this IKubernetes operations, - V1ResourceQuota body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedResourceQuotaStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of Secret - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedSecret( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedSecretAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of Secret - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedSecretAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedSecretWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Secret - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1SecretList ListNamespacedSecret( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedSecretAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Secret - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedSecretAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedSecretWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a Secret - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Secret CreateNamespacedSecret( - this IKubernetes operations - ,V1Secret body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedSecretAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a Secret - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedSecretAsync( - this IKubernetes operations, - V1Secret body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedSecretWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a Secret - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Secret - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedSecret( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedSecretAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a Secret - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Secret - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedSecretAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedSecretWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified Secret - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Secret - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Secret ReadNamespacedSecret( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedSecretAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified Secret - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Secret - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedSecretAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedSecretWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified Secret - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Secret - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Secret PatchNamespacedSecret( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedSecretAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified Secret - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Secret - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedSecretAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedSecretWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified Secret - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Secret - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Secret ReplaceNamespacedSecret( - this IKubernetes operations - ,V1Secret body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedSecretAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified Secret - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Secret - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedSecretAsync( - this IKubernetes operations, - V1Secret body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedSecretWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of ServiceAccount - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedServiceAccount( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedServiceAccountAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of ServiceAccount - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedServiceAccountAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedServiceAccountWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind ServiceAccount - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ServiceAccountList ListNamespacedServiceAccount( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedServiceAccountAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ServiceAccount - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedServiceAccountAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedServiceAccountWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a ServiceAccount - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ServiceAccount CreateNamespacedServiceAccount( - this IKubernetes operations - ,V1ServiceAccount body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedServiceAccountAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a ServiceAccount - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedServiceAccountAsync( - this IKubernetes operations, - V1ServiceAccount body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedServiceAccountWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a ServiceAccount - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceAccount - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ServiceAccount DeleteNamespacedServiceAccount( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedServiceAccountAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a ServiceAccount - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceAccount - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedServiceAccountAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedServiceAccountWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified ServiceAccount - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceAccount - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ServiceAccount ReadNamespacedServiceAccount( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedServiceAccountAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified ServiceAccount - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceAccount - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedServiceAccountAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedServiceAccountWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified ServiceAccount - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ServiceAccount - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ServiceAccount PatchNamespacedServiceAccount( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedServiceAccountAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified ServiceAccount - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ServiceAccount - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedServiceAccountAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedServiceAccountWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified ServiceAccount - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ServiceAccount - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ServiceAccount ReplaceNamespacedServiceAccount( - this IKubernetes operations - ,V1ServiceAccount body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedServiceAccountAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified ServiceAccount - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ServiceAccount - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedServiceAccountAsync( - this IKubernetes operations, - V1ServiceAccount body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedServiceAccountWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create token of a ServiceAccount - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the TokenRequest - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Authenticationv1TokenRequest CreateNamespacedServiceAccountToken( - this IKubernetes operations - ,Authenticationv1TokenRequest body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedServiceAccountTokenAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create token of a ServiceAccount - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the TokenRequest - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedServiceAccountTokenAsync( - this IKubernetes operations, - Authenticationv1TokenRequest body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedServiceAccountTokenWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ServiceList ListNamespacedService( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedServiceAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedServiceAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedServiceWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Service CreateNamespacedService( - this IKubernetes operations - ,V1Service body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedServiceAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedServiceAsync( - this IKubernetes operations, - V1Service body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedServiceWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedService( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedServiceAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedServiceAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedServiceWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Service ReadNamespacedService( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedServiceAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedServiceAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedServiceWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Service PatchNamespacedService( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedServiceAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedServiceAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedServiceWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Service ReplaceNamespacedService( - this IKubernetes operations - ,V1Service body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedServiceAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedServiceAsync( - this IKubernetes operations, - V1Service body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedServiceWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect DELETE requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - public static Stream ConnectDeleteNamespacedServiceProxy( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string path = null - ) - { - return operations.ConnectDeleteNamespacedServiceProxyAsync( - name, - namespaceParameter, - path, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect DELETE requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectDeleteNamespacedServiceProxyAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string path = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectDeleteNamespacedServiceProxyWithHttpMessagesAsync( - name, - namespaceParameter, - path, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect GET requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - public static Stream ConnectGetNamespacedServiceProxy( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string path = null - ) - { - return operations.ConnectGetNamespacedServiceProxyAsync( - name, - namespaceParameter, - path, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect GET requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectGetNamespacedServiceProxyAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string path = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectGetNamespacedServiceProxyWithHttpMessagesAsync( - name, - namespaceParameter, - path, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect HEAD requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - public static Stream ConnectHeadNamespacedServiceProxy( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string path = null - ) - { - return operations.ConnectHeadNamespacedServiceProxyAsync( - name, - namespaceParameter, - path, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect HEAD requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectHeadNamespacedServiceProxyAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string path = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectHeadNamespacedServiceProxyWithHttpMessagesAsync( - name, - namespaceParameter, - path, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect PATCH requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - public static Stream ConnectPatchNamespacedServiceProxy( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string path = null - ) - { - return operations.ConnectPatchNamespacedServiceProxyAsync( - name, - namespaceParameter, - path, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect PATCH requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectPatchNamespacedServiceProxyAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string path = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectPatchNamespacedServiceProxyWithHttpMessagesAsync( - name, - namespaceParameter, - path, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect POST requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - public static Stream ConnectPostNamespacedServiceProxy( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string path = null - ) - { - return operations.ConnectPostNamespacedServiceProxyAsync( - name, - namespaceParameter, - path, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect POST requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectPostNamespacedServiceProxyAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string path = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectPostNamespacedServiceProxyWithHttpMessagesAsync( - name, - namespaceParameter, - path, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect PUT requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - public static Stream ConnectPutNamespacedServiceProxy( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string path = null - ) - { - return operations.ConnectPutNamespacedServiceProxyAsync( - name, - namespaceParameter, - path, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect PUT requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectPutNamespacedServiceProxyAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string path = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectPutNamespacedServiceProxyWithHttpMessagesAsync( - name, - namespaceParameter, - path, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect DELETE requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - public static Stream ConnectDeleteNamespacedServiceProxyWithPath( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string path - ,string path1 = null - ) - { - return operations.ConnectDeleteNamespacedServiceProxyWithPathAsync( - name, - namespaceParameter, - path, - path1, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect DELETE requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectDeleteNamespacedServiceProxyWithPathAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string path, - string path1 = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectDeleteNamespacedServiceProxyWithPathWithHttpMessagesAsync( - name, - namespaceParameter, - path, - path1, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect GET requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - public static Stream ConnectGetNamespacedServiceProxyWithPath( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string path - ,string path1 = null - ) - { - return operations.ConnectGetNamespacedServiceProxyWithPathAsync( - name, - namespaceParameter, - path, - path1, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect GET requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectGetNamespacedServiceProxyWithPathAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string path, - string path1 = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectGetNamespacedServiceProxyWithPathWithHttpMessagesAsync( - name, - namespaceParameter, - path, - path1, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect HEAD requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - public static Stream ConnectHeadNamespacedServiceProxyWithPath( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string path - ,string path1 = null - ) - { - return operations.ConnectHeadNamespacedServiceProxyWithPathAsync( - name, - namespaceParameter, - path, - path1, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect HEAD requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectHeadNamespacedServiceProxyWithPathAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string path, - string path1 = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectHeadNamespacedServiceProxyWithPathWithHttpMessagesAsync( - name, - namespaceParameter, - path, - path1, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect PATCH requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - public static Stream ConnectPatchNamespacedServiceProxyWithPath( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string path - ,string path1 = null - ) - { - return operations.ConnectPatchNamespacedServiceProxyWithPathAsync( - name, - namespaceParameter, - path, - path1, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect PATCH requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectPatchNamespacedServiceProxyWithPathAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string path, - string path1 = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectPatchNamespacedServiceProxyWithPathWithHttpMessagesAsync( - name, - namespaceParameter, - path, - path1, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect POST requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - public static Stream ConnectPostNamespacedServiceProxyWithPath( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string path - ,string path1 = null - ) - { - return operations.ConnectPostNamespacedServiceProxyWithPathAsync( - name, - namespaceParameter, - path, - path1, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect POST requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectPostNamespacedServiceProxyWithPathAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string path, - string path1 = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectPostNamespacedServiceProxyWithPathWithHttpMessagesAsync( - name, - namespaceParameter, - path, - path1, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect PUT requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - public static Stream ConnectPutNamespacedServiceProxyWithPath( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,string path - ,string path1 = null - ) - { - return operations.ConnectPutNamespacedServiceProxyWithPathAsync( - name, - namespaceParameter, - path, - path1, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect PUT requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ServiceProxyOptions - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Path is the part of URLs that include service endpoints, suffixes, and - /// parameters to use for the current proxy request to service. For example, the - /// whole request URL is - /// http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - /// Path is _search?q=user:kimchy. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectPutNamespacedServiceProxyWithPathAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - string path, - string path1 = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectPutNamespacedServiceProxyWithPathWithHttpMessagesAsync( - name, - namespaceParameter, - path, - path1, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// read status of the specified Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Service ReadNamespacedServiceStatus( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedServiceStatusAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedServiceStatusAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedServiceStatusWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Service PatchNamespacedServiceStatus( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedServiceStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedServiceStatusAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedServiceStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Service ReplaceNamespacedServiceStatus( - this IKubernetes operations - ,V1Service body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedServiceStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedServiceStatusAsync( - this IKubernetes operations, - V1Service body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedServiceStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Namespace - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespace( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespaceAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Namespace - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespaceAsync( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespaceWithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Namespace - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Namespace ReadNamespace( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadNamespaceAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Namespace - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespaceAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespaceWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Namespace PatchNamespace( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespaceAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespaceAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespaceWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Namespace ReplaceNamespace( - this IKubernetes operations - ,V1Namespace body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespaceAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespaceAsync( - this IKubernetes operations, - V1Namespace body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespaceWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace finalize of the specified Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Namespace ReplaceNamespaceFinalize( - this IKubernetes operations - ,V1Namespace body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespaceFinalizeAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace finalize of the specified Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespaceFinalizeAsync( - this IKubernetes operations, - V1Namespace body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespaceFinalizeWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Namespace - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Namespace ReadNamespaceStatus( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadNamespaceStatusAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Namespace - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespaceStatusAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespaceStatusWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Namespace PatchNamespaceStatus( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespaceStatusAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespaceStatusAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespaceStatusWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Namespace ReplaceNamespaceStatus( - this IKubernetes operations - ,V1Namespace body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespaceStatusAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespaceStatusAsync( - this IKubernetes operations, - V1Namespace body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespaceStatusWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNode( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNodeAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNodeAsync( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNodeWithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1NodeList ListNode( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNodeAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNodeAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNodeWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Node CreateNode( - this IKubernetes operations - ,V1Node body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNodeAsync( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNodeAsync( - this IKubernetes operations, - V1Node body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNodeWithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNode( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNodeAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNodeAsync( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNodeWithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Node ReadNode( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadNodeAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNodeAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNodeWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Node - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Node PatchNode( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNodeAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Node - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNodeAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNodeWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Node - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Node ReplaceNode( - this IKubernetes operations - ,V1Node body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNodeAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Node - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNodeAsync( - this IKubernetes operations, - V1Node body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNodeWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect DELETE requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - public static Stream ConnectDeleteNodeProxy( - this IKubernetes operations - ,string name - ,string path = null - ) - { - return operations.ConnectDeleteNodeProxyAsync( - name, - path, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect DELETE requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectDeleteNodeProxyAsync( - this IKubernetes operations, - string name, - string path = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectDeleteNodeProxyWithHttpMessagesAsync( - name, - path, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect GET requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - public static Stream ConnectGetNodeProxy( - this IKubernetes operations - ,string name - ,string path = null - ) - { - return operations.ConnectGetNodeProxyAsync( - name, - path, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect GET requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectGetNodeProxyAsync( - this IKubernetes operations, - string name, - string path = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectGetNodeProxyWithHttpMessagesAsync( - name, - path, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect HEAD requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - public static Stream ConnectHeadNodeProxy( - this IKubernetes operations - ,string name - ,string path = null - ) - { - return operations.ConnectHeadNodeProxyAsync( - name, - path, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect HEAD requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectHeadNodeProxyAsync( - this IKubernetes operations, - string name, - string path = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectHeadNodeProxyWithHttpMessagesAsync( - name, - path, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect PATCH requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - public static Stream ConnectPatchNodeProxy( - this IKubernetes operations - ,string name - ,string path = null - ) - { - return operations.ConnectPatchNodeProxyAsync( - name, - path, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect PATCH requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectPatchNodeProxyAsync( - this IKubernetes operations, - string name, - string path = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectPatchNodeProxyWithHttpMessagesAsync( - name, - path, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect POST requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - public static Stream ConnectPostNodeProxy( - this IKubernetes operations - ,string name - ,string path = null - ) - { - return operations.ConnectPostNodeProxyAsync( - name, - path, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect POST requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectPostNodeProxyAsync( - this IKubernetes operations, - string name, - string path = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectPostNodeProxyWithHttpMessagesAsync( - name, - path, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect PUT requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - public static Stream ConnectPutNodeProxy( - this IKubernetes operations - ,string name - ,string path = null - ) - { - return operations.ConnectPutNodeProxyAsync( - name, - path, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect PUT requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectPutNodeProxyAsync( - this IKubernetes operations, - string name, - string path = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectPutNodeProxyWithHttpMessagesAsync( - name, - path, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect DELETE requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - public static Stream ConnectDeleteNodeProxyWithPath( - this IKubernetes operations - ,string name - ,string path - ,string path1 = null - ) - { - return operations.ConnectDeleteNodeProxyWithPathAsync( - name, - path, - path1, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect DELETE requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectDeleteNodeProxyWithPathAsync( - this IKubernetes operations, - string name, - string path, - string path1 = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectDeleteNodeProxyWithPathWithHttpMessagesAsync( - name, - path, - path1, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect GET requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - public static Stream ConnectGetNodeProxyWithPath( - this IKubernetes operations - ,string name - ,string path - ,string path1 = null - ) - { - return operations.ConnectGetNodeProxyWithPathAsync( - name, - path, - path1, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect GET requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectGetNodeProxyWithPathAsync( - this IKubernetes operations, - string name, - string path, - string path1 = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectGetNodeProxyWithPathWithHttpMessagesAsync( - name, - path, - path1, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect HEAD requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - public static Stream ConnectHeadNodeProxyWithPath( - this IKubernetes operations - ,string name - ,string path - ,string path1 = null - ) - { - return operations.ConnectHeadNodeProxyWithPathAsync( - name, - path, - path1, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect HEAD requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectHeadNodeProxyWithPathAsync( - this IKubernetes operations, - string name, - string path, - string path1 = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectHeadNodeProxyWithPathWithHttpMessagesAsync( - name, - path, - path1, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect PATCH requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - public static Stream ConnectPatchNodeProxyWithPath( - this IKubernetes operations - ,string name - ,string path - ,string path1 = null - ) - { - return operations.ConnectPatchNodeProxyWithPathAsync( - name, - path, - path1, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect PATCH requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectPatchNodeProxyWithPathAsync( - this IKubernetes operations, - string name, - string path, - string path1 = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectPatchNodeProxyWithPathWithHttpMessagesAsync( - name, - path, - path1, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect POST requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - public static Stream ConnectPostNodeProxyWithPath( - this IKubernetes operations - ,string name - ,string path - ,string path1 = null - ) - { - return operations.ConnectPostNodeProxyWithPathAsync( - name, - path, - path1, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect POST requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectPostNodeProxyWithPathAsync( - this IKubernetes operations, - string name, - string path, - string path1 = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectPostNodeProxyWithPathWithHttpMessagesAsync( - name, - path, - path1, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// connect PUT requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - public static Stream ConnectPutNodeProxyWithPath( - this IKubernetes operations - ,string name - ,string path - ,string path1 = null - ) - { - return operations.ConnectPutNodeProxyWithPathAsync( - name, - path, - path1, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// connect PUT requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NodeProxyOptions - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ConnectPutNodeProxyWithPathAsync( - this IKubernetes operations, - string name, - string path, - string path1 = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - var _result = await operations.ConnectPutNodeProxyWithPathWithHttpMessagesAsync( - name, - path, - path1, - null, - cancellationToken); - _result.Request.Dispose(); - return _result.Body; - } - - /// - /// read status of the specified Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Node ReadNodeStatus( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadNodeStatusAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNodeStatusAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNodeStatusWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Node - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Node PatchNodeStatus( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNodeStatusAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Node - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNodeStatusAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNodeStatusWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Node - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Node ReplaceNodeStatus( - this IKubernetes operations - ,V1Node body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNodeStatusAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Node - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNodeStatusAsync( - this IKubernetes operations, - V1Node body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNodeStatusWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind PersistentVolumeClaim - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1PersistentVolumeClaimList ListPersistentVolumeClaimForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListPersistentVolumeClaimForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind PersistentVolumeClaim - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListPersistentVolumeClaimForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListPersistentVolumeClaimForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionPersistentVolume( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionPersistentVolumeAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionPersistentVolumeAsync( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionPersistentVolumeWithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolumeList ListPersistentVolume( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListPersistentVolumeAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListPersistentVolumeAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListPersistentVolumeWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolume CreatePersistentVolume( - this IKubernetes operations - ,V1PersistentVolume body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreatePersistentVolumeAsync( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreatePersistentVolumeAsync( - this IKubernetes operations, - V1PersistentVolume body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreatePersistentVolumeWithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PersistentVolume - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolume DeletePersistentVolume( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeletePersistentVolumeAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PersistentVolume - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeletePersistentVolumeAsync( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeletePersistentVolumeWithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PersistentVolume - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolume ReadPersistentVolume( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadPersistentVolumeAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PersistentVolume - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadPersistentVolumeAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadPersistentVolumeWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolume PatchPersistentVolume( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchPersistentVolumeAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchPersistentVolumeAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchPersistentVolumeWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolume ReplacePersistentVolume( - this IKubernetes operations - ,V1PersistentVolume body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplacePersistentVolumeAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplacePersistentVolumeAsync( - this IKubernetes operations, - V1PersistentVolume body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplacePersistentVolumeWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PersistentVolume - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolume ReadPersistentVolumeStatus( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadPersistentVolumeStatusAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PersistentVolume - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadPersistentVolumeStatusAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadPersistentVolumeStatusWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolume PatchPersistentVolumeStatus( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchPersistentVolumeStatusAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchPersistentVolumeStatusAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchPersistentVolumeStatusWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolume ReplacePersistentVolumeStatus( - this IKubernetes operations - ,V1PersistentVolume body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplacePersistentVolumeStatusAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplacePersistentVolumeStatusAsync( - this IKubernetes operations, - V1PersistentVolume body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplacePersistentVolumeStatusWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1PodList ListPodForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListPodForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListPodForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListPodForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind PodTemplate - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1PodTemplateList ListPodTemplateForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListPodTemplateForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind PodTemplate - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListPodTemplateForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListPodTemplateForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1ReplicationControllerList ListReplicationControllerForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListReplicationControllerForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListReplicationControllerForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListReplicationControllerForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind ResourceQuota - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1ResourceQuotaList ListResourceQuotaForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListResourceQuotaForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ResourceQuota - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListResourceQuotaForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListResourceQuotaForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Secret - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1SecretList ListSecretForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListSecretForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Secret - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListSecretForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListSecretForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind ServiceAccount - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1ServiceAccountList ListServiceAccountForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListServiceAccountForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ServiceAccount - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListServiceAccountForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListServiceAccountForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1ServiceList ListServiceForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListServiceForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListServiceForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListServiceForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - public static V1APIGroup GetAPIGroup( - this IKubernetes operations - ) - { - return operations.GetAPIGroupAsync( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIGroupAsync( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIGroupWithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - public static V1APIGroup GetAPIGroup1( - this IKubernetes operations - ) - { - return operations.GetAPIGroup1Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIGroup1Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIGroup1WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - public static V1APIGroup GetAPIGroup2( - this IKubernetes operations - ) - { - return operations.GetAPIGroup2Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIGroup2Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIGroup2WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - public static V1APIGroup GetAPIGroup3( - this IKubernetes operations - ) - { - return operations.GetAPIGroup3Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIGroup3Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIGroup3WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - public static V1APIGroup GetAPIGroup4( - this IKubernetes operations - ) - { - return operations.GetAPIGroup4Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIGroup4Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIGroup4WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - public static V1APIGroup GetAPIGroup5( - this IKubernetes operations - ) - { - return operations.GetAPIGroup5Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIGroup5Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIGroup5WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - public static V1APIGroup GetAPIGroup6( - this IKubernetes operations - ) - { - return operations.GetAPIGroup6Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIGroup6Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIGroup6WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - public static V1APIGroup GetAPIGroup7( - this IKubernetes operations - ) - { - return operations.GetAPIGroup7Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIGroup7Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIGroup7WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - public static V1APIGroup GetAPIGroup8( - this IKubernetes operations - ) - { - return operations.GetAPIGroup8Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIGroup8Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIGroup8WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - public static V1APIGroup GetAPIGroup9( - this IKubernetes operations - ) - { - return operations.GetAPIGroup9Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIGroup9Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIGroup9WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - public static V1APIGroup GetAPIGroup10( - this IKubernetes operations - ) - { - return operations.GetAPIGroup10Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIGroup10Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIGroup10WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - public static V1APIGroup GetAPIGroup11( - this IKubernetes operations - ) - { - return operations.GetAPIGroup11Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIGroup11Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIGroup11WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - public static V1APIGroup GetAPIGroup12( - this IKubernetes operations - ) - { - return operations.GetAPIGroup12Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIGroup12Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIGroup12WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - public static V1APIGroup GetAPIGroup13( - this IKubernetes operations - ) - { - return operations.GetAPIGroup13Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIGroup13Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIGroup13WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - public static V1APIGroup GetAPIGroup14( - this IKubernetes operations - ) - { - return operations.GetAPIGroup14Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIGroup14Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIGroup14WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - public static V1APIGroup GetAPIGroup15( - this IKubernetes operations - ) - { - return operations.GetAPIGroup15Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIGroup15Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIGroup15WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - public static V1APIGroup GetAPIGroup16( - this IKubernetes operations - ) - { - return operations.GetAPIGroup16Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIGroup16Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIGroup16WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - public static V1APIGroup GetAPIGroup17( - this IKubernetes operations - ) - { - return operations.GetAPIGroup17Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIGroup17Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIGroup17WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - public static V1APIGroup GetAPIGroup18( - this IKubernetes operations - ) - { - return operations.GetAPIGroup18Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIGroup18Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIGroup18WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - public static V1APIGroup GetAPIGroup19( - this IKubernetes operations - ) - { - return operations.GetAPIGroup19Async( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetAPIGroup19Async( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetAPIGroup19WithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of MutatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionMutatingWebhookConfiguration( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionMutatingWebhookConfigurationAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of MutatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionMutatingWebhookConfigurationAsync( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionMutatingWebhookConfigurationWithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind MutatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1MutatingWebhookConfigurationList ListMutatingWebhookConfiguration( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListMutatingWebhookConfigurationAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind MutatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListMutatingWebhookConfigurationAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListMutatingWebhookConfigurationWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a MutatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1MutatingWebhookConfiguration CreateMutatingWebhookConfiguration( - this IKubernetes operations - ,V1MutatingWebhookConfiguration body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateMutatingWebhookConfigurationAsync( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a MutatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateMutatingWebhookConfigurationAsync( - this IKubernetes operations, - V1MutatingWebhookConfiguration body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateMutatingWebhookConfigurationWithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a MutatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the MutatingWebhookConfiguration - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteMutatingWebhookConfiguration( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteMutatingWebhookConfigurationAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a MutatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the MutatingWebhookConfiguration - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteMutatingWebhookConfigurationAsync( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteMutatingWebhookConfigurationWithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified MutatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the MutatingWebhookConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1MutatingWebhookConfiguration ReadMutatingWebhookConfiguration( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadMutatingWebhookConfigurationAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified MutatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the MutatingWebhookConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadMutatingWebhookConfigurationAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadMutatingWebhookConfigurationWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified MutatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the MutatingWebhookConfiguration - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1MutatingWebhookConfiguration PatchMutatingWebhookConfiguration( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchMutatingWebhookConfigurationAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified MutatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the MutatingWebhookConfiguration - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchMutatingWebhookConfigurationAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchMutatingWebhookConfigurationWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified MutatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the MutatingWebhookConfiguration - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1MutatingWebhookConfiguration ReplaceMutatingWebhookConfiguration( - this IKubernetes operations - ,V1MutatingWebhookConfiguration body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceMutatingWebhookConfigurationAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified MutatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the MutatingWebhookConfiguration - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceMutatingWebhookConfigurationAsync( - this IKubernetes operations, - V1MutatingWebhookConfiguration body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceMutatingWebhookConfigurationWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of ValidatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionValidatingWebhookConfiguration( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionValidatingWebhookConfigurationAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of ValidatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionValidatingWebhookConfigurationAsync( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionValidatingWebhookConfigurationWithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind ValidatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ValidatingWebhookConfigurationList ListValidatingWebhookConfiguration( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListValidatingWebhookConfigurationAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ValidatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListValidatingWebhookConfigurationAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListValidatingWebhookConfigurationWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a ValidatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ValidatingWebhookConfiguration CreateValidatingWebhookConfiguration( - this IKubernetes operations - ,V1ValidatingWebhookConfiguration body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateValidatingWebhookConfigurationAsync( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a ValidatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateValidatingWebhookConfigurationAsync( - this IKubernetes operations, - V1ValidatingWebhookConfiguration body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateValidatingWebhookConfigurationWithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a ValidatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ValidatingWebhookConfiguration - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteValidatingWebhookConfiguration( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteValidatingWebhookConfigurationAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a ValidatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ValidatingWebhookConfiguration - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteValidatingWebhookConfigurationAsync( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteValidatingWebhookConfigurationWithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified ValidatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ValidatingWebhookConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ValidatingWebhookConfiguration ReadValidatingWebhookConfiguration( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadValidatingWebhookConfigurationAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified ValidatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ValidatingWebhookConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadValidatingWebhookConfigurationAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadValidatingWebhookConfigurationWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified ValidatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ValidatingWebhookConfiguration - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ValidatingWebhookConfiguration PatchValidatingWebhookConfiguration( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchValidatingWebhookConfigurationAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified ValidatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ValidatingWebhookConfiguration - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchValidatingWebhookConfigurationAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchValidatingWebhookConfigurationWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified ValidatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ValidatingWebhookConfiguration - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ValidatingWebhookConfiguration ReplaceValidatingWebhookConfiguration( - this IKubernetes operations - ,V1ValidatingWebhookConfiguration body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceValidatingWebhookConfigurationAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified ValidatingWebhookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ValidatingWebhookConfiguration - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceValidatingWebhookConfigurationAsync( - this IKubernetes operations, - V1ValidatingWebhookConfiguration body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceValidatingWebhookConfigurationWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionCustomResourceDefinition( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionCustomResourceDefinitionAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionCustomResourceDefinitionAsync( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionCustomResourceDefinitionWithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CustomResourceDefinitionList ListCustomResourceDefinition( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListCustomResourceDefinitionAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListCustomResourceDefinitionAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListCustomResourceDefinitionWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CustomResourceDefinition CreateCustomResourceDefinition( - this IKubernetes operations - ,V1CustomResourceDefinition body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateCustomResourceDefinitionAsync( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateCustomResourceDefinitionAsync( - this IKubernetes operations, - V1CustomResourceDefinition body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateCustomResourceDefinitionWithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCustomResourceDefinition( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteCustomResourceDefinitionAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCustomResourceDefinitionAsync( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCustomResourceDefinitionWithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CustomResourceDefinition ReadCustomResourceDefinition( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadCustomResourceDefinitionAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadCustomResourceDefinitionAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadCustomResourceDefinitionWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CustomResourceDefinition PatchCustomResourceDefinition( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchCustomResourceDefinitionAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchCustomResourceDefinitionAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchCustomResourceDefinitionWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CustomResourceDefinition ReplaceCustomResourceDefinition( - this IKubernetes operations - ,V1CustomResourceDefinition body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceCustomResourceDefinitionAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceCustomResourceDefinitionAsync( - this IKubernetes operations, - V1CustomResourceDefinition body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceCustomResourceDefinitionWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CustomResourceDefinition ReadCustomResourceDefinitionStatus( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadCustomResourceDefinitionStatusAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadCustomResourceDefinitionStatusAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadCustomResourceDefinitionStatusWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CustomResourceDefinition PatchCustomResourceDefinitionStatus( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchCustomResourceDefinitionStatusAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchCustomResourceDefinitionStatusAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchCustomResourceDefinitionStatusWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CustomResourceDefinition ReplaceCustomResourceDefinitionStatus( - this IKubernetes operations - ,V1CustomResourceDefinition body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceCustomResourceDefinitionStatusAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceCustomResourceDefinitionStatusAsync( - this IKubernetes operations, - V1CustomResourceDefinition body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceCustomResourceDefinitionStatusWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionAPIService( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionAPIServiceAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionAPIServiceAsync( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionAPIServiceWithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1APIServiceList ListAPIService( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListAPIServiceAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListAPIServiceAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListAPIServiceWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create an APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1APIService CreateAPIService( - this IKubernetes operations - ,V1APIService body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateAPIServiceAsync( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create an APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateAPIServiceAsync( - this IKubernetes operations, - V1APIService body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateAPIServiceWithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete an APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the APIService - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteAPIService( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteAPIServiceAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete an APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the APIService - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteAPIServiceAsync( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteAPIServiceWithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the APIService - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1APIService ReadAPIService( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadAPIServiceAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the APIService - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadAPIServiceAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadAPIServiceWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1APIService PatchAPIService( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchAPIServiceAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchAPIServiceAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchAPIServiceWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1APIService ReplaceAPIService( - this IKubernetes operations - ,V1APIService body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceAPIServiceAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceAPIServiceAsync( - this IKubernetes operations, - V1APIService body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceAPIServiceWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the APIService - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1APIService ReadAPIServiceStatus( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadAPIServiceStatusAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the APIService - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadAPIServiceStatusAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadAPIServiceStatusWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1APIService PatchAPIServiceStatus( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchAPIServiceStatusAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchAPIServiceStatusAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchAPIServiceStatusWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1APIService ReplaceAPIServiceStatus( - this IKubernetes operations - ,V1APIService body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceAPIServiceStatusAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceAPIServiceStatusAsync( - this IKubernetes operations, - V1APIService body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceAPIServiceStatusWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind ControllerRevision - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1ControllerRevisionList ListControllerRevisionForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListControllerRevisionForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ControllerRevision - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListControllerRevisionForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListControllerRevisionForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind DaemonSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1DaemonSetList ListDaemonSetForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListDaemonSetForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind DaemonSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListDaemonSetForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListDaemonSetForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1DeploymentList ListDeploymentForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListDeploymentForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListDeploymentForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListDeploymentForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of ControllerRevision - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedControllerRevision( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedControllerRevisionAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of ControllerRevision - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedControllerRevisionAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedControllerRevisionWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind ControllerRevision - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ControllerRevisionList ListNamespacedControllerRevision( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedControllerRevisionAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ControllerRevision - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedControllerRevisionAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedControllerRevisionWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a ControllerRevision - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ControllerRevision CreateNamespacedControllerRevision( - this IKubernetes operations - ,V1ControllerRevision body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedControllerRevisionAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a ControllerRevision - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedControllerRevisionAsync( - this IKubernetes operations, - V1ControllerRevision body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedControllerRevisionWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a ControllerRevision - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ControllerRevision - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedControllerRevision( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedControllerRevisionAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a ControllerRevision - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ControllerRevision - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedControllerRevisionAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedControllerRevisionWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified ControllerRevision - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ControllerRevision - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ControllerRevision ReadNamespacedControllerRevision( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedControllerRevisionAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified ControllerRevision - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ControllerRevision - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedControllerRevisionAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedControllerRevisionWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified ControllerRevision - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ControllerRevision - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ControllerRevision PatchNamespacedControllerRevision( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedControllerRevisionAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified ControllerRevision - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ControllerRevision - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedControllerRevisionAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedControllerRevisionWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified ControllerRevision - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ControllerRevision - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ControllerRevision ReplaceNamespacedControllerRevision( - this IKubernetes operations - ,V1ControllerRevision body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedControllerRevisionAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified ControllerRevision - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ControllerRevision - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedControllerRevisionAsync( - this IKubernetes operations, - V1ControllerRevision body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedControllerRevisionWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of DaemonSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedDaemonSet( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedDaemonSetAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of DaemonSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedDaemonSetAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedDaemonSetWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind DaemonSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1DaemonSetList ListNamespacedDaemonSet( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedDaemonSetAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind DaemonSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedDaemonSetAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedDaemonSetWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a DaemonSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1DaemonSet CreateNamespacedDaemonSet( - this IKubernetes operations - ,V1DaemonSet body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedDaemonSetAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a DaemonSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedDaemonSetAsync( - this IKubernetes operations, - V1DaemonSet body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedDaemonSetWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a DaemonSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedDaemonSet( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedDaemonSetAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a DaemonSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedDaemonSetAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedDaemonSetWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified DaemonSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1DaemonSet ReadNamespacedDaemonSet( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedDaemonSetAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified DaemonSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedDaemonSetAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedDaemonSetWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified DaemonSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1DaemonSet PatchNamespacedDaemonSet( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedDaemonSetAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified DaemonSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedDaemonSetAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedDaemonSetWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified DaemonSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1DaemonSet ReplaceNamespacedDaemonSet( - this IKubernetes operations - ,V1DaemonSet body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedDaemonSetAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified DaemonSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedDaemonSetAsync( - this IKubernetes operations, - V1DaemonSet body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedDaemonSetWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified DaemonSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1DaemonSet ReadNamespacedDaemonSetStatus( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedDaemonSetStatusAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified DaemonSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedDaemonSetStatusAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedDaemonSetStatusWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified DaemonSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1DaemonSet PatchNamespacedDaemonSetStatus( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedDaemonSetStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified DaemonSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedDaemonSetStatusAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedDaemonSetStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified DaemonSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1DaemonSet ReplaceNamespacedDaemonSetStatus( - this IKubernetes operations - ,V1DaemonSet body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedDaemonSetStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified DaemonSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedDaemonSetStatusAsync( - this IKubernetes operations, - V1DaemonSet body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedDaemonSetStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedDeployment( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedDeploymentAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedDeploymentAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedDeploymentWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1DeploymentList ListNamespacedDeployment( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedDeploymentAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedDeploymentAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedDeploymentWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Deployment CreateNamespacedDeployment( - this IKubernetes operations - ,V1Deployment body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedDeploymentAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedDeploymentAsync( - this IKubernetes operations, - V1Deployment body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedDeploymentWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedDeployment( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedDeploymentAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedDeploymentAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedDeploymentWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Deployment ReadNamespacedDeployment( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedDeploymentAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedDeploymentAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedDeploymentWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Deployment PatchNamespacedDeployment( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedDeploymentAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedDeploymentAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedDeploymentWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Deployment ReplaceNamespacedDeployment( - this IKubernetes operations - ,V1Deployment body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedDeploymentAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedDeploymentAsync( - this IKubernetes operations, - V1Deployment body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedDeploymentWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read scale of the specified Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Scale ReadNamespacedDeploymentScale( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedDeploymentScaleAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read scale of the specified Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedDeploymentScaleAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedDeploymentScaleWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update scale of the specified Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Scale PatchNamespacedDeploymentScale( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedDeploymentScaleAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update scale of the specified Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedDeploymentScaleAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedDeploymentScaleWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace scale of the specified Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Scale ReplaceNamespacedDeploymentScale( - this IKubernetes operations - ,V1Scale body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedDeploymentScaleAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace scale of the specified Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedDeploymentScaleAsync( - this IKubernetes operations, - V1Scale body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedDeploymentScaleWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Deployment ReadNamespacedDeploymentStatus( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedDeploymentStatusAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedDeploymentStatusAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedDeploymentStatusWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Deployment PatchNamespacedDeploymentStatus( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedDeploymentStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedDeploymentStatusAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedDeploymentStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Deployment ReplaceNamespacedDeploymentStatus( - this IKubernetes operations - ,V1Deployment body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedDeploymentStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedDeploymentStatusAsync( - this IKubernetes operations, - V1Deployment body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedDeploymentStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedReplicaSet( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedReplicaSetAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedReplicaSetAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedReplicaSetWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ReplicaSetList ListNamespacedReplicaSet( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedReplicaSetAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedReplicaSetAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedReplicaSetWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ReplicaSet CreateNamespacedReplicaSet( - this IKubernetes operations - ,V1ReplicaSet body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedReplicaSetAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedReplicaSetAsync( - this IKubernetes operations, - V1ReplicaSet body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedReplicaSetWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedReplicaSet( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedReplicaSetAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedReplicaSetAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedReplicaSetWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ReplicaSet ReadNamespacedReplicaSet( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedReplicaSetAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedReplicaSetAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedReplicaSetWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ReplicaSet PatchNamespacedReplicaSet( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedReplicaSetAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedReplicaSetAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedReplicaSetWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ReplicaSet ReplaceNamespacedReplicaSet( - this IKubernetes operations - ,V1ReplicaSet body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedReplicaSetAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedReplicaSetAsync( - this IKubernetes operations, - V1ReplicaSet body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedReplicaSetWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read scale of the specified ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Scale ReadNamespacedReplicaSetScale( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedReplicaSetScaleAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read scale of the specified ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedReplicaSetScaleAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedReplicaSetScaleWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update scale of the specified ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Scale PatchNamespacedReplicaSetScale( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedReplicaSetScaleAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update scale of the specified ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedReplicaSetScaleAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedReplicaSetScaleWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace scale of the specified ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Scale ReplaceNamespacedReplicaSetScale( - this IKubernetes operations - ,V1Scale body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedReplicaSetScaleAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace scale of the specified ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedReplicaSetScaleAsync( - this IKubernetes operations, - V1Scale body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedReplicaSetScaleWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ReplicaSet ReadNamespacedReplicaSetStatus( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedReplicaSetStatusAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedReplicaSetStatusAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedReplicaSetStatusWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ReplicaSet PatchNamespacedReplicaSetStatus( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedReplicaSetStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedReplicaSetStatusAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedReplicaSetStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ReplicaSet ReplaceNamespacedReplicaSetStatus( - this IKubernetes operations - ,V1ReplicaSet body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedReplicaSetStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedReplicaSetStatusAsync( - this IKubernetes operations, - V1ReplicaSet body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedReplicaSetStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedStatefulSet( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedStatefulSetAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedStatefulSetAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedStatefulSetWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1StatefulSetList ListNamespacedStatefulSet( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedStatefulSetAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedStatefulSetAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedStatefulSetWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1StatefulSet CreateNamespacedStatefulSet( - this IKubernetes operations - ,V1StatefulSet body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedStatefulSetAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedStatefulSetAsync( - this IKubernetes operations, - V1StatefulSet body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedStatefulSetWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedStatefulSet( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedStatefulSetAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedStatefulSetAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedStatefulSetWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1StatefulSet ReadNamespacedStatefulSet( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedStatefulSetAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedStatefulSetAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedStatefulSetWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1StatefulSet PatchNamespacedStatefulSet( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedStatefulSetAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedStatefulSetAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedStatefulSetWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1StatefulSet ReplaceNamespacedStatefulSet( - this IKubernetes operations - ,V1StatefulSet body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedStatefulSetAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedStatefulSetAsync( - this IKubernetes operations, - V1StatefulSet body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedStatefulSetWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read scale of the specified StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Scale ReadNamespacedStatefulSetScale( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedStatefulSetScaleAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read scale of the specified StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedStatefulSetScaleAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedStatefulSetScaleWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update scale of the specified StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Scale PatchNamespacedStatefulSetScale( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedStatefulSetScaleAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update scale of the specified StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedStatefulSetScaleAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedStatefulSetScaleWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace scale of the specified StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Scale ReplaceNamespacedStatefulSetScale( - this IKubernetes operations - ,V1Scale body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedStatefulSetScaleAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace scale of the specified StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedStatefulSetScaleAsync( - this IKubernetes operations, - V1Scale body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedStatefulSetScaleWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1StatefulSet ReadNamespacedStatefulSetStatus( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedStatefulSetStatusAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedStatefulSetStatusAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedStatefulSetStatusWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1StatefulSet PatchNamespacedStatefulSetStatus( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedStatefulSetStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedStatefulSetStatusAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedStatefulSetStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1StatefulSet ReplaceNamespacedStatefulSetStatus( - this IKubernetes operations - ,V1StatefulSet body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedStatefulSetStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedStatefulSetStatusAsync( - this IKubernetes operations, - V1StatefulSet body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedStatefulSetStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1ReplicaSetList ListReplicaSetForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListReplicaSetForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListReplicaSetForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListReplicaSetForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1StatefulSetList ListStatefulSetForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListStatefulSetForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListStatefulSetForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListStatefulSetForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a TokenReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1TokenReview CreateTokenReview( - this IKubernetes operations - ,V1TokenReview body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateTokenReviewAsync( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a TokenReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateTokenReviewAsync( - this IKubernetes operations, - V1TokenReview body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateTokenReviewWithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a LocalSubjectAccessReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1LocalSubjectAccessReview CreateNamespacedLocalSubjectAccessReview( - this IKubernetes operations - ,V1LocalSubjectAccessReview body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedLocalSubjectAccessReviewAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a LocalSubjectAccessReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedLocalSubjectAccessReviewAsync( - this IKubernetes operations, - V1LocalSubjectAccessReview body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedLocalSubjectAccessReviewWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a SelfSubjectAccessReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1SelfSubjectAccessReview CreateSelfSubjectAccessReview( - this IKubernetes operations - ,V1SelfSubjectAccessReview body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateSelfSubjectAccessReviewAsync( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a SelfSubjectAccessReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateSelfSubjectAccessReviewAsync( - this IKubernetes operations, - V1SelfSubjectAccessReview body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateSelfSubjectAccessReviewWithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a SelfSubjectRulesReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1SelfSubjectRulesReview CreateSelfSubjectRulesReview( - this IKubernetes operations - ,V1SelfSubjectRulesReview body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateSelfSubjectRulesReviewAsync( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a SelfSubjectRulesReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateSelfSubjectRulesReviewAsync( - this IKubernetes operations, - V1SelfSubjectRulesReview body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateSelfSubjectRulesReviewWithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a SubjectAccessReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1SubjectAccessReview CreateSubjectAccessReview( - this IKubernetes operations - ,V1SubjectAccessReview body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateSubjectAccessReviewAsync( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a SubjectAccessReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateSubjectAccessReviewAsync( - this IKubernetes operations, - V1SubjectAccessReview body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateSubjectAccessReviewWithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1HorizontalPodAutoscalerList ListHorizontalPodAutoscalerForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListHorizontalPodAutoscalerForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListHorizontalPodAutoscalerForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListHorizontalPodAutoscalerForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V2beta1HorizontalPodAutoscalerList ListHorizontalPodAutoscalerForAllNamespaces1( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListHorizontalPodAutoscalerForAllNamespaces1Async( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListHorizontalPodAutoscalerForAllNamespaces1Async( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListHorizontalPodAutoscalerForAllNamespaces1WithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V2beta2HorizontalPodAutoscalerList ListHorizontalPodAutoscalerForAllNamespaces2( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListHorizontalPodAutoscalerForAllNamespaces2Async( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListHorizontalPodAutoscalerForAllNamespaces2Async( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListHorizontalPodAutoscalerForAllNamespaces2WithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedHorizontalPodAutoscaler( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedHorizontalPodAutoscalerAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedHorizontalPodAutoscalerAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedHorizontalPodAutoscaler1( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedHorizontalPodAutoscaler1Async( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedHorizontalPodAutoscaler1Async( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedHorizontalPodAutoscaler2( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedHorizontalPodAutoscaler2Async( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedHorizontalPodAutoscaler2Async( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedHorizontalPodAutoscaler2WithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1HorizontalPodAutoscalerList ListNamespacedHorizontalPodAutoscaler( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedHorizontalPodAutoscalerAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedHorizontalPodAutoscalerAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2beta1HorizontalPodAutoscalerList ListNamespacedHorizontalPodAutoscaler1( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedHorizontalPodAutoscaler1Async( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedHorizontalPodAutoscaler1Async( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2beta2HorizontalPodAutoscalerList ListNamespacedHorizontalPodAutoscaler2( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedHorizontalPodAutoscaler2Async( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedHorizontalPodAutoscaler2Async( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedHorizontalPodAutoscaler2WithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1HorizontalPodAutoscaler CreateNamespacedHorizontalPodAutoscaler( - this IKubernetes operations - ,V1HorizontalPodAutoscaler body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedHorizontalPodAutoscalerAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedHorizontalPodAutoscalerAsync( - this IKubernetes operations, - V1HorizontalPodAutoscaler body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2beta1HorizontalPodAutoscaler CreateNamespacedHorizontalPodAutoscaler1( - this IKubernetes operations - ,V2beta1HorizontalPodAutoscaler body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedHorizontalPodAutoscaler1Async( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedHorizontalPodAutoscaler1Async( - this IKubernetes operations, - V2beta1HorizontalPodAutoscaler body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2beta2HorizontalPodAutoscaler CreateNamespacedHorizontalPodAutoscaler2( - this IKubernetes operations - ,V2beta2HorizontalPodAutoscaler body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedHorizontalPodAutoscaler2Async( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedHorizontalPodAutoscaler2Async( - this IKubernetes operations, - V2beta2HorizontalPodAutoscaler body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedHorizontalPodAutoscaler2WithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedHorizontalPodAutoscaler( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedHorizontalPodAutoscalerAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedHorizontalPodAutoscalerAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedHorizontalPodAutoscaler1( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedHorizontalPodAutoscaler1Async( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedHorizontalPodAutoscaler1Async( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedHorizontalPodAutoscaler2( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedHorizontalPodAutoscaler2Async( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedHorizontalPodAutoscaler2Async( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedHorizontalPodAutoscaler2WithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1HorizontalPodAutoscaler ReadNamespacedHorizontalPodAutoscaler( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedHorizontalPodAutoscalerAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedHorizontalPodAutoscalerAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2beta1HorizontalPodAutoscaler ReadNamespacedHorizontalPodAutoscaler1( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedHorizontalPodAutoscaler1Async( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedHorizontalPodAutoscaler1Async( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2beta2HorizontalPodAutoscaler ReadNamespacedHorizontalPodAutoscaler2( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedHorizontalPodAutoscaler2Async( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedHorizontalPodAutoscaler2Async( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedHorizontalPodAutoscaler2WithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1HorizontalPodAutoscaler PatchNamespacedHorizontalPodAutoscaler( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedHorizontalPodAutoscalerAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedHorizontalPodAutoscalerAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2beta1HorizontalPodAutoscaler PatchNamespacedHorizontalPodAutoscaler1( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedHorizontalPodAutoscaler1Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedHorizontalPodAutoscaler1Async( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2beta2HorizontalPodAutoscaler PatchNamespacedHorizontalPodAutoscaler2( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedHorizontalPodAutoscaler2Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedHorizontalPodAutoscaler2Async( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedHorizontalPodAutoscaler2WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1HorizontalPodAutoscaler ReplaceNamespacedHorizontalPodAutoscaler( - this IKubernetes operations - ,V1HorizontalPodAutoscaler body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedHorizontalPodAutoscalerAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedHorizontalPodAutoscalerAsync( - this IKubernetes operations, - V1HorizontalPodAutoscaler body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2beta1HorizontalPodAutoscaler ReplaceNamespacedHorizontalPodAutoscaler1( - this IKubernetes operations - ,V2beta1HorizontalPodAutoscaler body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedHorizontalPodAutoscaler1Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedHorizontalPodAutoscaler1Async( - this IKubernetes operations, - V2beta1HorizontalPodAutoscaler body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2beta2HorizontalPodAutoscaler ReplaceNamespacedHorizontalPodAutoscaler2( - this IKubernetes operations - ,V2beta2HorizontalPodAutoscaler body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedHorizontalPodAutoscaler2Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedHorizontalPodAutoscaler2Async( - this IKubernetes operations, - V2beta2HorizontalPodAutoscaler body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedHorizontalPodAutoscaler2WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1HorizontalPodAutoscaler ReadNamespacedHorizontalPodAutoscalerStatus( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedHorizontalPodAutoscalerStatusAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedHorizontalPodAutoscalerStatusAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedHorizontalPodAutoscalerStatusWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2beta1HorizontalPodAutoscaler ReadNamespacedHorizontalPodAutoscalerStatus1( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedHorizontalPodAutoscalerStatus1Async( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedHorizontalPodAutoscalerStatus1Async( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedHorizontalPodAutoscalerStatus1WithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2beta2HorizontalPodAutoscaler ReadNamespacedHorizontalPodAutoscalerStatus2( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedHorizontalPodAutoscalerStatus2Async( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedHorizontalPodAutoscalerStatus2Async( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedHorizontalPodAutoscalerStatus2WithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1HorizontalPodAutoscaler PatchNamespacedHorizontalPodAutoscalerStatus( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedHorizontalPodAutoscalerStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedHorizontalPodAutoscalerStatusAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedHorizontalPodAutoscalerStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2beta1HorizontalPodAutoscaler PatchNamespacedHorizontalPodAutoscalerStatus1( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedHorizontalPodAutoscalerStatus1Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedHorizontalPodAutoscalerStatus1Async( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedHorizontalPodAutoscalerStatus1WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2beta2HorizontalPodAutoscaler PatchNamespacedHorizontalPodAutoscalerStatus2( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedHorizontalPodAutoscalerStatus2Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedHorizontalPodAutoscalerStatus2Async( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedHorizontalPodAutoscalerStatus2WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1HorizontalPodAutoscaler ReplaceNamespacedHorizontalPodAutoscalerStatus( - this IKubernetes operations - ,V1HorizontalPodAutoscaler body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedHorizontalPodAutoscalerStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedHorizontalPodAutoscalerStatusAsync( - this IKubernetes operations, - V1HorizontalPodAutoscaler body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedHorizontalPodAutoscalerStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2beta1HorizontalPodAutoscaler ReplaceNamespacedHorizontalPodAutoscalerStatus1( - this IKubernetes operations - ,V2beta1HorizontalPodAutoscaler body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedHorizontalPodAutoscalerStatus1Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedHorizontalPodAutoscalerStatus1Async( - this IKubernetes operations, - V2beta1HorizontalPodAutoscaler body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedHorizontalPodAutoscalerStatus1WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2beta2HorizontalPodAutoscaler ReplaceNamespacedHorizontalPodAutoscalerStatus2( - this IKubernetes operations - ,V2beta2HorizontalPodAutoscaler body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedHorizontalPodAutoscalerStatus2Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedHorizontalPodAutoscalerStatus2Async( - this IKubernetes operations, - V2beta2HorizontalPodAutoscaler body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedHorizontalPodAutoscalerStatus2WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1CronJobList ListCronJobForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListCronJobForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListCronJobForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListCronJobForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1beta1CronJobList ListCronJobForAllNamespaces1( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListCronJobForAllNamespaces1Async( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListCronJobForAllNamespaces1Async( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListCronJobForAllNamespaces1WithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Job - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1JobList ListJobForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListJobForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Job - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListJobForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListJobForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedCronJob( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedCronJobAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedCronJobAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedCronJobWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedCronJob1( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedCronJob1Async( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedCronJob1Async( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedCronJob1WithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CronJobList ListNamespacedCronJob( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedCronJobAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedCronJobAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedCronJobWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CronJobList ListNamespacedCronJob1( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedCronJob1Async( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedCronJob1Async( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedCronJob1WithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CronJob CreateNamespacedCronJob( - this IKubernetes operations - ,V1CronJob body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedCronJobAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedCronJobAsync( - this IKubernetes operations, - V1CronJob body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedCronJobWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CronJob CreateNamespacedCronJob1( - this IKubernetes operations - ,V1beta1CronJob body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedCronJob1Async( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedCronJob1Async( - this IKubernetes operations, - V1beta1CronJob body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedCronJob1WithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedCronJob( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedCronJobAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedCronJobAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedCronJobWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedCronJob1( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedCronJob1Async( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedCronJob1Async( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedCronJob1WithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CronJob ReadNamespacedCronJob( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedCronJobAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedCronJobAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedCronJobWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CronJob ReadNamespacedCronJob1( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedCronJob1Async( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedCronJob1Async( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedCronJob1WithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CronJob PatchNamespacedCronJob( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedCronJobAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedCronJobAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedCronJobWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CronJob PatchNamespacedCronJob1( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedCronJob1Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedCronJob1Async( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedCronJob1WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CronJob ReplaceNamespacedCronJob( - this IKubernetes operations - ,V1CronJob body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedCronJobAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedCronJobAsync( - this IKubernetes operations, - V1CronJob body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedCronJobWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CronJob ReplaceNamespacedCronJob1( - this IKubernetes operations - ,V1beta1CronJob body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedCronJob1Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedCronJob1Async( - this IKubernetes operations, - V1beta1CronJob body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedCronJob1WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CronJob ReadNamespacedCronJobStatus( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedCronJobStatusAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedCronJobStatusAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedCronJobStatusWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CronJob ReadNamespacedCronJobStatus1( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedCronJobStatus1Async( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedCronJobStatus1Async( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedCronJobStatus1WithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CronJob PatchNamespacedCronJobStatus( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedCronJobStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedCronJobStatusAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedCronJobStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CronJob PatchNamespacedCronJobStatus1( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedCronJobStatus1Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedCronJobStatus1Async( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedCronJobStatus1WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CronJob ReplaceNamespacedCronJobStatus( - this IKubernetes operations - ,V1CronJob body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedCronJobStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedCronJobStatusAsync( - this IKubernetes operations, - V1CronJob body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedCronJobStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CronJob ReplaceNamespacedCronJobStatus1( - this IKubernetes operations - ,V1beta1CronJob body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedCronJobStatus1Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedCronJobStatus1Async( - this IKubernetes operations, - V1beta1CronJob body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedCronJobStatus1WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of Job - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedJob( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedJobAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of Job - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedJobAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedJobWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Job - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1JobList ListNamespacedJob( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedJobAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Job - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedJobAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedJobWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a Job - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Job CreateNamespacedJob( - this IKubernetes operations - ,V1Job body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedJobAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a Job - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedJobAsync( - this IKubernetes operations, - V1Job body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedJobWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a Job - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedJob( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedJobAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a Job - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedJobAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedJobWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified Job - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Job ReadNamespacedJob( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedJobAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified Job - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedJobAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedJobWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified Job - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Job PatchNamespacedJob( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedJobAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified Job - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedJobAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedJobWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified Job - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Job ReplaceNamespacedJob( - this IKubernetes operations - ,V1Job body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedJobAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified Job - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedJobAsync( - this IKubernetes operations, - V1Job body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedJobWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified Job - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Job ReadNamespacedJobStatus( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedJobStatusAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified Job - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedJobStatusAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedJobStatusWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified Job - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Job PatchNamespacedJobStatus( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedJobStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified Job - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedJobStatusAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedJobStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified Job - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Job ReplaceNamespacedJobStatus( - this IKubernetes operations - ,V1Job body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedJobStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified Job - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedJobStatusAsync( - this IKubernetes operations, - V1Job body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedJobStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionCertificateSigningRequest( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionCertificateSigningRequestAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionCertificateSigningRequestAsync( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionCertificateSigningRequestWithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CertificateSigningRequestList ListCertificateSigningRequest( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListCertificateSigningRequestAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListCertificateSigningRequestAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListCertificateSigningRequestWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CertificateSigningRequest CreateCertificateSigningRequest( - this IKubernetes operations - ,V1CertificateSigningRequest body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateCertificateSigningRequestAsync( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateCertificateSigningRequestAsync( - this IKubernetes operations, - V1CertificateSigningRequest body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateCertificateSigningRequestWithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCertificateSigningRequest( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteCertificateSigningRequestAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCertificateSigningRequestAsync( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCertificateSigningRequestWithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CertificateSigningRequest ReadCertificateSigningRequest( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadCertificateSigningRequestAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadCertificateSigningRequestAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadCertificateSigningRequestWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CertificateSigningRequest PatchCertificateSigningRequest( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchCertificateSigningRequestAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchCertificateSigningRequestAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchCertificateSigningRequestWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CertificateSigningRequest ReplaceCertificateSigningRequest( - this IKubernetes operations - ,V1CertificateSigningRequest body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceCertificateSigningRequestAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceCertificateSigningRequestAsync( - this IKubernetes operations, - V1CertificateSigningRequest body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceCertificateSigningRequestWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read approval of the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CertificateSigningRequest ReadCertificateSigningRequestApproval( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadCertificateSigningRequestApprovalAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read approval of the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadCertificateSigningRequestApprovalAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadCertificateSigningRequestApprovalWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update approval of the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CertificateSigningRequest PatchCertificateSigningRequestApproval( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchCertificateSigningRequestApprovalAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update approval of the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchCertificateSigningRequestApprovalAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchCertificateSigningRequestApprovalWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace approval of the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CertificateSigningRequest ReplaceCertificateSigningRequestApproval( - this IKubernetes operations - ,V1CertificateSigningRequest body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceCertificateSigningRequestApprovalAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace approval of the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceCertificateSigningRequestApprovalAsync( - this IKubernetes operations, - V1CertificateSigningRequest body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceCertificateSigningRequestApprovalWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CertificateSigningRequest ReadCertificateSigningRequestStatus( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadCertificateSigningRequestStatusAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadCertificateSigningRequestStatusAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadCertificateSigningRequestStatusWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CertificateSigningRequest PatchCertificateSigningRequestStatus( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchCertificateSigningRequestStatusAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchCertificateSigningRequestStatusAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchCertificateSigningRequestStatusWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CertificateSigningRequest ReplaceCertificateSigningRequestStatus( - this IKubernetes operations - ,V1CertificateSigningRequest body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceCertificateSigningRequestStatusAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceCertificateSigningRequestStatusAsync( - this IKubernetes operations, - V1CertificateSigningRequest body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceCertificateSigningRequestStatusWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Lease - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1LeaseList ListLeaseForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListLeaseForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Lease - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListLeaseForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListLeaseForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of Lease - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedLease( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedLeaseAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of Lease - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedLeaseAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedLeaseWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Lease - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1LeaseList ListNamespacedLease( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedLeaseAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Lease - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedLeaseAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedLeaseWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a Lease - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Lease CreateNamespacedLease( - this IKubernetes operations - ,V1Lease body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedLeaseAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a Lease - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedLeaseAsync( - this IKubernetes operations, - V1Lease body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedLeaseWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a Lease - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Lease - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedLease( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedLeaseAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a Lease - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Lease - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedLeaseAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedLeaseWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified Lease - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Lease - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Lease ReadNamespacedLease( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedLeaseAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified Lease - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Lease - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedLeaseAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedLeaseWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified Lease - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Lease - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Lease PatchNamespacedLease( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedLeaseAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified Lease - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Lease - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedLeaseAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedLeaseWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified Lease - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Lease - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Lease ReplaceNamespacedLease( - this IKubernetes operations - ,V1Lease body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedLeaseAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified Lease - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Lease - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedLeaseAsync( - this IKubernetes operations, - V1Lease body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedLeaseWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1EndpointSliceList ListEndpointSliceForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListEndpointSliceForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListEndpointSliceForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListEndpointSliceForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1beta1EndpointSliceList ListEndpointSliceForAllNamespaces1( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListEndpointSliceForAllNamespaces1Async( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListEndpointSliceForAllNamespaces1Async( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListEndpointSliceForAllNamespaces1WithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedEndpointSlice( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedEndpointSliceAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedEndpointSliceAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedEndpointSliceWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedEndpointSlice1( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedEndpointSlice1Async( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedEndpointSlice1Async( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedEndpointSlice1WithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1EndpointSliceList ListNamespacedEndpointSlice( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedEndpointSliceAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedEndpointSliceAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedEndpointSliceWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1EndpointSliceList ListNamespacedEndpointSlice1( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedEndpointSlice1Async( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedEndpointSlice1Async( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedEndpointSlice1WithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create an EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1EndpointSlice CreateNamespacedEndpointSlice( - this IKubernetes operations - ,V1EndpointSlice body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedEndpointSliceAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create an EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedEndpointSliceAsync( - this IKubernetes operations, - V1EndpointSlice body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedEndpointSliceWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create an EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1EndpointSlice CreateNamespacedEndpointSlice1( - this IKubernetes operations - ,V1beta1EndpointSlice body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedEndpointSlice1Async( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create an EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedEndpointSlice1Async( - this IKubernetes operations, - V1beta1EndpointSlice body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedEndpointSlice1WithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete an EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedEndpointSlice( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedEndpointSliceAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete an EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedEndpointSliceAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedEndpointSliceWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete an EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedEndpointSlice1( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedEndpointSlice1Async( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete an EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedEndpointSlice1Async( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedEndpointSlice1WithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1EndpointSlice ReadNamespacedEndpointSlice( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedEndpointSliceAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedEndpointSliceAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedEndpointSliceWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1EndpointSlice ReadNamespacedEndpointSlice1( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedEndpointSlice1Async( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedEndpointSlice1Async( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedEndpointSlice1WithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1EndpointSlice PatchNamespacedEndpointSlice( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedEndpointSliceAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedEndpointSliceAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedEndpointSliceWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1EndpointSlice PatchNamespacedEndpointSlice1( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedEndpointSlice1Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedEndpointSlice1Async( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedEndpointSlice1WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1EndpointSlice ReplaceNamespacedEndpointSlice( - this IKubernetes operations - ,V1EndpointSlice body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedEndpointSliceAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedEndpointSliceAsync( - this IKubernetes operations, - V1EndpointSlice body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedEndpointSliceWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1EndpointSlice ReplaceNamespacedEndpointSlice1( - this IKubernetes operations - ,V1beta1EndpointSlice body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedEndpointSlice1Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified EndpointSlice - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the EndpointSlice - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedEndpointSlice1Async( - this IKubernetes operations, - V1beta1EndpointSlice body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedEndpointSlice1WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of FlowSchema - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionFlowSchema( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionFlowSchemaAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of FlowSchema - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionFlowSchemaAsync( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionFlowSchemaWithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind FlowSchema - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1FlowSchemaList ListFlowSchema( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListFlowSchemaAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind FlowSchema - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListFlowSchemaAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListFlowSchemaWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a FlowSchema - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1FlowSchema CreateFlowSchema( - this IKubernetes operations - ,V1beta1FlowSchema body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateFlowSchemaAsync( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a FlowSchema - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateFlowSchemaAsync( - this IKubernetes operations, - V1beta1FlowSchema body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateFlowSchemaWithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a FlowSchema - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the FlowSchema - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteFlowSchema( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteFlowSchemaAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a FlowSchema - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the FlowSchema - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteFlowSchemaAsync( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteFlowSchemaWithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified FlowSchema - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the FlowSchema - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1FlowSchema ReadFlowSchema( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadFlowSchemaAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified FlowSchema - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the FlowSchema - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadFlowSchemaAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadFlowSchemaWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified FlowSchema - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the FlowSchema - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1FlowSchema PatchFlowSchema( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchFlowSchemaAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified FlowSchema - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the FlowSchema - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchFlowSchemaAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchFlowSchemaWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified FlowSchema - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the FlowSchema - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1FlowSchema ReplaceFlowSchema( - this IKubernetes operations - ,V1beta1FlowSchema body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceFlowSchemaAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified FlowSchema - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the FlowSchema - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceFlowSchemaAsync( - this IKubernetes operations, - V1beta1FlowSchema body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceFlowSchemaWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified FlowSchema - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the FlowSchema - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1FlowSchema ReadFlowSchemaStatus( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadFlowSchemaStatusAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified FlowSchema - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the FlowSchema - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadFlowSchemaStatusAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadFlowSchemaStatusWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified FlowSchema - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the FlowSchema - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1FlowSchema PatchFlowSchemaStatus( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchFlowSchemaStatusAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified FlowSchema - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the FlowSchema - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchFlowSchemaStatusAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchFlowSchemaStatusWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified FlowSchema - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the FlowSchema - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1FlowSchema ReplaceFlowSchemaStatus( - this IKubernetes operations - ,V1beta1FlowSchema body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceFlowSchemaStatusAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified FlowSchema - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the FlowSchema - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceFlowSchemaStatusAsync( - this IKubernetes operations, - V1beta1FlowSchema body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceFlowSchemaStatusWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of PriorityLevelConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionPriorityLevelConfiguration( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionPriorityLevelConfigurationAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of PriorityLevelConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionPriorityLevelConfigurationAsync( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionPriorityLevelConfigurationWithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind PriorityLevelConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PriorityLevelConfigurationList ListPriorityLevelConfiguration( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListPriorityLevelConfigurationAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind PriorityLevelConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListPriorityLevelConfigurationAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListPriorityLevelConfigurationWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a PriorityLevelConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PriorityLevelConfiguration CreatePriorityLevelConfiguration( - this IKubernetes operations - ,V1beta1PriorityLevelConfiguration body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreatePriorityLevelConfigurationAsync( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a PriorityLevelConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreatePriorityLevelConfigurationAsync( - this IKubernetes operations, - V1beta1PriorityLevelConfiguration body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreatePriorityLevelConfigurationWithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a PriorityLevelConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PriorityLevelConfiguration - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeletePriorityLevelConfiguration( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeletePriorityLevelConfigurationAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a PriorityLevelConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PriorityLevelConfiguration - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeletePriorityLevelConfigurationAsync( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeletePriorityLevelConfigurationWithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified PriorityLevelConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PriorityLevelConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PriorityLevelConfiguration ReadPriorityLevelConfiguration( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadPriorityLevelConfigurationAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified PriorityLevelConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PriorityLevelConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadPriorityLevelConfigurationAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadPriorityLevelConfigurationWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified PriorityLevelConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PriorityLevelConfiguration - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PriorityLevelConfiguration PatchPriorityLevelConfiguration( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchPriorityLevelConfigurationAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified PriorityLevelConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PriorityLevelConfiguration - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchPriorityLevelConfigurationAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchPriorityLevelConfigurationWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified PriorityLevelConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PriorityLevelConfiguration - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PriorityLevelConfiguration ReplacePriorityLevelConfiguration( - this IKubernetes operations - ,V1beta1PriorityLevelConfiguration body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplacePriorityLevelConfigurationAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified PriorityLevelConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PriorityLevelConfiguration - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplacePriorityLevelConfigurationAsync( - this IKubernetes operations, - V1beta1PriorityLevelConfiguration body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplacePriorityLevelConfigurationWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified PriorityLevelConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PriorityLevelConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PriorityLevelConfiguration ReadPriorityLevelConfigurationStatus( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadPriorityLevelConfigurationStatusAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified PriorityLevelConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PriorityLevelConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadPriorityLevelConfigurationStatusAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadPriorityLevelConfigurationStatusWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified PriorityLevelConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PriorityLevelConfiguration - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PriorityLevelConfiguration PatchPriorityLevelConfigurationStatus( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchPriorityLevelConfigurationStatusAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified PriorityLevelConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PriorityLevelConfiguration - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchPriorityLevelConfigurationStatusAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchPriorityLevelConfigurationStatusWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified PriorityLevelConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PriorityLevelConfiguration - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PriorityLevelConfiguration ReplacePriorityLevelConfigurationStatus( - this IKubernetes operations - ,V1beta1PriorityLevelConfiguration body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplacePriorityLevelConfigurationStatusAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified PriorityLevelConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PriorityLevelConfiguration - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplacePriorityLevelConfigurationStatusAsync( - this IKubernetes operations, - V1beta1PriorityLevelConfiguration body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplacePriorityLevelConfigurationStatusWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of StorageVersion - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionStorageVersion( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionStorageVersionAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of StorageVersion - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionStorageVersionAsync( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionStorageVersionWithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind StorageVersion - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1StorageVersionList ListStorageVersion( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListStorageVersionAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind StorageVersion - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListStorageVersionAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListStorageVersionWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a StorageVersion - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1StorageVersion CreateStorageVersion( - this IKubernetes operations - ,V1alpha1StorageVersion body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateStorageVersionAsync( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a StorageVersion - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateStorageVersionAsync( - this IKubernetes operations, - V1alpha1StorageVersion body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateStorageVersionWithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a StorageVersion - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the StorageVersion - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteStorageVersion( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteStorageVersionAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a StorageVersion - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the StorageVersion - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteStorageVersionAsync( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteStorageVersionWithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified StorageVersion - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the StorageVersion - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1StorageVersion ReadStorageVersion( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadStorageVersionAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified StorageVersion - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the StorageVersion - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadStorageVersionAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadStorageVersionWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified StorageVersion - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the StorageVersion - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1StorageVersion PatchStorageVersion( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchStorageVersionAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified StorageVersion - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the StorageVersion - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchStorageVersionAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchStorageVersionWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified StorageVersion - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the StorageVersion - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1StorageVersion ReplaceStorageVersion( - this IKubernetes operations - ,V1alpha1StorageVersion body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceStorageVersionAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified StorageVersion - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the StorageVersion - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceStorageVersionAsync( - this IKubernetes operations, - V1alpha1StorageVersion body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceStorageVersionWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified StorageVersion - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the StorageVersion - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1StorageVersion ReadStorageVersionStatus( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadStorageVersionStatusAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified StorageVersion - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the StorageVersion - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadStorageVersionStatusAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadStorageVersionStatusWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified StorageVersion - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the StorageVersion - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1StorageVersion PatchStorageVersionStatus( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchStorageVersionStatusAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified StorageVersion - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the StorageVersion - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchStorageVersionStatusAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchStorageVersionStatusWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified StorageVersion - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the StorageVersion - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1StorageVersion ReplaceStorageVersionStatus( - this IKubernetes operations - ,V1alpha1StorageVersion body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceStorageVersionStatusAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified StorageVersion - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the StorageVersion - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceStorageVersionStatusAsync( - this IKubernetes operations, - V1alpha1StorageVersion body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceStorageVersionStatusWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of IngressClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionIngressClass( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionIngressClassAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of IngressClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionIngressClassAsync( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionIngressClassWithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind IngressClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1IngressClassList ListIngressClass( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListIngressClassAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind IngressClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListIngressClassAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListIngressClassWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create an IngressClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1IngressClass CreateIngressClass( - this IKubernetes operations - ,V1IngressClass body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateIngressClassAsync( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create an IngressClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateIngressClassAsync( - this IKubernetes operations, - V1IngressClass body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateIngressClassWithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete an IngressClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the IngressClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteIngressClass( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteIngressClassAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete an IngressClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the IngressClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteIngressClassAsync( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteIngressClassWithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified IngressClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the IngressClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1IngressClass ReadIngressClass( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadIngressClassAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified IngressClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the IngressClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadIngressClassAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadIngressClassWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified IngressClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the IngressClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1IngressClass PatchIngressClass( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchIngressClassAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified IngressClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the IngressClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchIngressClassAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchIngressClassWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified IngressClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the IngressClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1IngressClass ReplaceIngressClass( - this IKubernetes operations - ,V1IngressClass body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceIngressClassAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified IngressClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the IngressClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceIngressClassAsync( - this IKubernetes operations, - V1IngressClass body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceIngressClassWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Ingress - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1IngressList ListIngressForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListIngressForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Ingress - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListIngressForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListIngressForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of Ingress - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedIngress( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedIngressAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of Ingress - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedIngressAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedIngressWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Ingress - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1IngressList ListNamespacedIngress( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedIngressAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Ingress - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedIngressAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedIngressWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create an Ingress - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Ingress CreateNamespacedIngress( - this IKubernetes operations - ,V1Ingress body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedIngressAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create an Ingress - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedIngressAsync( - this IKubernetes operations, - V1Ingress body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedIngressWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete an Ingress - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedIngress( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedIngressAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete an Ingress - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedIngressAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedIngressWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified Ingress - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Ingress ReadNamespacedIngress( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedIngressAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified Ingress - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedIngressAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedIngressWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified Ingress - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Ingress PatchNamespacedIngress( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedIngressAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified Ingress - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedIngressAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedIngressWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified Ingress - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Ingress ReplaceNamespacedIngress( - this IKubernetes operations - ,V1Ingress body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedIngressAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified Ingress - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedIngressAsync( - this IKubernetes operations, - V1Ingress body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedIngressWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified Ingress - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Ingress ReadNamespacedIngressStatus( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedIngressStatusAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified Ingress - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedIngressStatusAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedIngressStatusWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified Ingress - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Ingress PatchNamespacedIngressStatus( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedIngressStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified Ingress - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedIngressStatusAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedIngressStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified Ingress - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Ingress ReplaceNamespacedIngressStatus( - this IKubernetes operations - ,V1Ingress body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedIngressStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified Ingress - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedIngressStatusAsync( - this IKubernetes operations, - V1Ingress body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedIngressStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of NetworkPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedNetworkPolicy( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedNetworkPolicyAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of NetworkPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedNetworkPolicyAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedNetworkPolicyWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind NetworkPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1NetworkPolicyList ListNamespacedNetworkPolicy( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedNetworkPolicyAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind NetworkPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedNetworkPolicyAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedNetworkPolicyWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a NetworkPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1NetworkPolicy CreateNamespacedNetworkPolicy( - this IKubernetes operations - ,V1NetworkPolicy body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedNetworkPolicyAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a NetworkPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedNetworkPolicyAsync( - this IKubernetes operations, - V1NetworkPolicy body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedNetworkPolicyWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a NetworkPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NetworkPolicy - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedNetworkPolicy( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedNetworkPolicyAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a NetworkPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NetworkPolicy - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedNetworkPolicyAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedNetworkPolicyWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified NetworkPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NetworkPolicy - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1NetworkPolicy ReadNamespacedNetworkPolicy( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedNetworkPolicyAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified NetworkPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the NetworkPolicy - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedNetworkPolicyAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedNetworkPolicyWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified NetworkPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the NetworkPolicy - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1NetworkPolicy PatchNamespacedNetworkPolicy( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedNetworkPolicyAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified NetworkPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the NetworkPolicy - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedNetworkPolicyAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedNetworkPolicyWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified NetworkPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the NetworkPolicy - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1NetworkPolicy ReplaceNamespacedNetworkPolicy( - this IKubernetes operations - ,V1NetworkPolicy body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedNetworkPolicyAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified NetworkPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the NetworkPolicy - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedNetworkPolicyAsync( - this IKubernetes operations, - V1NetworkPolicy body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedNetworkPolicyWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind NetworkPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1NetworkPolicyList ListNetworkPolicyForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListNetworkPolicyForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind NetworkPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNetworkPolicyForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNetworkPolicyForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionRuntimeClass( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionRuntimeClassAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionRuntimeClassAsync( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionRuntimeClassWithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionRuntimeClass1( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionRuntimeClass1Async( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionRuntimeClass1Async( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionRuntimeClass1WithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionRuntimeClass2( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionRuntimeClass2Async( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionRuntimeClass2Async( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionRuntimeClass2WithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1RuntimeClassList ListRuntimeClass( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListRuntimeClassAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListRuntimeClassAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListRuntimeClassWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1RuntimeClassList ListRuntimeClass1( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListRuntimeClass1Async( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListRuntimeClass1Async( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListRuntimeClass1WithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1RuntimeClassList ListRuntimeClass2( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListRuntimeClass2Async( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListRuntimeClass2Async( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListRuntimeClass2WithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1RuntimeClass CreateRuntimeClass( - this IKubernetes operations - ,V1RuntimeClass body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateRuntimeClassAsync( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateRuntimeClassAsync( - this IKubernetes operations, - V1RuntimeClass body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateRuntimeClassWithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1RuntimeClass CreateRuntimeClass1( - this IKubernetes operations - ,V1alpha1RuntimeClass body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateRuntimeClass1Async( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateRuntimeClass1Async( - this IKubernetes operations, - V1alpha1RuntimeClass body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateRuntimeClass1WithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1RuntimeClass CreateRuntimeClass2( - this IKubernetes operations - ,V1beta1RuntimeClass body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateRuntimeClass2Async( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateRuntimeClass2Async( - this IKubernetes operations, - V1beta1RuntimeClass body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateRuntimeClass2WithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the RuntimeClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteRuntimeClass( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteRuntimeClassAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the RuntimeClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteRuntimeClassAsync( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteRuntimeClassWithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the RuntimeClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteRuntimeClass1( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteRuntimeClass1Async( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the RuntimeClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteRuntimeClass1Async( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteRuntimeClass1WithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the RuntimeClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteRuntimeClass2( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteRuntimeClass2Async( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the RuntimeClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteRuntimeClass2Async( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteRuntimeClass2WithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the RuntimeClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1RuntimeClass ReadRuntimeClass( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadRuntimeClassAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the RuntimeClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadRuntimeClassAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadRuntimeClassWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the RuntimeClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1RuntimeClass ReadRuntimeClass1( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadRuntimeClass1Async( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the RuntimeClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadRuntimeClass1Async( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadRuntimeClass1WithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the RuntimeClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1RuntimeClass ReadRuntimeClass2( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadRuntimeClass2Async( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the RuntimeClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadRuntimeClass2Async( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadRuntimeClass2WithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the RuntimeClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1RuntimeClass PatchRuntimeClass( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchRuntimeClassAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the RuntimeClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchRuntimeClassAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchRuntimeClassWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the RuntimeClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1RuntimeClass PatchRuntimeClass1( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchRuntimeClass1Async( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the RuntimeClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchRuntimeClass1Async( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchRuntimeClass1WithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the RuntimeClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1RuntimeClass PatchRuntimeClass2( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchRuntimeClass2Async( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the RuntimeClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchRuntimeClass2Async( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchRuntimeClass2WithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the RuntimeClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1RuntimeClass ReplaceRuntimeClass( - this IKubernetes operations - ,V1RuntimeClass body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceRuntimeClassAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the RuntimeClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceRuntimeClassAsync( - this IKubernetes operations, - V1RuntimeClass body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceRuntimeClassWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the RuntimeClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1RuntimeClass ReplaceRuntimeClass1( - this IKubernetes operations - ,V1alpha1RuntimeClass body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceRuntimeClass1Async( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the RuntimeClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceRuntimeClass1Async( - this IKubernetes operations, - V1alpha1RuntimeClass body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceRuntimeClass1WithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the RuntimeClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1RuntimeClass ReplaceRuntimeClass2( - this IKubernetes operations - ,V1beta1RuntimeClass body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceRuntimeClass2Async( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified RuntimeClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the RuntimeClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceRuntimeClass2Async( - this IKubernetes operations, - V1beta1RuntimeClass body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceRuntimeClass2WithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedPodDisruptionBudget( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedPodDisruptionBudgetAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedPodDisruptionBudgetAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedPodDisruptionBudgetWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedPodDisruptionBudget1( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedPodDisruptionBudget1Async( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedPodDisruptionBudget1Async( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedPodDisruptionBudget1WithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PodDisruptionBudgetList ListNamespacedPodDisruptionBudget( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedPodDisruptionBudgetAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedPodDisruptionBudgetAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedPodDisruptionBudgetWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PodDisruptionBudgetList ListNamespacedPodDisruptionBudget1( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedPodDisruptionBudget1Async( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedPodDisruptionBudget1Async( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedPodDisruptionBudget1WithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PodDisruptionBudget CreateNamespacedPodDisruptionBudget( - this IKubernetes operations - ,V1PodDisruptionBudget body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedPodDisruptionBudgetAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedPodDisruptionBudgetAsync( - this IKubernetes operations, - V1PodDisruptionBudget body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedPodDisruptionBudgetWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PodDisruptionBudget CreateNamespacedPodDisruptionBudget1( - this IKubernetes operations - ,V1beta1PodDisruptionBudget body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedPodDisruptionBudget1Async( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedPodDisruptionBudget1Async( - this IKubernetes operations, - V1beta1PodDisruptionBudget body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedPodDisruptionBudget1WithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedPodDisruptionBudget( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedPodDisruptionBudgetAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedPodDisruptionBudgetAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedPodDisruptionBudgetWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedPodDisruptionBudget1( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedPodDisruptionBudget1Async( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedPodDisruptionBudget1Async( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedPodDisruptionBudget1WithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PodDisruptionBudget ReadNamespacedPodDisruptionBudget( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedPodDisruptionBudgetAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedPodDisruptionBudgetAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedPodDisruptionBudgetWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PodDisruptionBudget ReadNamespacedPodDisruptionBudget1( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedPodDisruptionBudget1Async( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedPodDisruptionBudget1Async( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedPodDisruptionBudget1WithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PodDisruptionBudget PatchNamespacedPodDisruptionBudget( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedPodDisruptionBudgetAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedPodDisruptionBudgetAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedPodDisruptionBudgetWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PodDisruptionBudget PatchNamespacedPodDisruptionBudget1( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedPodDisruptionBudget1Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedPodDisruptionBudget1Async( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedPodDisruptionBudget1WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PodDisruptionBudget ReplaceNamespacedPodDisruptionBudget( - this IKubernetes operations - ,V1PodDisruptionBudget body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedPodDisruptionBudgetAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedPodDisruptionBudgetAsync( - this IKubernetes operations, - V1PodDisruptionBudget body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedPodDisruptionBudgetWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PodDisruptionBudget ReplaceNamespacedPodDisruptionBudget1( - this IKubernetes operations - ,V1beta1PodDisruptionBudget body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedPodDisruptionBudget1Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedPodDisruptionBudget1Async( - this IKubernetes operations, - V1beta1PodDisruptionBudget body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedPodDisruptionBudget1WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PodDisruptionBudget ReadNamespacedPodDisruptionBudgetStatus( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedPodDisruptionBudgetStatusAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedPodDisruptionBudgetStatusAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedPodDisruptionBudgetStatusWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PodDisruptionBudget ReadNamespacedPodDisruptionBudgetStatus1( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedPodDisruptionBudgetStatus1Async( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedPodDisruptionBudgetStatus1Async( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedPodDisruptionBudgetStatus1WithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PodDisruptionBudget PatchNamespacedPodDisruptionBudgetStatus( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedPodDisruptionBudgetStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedPodDisruptionBudgetStatusAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedPodDisruptionBudgetStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PodDisruptionBudget PatchNamespacedPodDisruptionBudgetStatus1( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedPodDisruptionBudgetStatus1Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedPodDisruptionBudgetStatus1Async( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedPodDisruptionBudgetStatus1WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PodDisruptionBudget ReplaceNamespacedPodDisruptionBudgetStatus( - this IKubernetes operations - ,V1PodDisruptionBudget body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedPodDisruptionBudgetStatusAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedPodDisruptionBudgetStatusAsync( - this IKubernetes operations, - V1PodDisruptionBudget body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedPodDisruptionBudgetStatusWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PodDisruptionBudget ReplaceNamespacedPodDisruptionBudgetStatus1( - this IKubernetes operations - ,V1beta1PodDisruptionBudget body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedPodDisruptionBudgetStatus1Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedPodDisruptionBudgetStatus1Async( - this IKubernetes operations, - V1beta1PodDisruptionBudget body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedPodDisruptionBudgetStatus1WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1PodDisruptionBudgetList ListPodDisruptionBudgetForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListPodDisruptionBudgetForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListPodDisruptionBudgetForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListPodDisruptionBudgetForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1beta1PodDisruptionBudgetList ListPodDisruptionBudgetForAllNamespaces1( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListPodDisruptionBudgetForAllNamespaces1Async( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListPodDisruptionBudgetForAllNamespaces1Async( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListPodDisruptionBudgetForAllNamespaces1WithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of PodSecurityPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionPodSecurityPolicy( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionPodSecurityPolicyAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of PodSecurityPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionPodSecurityPolicyAsync( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionPodSecurityPolicyWithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind PodSecurityPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PodSecurityPolicyList ListPodSecurityPolicy( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListPodSecurityPolicyAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind PodSecurityPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListPodSecurityPolicyAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListPodSecurityPolicyWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a PodSecurityPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PodSecurityPolicy CreatePodSecurityPolicy( - this IKubernetes operations - ,V1beta1PodSecurityPolicy body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreatePodSecurityPolicyAsync( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a PodSecurityPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreatePodSecurityPolicyAsync( - this IKubernetes operations, - V1beta1PodSecurityPolicy body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreatePodSecurityPolicyWithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a PodSecurityPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PodSecurityPolicy DeletePodSecurityPolicy( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeletePodSecurityPolicyAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a PodSecurityPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeletePodSecurityPolicyAsync( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeletePodSecurityPolicyWithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified PodSecurityPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PodSecurityPolicy ReadPodSecurityPolicy( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadPodSecurityPolicyAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified PodSecurityPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadPodSecurityPolicyAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadPodSecurityPolicyWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified PodSecurityPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PodSecurityPolicy PatchPodSecurityPolicy( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchPodSecurityPolicyAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified PodSecurityPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchPodSecurityPolicyAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchPodSecurityPolicyWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified PodSecurityPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PodSecurityPolicy ReplacePodSecurityPolicy( - this IKubernetes operations - ,V1beta1PodSecurityPolicy body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplacePodSecurityPolicyAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified PodSecurityPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplacePodSecurityPolicyAsync( - this IKubernetes operations, - V1beta1PodSecurityPolicy body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplacePodSecurityPolicyWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionClusterRoleBinding( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionClusterRoleBindingAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionClusterRoleBindingAsync( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionClusterRoleBindingWithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionClusterRoleBinding1( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionClusterRoleBinding1Async( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionClusterRoleBinding1Async( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionClusterRoleBinding1WithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ClusterRoleBindingList ListClusterRoleBinding( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListClusterRoleBindingAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListClusterRoleBindingAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListClusterRoleBindingWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1ClusterRoleBindingList ListClusterRoleBinding1( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListClusterRoleBinding1Async( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListClusterRoleBinding1Async( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListClusterRoleBinding1WithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ClusterRoleBinding CreateClusterRoleBinding( - this IKubernetes operations - ,V1ClusterRoleBinding body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateClusterRoleBindingAsync( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateClusterRoleBindingAsync( - this IKubernetes operations, - V1ClusterRoleBinding body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateClusterRoleBindingWithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1ClusterRoleBinding CreateClusterRoleBinding1( - this IKubernetes operations - ,V1alpha1ClusterRoleBinding body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateClusterRoleBinding1Async( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateClusterRoleBinding1Async( - this IKubernetes operations, - V1alpha1ClusterRoleBinding body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateClusterRoleBinding1WithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteClusterRoleBinding( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteClusterRoleBindingAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteClusterRoleBindingAsync( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteClusterRoleBindingWithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteClusterRoleBinding1( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteClusterRoleBinding1Async( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteClusterRoleBinding1Async( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteClusterRoleBinding1WithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ClusterRoleBinding ReadClusterRoleBinding( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadClusterRoleBindingAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadClusterRoleBindingAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadClusterRoleBindingWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1ClusterRoleBinding ReadClusterRoleBinding1( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadClusterRoleBinding1Async( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadClusterRoleBinding1Async( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadClusterRoleBinding1WithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ClusterRoleBinding PatchClusterRoleBinding( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchClusterRoleBindingAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchClusterRoleBindingAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchClusterRoleBindingWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1ClusterRoleBinding PatchClusterRoleBinding1( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchClusterRoleBinding1Async( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchClusterRoleBinding1Async( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchClusterRoleBinding1WithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ClusterRoleBinding ReplaceClusterRoleBinding( - this IKubernetes operations - ,V1ClusterRoleBinding body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceClusterRoleBindingAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceClusterRoleBindingAsync( - this IKubernetes operations, - V1ClusterRoleBinding body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceClusterRoleBindingWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1ClusterRoleBinding ReplaceClusterRoleBinding1( - this IKubernetes operations - ,V1alpha1ClusterRoleBinding body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceClusterRoleBinding1Async( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceClusterRoleBinding1Async( - this IKubernetes operations, - V1alpha1ClusterRoleBinding body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceClusterRoleBinding1WithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionClusterRole( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionClusterRoleAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionClusterRoleAsync( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionClusterRoleWithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionClusterRole1( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionClusterRole1Async( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionClusterRole1Async( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionClusterRole1WithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ClusterRoleList ListClusterRole( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListClusterRoleAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListClusterRoleAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListClusterRoleWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1ClusterRoleList ListClusterRole1( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListClusterRole1Async( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListClusterRole1Async( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListClusterRole1WithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ClusterRole CreateClusterRole( - this IKubernetes operations - ,V1ClusterRole body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateClusterRoleAsync( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateClusterRoleAsync( - this IKubernetes operations, - V1ClusterRole body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateClusterRoleWithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1ClusterRole CreateClusterRole1( - this IKubernetes operations - ,V1alpha1ClusterRole body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateClusterRole1Async( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateClusterRole1Async( - this IKubernetes operations, - V1alpha1ClusterRole body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateClusterRole1WithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ClusterRole - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteClusterRole( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteClusterRoleAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ClusterRole - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteClusterRoleAsync( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteClusterRoleWithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ClusterRole - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteClusterRole1( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteClusterRole1Async( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ClusterRole - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteClusterRole1Async( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteClusterRole1WithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ClusterRole ReadClusterRole( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadClusterRoleAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadClusterRoleAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadClusterRoleWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1ClusterRole ReadClusterRole1( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadClusterRole1Async( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadClusterRole1Async( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadClusterRole1WithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ClusterRole PatchClusterRole( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchClusterRoleAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchClusterRoleAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchClusterRoleWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1ClusterRole PatchClusterRole1( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchClusterRole1Async( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchClusterRole1Async( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchClusterRole1WithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ClusterRole ReplaceClusterRole( - this IKubernetes operations - ,V1ClusterRole body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceClusterRoleAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceClusterRoleAsync( - this IKubernetes operations, - V1ClusterRole body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceClusterRoleWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1ClusterRole ReplaceClusterRole1( - this IKubernetes operations - ,V1alpha1ClusterRole body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceClusterRole1Async( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceClusterRole1Async( - this IKubernetes operations, - V1alpha1ClusterRole body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceClusterRole1WithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedRoleBinding( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedRoleBindingAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedRoleBindingAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedRoleBindingWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedRoleBinding1( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedRoleBinding1Async( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedRoleBinding1Async( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedRoleBinding1WithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1RoleBindingList ListNamespacedRoleBinding( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedRoleBindingAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedRoleBindingAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedRoleBindingWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1RoleBindingList ListNamespacedRoleBinding1( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedRoleBinding1Async( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedRoleBinding1Async( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedRoleBinding1WithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1RoleBinding CreateNamespacedRoleBinding( - this IKubernetes operations - ,V1RoleBinding body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedRoleBindingAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedRoleBindingAsync( - this IKubernetes operations, - V1RoleBinding body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedRoleBindingWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1RoleBinding CreateNamespacedRoleBinding1( - this IKubernetes operations - ,V1alpha1RoleBinding body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedRoleBinding1Async( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedRoleBinding1Async( - this IKubernetes operations, - V1alpha1RoleBinding body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedRoleBinding1WithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedRoleBinding( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedRoleBindingAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedRoleBindingAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedRoleBindingWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedRoleBinding1( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedRoleBinding1Async( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedRoleBinding1Async( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedRoleBinding1WithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1RoleBinding ReadNamespacedRoleBinding( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedRoleBindingAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedRoleBindingAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedRoleBindingWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1RoleBinding ReadNamespacedRoleBinding1( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedRoleBinding1Async( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedRoleBinding1Async( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedRoleBinding1WithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1RoleBinding PatchNamespacedRoleBinding( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedRoleBindingAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedRoleBindingAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedRoleBindingWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1RoleBinding PatchNamespacedRoleBinding1( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedRoleBinding1Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedRoleBinding1Async( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedRoleBinding1WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1RoleBinding ReplaceNamespacedRoleBinding( - this IKubernetes operations - ,V1RoleBinding body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedRoleBindingAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedRoleBindingAsync( - this IKubernetes operations, - V1RoleBinding body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedRoleBindingWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1RoleBinding ReplaceNamespacedRoleBinding1( - this IKubernetes operations - ,V1alpha1RoleBinding body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedRoleBinding1Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedRoleBinding1Async( - this IKubernetes operations, - V1alpha1RoleBinding body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedRoleBinding1WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedRole( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedRoleAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedRoleAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedRoleWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedRole1( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedRole1Async( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedRole1Async( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedRole1WithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1RoleList ListNamespacedRole( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedRoleAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedRoleAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedRoleWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1RoleList ListNamespacedRole1( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedRole1Async( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedRole1Async( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedRole1WithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Role CreateNamespacedRole( - this IKubernetes operations - ,V1Role body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedRoleAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedRoleAsync( - this IKubernetes operations, - V1Role body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedRoleWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1Role CreateNamespacedRole1( - this IKubernetes operations - ,V1alpha1Role body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedRole1Async( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedRole1Async( - this IKubernetes operations, - V1alpha1Role body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedRole1WithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedRole( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedRoleAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedRoleAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedRoleWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedRole1( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedRole1Async( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedRole1Async( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedRole1WithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Role ReadNamespacedRole( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedRoleAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedRoleAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedRoleWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1Role ReadNamespacedRole1( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedRole1Async( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedRole1Async( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedRole1WithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Role PatchNamespacedRole( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedRoleAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedRoleAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedRoleWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1Role PatchNamespacedRole1( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedRole1Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedRole1Async( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedRole1WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Role ReplaceNamespacedRole( - this IKubernetes operations - ,V1Role body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedRoleAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedRoleAsync( - this IKubernetes operations, - V1Role body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedRoleWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1Role ReplaceNamespacedRole1( - this IKubernetes operations - ,V1alpha1Role body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedRole1Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedRole1Async( - this IKubernetes operations, - V1alpha1Role body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedRole1WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1RoleBindingList ListRoleBindingForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListRoleBindingForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListRoleBindingForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListRoleBindingForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1alpha1RoleBindingList ListRoleBindingForAllNamespaces1( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListRoleBindingForAllNamespaces1Async( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListRoleBindingForAllNamespaces1Async( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListRoleBindingForAllNamespaces1WithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1RoleList ListRoleForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListRoleForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListRoleForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListRoleForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1alpha1RoleList ListRoleForAllNamespaces1( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListRoleForAllNamespaces1Async( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListRoleForAllNamespaces1Async( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListRoleForAllNamespaces1WithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionPriorityClass( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionPriorityClassAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionPriorityClassAsync( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionPriorityClassWithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionPriorityClass1( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionPriorityClass1Async( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionPriorityClass1Async( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionPriorityClass1WithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PriorityClassList ListPriorityClass( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListPriorityClassAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListPriorityClassAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListPriorityClassWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1PriorityClassList ListPriorityClass1( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListPriorityClass1Async( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListPriorityClass1Async( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListPriorityClass1WithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PriorityClass CreatePriorityClass( - this IKubernetes operations - ,V1PriorityClass body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreatePriorityClassAsync( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreatePriorityClassAsync( - this IKubernetes operations, - V1PriorityClass body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreatePriorityClassWithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1PriorityClass CreatePriorityClass1( - this IKubernetes operations - ,V1alpha1PriorityClass body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreatePriorityClass1Async( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreatePriorityClass1Async( - this IKubernetes operations, - V1alpha1PriorityClass body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreatePriorityClass1WithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PriorityClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeletePriorityClass( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeletePriorityClassAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PriorityClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeletePriorityClassAsync( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeletePriorityClassWithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PriorityClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeletePriorityClass1( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeletePriorityClass1Async( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PriorityClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeletePriorityClass1Async( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeletePriorityClass1WithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PriorityClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PriorityClass ReadPriorityClass( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadPriorityClassAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PriorityClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadPriorityClassAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadPriorityClassWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PriorityClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1PriorityClass ReadPriorityClass1( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadPriorityClass1Async( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PriorityClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadPriorityClass1Async( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadPriorityClass1WithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PriorityClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PriorityClass PatchPriorityClass( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchPriorityClassAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PriorityClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchPriorityClassAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchPriorityClassWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PriorityClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1PriorityClass PatchPriorityClass1( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchPriorityClass1Async( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PriorityClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchPriorityClass1Async( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchPriorityClass1WithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PriorityClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PriorityClass ReplacePriorityClass( - this IKubernetes operations - ,V1PriorityClass body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplacePriorityClassAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PriorityClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplacePriorityClassAsync( - this IKubernetes operations, - V1PriorityClass body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplacePriorityClassWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PriorityClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1PriorityClass ReplacePriorityClass1( - this IKubernetes operations - ,V1alpha1PriorityClass body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplacePriorityClass1Async( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the PriorityClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplacePriorityClass1Async( - this IKubernetes operations, - V1alpha1PriorityClass body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplacePriorityClass1WithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of CSIDriver - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionCSIDriver( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionCSIDriverAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of CSIDriver - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionCSIDriverAsync( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionCSIDriverWithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind CSIDriver - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CSIDriverList ListCSIDriver( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListCSIDriverAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind CSIDriver - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListCSIDriverAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListCSIDriverWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a CSIDriver - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CSIDriver CreateCSIDriver( - this IKubernetes operations - ,V1CSIDriver body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateCSIDriverAsync( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a CSIDriver - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateCSIDriverAsync( - this IKubernetes operations, - V1CSIDriver body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateCSIDriverWithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a CSIDriver - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CSIDriver - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CSIDriver DeleteCSIDriver( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteCSIDriverAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a CSIDriver - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CSIDriver - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCSIDriverAsync( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCSIDriverWithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified CSIDriver - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CSIDriver - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CSIDriver ReadCSIDriver( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadCSIDriverAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified CSIDriver - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CSIDriver - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadCSIDriverAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadCSIDriverWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified CSIDriver - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CSIDriver - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CSIDriver PatchCSIDriver( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchCSIDriverAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified CSIDriver - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CSIDriver - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchCSIDriverAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchCSIDriverWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified CSIDriver - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CSIDriver - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CSIDriver ReplaceCSIDriver( - this IKubernetes operations - ,V1CSIDriver body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceCSIDriverAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified CSIDriver - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CSIDriver - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceCSIDriverAsync( - this IKubernetes operations, - V1CSIDriver body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceCSIDriverWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of CSINode - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionCSINode( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionCSINodeAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of CSINode - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionCSINodeAsync( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionCSINodeWithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind CSINode - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CSINodeList ListCSINode( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListCSINodeAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind CSINode - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListCSINodeAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListCSINodeWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a CSINode - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CSINode CreateCSINode( - this IKubernetes operations - ,V1CSINode body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateCSINodeAsync( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a CSINode - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateCSINodeAsync( - this IKubernetes operations, - V1CSINode body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateCSINodeWithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a CSINode - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CSINode - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CSINode DeleteCSINode( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteCSINodeAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a CSINode - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CSINode - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCSINodeAsync( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCSINodeWithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified CSINode - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CSINode - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CSINode ReadCSINode( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadCSINodeAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified CSINode - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CSINode - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadCSINodeAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadCSINodeWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified CSINode - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CSINode - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CSINode PatchCSINode( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchCSINodeAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified CSINode - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CSINode - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchCSINodeAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchCSINodeWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified CSINode - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CSINode - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1CSINode ReplaceCSINode( - this IKubernetes operations - ,V1CSINode body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceCSINodeAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified CSINode - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CSINode - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceCSINodeAsync( - this IKubernetes operations, - V1CSINode body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceCSINodeWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionStorageClass( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionStorageClassAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionStorageClassAsync( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionStorageClassWithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1StorageClassList ListStorageClass( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListStorageClassAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListStorageClassAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListStorageClassWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1StorageClass CreateStorageClass( - this IKubernetes operations - ,V1StorageClass body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateStorageClassAsync( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateStorageClassAsync( - this IKubernetes operations, - V1StorageClass body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateStorageClassWithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the StorageClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1StorageClass DeleteStorageClass( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteStorageClassAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the StorageClass - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteStorageClassAsync( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteStorageClassWithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the StorageClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1StorageClass ReadStorageClass( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadStorageClassAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the StorageClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadStorageClassAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadStorageClassWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1StorageClass PatchStorageClass( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchStorageClassAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchStorageClassAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchStorageClassWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1StorageClass ReplaceStorageClass( - this IKubernetes operations - ,V1StorageClass body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceStorageClassAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceStorageClassAsync( - this IKubernetes operations, - V1StorageClass body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceStorageClassWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionVolumeAttachment( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionVolumeAttachmentAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionVolumeAttachmentAsync( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionVolumeAttachmentWithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionVolumeAttachment1( - this IKubernetes operations - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionVolumeAttachment1Async( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionVolumeAttachment1Async( - this IKubernetes operations, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionVolumeAttachment1WithHttpMessagesAsync( - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1VolumeAttachmentList ListVolumeAttachment( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListVolumeAttachmentAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListVolumeAttachmentAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListVolumeAttachmentWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1VolumeAttachmentList ListVolumeAttachment1( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListVolumeAttachment1Async( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListVolumeAttachment1Async( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListVolumeAttachment1WithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1VolumeAttachment CreateVolumeAttachment( - this IKubernetes operations - ,V1VolumeAttachment body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateVolumeAttachmentAsync( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateVolumeAttachmentAsync( - this IKubernetes operations, - V1VolumeAttachment body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateVolumeAttachmentWithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1VolumeAttachment CreateVolumeAttachment1( - this IKubernetes operations - ,V1alpha1VolumeAttachment body - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateVolumeAttachment1Async( - body, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateVolumeAttachment1Async( - this IKubernetes operations, - V1alpha1VolumeAttachment body, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateVolumeAttachment1WithHttpMessagesAsync( - body, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the VolumeAttachment - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1VolumeAttachment DeleteVolumeAttachment( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteVolumeAttachmentAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the VolumeAttachment - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteVolumeAttachmentAsync( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteVolumeAttachmentWithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the VolumeAttachment - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1VolumeAttachment DeleteVolumeAttachment1( - this IKubernetes operations - ,string name - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteVolumeAttachment1Async( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the VolumeAttachment - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteVolumeAttachment1Async( - this IKubernetes operations, - string name, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteVolumeAttachment1WithHttpMessagesAsync( - name, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the VolumeAttachment - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1VolumeAttachment ReadVolumeAttachment( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadVolumeAttachmentAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the VolumeAttachment - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadVolumeAttachmentAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadVolumeAttachmentWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the VolumeAttachment - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1VolumeAttachment ReadVolumeAttachment1( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadVolumeAttachment1Async( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the VolumeAttachment - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadVolumeAttachment1Async( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadVolumeAttachment1WithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the VolumeAttachment - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1VolumeAttachment PatchVolumeAttachment( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchVolumeAttachmentAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the VolumeAttachment - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchVolumeAttachmentAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchVolumeAttachmentWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the VolumeAttachment - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1VolumeAttachment PatchVolumeAttachment1( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchVolumeAttachment1Async( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the VolumeAttachment - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchVolumeAttachment1Async( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchVolumeAttachment1WithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the VolumeAttachment - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1VolumeAttachment ReplaceVolumeAttachment( - this IKubernetes operations - ,V1VolumeAttachment body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceVolumeAttachmentAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the VolumeAttachment - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceVolumeAttachmentAsync( - this IKubernetes operations, - V1VolumeAttachment body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceVolumeAttachmentWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the VolumeAttachment - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1VolumeAttachment ReplaceVolumeAttachment1( - this IKubernetes operations - ,V1alpha1VolumeAttachment body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceVolumeAttachment1Async( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the VolumeAttachment - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceVolumeAttachment1Async( - this IKubernetes operations, - V1alpha1VolumeAttachment body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceVolumeAttachment1WithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the VolumeAttachment - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1VolumeAttachment ReadVolumeAttachmentStatus( - this IKubernetes operations - ,string name - ,bool? pretty = null - ) - { - return operations.ReadVolumeAttachmentStatusAsync( - name, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the VolumeAttachment - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadVolumeAttachmentStatusAsync( - this IKubernetes operations, - string name, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadVolumeAttachmentStatusWithHttpMessagesAsync( - name, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the VolumeAttachment - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1VolumeAttachment PatchVolumeAttachmentStatus( - this IKubernetes operations - ,V1Patch body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchVolumeAttachmentStatusAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the VolumeAttachment - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchVolumeAttachmentStatusAsync( - this IKubernetes operations, - V1Patch body, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchVolumeAttachmentStatusWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the VolumeAttachment - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1VolumeAttachment ReplaceVolumeAttachmentStatus( - this IKubernetes operations - ,V1VolumeAttachment body - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceVolumeAttachmentStatusAsync( - body, - name, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified VolumeAttachment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the VolumeAttachment - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceVolumeAttachmentStatusAsync( - this IKubernetes operations, - V1VolumeAttachment body, - string name, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceVolumeAttachmentStatusWithHttpMessagesAsync( - body, - name, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1alpha1CSIStorageCapacityList ListCSIStorageCapacityForAllNamespaces( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListCSIStorageCapacityForAllNamespacesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListCSIStorageCapacityForAllNamespacesAsync( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListCSIStorageCapacityForAllNamespacesWithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - public static V1beta1CSIStorageCapacityList ListCSIStorageCapacityForAllNamespaces1( - this IKubernetes operations - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,bool? pretty = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ) - { - return operations.ListCSIStorageCapacityForAllNamespaces1Async( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListCSIStorageCapacityForAllNamespaces1Async( - this IKubernetes operations, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - bool? pretty = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListCSIStorageCapacityForAllNamespaces1WithHttpMessagesAsync( - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedCSIStorageCapacity( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedCSIStorageCapacityAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedCSIStorageCapacityAsync( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedCSIStorageCapacityWithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCollectionNamespacedCSIStorageCapacity1( - this IKubernetes operations - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string continueParameter = null - ,string dryRun = null - ,string fieldSelector = null - ,int? gracePeriodSeconds = null - ,string labelSelector = null - ,int? limit = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedCSIStorageCapacity1Async( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete collection of CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedCSIStorageCapacity1Async( - this IKubernetes operations, - string namespaceParameter, - V1DeleteOptions body = null, - string continueParameter = null, - string dryRun = null, - string fieldSelector = null, - int? gracePeriodSeconds = null, - string labelSelector = null, - int? limit = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedCSIStorageCapacity1WithHttpMessagesAsync( - namespaceParameter, - body, - continueParameter, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1CSIStorageCapacityList ListNamespacedCSIStorageCapacity( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedCSIStorageCapacityAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedCSIStorageCapacityAsync( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedCSIStorageCapacityWithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CSIStorageCapacityList ListNamespacedCSIStorageCapacity1( - this IKubernetes operations - ,string namespaceParameter - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedCSIStorageCapacity1Async( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, nor may they assume the server will send any BOOKMARK event - /// during a session. If this is not a watch, this field is ignored. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// resourceVersion sets a constraint on what resource versions a request may be - /// served from. See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. Specify resourceVersion. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedCSIStorageCapacity1Async( - this IKubernetes operations, - string namespaceParameter, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedCSIStorageCapacity1WithHttpMessagesAsync( - namespaceParameter, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1CSIStorageCapacity CreateNamespacedCSIStorageCapacity( - this IKubernetes operations - ,V1alpha1CSIStorageCapacity body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedCSIStorageCapacityAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedCSIStorageCapacityAsync( - this IKubernetes operations, - V1alpha1CSIStorageCapacity body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedCSIStorageCapacityWithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CSIStorageCapacity CreateNamespacedCSIStorageCapacity1( - this IKubernetes operations - ,V1beta1CSIStorageCapacity body - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedCSIStorageCapacity1Async( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// create a CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedCSIStorageCapacity1Async( - this IKubernetes operations, - V1beta1CSIStorageCapacity body, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedCSIStorageCapacity1WithHttpMessagesAsync( - body, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedCSIStorageCapacity( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedCSIStorageCapacityAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedCSIStorageCapacityAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedCSIStorageCapacityWithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedCSIStorageCapacity1( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,V1DeleteOptions body = null - ,string dryRun = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,bool? pretty = null - ) - { - return operations.DeleteNamespacedCSIStorageCapacity1Async( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// delete a CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedCSIStorageCapacity1Async( - this IKubernetes operations, - string name, - string namespaceParameter, - V1DeleteOptions body = null, - string dryRun = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedCSIStorageCapacity1WithHttpMessagesAsync( - name, - namespaceParameter, - body, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1CSIStorageCapacity ReadNamespacedCSIStorageCapacity( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedCSIStorageCapacityAsync( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedCSIStorageCapacityAsync( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedCSIStorageCapacityWithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CSIStorageCapacity ReadNamespacedCSIStorageCapacity1( - this IKubernetes operations - ,string name - ,string namespaceParameter - ,bool? pretty = null - ) - { - return operations.ReadNamespacedCSIStorageCapacity1Async( - name, - namespaceParameter, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read the specified CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReadNamespacedCSIStorageCapacity1Async( - this IKubernetes operations, - string name, - string namespaceParameter, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedCSIStorageCapacity1WithHttpMessagesAsync( - name, - namespaceParameter, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1CSIStorageCapacity PatchNamespacedCSIStorageCapacity( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedCSIStorageCapacityAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedCSIStorageCapacityAsync( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedCSIStorageCapacityWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CSIStorageCapacity PatchNamespacedCSIStorageCapacity1( - this IKubernetes operations - ,V1Patch body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ,bool? pretty = null - ) - { - return operations.PatchNamespacedCSIStorageCapacity1Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedCSIStorageCapacity1Async( - this IKubernetes operations, - V1Patch body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? force = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedCSIStorageCapacity1WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - force, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1CSIStorageCapacity ReplaceNamespacedCSIStorageCapacity( - this IKubernetes operations - ,V1alpha1CSIStorageCapacity body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedCSIStorageCapacityAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedCSIStorageCapacityAsync( - this IKubernetes operations, - V1alpha1CSIStorageCapacity body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedCSIStorageCapacityWithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CSIStorageCapacity ReplaceNamespacedCSIStorageCapacity1( - this IKubernetes operations - ,V1beta1CSIStorageCapacity body - ,string name - ,string namespaceParameter - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.ReplaceNamespacedCSIStorageCapacity1Async( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified CSIStorageCapacity - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// name of the CSIStorageCapacity - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedCSIStorageCapacity1Async( - this IKubernetes operations, - V1beta1CSIStorageCapacity body, - string name, - string namespaceParameter, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedCSIStorageCapacity1WithHttpMessagesAsync( - body, - name, - namespaceParameter, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// - /// - /// - /// The operations group for this extension method. - /// - public static void LogFileListHandler( - this IKubernetes operations - ) - { - operations.LogFileListHandlerAsync( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task LogFileListHandlerAsync( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.LogFileListHandlerWithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - } - } - - /// - /// - /// - /// - /// The operations group for this extension method. - /// - /// - /// path to the log - /// - public static void LogFileHandler( - this IKubernetes operations - ,string logpath - ) - { - operations.LogFileHandlerAsync( - logpath, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// - /// - /// - /// The operations group for this extension method. - /// - /// - /// path to the log - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task LogFileHandlerAsync( - this IKubernetes operations, - string logpath, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.LogFileHandlerWithHttpMessagesAsync( - logpath, - null, - cancellationToken).ConfigureAwait(false)) - { - } - } - - /// - /// get service account issuer OpenID JSON Web Key Set (contains public token - /// verification keys) - /// - /// - /// The operations group for this extension method. - /// - public static string GetServiceAccountIssuerOpenIDKeyset( - this IKubernetes operations - ) - { - return operations.GetServiceAccountIssuerOpenIDKeysetAsync( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get service account issuer OpenID JSON Web Key Set (contains public token - /// verification keys) - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetServiceAccountIssuerOpenIDKeysetAsync( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetServiceAccountIssuerOpenIDKeysetWithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// get the code version - /// - /// - /// The operations group for this extension method. - /// - public static VersionInfo GetCode( - this IKubernetes operations - ) - { - return operations.GetCodeAsync( - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// get the code version - /// - /// - /// The operations group for this extension method. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetCodeAsync( - this IKubernetes operations, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetCodeWithHttpMessagesAsync( - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Creates a namespace scoped Custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// The JSON schema of the Resource to create. - /// - /// - /// The custom resource's group name - /// - /// - /// The custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// The custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static object CreateNamespacedCustomObject( - this IKubernetes operations - ,object body - ,string group - ,string version - ,string namespaceParameter - ,string plural - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateNamespacedCustomObjectAsync( - body, - group, - version, - namespaceParameter, - plural, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// Creates a namespace scoped Custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// The JSON schema of the Resource to create. - /// - /// - /// The custom resource's group name - /// - /// - /// The custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// The custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateNamespacedCustomObjectAsync( - this IKubernetes operations, - object body, - string group, - string version, - string namespaceParameter, - string plural, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedCustomObjectWithHttpMessagesAsync( - body, - group, - version, - namespaceParameter, - plural, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Delete collection of namespace scoped custom objects - /// - /// - /// The operations group for this extension method. - /// - /// - /// The custom resource's group name - /// - /// - /// The custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// The custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static object DeleteCollectionNamespacedCustomObject( - this IKubernetes operations - ,string group - ,string version - ,string namespaceParameter - ,string plural - ,V1DeleteOptions body = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string dryRun = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionNamespacedCustomObjectAsync( - group, - version, - namespaceParameter, - plural, - body, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - dryRun, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// Delete collection of namespace scoped custom objects - /// - /// - /// The operations group for this extension method. - /// - /// - /// The custom resource's group name - /// - /// - /// The custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// The custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionNamespacedCustomObjectAsync( - this IKubernetes operations, - string group, - string version, - string namespaceParameter, - string plural, - V1DeleteOptions body = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string dryRun = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedCustomObjectWithHttpMessagesAsync( - group, - version, - namespaceParameter, - plural, - body, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - dryRun, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch namespace scoped custom objects - /// - /// - /// The operations group for this extension method. - /// - /// - /// The custom resource's group name - /// - /// - /// The custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// The custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, 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. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// 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. - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static object ListNamespacedCustomObject( - this IKubernetes operations - ,string group - ,string version - ,string namespaceParameter - ,string plural - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListNamespacedCustomObjectAsync( - group, - version, - namespaceParameter, - plural, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch namespace scoped custom objects - /// - /// - /// The operations group for this extension method. - /// - /// - /// The custom resource's group name - /// - /// - /// The custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// The custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, 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. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// 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. - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListNamespacedCustomObjectAsync( - this IKubernetes operations, - string group, - string version, - string namespaceParameter, - string plural, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedCustomObjectWithHttpMessagesAsync( - group, - version, - namespaceParameter, - plural, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Creates a cluster scoped Custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// The JSON schema of the Resource to create. - /// - /// - /// The custom resource's group name - /// - /// - /// The custom resource's version - /// - /// - /// The custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static object CreateClusterCustomObject( - this IKubernetes operations - ,object body - ,string group - ,string version - ,string plural - ,string dryRun = null - ,string fieldManager = null - ,bool? pretty = null - ) - { - return operations.CreateClusterCustomObjectAsync( - body, - group, - version, - plural, - dryRun, - fieldManager, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// Creates a cluster scoped Custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// The JSON schema of the Resource to create. - /// - /// - /// The custom resource's group name - /// - /// - /// The custom resource's version - /// - /// - /// The custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task CreateClusterCustomObjectAsync( - this IKubernetes operations, - object body, - string group, - string version, - string plural, - string dryRun = null, - string fieldManager = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateClusterCustomObjectWithHttpMessagesAsync( - body, - group, - version, - plural, - dryRun, - fieldManager, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Delete collection of cluster scoped custom objects - /// - /// - /// The operations group for this extension method. - /// - /// - /// The custom resource's group name - /// - /// - /// The custom resource's version - /// - /// - /// The custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static object DeleteCollectionClusterCustomObject( - this IKubernetes operations - ,string group - ,string version - ,string plural - ,V1DeleteOptions body = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string dryRun = null - ,bool? pretty = null - ) - { - return operations.DeleteCollectionClusterCustomObjectAsync( - group, - version, - plural, - body, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - dryRun, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// Delete collection of cluster scoped custom objects - /// - /// - /// The operations group for this extension method. - /// - /// - /// The custom resource's group name - /// - /// - /// The custom resource's version - /// - /// - /// The custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteCollectionClusterCustomObjectAsync( - this IKubernetes operations, - string group, - string version, - string plural, - V1DeleteOptions body = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string dryRun = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionClusterCustomObjectWithHttpMessagesAsync( - group, - version, - plural, - body, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - dryRun, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch cluster scoped custom objects - /// - /// - /// The operations group for this extension method. - /// - /// - /// The custom resource's group name - /// - /// - /// The custom resource's version - /// - /// - /// The custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, 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. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// 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. - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static object ListClusterCustomObject( - this IKubernetes operations - ,string group - ,string version - ,string plural - ,bool? allowWatchBookmarks = null - ,string continueParameter = null - ,string fieldSelector = null - ,string labelSelector = null - ,int? limit = null - ,string resourceVersion = null - ,string resourceVersionMatch = null - ,int? timeoutSeconds = null - ,bool? watch = null - ,bool? pretty = null - ) - { - return operations.ListClusterCustomObjectAsync( - group, - version, - plural, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// list or watch cluster scoped custom objects - /// - /// - /// The operations group for this extension method. - /// - /// - /// The custom resource's group name - /// - /// - /// The custom resource's version - /// - /// - /// The custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do - /// not implement bookmarks may ignore this flag and bookmarks are sent at the - /// server's discretion. Clients should not assume bookmarks are returned at any - /// specific interval, 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. - /// - /// - /// The continue option should be set when retrieving more results from the server. - /// Since this value is server defined, clients may only use the continue value from - /// a previous query result with identical query parameters (except for the value of - /// continue) and the server may reject a continue value it does not recognize. If - /// the specified continue value is no longer valid whether due to expiration - /// (generally five to fifteen minutes) or a configuration change on the server, the - /// server will respond with a 410 ResourceExpired error together with a continue - /// token. If the client needs a consistent list, it must restart their list without - /// the continue field. Otherwise, the client may send another list request with the - /// token received with the 410 error, the server will respond with a list starting - /// from the next key, but from the latest snapshot, which is inconsistent from the - /// previous list results - objects that are created, modified, or deleted after the - /// first list request will be included in the response, as long as their keys are - /// after the "next key". - /// - /// This field is not supported when watch is true. Clients may start a watch from - /// the last resourceVersion value returned by the server and not miss any - /// modifications. - /// - /// - /// A selector to restrict the list of returned objects by their fields. Defaults to - /// everything. - /// - /// - /// A selector to restrict the list of returned objects by their labels. Defaults to - /// everything. - /// - /// - /// limit is a maximum number of responses to return for a list call. If more items - /// exist, the server will set the `continue` field on the list metadata to a value - /// that can be used with the same initial query to retrieve the next set of - /// results. Setting a limit may return fewer than the requested amount of items (up - /// to zero items) in the event all requested objects are filtered out and clients - /// should only use the presence of the continue field to determine whether more - /// results are available. Servers may choose not to support the limit argument and - /// will return all of the available results. If limit is specified and the continue - /// field is empty, clients may assume that no more results are available. This - /// field is not supported if watch is true. - /// - /// The server guarantees that the objects returned when using continue will be - /// identical to issuing a single list call without a limit - that is, no objects - /// created, modified, or deleted after the first request is issued will be included - /// in any subsequent continued requests. This is sometimes referred to as a - /// consistent snapshot, and ensures that a client that is using limit to receive - /// smaller chunks of a very large result can ensure they see all possible objects. - /// If objects are updated during a chunked list the version of the object that was - /// present at the time the first list result was calculated is returned. - /// - /// - /// 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. - /// - /// - /// resourceVersionMatch determines how resourceVersion is applied to list calls. It - /// is highly recommended that resourceVersionMatch be set for list calls where - /// resourceVersion is set See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions - /// for details. - /// - /// Defaults to unset - /// - /// - /// Timeout for the list/watch call. This limits the duration of the call, - /// regardless of any activity or inactivity. - /// - /// - /// Watch for changes to the described resources and return them as a stream of add, - /// update, and remove notifications. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ListClusterCustomObjectAsync( - this IKubernetes operations, - string group, - string version, - string plural, - bool? allowWatchBookmarks = null, - string continueParameter = null, - string fieldSelector = null, - string labelSelector = null, - int? limit = null, - string resourceVersion = null, - string resourceVersionMatch = null, - int? timeoutSeconds = null, - bool? watch = null, - bool? pretty = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListClusterCustomObjectWithHttpMessagesAsync( - group, - version, - plural, - allowWatchBookmarks, - continueParameter, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - pretty, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the cluster scoped specified custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - public static object ReplaceClusterCustomObjectStatus( - this IKubernetes operations - ,object body - ,string group - ,string version - ,string plural - ,string name - ,string dryRun = null - ,string fieldManager = null - ) - { - return operations.ReplaceClusterCustomObjectStatusAsync( - body, - group, - version, - plural, - name, - dryRun, - fieldManager, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the cluster scoped specified custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceClusterCustomObjectStatusAsync( - this IKubernetes operations, - object body, - string group, - string version, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceClusterCustomObjectStatusWithHttpMessagesAsync( - body, - group, - version, - plural, - name, - dryRun, - fieldManager, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified cluster scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - public static object PatchClusterCustomObjectStatus( - this IKubernetes operations - ,object body - ,string group - ,string version - ,string plural - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ) - { - return operations.PatchClusterCustomObjectStatusAsync( - body, - group, - version, - plural, - name, - dryRun, - fieldManager, - force, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified cluster scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchClusterCustomObjectStatusAsync( - this IKubernetes operations, - object body, - string group, - string version, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchClusterCustomObjectStatusWithHttpMessagesAsync( - body, - group, - version, - plural, - name, - dryRun, - fieldManager, - force, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified cluster scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - public static object GetClusterCustomObjectStatus( - this IKubernetes operations - ,string group - ,string version - ,string plural - ,string name - ) - { - return operations.GetClusterCustomObjectStatusAsync( - group, - version, - plural, - name, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified cluster scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetClusterCustomObjectStatusAsync( - this IKubernetes operations, - string group, - string version, - string plural, - string name, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetClusterCustomObjectStatusWithHttpMessagesAsync( - group, - version, - plural, - name, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified namespace scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// The JSON schema of the Resource to replace. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - public static object ReplaceNamespacedCustomObject( - this IKubernetes operations - ,object body - ,string group - ,string version - ,string namespaceParameter - ,string plural - ,string name - ,string dryRun = null - ,string fieldManager = null - ) - { - return operations.ReplaceNamespacedCustomObjectAsync( - body, - group, - version, - namespaceParameter, - plural, - name, - dryRun, - fieldManager, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified namespace scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// The JSON schema of the Resource to replace. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedCustomObjectAsync( - this IKubernetes operations, - object body, - string group, - string version, - string namespaceParameter, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedCustomObjectWithHttpMessagesAsync( - body, - group, - version, - namespaceParameter, - plural, - name, - dryRun, - fieldManager, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// patch the specified namespace scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// The JSON schema of the Resource to patch. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - public static object PatchNamespacedCustomObject( - this IKubernetes operations - ,object body - ,string group - ,string version - ,string namespaceParameter - ,string plural - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ) - { - return operations.PatchNamespacedCustomObjectAsync( - body, - group, - version, - namespaceParameter, - plural, - name, - dryRun, - fieldManager, - force, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// patch the specified namespace scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// The JSON schema of the Resource to patch. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedCustomObjectAsync( - this IKubernetes operations, - object body, - string group, - string version, - string namespaceParameter, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedCustomObjectWithHttpMessagesAsync( - body, - group, - version, - namespaceParameter, - plural, - name, - dryRun, - fieldManager, - force, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Deletes the specified namespace scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - public static object DeleteNamespacedCustomObject( - this IKubernetes operations - ,string group - ,string version - ,string namespaceParameter - ,string plural - ,string name - ,V1DeleteOptions body = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string dryRun = null - ) - { - return operations.DeleteNamespacedCustomObjectAsync( - group, - version, - namespaceParameter, - plural, - name, - body, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - dryRun, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// Deletes the specified namespace scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteNamespacedCustomObjectAsync( - this IKubernetes operations, - string group, - string version, - string namespaceParameter, - string plural, - string name, - V1DeleteOptions body = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string dryRun = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedCustomObjectWithHttpMessagesAsync( - group, - version, - namespaceParameter, - plural, - name, - body, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - dryRun, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Returns a namespace scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - public static object GetNamespacedCustomObject( - this IKubernetes operations - ,string group - ,string version - ,string namespaceParameter - ,string plural - ,string name - ) - { - return operations.GetNamespacedCustomObjectAsync( - group, - version, - namespaceParameter, - plural, - name, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// Returns a namespace scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetNamespacedCustomObjectAsync( - this IKubernetes operations, - string group, - string version, - string namespaceParameter, - string plural, - string name, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetNamespacedCustomObjectWithHttpMessagesAsync( - group, - version, - namespaceParameter, - plural, - name, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace scale of the specified namespace scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - public static object ReplaceNamespacedCustomObjectScale( - this IKubernetes operations - ,object body - ,string group - ,string version - ,string namespaceParameter - ,string plural - ,string name - ,string dryRun = null - ,string fieldManager = null - ) - { - return operations.ReplaceNamespacedCustomObjectScaleAsync( - body, - group, - version, - namespaceParameter, - plural, - name, - dryRun, - fieldManager, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace scale of the specified namespace scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedCustomObjectScaleAsync( - this IKubernetes operations, - object body, - string group, - string version, - string namespaceParameter, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedCustomObjectScaleWithHttpMessagesAsync( - body, - group, - version, - namespaceParameter, - plural, - name, - dryRun, - fieldManager, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update scale of the specified namespace scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - public static object PatchNamespacedCustomObjectScale( - this IKubernetes operations - ,object body - ,string group - ,string version - ,string namespaceParameter - ,string plural - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ) - { - return operations.PatchNamespacedCustomObjectScaleAsync( - body, - group, - version, - namespaceParameter, - plural, - name, - dryRun, - fieldManager, - force, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update scale of the specified namespace scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedCustomObjectScaleAsync( - this IKubernetes operations, - object body, - string group, - string version, - string namespaceParameter, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedCustomObjectScaleWithHttpMessagesAsync( - body, - group, - version, - namespaceParameter, - plural, - name, - dryRun, - fieldManager, - force, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read scale of the specified namespace scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - public static object GetNamespacedCustomObjectScale( - this IKubernetes operations - ,string group - ,string version - ,string namespaceParameter - ,string plural - ,string name - ) - { - return operations.GetNamespacedCustomObjectScaleAsync( - group, - version, - namespaceParameter, - plural, - name, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read scale of the specified namespace scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetNamespacedCustomObjectScaleAsync( - this IKubernetes operations, - string group, - string version, - string namespaceParameter, - string plural, - string name, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetNamespacedCustomObjectScaleWithHttpMessagesAsync( - group, - version, - namespaceParameter, - plural, - name, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace scale of the specified cluster scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - public static object ReplaceClusterCustomObjectScale( - this IKubernetes operations - ,object body - ,string group - ,string version - ,string plural - ,string name - ,string dryRun = null - ,string fieldManager = null - ) - { - return operations.ReplaceClusterCustomObjectScaleAsync( - body, - group, - version, - plural, - name, - dryRun, - fieldManager, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace scale of the specified cluster scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceClusterCustomObjectScaleAsync( - this IKubernetes operations, - object body, - string group, - string version, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceClusterCustomObjectScaleWithHttpMessagesAsync( - body, - group, - version, - plural, - name, - dryRun, - fieldManager, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update scale of the specified cluster scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - public static object PatchClusterCustomObjectScale( - this IKubernetes operations - ,object body - ,string group - ,string version - ,string plural - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ) - { - return operations.PatchClusterCustomObjectScaleAsync( - body, - group, - version, - plural, - name, - dryRun, - fieldManager, - force, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update scale of the specified cluster scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchClusterCustomObjectScaleAsync( - this IKubernetes operations, - object body, - string group, - string version, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchClusterCustomObjectScaleWithHttpMessagesAsync( - body, - group, - version, - plural, - name, - dryRun, - fieldManager, - force, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read scale of the specified custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - public static object GetClusterCustomObjectScale( - this IKubernetes operations - ,string group - ,string version - ,string plural - ,string name - ) - { - return operations.GetClusterCustomObjectScaleAsync( - group, - version, - plural, - name, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read scale of the specified custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetClusterCustomObjectScaleAsync( - this IKubernetes operations, - string group, - string version, - string plural, - string name, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetClusterCustomObjectScaleWithHttpMessagesAsync( - group, - version, - plural, - name, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified cluster scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// The JSON schema of the Resource to replace. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom object's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - public static object ReplaceClusterCustomObject( - this IKubernetes operations - ,object body - ,string group - ,string version - ,string plural - ,string name - ,string dryRun = null - ,string fieldManager = null - ) - { - return operations.ReplaceClusterCustomObjectAsync( - body, - group, - version, - plural, - name, - dryRun, - fieldManager, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace the specified cluster scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// The JSON schema of the Resource to replace. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom object's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceClusterCustomObjectAsync( - this IKubernetes operations, - object body, - string group, - string version, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceClusterCustomObjectWithHttpMessagesAsync( - body, - group, - version, - plural, - name, - dryRun, - fieldManager, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// patch the specified cluster scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// The JSON schema of the Resource to patch. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom object's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - public static object PatchClusterCustomObject( - this IKubernetes operations - ,object body - ,string group - ,string version - ,string plural - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ) - { - return operations.PatchClusterCustomObjectAsync( - body, - group, - version, - plural, - name, - dryRun, - fieldManager, - force, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// patch the specified cluster scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// The JSON schema of the Resource to patch. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom object's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchClusterCustomObjectAsync( - this IKubernetes operations, - object body, - string group, - string version, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchClusterCustomObjectWithHttpMessagesAsync( - body, - group, - version, - plural, - name, - dryRun, - fieldManager, - force, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Deletes the specified cluster scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom object's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - public static object DeleteClusterCustomObject( - this IKubernetes operations - ,string group - ,string version - ,string plural - ,string name - ,V1DeleteOptions body = null - ,int? gracePeriodSeconds = null - ,bool? orphanDependents = null - ,string propagationPolicy = null - ,string dryRun = null - ) - { - return operations.DeleteClusterCustomObjectAsync( - group, - version, - plural, - name, - body, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - dryRun, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// Deletes the specified cluster scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom object's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task DeleteClusterCustomObjectAsync( - this IKubernetes operations, - string group, - string version, - string plural, - string name, - V1DeleteOptions body = null, - int? gracePeriodSeconds = null, - bool? orphanDependents = null, - string propagationPolicy = null, - string dryRun = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteClusterCustomObjectWithHttpMessagesAsync( - group, - version, - plural, - name, - body, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - dryRun, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Returns a cluster scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom object's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - public static object GetClusterCustomObject( - this IKubernetes operations - ,string group - ,string version - ,string plural - ,string name - ) - { - return operations.GetClusterCustomObjectAsync( - group, - version, - plural, - name, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// Returns a cluster scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// the custom object's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetClusterCustomObjectAsync( - this IKubernetes operations, - string group, - string version, - string plural, - string name, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetClusterCustomObjectWithHttpMessagesAsync( - group, - version, - plural, - name, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace status of the specified namespace scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - public static object ReplaceNamespacedCustomObjectStatus( - this IKubernetes operations - ,object body - ,string group - ,string version - ,string namespaceParameter - ,string plural - ,string name - ,string dryRun = null - ,string fieldManager = null - ) - { - return operations.ReplaceNamespacedCustomObjectStatusAsync( - body, - group, - version, - namespaceParameter, - plural, - name, - dryRun, - fieldManager, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified namespace scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task ReplaceNamespacedCustomObjectStatusAsync( - this IKubernetes operations, - object body, - string group, - string version, - string namespaceParameter, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedCustomObjectStatusWithHttpMessagesAsync( - body, - group, - version, - namespaceParameter, - plural, - name, - dryRun, - fieldManager, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update status of the specified namespace scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - public static object PatchNamespacedCustomObjectStatus( - this IKubernetes operations - ,object body - ,string group - ,string version - ,string namespaceParameter - ,string plural - ,string name - ,string dryRun = null - ,string fieldManager = null - ,bool? force = null - ) - { - return operations.PatchNamespacedCustomObjectStatusAsync( - body, - group, - version, - namespaceParameter, - plural, - name, - dryRun, - fieldManager, - force, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified namespace scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// fieldManager is a name associated with the actor or entity that is making these - /// changes. The value must be less than or 128 characters long, and only contain - /// printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - /// This field is required for apply requests (application/apply-patch) but optional - /// for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - /// - /// - /// Force is going to "force" Apply requests. It means user will re-acquire - /// conflicting fields owned by other people. Force flag must be unset for non-apply - /// patch requests. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task PatchNamespacedCustomObjectStatusAsync( - this IKubernetes operations, - object body, - string group, - string version, - string namespaceParameter, - string plural, - string name, - string dryRun = null, - string fieldManager = null, - bool? force = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedCustomObjectStatusWithHttpMessagesAsync( - body, - group, - version, - namespaceParameter, - plural, - name, - dryRun, - fieldManager, - force, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read status of the specified namespace scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - public static object GetNamespacedCustomObjectStatus( - this IKubernetes operations - ,string group - ,string version - ,string namespaceParameter - ,string plural - ,string name - ) - { - return operations.GetNamespacedCustomObjectStatusAsync( - group, - version, - namespaceParameter, - plural, - name, - CancellationToken.None - ).GetAwaiter().GetResult(); - } - - /// - /// read status of the specified namespace scoped custom object - /// - /// - /// The operations group for this extension method. - /// - /// - /// the custom resource's group - /// - /// - /// the custom resource's version - /// - /// - /// The custom resource's namespace - /// - /// - /// the custom resource's plural name. For TPRs this would be lowercase plural kind. - /// - /// - /// the custom object's name - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - public static async Task GetNamespacedCustomObjectStatusAsync( - this IKubernetes operations, - string group, - string version, - string namespaceParameter, - string plural, - string name, - CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetNamespacedCustomObjectStatusWithHttpMessagesAsync( - group, - version, - namespaceParameter, - plural, - name, - null, - cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - } -} diff --git a/src/KubernetesClient/generated/ModelExtensions.cs b/src/KubernetesClient/generated/ModelExtensions.cs deleted file mode 100644 index 4aa400408..000000000 --- a/src/KubernetesClient/generated/ModelExtensions.cs +++ /dev/null @@ -1,1184 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// -namespace k8s.Models -{ - [KubernetesEntity(Group="admissionregistration.k8s.io", Kind="MutatingWebhookConfiguration", ApiVersion="v1", PluralName="mutatingwebhookconfigurations")] - public partial class V1MutatingWebhookConfiguration : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "MutatingWebhookConfiguration"; - public const string KubeGroup = "admissionregistration.k8s.io"; - } - - [KubernetesEntity(Group="admissionregistration.k8s.io", Kind="MutatingWebhookConfigurationList", ApiVersion="v1", PluralName="mutatingwebhookconfigurations")] - public partial class V1MutatingWebhookConfigurationList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "MutatingWebhookConfigurationList"; - public const string KubeGroup = "admissionregistration.k8s.io"; - } - - [KubernetesEntity(Group="admissionregistration.k8s.io", Kind="ValidatingWebhookConfiguration", ApiVersion="v1", PluralName="validatingwebhookconfigurations")] - public partial class V1ValidatingWebhookConfiguration : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "ValidatingWebhookConfiguration"; - public const string KubeGroup = "admissionregistration.k8s.io"; - } - - [KubernetesEntity(Group="admissionregistration.k8s.io", Kind="ValidatingWebhookConfigurationList", ApiVersion="v1", PluralName="validatingwebhookconfigurations")] - public partial class V1ValidatingWebhookConfigurationList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "ValidatingWebhookConfigurationList"; - public const string KubeGroup = "admissionregistration.k8s.io"; - } - - [KubernetesEntity(Group="internal.apiserver.k8s.io", Kind="StorageVersion", ApiVersion="v1alpha1", PluralName="storageversions")] - public partial class V1alpha1StorageVersion : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1alpha1"; - public const string KubeKind = "StorageVersion"; - public const string KubeGroup = "internal.apiserver.k8s.io"; - } - - [KubernetesEntity(Group="internal.apiserver.k8s.io", Kind="StorageVersionList", ApiVersion="v1alpha1", PluralName="storageversions")] - public partial class V1alpha1StorageVersionList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1alpha1"; - public const string KubeKind = "StorageVersionList"; - public const string KubeGroup = "internal.apiserver.k8s.io"; - } - - [KubernetesEntity(Group="apps", Kind="ControllerRevision", ApiVersion="v1", PluralName="controllerrevisions")] - public partial class V1ControllerRevision : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "ControllerRevision"; - public const string KubeGroup = "apps"; - } - - [KubernetesEntity(Group="apps", Kind="ControllerRevisionList", ApiVersion="v1", PluralName="controllerrevisions")] - public partial class V1ControllerRevisionList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "ControllerRevisionList"; - public const string KubeGroup = "apps"; - } - - [KubernetesEntity(Group="apps", Kind="DaemonSet", ApiVersion="v1", PluralName="daemonsets")] - public partial class V1DaemonSet : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "DaemonSet"; - public const string KubeGroup = "apps"; - } - - [KubernetesEntity(Group="apps", Kind="DaemonSetList", ApiVersion="v1", PluralName="daemonsets")] - public partial class V1DaemonSetList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "DaemonSetList"; - public const string KubeGroup = "apps"; - } - - [KubernetesEntity(Group="apps", Kind="Deployment", ApiVersion="v1", PluralName="deployments")] - public partial class V1Deployment : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "Deployment"; - public const string KubeGroup = "apps"; - } - - [KubernetesEntity(Group="apps", Kind="DeploymentList", ApiVersion="v1", PluralName="deployments")] - public partial class V1DeploymentList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "DeploymentList"; - public const string KubeGroup = "apps"; - } - - [KubernetesEntity(Group="apps", Kind="ReplicaSet", ApiVersion="v1", PluralName="replicasets")] - public partial class V1ReplicaSet : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "ReplicaSet"; - public const string KubeGroup = "apps"; - } - - [KubernetesEntity(Group="apps", Kind="ReplicaSetList", ApiVersion="v1", PluralName="replicasets")] - public partial class V1ReplicaSetList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "ReplicaSetList"; - public const string KubeGroup = "apps"; - } - - [KubernetesEntity(Group="apps", Kind="StatefulSet", ApiVersion="v1", PluralName="statefulsets")] - public partial class V1StatefulSet : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "StatefulSet"; - public const string KubeGroup = "apps"; - } - - [KubernetesEntity(Group="apps", Kind="StatefulSetList", ApiVersion="v1", PluralName="statefulsets")] - public partial class V1StatefulSetList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "StatefulSetList"; - public const string KubeGroup = "apps"; - } - - [KubernetesEntity(Group="authentication.k8s.io", Kind="TokenRequest", ApiVersion="v1", PluralName=null)] - public partial class Authenticationv1TokenRequest : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "TokenRequest"; - public const string KubeGroup = "authentication.k8s.io"; - } - - [KubernetesEntity(Group="authentication.k8s.io", Kind="TokenReview", ApiVersion="v1", PluralName=null)] - public partial class V1TokenReview : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "TokenReview"; - public const string KubeGroup = "authentication.k8s.io"; - } - - [KubernetesEntity(Group="authorization.k8s.io", Kind="LocalSubjectAccessReview", ApiVersion="v1", PluralName=null)] - public partial class V1LocalSubjectAccessReview : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "LocalSubjectAccessReview"; - public const string KubeGroup = "authorization.k8s.io"; - } - - [KubernetesEntity(Group="authorization.k8s.io", Kind="SelfSubjectAccessReview", ApiVersion="v1", PluralName=null)] - public partial class V1SelfSubjectAccessReview : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "SelfSubjectAccessReview"; - public const string KubeGroup = "authorization.k8s.io"; - } - - [KubernetesEntity(Group="authorization.k8s.io", Kind="SelfSubjectRulesReview", ApiVersion="v1", PluralName=null)] - public partial class V1SelfSubjectRulesReview : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "SelfSubjectRulesReview"; - public const string KubeGroup = "authorization.k8s.io"; - } - - [KubernetesEntity(Group="authorization.k8s.io", Kind="SubjectAccessReview", ApiVersion="v1", PluralName=null)] - public partial class V1SubjectAccessReview : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "SubjectAccessReview"; - public const string KubeGroup = "authorization.k8s.io"; - } - - [KubernetesEntity(Group="autoscaling", Kind="HorizontalPodAutoscaler", ApiVersion="v1", PluralName="horizontalpodautoscalers")] - public partial class V1HorizontalPodAutoscaler : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "HorizontalPodAutoscaler"; - public const string KubeGroup = "autoscaling"; - } - - [KubernetesEntity(Group="autoscaling", Kind="HorizontalPodAutoscalerList", ApiVersion="v1", PluralName="horizontalpodautoscalers")] - public partial class V1HorizontalPodAutoscalerList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "HorizontalPodAutoscalerList"; - public const string KubeGroup = "autoscaling"; - } - - [KubernetesEntity(Group="autoscaling", Kind="Scale", ApiVersion="v1", PluralName=null)] - public partial class V1Scale : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "Scale"; - public const string KubeGroup = "autoscaling"; - } - - [KubernetesEntity(Group="autoscaling", Kind="HorizontalPodAutoscaler", ApiVersion="v2beta1", PluralName="horizontalpodautoscalers")] - public partial class V2beta1HorizontalPodAutoscaler : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v2beta1"; - public const string KubeKind = "HorizontalPodAutoscaler"; - public const string KubeGroup = "autoscaling"; - } - - [KubernetesEntity(Group="autoscaling", Kind="HorizontalPodAutoscalerList", ApiVersion="v2beta1", PluralName="horizontalpodautoscalers")] - public partial class V2beta1HorizontalPodAutoscalerList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v2beta1"; - public const string KubeKind = "HorizontalPodAutoscalerList"; - public const string KubeGroup = "autoscaling"; - } - - [KubernetesEntity(Group="autoscaling", Kind="HorizontalPodAutoscaler", ApiVersion="v2beta2", PluralName="horizontalpodautoscalers")] - public partial class V2beta2HorizontalPodAutoscaler : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v2beta2"; - public const string KubeKind = "HorizontalPodAutoscaler"; - public const string KubeGroup = "autoscaling"; - } - - [KubernetesEntity(Group="autoscaling", Kind="HorizontalPodAutoscalerList", ApiVersion="v2beta2", PluralName="horizontalpodautoscalers")] - public partial class V2beta2HorizontalPodAutoscalerList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v2beta2"; - public const string KubeKind = "HorizontalPodAutoscalerList"; - public const string KubeGroup = "autoscaling"; - } - - [KubernetesEntity(Group="batch", Kind="CronJob", ApiVersion="v1", PluralName="cronjobs")] - public partial class V1CronJob : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "CronJob"; - public const string KubeGroup = "batch"; - } - - [KubernetesEntity(Group="batch", Kind="CronJobList", ApiVersion="v1", PluralName="cronjobs")] - public partial class V1CronJobList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "CronJobList"; - public const string KubeGroup = "batch"; - } - - [KubernetesEntity(Group="batch", Kind="Job", ApiVersion="v1", PluralName="jobs")] - public partial class V1Job : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "Job"; - public const string KubeGroup = "batch"; - } - - [KubernetesEntity(Group="batch", Kind="JobList", ApiVersion="v1", PluralName="jobs")] - public partial class V1JobList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "JobList"; - public const string KubeGroup = "batch"; - } - - [KubernetesEntity(Group="batch", Kind="CronJob", ApiVersion="v1beta1", PluralName="cronjobs")] - public partial class V1beta1CronJob : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1beta1"; - public const string KubeKind = "CronJob"; - public const string KubeGroup = "batch"; - } - - [KubernetesEntity(Group="batch", Kind="CronJobList", ApiVersion="v1beta1", PluralName="cronjobs")] - public partial class V1beta1CronJobList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1beta1"; - public const string KubeKind = "CronJobList"; - public const string KubeGroup = "batch"; - } - - [KubernetesEntity(Group="certificates.k8s.io", Kind="CertificateSigningRequest", ApiVersion="v1", PluralName="certificatesigningrequests")] - public partial class V1CertificateSigningRequest : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "CertificateSigningRequest"; - public const string KubeGroup = "certificates.k8s.io"; - } - - [KubernetesEntity(Group="certificates.k8s.io", Kind="CertificateSigningRequestList", ApiVersion="v1", PluralName="certificatesigningrequests")] - public partial class V1CertificateSigningRequestList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "CertificateSigningRequestList"; - public const string KubeGroup = "certificates.k8s.io"; - } - - [KubernetesEntity(Group="coordination.k8s.io", Kind="Lease", ApiVersion="v1", PluralName="leases")] - public partial class V1Lease : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "Lease"; - public const string KubeGroup = "coordination.k8s.io"; - } - - [KubernetesEntity(Group="coordination.k8s.io", Kind="LeaseList", ApiVersion="v1", PluralName="leases")] - public partial class V1LeaseList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "LeaseList"; - public const string KubeGroup = "coordination.k8s.io"; - } - - [KubernetesEntity(Group="", Kind="Binding", ApiVersion="v1", PluralName=null)] - public partial class V1Binding : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "Binding"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="ComponentStatus", ApiVersion="v1", PluralName="componentstatuses")] - public partial class V1ComponentStatus : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "ComponentStatus"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="ComponentStatusList", ApiVersion="v1", PluralName="componentstatuses")] - public partial class V1ComponentStatusList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "ComponentStatusList"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="ConfigMap", ApiVersion="v1", PluralName="configmaps")] - public partial class V1ConfigMap : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "ConfigMap"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="ConfigMapList", ApiVersion="v1", PluralName="configmaps")] - public partial class V1ConfigMapList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "ConfigMapList"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="Endpoints", ApiVersion="v1", PluralName="endpoints")] - public partial class V1Endpoints : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "Endpoints"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="EndpointsList", ApiVersion="v1", PluralName="endpoints")] - public partial class V1EndpointsList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "EndpointsList"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="Event", ApiVersion="v1", PluralName="events")] - public partial class Corev1Event : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "Event"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="EventList", ApiVersion="v1", PluralName="events")] - public partial class Corev1EventList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "EventList"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="LimitRange", ApiVersion="v1", PluralName="limitranges")] - public partial class V1LimitRange : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "LimitRange"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="LimitRangeList", ApiVersion="v1", PluralName="limitranges")] - public partial class V1LimitRangeList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "LimitRangeList"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="Namespace", ApiVersion="v1", PluralName="namespaces")] - public partial class V1Namespace : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "Namespace"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="NamespaceList", ApiVersion="v1", PluralName="namespaces")] - public partial class V1NamespaceList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "NamespaceList"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="Node", ApiVersion="v1", PluralName="nodes")] - public partial class V1Node : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "Node"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="NodeList", ApiVersion="v1", PluralName="nodes")] - public partial class V1NodeList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "NodeList"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="PersistentVolume", ApiVersion="v1", PluralName="persistentvolumes")] - public partial class V1PersistentVolume : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "PersistentVolume"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="PersistentVolumeClaim", ApiVersion="v1", PluralName="persistentvolumeclaims")] - public partial class V1PersistentVolumeClaim : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "PersistentVolumeClaim"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="PersistentVolumeClaimList", ApiVersion="v1", PluralName="persistentvolumeclaims")] - public partial class V1PersistentVolumeClaimList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "PersistentVolumeClaimList"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="PersistentVolumeList", ApiVersion="v1", PluralName="persistentvolumes")] - public partial class V1PersistentVolumeList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "PersistentVolumeList"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="Pod", ApiVersion="v1", PluralName="pods")] - public partial class V1Pod : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "Pod"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="PodList", ApiVersion="v1", PluralName="pods")] - public partial class V1PodList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "PodList"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="PodTemplate", ApiVersion="v1", PluralName="podtemplates")] - public partial class V1PodTemplate : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "PodTemplate"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="PodTemplateList", ApiVersion="v1", PluralName="podtemplates")] - public partial class V1PodTemplateList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "PodTemplateList"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="ReplicationController", ApiVersion="v1", PluralName="replicationcontrollers")] - public partial class V1ReplicationController : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "ReplicationController"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="ReplicationControllerList", ApiVersion="v1", PluralName="replicationcontrollers")] - public partial class V1ReplicationControllerList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "ReplicationControllerList"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="ResourceQuota", ApiVersion="v1", PluralName="resourcequotas")] - public partial class V1ResourceQuota : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "ResourceQuota"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="ResourceQuotaList", ApiVersion="v1", PluralName="resourcequotas")] - public partial class V1ResourceQuotaList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "ResourceQuotaList"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="Secret", ApiVersion="v1", PluralName="secrets")] - public partial class V1Secret : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "Secret"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="SecretList", ApiVersion="v1", PluralName="secrets")] - public partial class V1SecretList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "SecretList"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="Service", ApiVersion="v1", PluralName="services")] - public partial class V1Service : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "Service"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="ServiceAccount", ApiVersion="v1", PluralName="serviceaccounts")] - public partial class V1ServiceAccount : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "ServiceAccount"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="ServiceAccountList", ApiVersion="v1", PluralName="serviceaccounts")] - public partial class V1ServiceAccountList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "ServiceAccountList"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="ServiceList", ApiVersion="v1", PluralName="services")] - public partial class V1ServiceList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "ServiceList"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="discovery.k8s.io", Kind="EndpointSlice", ApiVersion="v1", PluralName="endpointslices")] - public partial class V1EndpointSlice : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "EndpointSlice"; - public const string KubeGroup = "discovery.k8s.io"; - } - - [KubernetesEntity(Group="discovery.k8s.io", Kind="EndpointSliceList", ApiVersion="v1", PluralName="endpointslices")] - public partial class V1EndpointSliceList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "EndpointSliceList"; - public const string KubeGroup = "discovery.k8s.io"; - } - - [KubernetesEntity(Group="discovery.k8s.io", Kind="EndpointSlice", ApiVersion="v1beta1", PluralName="endpointslices")] - public partial class V1beta1EndpointSlice : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1beta1"; - public const string KubeKind = "EndpointSlice"; - public const string KubeGroup = "discovery.k8s.io"; - } - - [KubernetesEntity(Group="discovery.k8s.io", Kind="EndpointSliceList", ApiVersion="v1beta1", PluralName="endpointslices")] - public partial class V1beta1EndpointSliceList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1beta1"; - public const string KubeKind = "EndpointSliceList"; - public const string KubeGroup = "discovery.k8s.io"; - } - - [KubernetesEntity(Group="events.k8s.io", Kind="Event", ApiVersion="v1", PluralName="events")] - public partial class Eventsv1Event : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "Event"; - public const string KubeGroup = "events.k8s.io"; - } - - [KubernetesEntity(Group="events.k8s.io", Kind="EventList", ApiVersion="v1", PluralName="events")] - public partial class Eventsv1EventList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "EventList"; - public const string KubeGroup = "events.k8s.io"; - } - - [KubernetesEntity(Group="events.k8s.io", Kind="Event", ApiVersion="v1beta1", PluralName="events")] - public partial class V1beta1Event : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1beta1"; - public const string KubeKind = "Event"; - public const string KubeGroup = "events.k8s.io"; - } - - [KubernetesEntity(Group="events.k8s.io", Kind="EventList", ApiVersion="v1beta1", PluralName="events")] - public partial class V1beta1EventList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1beta1"; - public const string KubeKind = "EventList"; - public const string KubeGroup = "events.k8s.io"; - } - - [KubernetesEntity(Group="flowcontrol.apiserver.k8s.io", Kind="FlowSchema", ApiVersion="v1beta1", PluralName="flowschemas")] - public partial class V1beta1FlowSchema : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1beta1"; - public const string KubeKind = "FlowSchema"; - public const string KubeGroup = "flowcontrol.apiserver.k8s.io"; - } - - [KubernetesEntity(Group="flowcontrol.apiserver.k8s.io", Kind="FlowSchemaList", ApiVersion="v1beta1", PluralName="flowschemas")] - public partial class V1beta1FlowSchemaList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1beta1"; - public const string KubeKind = "FlowSchemaList"; - public const string KubeGroup = "flowcontrol.apiserver.k8s.io"; - } - - [KubernetesEntity(Group="flowcontrol.apiserver.k8s.io", Kind="PriorityLevelConfiguration", ApiVersion="v1beta1", PluralName="prioritylevelconfigurations")] - public partial class V1beta1PriorityLevelConfiguration : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1beta1"; - public const string KubeKind = "PriorityLevelConfiguration"; - public const string KubeGroup = "flowcontrol.apiserver.k8s.io"; - } - - [KubernetesEntity(Group="flowcontrol.apiserver.k8s.io", Kind="PriorityLevelConfigurationList", ApiVersion="v1beta1", PluralName="prioritylevelconfigurations")] - public partial class V1beta1PriorityLevelConfigurationList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1beta1"; - public const string KubeKind = "PriorityLevelConfigurationList"; - public const string KubeGroup = "flowcontrol.apiserver.k8s.io"; - } - - [KubernetesEntity(Group="networking.k8s.io", Kind="Ingress", ApiVersion="v1", PluralName="ingresses")] - public partial class V1Ingress : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "Ingress"; - public const string KubeGroup = "networking.k8s.io"; - } - - [KubernetesEntity(Group="networking.k8s.io", Kind="IngressClass", ApiVersion="v1", PluralName="ingressclasses")] - public partial class V1IngressClass : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "IngressClass"; - public const string KubeGroup = "networking.k8s.io"; - } - - [KubernetesEntity(Group="networking.k8s.io", Kind="IngressClassList", ApiVersion="v1", PluralName="ingressclasses")] - public partial class V1IngressClassList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "IngressClassList"; - public const string KubeGroup = "networking.k8s.io"; - } - - [KubernetesEntity(Group="networking.k8s.io", Kind="IngressList", ApiVersion="v1", PluralName="ingresses")] - public partial class V1IngressList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "IngressList"; - public const string KubeGroup = "networking.k8s.io"; - } - - [KubernetesEntity(Group="networking.k8s.io", Kind="NetworkPolicy", ApiVersion="v1", PluralName="networkpolicies")] - public partial class V1NetworkPolicy : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "NetworkPolicy"; - public const string KubeGroup = "networking.k8s.io"; - } - - [KubernetesEntity(Group="networking.k8s.io", Kind="NetworkPolicyList", ApiVersion="v1", PluralName="networkpolicies")] - public partial class V1NetworkPolicyList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "NetworkPolicyList"; - public const string KubeGroup = "networking.k8s.io"; - } - - [KubernetesEntity(Group="node.k8s.io", Kind="RuntimeClass", ApiVersion="v1", PluralName="runtimeclasses")] - public partial class V1RuntimeClass : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "RuntimeClass"; - public const string KubeGroup = "node.k8s.io"; - } - - [KubernetesEntity(Group="node.k8s.io", Kind="RuntimeClassList", ApiVersion="v1", PluralName="runtimeclasses")] - public partial class V1RuntimeClassList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "RuntimeClassList"; - public const string KubeGroup = "node.k8s.io"; - } - - [KubernetesEntity(Group="node.k8s.io", Kind="RuntimeClass", ApiVersion="v1alpha1", PluralName="runtimeclasses")] - public partial class V1alpha1RuntimeClass : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1alpha1"; - public const string KubeKind = "RuntimeClass"; - public const string KubeGroup = "node.k8s.io"; - } - - [KubernetesEntity(Group="node.k8s.io", Kind="RuntimeClassList", ApiVersion="v1alpha1", PluralName="runtimeclasses")] - public partial class V1alpha1RuntimeClassList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1alpha1"; - public const string KubeKind = "RuntimeClassList"; - public const string KubeGroup = "node.k8s.io"; - } - - [KubernetesEntity(Group="node.k8s.io", Kind="RuntimeClass", ApiVersion="v1beta1", PluralName="runtimeclasses")] - public partial class V1beta1RuntimeClass : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1beta1"; - public const string KubeKind = "RuntimeClass"; - public const string KubeGroup = "node.k8s.io"; - } - - [KubernetesEntity(Group="node.k8s.io", Kind="RuntimeClassList", ApiVersion="v1beta1", PluralName="runtimeclasses")] - public partial class V1beta1RuntimeClassList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1beta1"; - public const string KubeKind = "RuntimeClassList"; - public const string KubeGroup = "node.k8s.io"; - } - - [KubernetesEntity(Group="policy", Kind="Eviction", ApiVersion="v1", PluralName=null)] - public partial class V1Eviction : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "Eviction"; - public const string KubeGroup = "policy"; - } - - [KubernetesEntity(Group="policy", Kind="PodDisruptionBudget", ApiVersion="v1", PluralName="poddisruptionbudgets")] - public partial class V1PodDisruptionBudget : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "PodDisruptionBudget"; - public const string KubeGroup = "policy"; - } - - [KubernetesEntity(Group="policy", Kind="PodDisruptionBudgetList", ApiVersion="v1", PluralName="poddisruptionbudgets")] - public partial class V1PodDisruptionBudgetList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "PodDisruptionBudgetList"; - public const string KubeGroup = "policy"; - } - - [KubernetesEntity(Group="policy", Kind="PodDisruptionBudget", ApiVersion="v1beta1", PluralName="poddisruptionbudgets")] - public partial class V1beta1PodDisruptionBudget : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1beta1"; - public const string KubeKind = "PodDisruptionBudget"; - public const string KubeGroup = "policy"; - } - - [KubernetesEntity(Group="policy", Kind="PodDisruptionBudgetList", ApiVersion="v1beta1", PluralName="poddisruptionbudgets")] - public partial class V1beta1PodDisruptionBudgetList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1beta1"; - public const string KubeKind = "PodDisruptionBudgetList"; - public const string KubeGroup = "policy"; - } - - [KubernetesEntity(Group="policy", Kind="PodSecurityPolicy", ApiVersion="v1beta1", PluralName="podsecuritypolicies")] - public partial class V1beta1PodSecurityPolicy : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1beta1"; - public const string KubeKind = "PodSecurityPolicy"; - public const string KubeGroup = "policy"; - } - - [KubernetesEntity(Group="policy", Kind="PodSecurityPolicyList", ApiVersion="v1beta1", PluralName="podsecuritypolicies")] - public partial class V1beta1PodSecurityPolicyList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1beta1"; - public const string KubeKind = "PodSecurityPolicyList"; - public const string KubeGroup = "policy"; - } - - [KubernetesEntity(Group="rbac.authorization.k8s.io", Kind="ClusterRole", ApiVersion="v1", PluralName="clusterroles")] - public partial class V1ClusterRole : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "ClusterRole"; - public const string KubeGroup = "rbac.authorization.k8s.io"; - } - - [KubernetesEntity(Group="rbac.authorization.k8s.io", Kind="ClusterRoleBinding", ApiVersion="v1", PluralName="clusterrolebindings")] - public partial class V1ClusterRoleBinding : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "ClusterRoleBinding"; - public const string KubeGroup = "rbac.authorization.k8s.io"; - } - - [KubernetesEntity(Group="rbac.authorization.k8s.io", Kind="ClusterRoleBindingList", ApiVersion="v1", PluralName="clusterrolebindings")] - public partial class V1ClusterRoleBindingList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "ClusterRoleBindingList"; - public const string KubeGroup = "rbac.authorization.k8s.io"; - } - - [KubernetesEntity(Group="rbac.authorization.k8s.io", Kind="ClusterRoleList", ApiVersion="v1", PluralName="clusterroles")] - public partial class V1ClusterRoleList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "ClusterRoleList"; - public const string KubeGroup = "rbac.authorization.k8s.io"; - } - - [KubernetesEntity(Group="rbac.authorization.k8s.io", Kind="Role", ApiVersion="v1", PluralName="roles")] - public partial class V1Role : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "Role"; - public const string KubeGroup = "rbac.authorization.k8s.io"; - } - - [KubernetesEntity(Group="rbac.authorization.k8s.io", Kind="RoleBinding", ApiVersion="v1", PluralName="rolebindings")] - public partial class V1RoleBinding : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "RoleBinding"; - public const string KubeGroup = "rbac.authorization.k8s.io"; - } - - [KubernetesEntity(Group="rbac.authorization.k8s.io", Kind="RoleBindingList", ApiVersion="v1", PluralName="rolebindings")] - public partial class V1RoleBindingList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "RoleBindingList"; - public const string KubeGroup = "rbac.authorization.k8s.io"; - } - - [KubernetesEntity(Group="rbac.authorization.k8s.io", Kind="RoleList", ApiVersion="v1", PluralName="roles")] - public partial class V1RoleList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "RoleList"; - public const string KubeGroup = "rbac.authorization.k8s.io"; - } - - [KubernetesEntity(Group="rbac.authorization.k8s.io", Kind="ClusterRole", ApiVersion="v1alpha1", PluralName="clusterroles")] - public partial class V1alpha1ClusterRole : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1alpha1"; - public const string KubeKind = "ClusterRole"; - public const string KubeGroup = "rbac.authorization.k8s.io"; - } - - [KubernetesEntity(Group="rbac.authorization.k8s.io", Kind="ClusterRoleBinding", ApiVersion="v1alpha1", PluralName="clusterrolebindings")] - public partial class V1alpha1ClusterRoleBinding : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1alpha1"; - public const string KubeKind = "ClusterRoleBinding"; - public const string KubeGroup = "rbac.authorization.k8s.io"; - } - - [KubernetesEntity(Group="rbac.authorization.k8s.io", Kind="ClusterRoleBindingList", ApiVersion="v1alpha1", PluralName="clusterrolebindings")] - public partial class V1alpha1ClusterRoleBindingList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1alpha1"; - public const string KubeKind = "ClusterRoleBindingList"; - public const string KubeGroup = "rbac.authorization.k8s.io"; - } - - [KubernetesEntity(Group="rbac.authorization.k8s.io", Kind="ClusterRoleList", ApiVersion="v1alpha1", PluralName="clusterroles")] - public partial class V1alpha1ClusterRoleList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1alpha1"; - public const string KubeKind = "ClusterRoleList"; - public const string KubeGroup = "rbac.authorization.k8s.io"; - } - - [KubernetesEntity(Group="rbac.authorization.k8s.io", Kind="Role", ApiVersion="v1alpha1", PluralName="roles")] - public partial class V1alpha1Role : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1alpha1"; - public const string KubeKind = "Role"; - public const string KubeGroup = "rbac.authorization.k8s.io"; - } - - [KubernetesEntity(Group="rbac.authorization.k8s.io", Kind="RoleBinding", ApiVersion="v1alpha1", PluralName="rolebindings")] - public partial class V1alpha1RoleBinding : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1alpha1"; - public const string KubeKind = "RoleBinding"; - public const string KubeGroup = "rbac.authorization.k8s.io"; - } - - [KubernetesEntity(Group="rbac.authorization.k8s.io", Kind="RoleBindingList", ApiVersion="v1alpha1", PluralName="rolebindings")] - public partial class V1alpha1RoleBindingList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1alpha1"; - public const string KubeKind = "RoleBindingList"; - public const string KubeGroup = "rbac.authorization.k8s.io"; - } - - [KubernetesEntity(Group="rbac.authorization.k8s.io", Kind="RoleList", ApiVersion="v1alpha1", PluralName="roles")] - public partial class V1alpha1RoleList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1alpha1"; - public const string KubeKind = "RoleList"; - public const string KubeGroup = "rbac.authorization.k8s.io"; - } - - [KubernetesEntity(Group="scheduling.k8s.io", Kind="PriorityClass", ApiVersion="v1", PluralName="priorityclasses")] - public partial class V1PriorityClass : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "PriorityClass"; - public const string KubeGroup = "scheduling.k8s.io"; - } - - [KubernetesEntity(Group="scheduling.k8s.io", Kind="PriorityClassList", ApiVersion="v1", PluralName="priorityclasses")] - public partial class V1PriorityClassList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "PriorityClassList"; - public const string KubeGroup = "scheduling.k8s.io"; - } - - [KubernetesEntity(Group="scheduling.k8s.io", Kind="PriorityClass", ApiVersion="v1alpha1", PluralName="priorityclasses")] - public partial class V1alpha1PriorityClass : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1alpha1"; - public const string KubeKind = "PriorityClass"; - public const string KubeGroup = "scheduling.k8s.io"; - } - - [KubernetesEntity(Group="scheduling.k8s.io", Kind="PriorityClassList", ApiVersion="v1alpha1", PluralName="priorityclasses")] - public partial class V1alpha1PriorityClassList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1alpha1"; - public const string KubeKind = "PriorityClassList"; - public const string KubeGroup = "scheduling.k8s.io"; - } - - [KubernetesEntity(Group="storage.k8s.io", Kind="CSIDriver", ApiVersion="v1", PluralName="csidrivers")] - public partial class V1CSIDriver : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "CSIDriver"; - public const string KubeGroup = "storage.k8s.io"; - } - - [KubernetesEntity(Group="storage.k8s.io", Kind="CSIDriverList", ApiVersion="v1", PluralName="csidrivers")] - public partial class V1CSIDriverList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "CSIDriverList"; - public const string KubeGroup = "storage.k8s.io"; - } - - [KubernetesEntity(Group="storage.k8s.io", Kind="CSINode", ApiVersion="v1", PluralName="csinodes")] - public partial class V1CSINode : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "CSINode"; - public const string KubeGroup = "storage.k8s.io"; - } - - [KubernetesEntity(Group="storage.k8s.io", Kind="CSINodeList", ApiVersion="v1", PluralName="csinodes")] - public partial class V1CSINodeList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "CSINodeList"; - public const string KubeGroup = "storage.k8s.io"; - } - - [KubernetesEntity(Group="storage.k8s.io", Kind="StorageClass", ApiVersion="v1", PluralName="storageclasses")] - public partial class V1StorageClass : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "StorageClass"; - public const string KubeGroup = "storage.k8s.io"; - } - - [KubernetesEntity(Group="storage.k8s.io", Kind="StorageClassList", ApiVersion="v1", PluralName="storageclasses")] - public partial class V1StorageClassList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "StorageClassList"; - public const string KubeGroup = "storage.k8s.io"; - } - - [KubernetesEntity(Group="storage.k8s.io", Kind="VolumeAttachment", ApiVersion="v1", PluralName="volumeattachments")] - public partial class V1VolumeAttachment : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "VolumeAttachment"; - public const string KubeGroup = "storage.k8s.io"; - } - - [KubernetesEntity(Group="storage.k8s.io", Kind="VolumeAttachmentList", ApiVersion="v1", PluralName="volumeattachments")] - public partial class V1VolumeAttachmentList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "VolumeAttachmentList"; - public const string KubeGroup = "storage.k8s.io"; - } - - [KubernetesEntity(Group="storage.k8s.io", Kind="CSIStorageCapacity", ApiVersion="v1alpha1", PluralName="csistoragecapacities")] - public partial class V1alpha1CSIStorageCapacity : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1alpha1"; - public const string KubeKind = "CSIStorageCapacity"; - public const string KubeGroup = "storage.k8s.io"; - } - - [KubernetesEntity(Group="storage.k8s.io", Kind="CSIStorageCapacityList", ApiVersion="v1alpha1", PluralName="csistoragecapacities")] - public partial class V1alpha1CSIStorageCapacityList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1alpha1"; - public const string KubeKind = "CSIStorageCapacityList"; - public const string KubeGroup = "storage.k8s.io"; - } - - [KubernetesEntity(Group="storage.k8s.io", Kind="VolumeAttachment", ApiVersion="v1alpha1", PluralName="volumeattachments")] - public partial class V1alpha1VolumeAttachment : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1alpha1"; - public const string KubeKind = "VolumeAttachment"; - public const string KubeGroup = "storage.k8s.io"; - } - - [KubernetesEntity(Group="storage.k8s.io", Kind="VolumeAttachmentList", ApiVersion="v1alpha1", PluralName="volumeattachments")] - public partial class V1alpha1VolumeAttachmentList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1alpha1"; - public const string KubeKind = "VolumeAttachmentList"; - public const string KubeGroup = "storage.k8s.io"; - } - - [KubernetesEntity(Group="storage.k8s.io", Kind="CSIStorageCapacity", ApiVersion="v1beta1", PluralName="csistoragecapacities")] - public partial class V1beta1CSIStorageCapacity : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1beta1"; - public const string KubeKind = "CSIStorageCapacity"; - public const string KubeGroup = "storage.k8s.io"; - } - - [KubernetesEntity(Group="storage.k8s.io", Kind="CSIStorageCapacityList", ApiVersion="v1beta1", PluralName="csistoragecapacities")] - public partial class V1beta1CSIStorageCapacityList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1beta1"; - public const string KubeKind = "CSIStorageCapacityList"; - public const string KubeGroup = "storage.k8s.io"; - } - - [KubernetesEntity(Group="apiextensions.k8s.io", Kind="CustomResourceDefinition", ApiVersion="v1", PluralName="customresourcedefinitions")] - public partial class V1CustomResourceDefinition : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "CustomResourceDefinition"; - public const string KubeGroup = "apiextensions.k8s.io"; - } - - [KubernetesEntity(Group="apiextensions.k8s.io", Kind="CustomResourceDefinitionList", ApiVersion="v1", PluralName="customresourcedefinitions")] - public partial class V1CustomResourceDefinitionList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "CustomResourceDefinitionList"; - public const string KubeGroup = "apiextensions.k8s.io"; - } - - [KubernetesEntity(Group="", Kind="APIGroup", ApiVersion="v1", PluralName=null)] - public partial class V1APIGroup : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "APIGroup"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="APIGroupList", ApiVersion="v1", PluralName=null)] - public partial class V1APIGroupList : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "APIGroupList"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="APIResourceList", ApiVersion="v1", PluralName=null)] - public partial class V1APIResourceList : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "APIResourceList"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="APIVersions", ApiVersion="v1", PluralName=null)] - public partial class V1APIVersions : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "APIVersions"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="DeleteOptions", ApiVersion="v1", PluralName=null)] - public partial class V1DeleteOptions : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "DeleteOptions"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="", Kind="Status", ApiVersion="v1", PluralName=null)] - public partial class V1Status : IKubernetesObject, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "Status"; - public const string KubeGroup = ""; - } - - [KubernetesEntity(Group="apiregistration.k8s.io", Kind="APIService", ApiVersion="v1", PluralName="apiservices")] - public partial class V1APIService : IKubernetesObject, ISpec, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "APIService"; - public const string KubeGroup = "apiregistration.k8s.io"; - } - - [KubernetesEntity(Group="apiregistration.k8s.io", Kind="APIServiceList", ApiVersion="v1", PluralName="apiservices")] - public partial class V1APIServiceList : IKubernetesObject, IItems, IValidate - { - public const string KubeApiVersion = "v1"; - public const string KubeKind = "APIServiceList"; - public const string KubeGroup = "apiregistration.k8s.io"; - } - -} diff --git a/src/KubernetesClient/generated/ModelOperators.cs b/src/KubernetesClient/generated/ModelOperators.cs deleted file mode 100644 index 7990f3800..000000000 --- a/src/KubernetesClient/generated/ModelOperators.cs +++ /dev/null @@ -1,642 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// -using k8s.Versioning; - -namespace k8s.Models -{ - public partial class V1AggregationRule - { - public static explicit operator V1AggregationRule(V1alpha1AggregationRule s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1AggregationRule - { - public static explicit operator V1alpha1AggregationRule(V1AggregationRule s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1ClusterRole - { - public static explicit operator V1alpha1ClusterRole(V1ClusterRole s) => VersionConverter.Mapper.Map(s); - } - public partial class V1ClusterRole - { - public static explicit operator V1ClusterRole(V1alpha1ClusterRole s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1ClusterRoleBinding - { - public static explicit operator V1alpha1ClusterRoleBinding(V1ClusterRoleBinding s) => VersionConverter.Mapper.Map(s); - } - public partial class V1ClusterRoleBinding - { - public static explicit operator V1ClusterRoleBinding(V1alpha1ClusterRoleBinding s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1ClusterRoleBindingList - { - public static explicit operator V1alpha1ClusterRoleBindingList(V1ClusterRoleBindingList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1ClusterRoleBindingList - { - public static explicit operator V1ClusterRoleBindingList(V1alpha1ClusterRoleBindingList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1ClusterRoleList - { - public static explicit operator V1alpha1ClusterRoleList(V1ClusterRoleList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1ClusterRoleList - { - public static explicit operator V1ClusterRoleList(V1alpha1ClusterRoleList s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1ContainerResourceMetricSource - { - public static explicit operator V2beta1ContainerResourceMetricSource(V2beta2ContainerResourceMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2ContainerResourceMetricSource - { - public static explicit operator V2beta2ContainerResourceMetricSource(V2beta1ContainerResourceMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1ContainerResourceMetricStatus - { - public static explicit operator V2beta1ContainerResourceMetricStatus(V2beta2ContainerResourceMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2ContainerResourceMetricStatus - { - public static explicit operator V2beta2ContainerResourceMetricStatus(V2beta1ContainerResourceMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1CronJob - { - public static explicit operator V1beta1CronJob(V1CronJob s) => VersionConverter.Mapper.Map(s); - } - public partial class V1CronJob - { - public static explicit operator V1CronJob(V1beta1CronJob s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1CronJobList - { - public static explicit operator V1beta1CronJobList(V1CronJobList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1CronJobList - { - public static explicit operator V1CronJobList(V1beta1CronJobList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1CronJobSpec - { - public static explicit operator V1beta1CronJobSpec(V1CronJobSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V1CronJobSpec - { - public static explicit operator V1CronJobSpec(V1beta1CronJobSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1CronJobStatus - { - public static explicit operator V1beta1CronJobStatus(V1CronJobStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1CronJobStatus - { - public static explicit operator V1CronJobStatus(V1beta1CronJobStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1CrossVersionObjectReference - { - public static explicit operator V1CrossVersionObjectReference(V2beta1CrossVersionObjectReference s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1CrossVersionObjectReference - { - public static explicit operator V2beta1CrossVersionObjectReference(V1CrossVersionObjectReference s) => VersionConverter.Mapper.Map(s); - } - public partial class V1CrossVersionObjectReference - { - public static explicit operator V1CrossVersionObjectReference(V2beta2CrossVersionObjectReference s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2CrossVersionObjectReference - { - public static explicit operator V2beta2CrossVersionObjectReference(V1CrossVersionObjectReference s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1CrossVersionObjectReference - { - public static explicit operator V2beta1CrossVersionObjectReference(V2beta2CrossVersionObjectReference s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2CrossVersionObjectReference - { - public static explicit operator V2beta2CrossVersionObjectReference(V2beta1CrossVersionObjectReference s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1CSIStorageCapacity - { - public static explicit operator V1alpha1CSIStorageCapacity(V1beta1CSIStorageCapacity s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1CSIStorageCapacity - { - public static explicit operator V1beta1CSIStorageCapacity(V1alpha1CSIStorageCapacity s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1CSIStorageCapacityList - { - public static explicit operator V1alpha1CSIStorageCapacityList(V1beta1CSIStorageCapacityList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1CSIStorageCapacityList - { - public static explicit operator V1beta1CSIStorageCapacityList(V1alpha1CSIStorageCapacityList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1Endpoint - { - public static explicit operator V1beta1Endpoint(V1Endpoint s) => VersionConverter.Mapper.Map(s); - } - public partial class V1Endpoint - { - public static explicit operator V1Endpoint(V1beta1Endpoint s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1EndpointConditions - { - public static explicit operator V1beta1EndpointConditions(V1EndpointConditions s) => VersionConverter.Mapper.Map(s); - } - public partial class V1EndpointConditions - { - public static explicit operator V1EndpointConditions(V1beta1EndpointConditions s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1EndpointHints - { - public static explicit operator V1beta1EndpointHints(V1EndpointHints s) => VersionConverter.Mapper.Map(s); - } - public partial class V1EndpointHints - { - public static explicit operator V1EndpointHints(V1beta1EndpointHints s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1EndpointSlice - { - public static explicit operator V1beta1EndpointSlice(V1EndpointSlice s) => VersionConverter.Mapper.Map(s); - } - public partial class V1EndpointSlice - { - public static explicit operator V1EndpointSlice(V1beta1EndpointSlice s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1EndpointSliceList - { - public static explicit operator V1beta1EndpointSliceList(V1EndpointSliceList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1EndpointSliceList - { - public static explicit operator V1EndpointSliceList(V1beta1EndpointSliceList s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1ExternalMetricSource - { - public static explicit operator V2beta1ExternalMetricSource(V2beta2ExternalMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2ExternalMetricSource - { - public static explicit operator V2beta2ExternalMetricSource(V2beta1ExternalMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1ExternalMetricStatus - { - public static explicit operator V2beta1ExternalMetricStatus(V2beta2ExternalMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2ExternalMetricStatus - { - public static explicit operator V2beta2ExternalMetricStatus(V2beta1ExternalMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1ForZone - { - public static explicit operator V1beta1ForZone(V1ForZone s) => VersionConverter.Mapper.Map(s); - } - public partial class V1ForZone - { - public static explicit operator V1ForZone(V1beta1ForZone s) => VersionConverter.Mapper.Map(s); - } - public partial class V1HorizontalPodAutoscaler - { - public static explicit operator V1HorizontalPodAutoscaler(V2beta1HorizontalPodAutoscaler s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1HorizontalPodAutoscaler - { - public static explicit operator V2beta1HorizontalPodAutoscaler(V1HorizontalPodAutoscaler s) => VersionConverter.Mapper.Map(s); - } - public partial class V1HorizontalPodAutoscaler - { - public static explicit operator V1HorizontalPodAutoscaler(V2beta2HorizontalPodAutoscaler s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HorizontalPodAutoscaler - { - public static explicit operator V2beta2HorizontalPodAutoscaler(V1HorizontalPodAutoscaler s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1HorizontalPodAutoscaler - { - public static explicit operator V2beta1HorizontalPodAutoscaler(V2beta2HorizontalPodAutoscaler s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HorizontalPodAutoscaler - { - public static explicit operator V2beta2HorizontalPodAutoscaler(V2beta1HorizontalPodAutoscaler s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1HorizontalPodAutoscalerCondition - { - public static explicit operator V2beta1HorizontalPodAutoscalerCondition(V2beta2HorizontalPodAutoscalerCondition s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HorizontalPodAutoscalerCondition - { - public static explicit operator V2beta2HorizontalPodAutoscalerCondition(V2beta1HorizontalPodAutoscalerCondition s) => VersionConverter.Mapper.Map(s); - } - public partial class V1HorizontalPodAutoscalerList - { - public static explicit operator V1HorizontalPodAutoscalerList(V2beta1HorizontalPodAutoscalerList s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1HorizontalPodAutoscalerList - { - public static explicit operator V2beta1HorizontalPodAutoscalerList(V1HorizontalPodAutoscalerList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1HorizontalPodAutoscalerList - { - public static explicit operator V1HorizontalPodAutoscalerList(V2beta2HorizontalPodAutoscalerList s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HorizontalPodAutoscalerList - { - public static explicit operator V2beta2HorizontalPodAutoscalerList(V1HorizontalPodAutoscalerList s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1HorizontalPodAutoscalerList - { - public static explicit operator V2beta1HorizontalPodAutoscalerList(V2beta2HorizontalPodAutoscalerList s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HorizontalPodAutoscalerList - { - public static explicit operator V2beta2HorizontalPodAutoscalerList(V2beta1HorizontalPodAutoscalerList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1HorizontalPodAutoscalerSpec - { - public static explicit operator V1HorizontalPodAutoscalerSpec(V2beta1HorizontalPodAutoscalerSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1HorizontalPodAutoscalerSpec - { - public static explicit operator V2beta1HorizontalPodAutoscalerSpec(V1HorizontalPodAutoscalerSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V1HorizontalPodAutoscalerSpec - { - public static explicit operator V1HorizontalPodAutoscalerSpec(V2beta2HorizontalPodAutoscalerSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HorizontalPodAutoscalerSpec - { - public static explicit operator V2beta2HorizontalPodAutoscalerSpec(V1HorizontalPodAutoscalerSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1HorizontalPodAutoscalerSpec - { - public static explicit operator V2beta1HorizontalPodAutoscalerSpec(V2beta2HorizontalPodAutoscalerSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HorizontalPodAutoscalerSpec - { - public static explicit operator V2beta2HorizontalPodAutoscalerSpec(V2beta1HorizontalPodAutoscalerSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V1HorizontalPodAutoscalerStatus - { - public static explicit operator V1HorizontalPodAutoscalerStatus(V2beta1HorizontalPodAutoscalerStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1HorizontalPodAutoscalerStatus - { - public static explicit operator V2beta1HorizontalPodAutoscalerStatus(V1HorizontalPodAutoscalerStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1HorizontalPodAutoscalerStatus - { - public static explicit operator V1HorizontalPodAutoscalerStatus(V2beta2HorizontalPodAutoscalerStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HorizontalPodAutoscalerStatus - { - public static explicit operator V2beta2HorizontalPodAutoscalerStatus(V1HorizontalPodAutoscalerStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1HorizontalPodAutoscalerStatus - { - public static explicit operator V2beta1HorizontalPodAutoscalerStatus(V2beta2HorizontalPodAutoscalerStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HorizontalPodAutoscalerStatus - { - public static explicit operator V2beta2HorizontalPodAutoscalerStatus(V2beta1HorizontalPodAutoscalerStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1JobTemplateSpec - { - public static explicit operator V1beta1JobTemplateSpec(V1JobTemplateSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V1JobTemplateSpec - { - public static explicit operator V1JobTemplateSpec(V1beta1JobTemplateSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1MetricSpec - { - public static explicit operator V2beta1MetricSpec(V2beta2MetricSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2MetricSpec - { - public static explicit operator V2beta2MetricSpec(V2beta1MetricSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1MetricStatus - { - public static explicit operator V2beta1MetricStatus(V2beta2MetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2MetricStatus - { - public static explicit operator V2beta2MetricStatus(V2beta1MetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1ObjectMetricSource - { - public static explicit operator V2beta1ObjectMetricSource(V2beta2ObjectMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2ObjectMetricSource - { - public static explicit operator V2beta2ObjectMetricSource(V2beta1ObjectMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1ObjectMetricStatus - { - public static explicit operator V2beta1ObjectMetricStatus(V2beta2ObjectMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2ObjectMetricStatus - { - public static explicit operator V2beta2ObjectMetricStatus(V2beta1ObjectMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1Overhead - { - public static explicit operator V1alpha1Overhead(V1beta1Overhead s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1Overhead - { - public static explicit operator V1beta1Overhead(V1alpha1Overhead s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1Overhead - { - public static explicit operator V1alpha1Overhead(V1Overhead s) => VersionConverter.Mapper.Map(s); - } - public partial class V1Overhead - { - public static explicit operator V1Overhead(V1alpha1Overhead s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1Overhead - { - public static explicit operator V1beta1Overhead(V1Overhead s) => VersionConverter.Mapper.Map(s); - } - public partial class V1Overhead - { - public static explicit operator V1Overhead(V1beta1Overhead s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1PodDisruptionBudget - { - public static explicit operator V1beta1PodDisruptionBudget(V1PodDisruptionBudget s) => VersionConverter.Mapper.Map(s); - } - public partial class V1PodDisruptionBudget - { - public static explicit operator V1PodDisruptionBudget(V1beta1PodDisruptionBudget s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1PodDisruptionBudgetList - { - public static explicit operator V1beta1PodDisruptionBudgetList(V1PodDisruptionBudgetList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1PodDisruptionBudgetList - { - public static explicit operator V1PodDisruptionBudgetList(V1beta1PodDisruptionBudgetList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1PodDisruptionBudgetSpec - { - public static explicit operator V1beta1PodDisruptionBudgetSpec(V1PodDisruptionBudgetSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V1PodDisruptionBudgetSpec - { - public static explicit operator V1PodDisruptionBudgetSpec(V1beta1PodDisruptionBudgetSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1PodDisruptionBudgetStatus - { - public static explicit operator V1beta1PodDisruptionBudgetStatus(V1PodDisruptionBudgetStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1PodDisruptionBudgetStatus - { - public static explicit operator V1PodDisruptionBudgetStatus(V1beta1PodDisruptionBudgetStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1PodsMetricSource - { - public static explicit operator V2beta1PodsMetricSource(V2beta2PodsMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2PodsMetricSource - { - public static explicit operator V2beta2PodsMetricSource(V2beta1PodsMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1PodsMetricStatus - { - public static explicit operator V2beta1PodsMetricStatus(V2beta2PodsMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2PodsMetricStatus - { - public static explicit operator V2beta2PodsMetricStatus(V2beta1PodsMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1PolicyRule - { - public static explicit operator V1alpha1PolicyRule(V1PolicyRule s) => VersionConverter.Mapper.Map(s); - } - public partial class V1PolicyRule - { - public static explicit operator V1PolicyRule(V1alpha1PolicyRule s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1PriorityClass - { - public static explicit operator V1alpha1PriorityClass(V1PriorityClass s) => VersionConverter.Mapper.Map(s); - } - public partial class V1PriorityClass - { - public static explicit operator V1PriorityClass(V1alpha1PriorityClass s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1PriorityClassList - { - public static explicit operator V1alpha1PriorityClassList(V1PriorityClassList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1PriorityClassList - { - public static explicit operator V1PriorityClassList(V1alpha1PriorityClassList s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1ResourceMetricSource - { - public static explicit operator V2beta1ResourceMetricSource(V2beta2ResourceMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2ResourceMetricSource - { - public static explicit operator V2beta2ResourceMetricSource(V2beta1ResourceMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1ResourceMetricStatus - { - public static explicit operator V2beta1ResourceMetricStatus(V2beta2ResourceMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2ResourceMetricStatus - { - public static explicit operator V2beta2ResourceMetricStatus(V2beta1ResourceMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1Role - { - public static explicit operator V1alpha1Role(V1Role s) => VersionConverter.Mapper.Map(s); - } - public partial class V1Role - { - public static explicit operator V1Role(V1alpha1Role s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1RoleBinding - { - public static explicit operator V1alpha1RoleBinding(V1RoleBinding s) => VersionConverter.Mapper.Map(s); - } - public partial class V1RoleBinding - { - public static explicit operator V1RoleBinding(V1alpha1RoleBinding s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1RoleBindingList - { - public static explicit operator V1alpha1RoleBindingList(V1RoleBindingList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1RoleBindingList - { - public static explicit operator V1RoleBindingList(V1alpha1RoleBindingList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1RoleList - { - public static explicit operator V1alpha1RoleList(V1RoleList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1RoleList - { - public static explicit operator V1RoleList(V1alpha1RoleList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1RoleRef - { - public static explicit operator V1alpha1RoleRef(V1RoleRef s) => VersionConverter.Mapper.Map(s); - } - public partial class V1RoleRef - { - public static explicit operator V1RoleRef(V1alpha1RoleRef s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1RuntimeClass - { - public static explicit operator V1alpha1RuntimeClass(V1beta1RuntimeClass s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1RuntimeClass - { - public static explicit operator V1beta1RuntimeClass(V1alpha1RuntimeClass s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1RuntimeClass - { - public static explicit operator V1alpha1RuntimeClass(V1RuntimeClass s) => VersionConverter.Mapper.Map(s); - } - public partial class V1RuntimeClass - { - public static explicit operator V1RuntimeClass(V1alpha1RuntimeClass s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1RuntimeClass - { - public static explicit operator V1beta1RuntimeClass(V1RuntimeClass s) => VersionConverter.Mapper.Map(s); - } - public partial class V1RuntimeClass - { - public static explicit operator V1RuntimeClass(V1beta1RuntimeClass s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1RuntimeClassList - { - public static explicit operator V1alpha1RuntimeClassList(V1beta1RuntimeClassList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1RuntimeClassList - { - public static explicit operator V1beta1RuntimeClassList(V1alpha1RuntimeClassList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1RuntimeClassList - { - public static explicit operator V1alpha1RuntimeClassList(V1RuntimeClassList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1RuntimeClassList - { - public static explicit operator V1RuntimeClassList(V1alpha1RuntimeClassList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1RuntimeClassList - { - public static explicit operator V1beta1RuntimeClassList(V1RuntimeClassList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1RuntimeClassList - { - public static explicit operator V1RuntimeClassList(V1beta1RuntimeClassList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1Scheduling - { - public static explicit operator V1alpha1Scheduling(V1beta1Scheduling s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1Scheduling - { - public static explicit operator V1beta1Scheduling(V1alpha1Scheduling s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1Scheduling - { - public static explicit operator V1alpha1Scheduling(V1Scheduling s) => VersionConverter.Mapper.Map(s); - } - public partial class V1Scheduling - { - public static explicit operator V1Scheduling(V1alpha1Scheduling s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1Scheduling - { - public static explicit operator V1beta1Scheduling(V1Scheduling s) => VersionConverter.Mapper.Map(s); - } - public partial class V1Scheduling - { - public static explicit operator V1Scheduling(V1beta1Scheduling s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1Subject - { - public static explicit operator V1alpha1Subject(V1beta1Subject s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1Subject - { - public static explicit operator V1beta1Subject(V1alpha1Subject s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1Subject - { - public static explicit operator V1alpha1Subject(V1Subject s) => VersionConverter.Mapper.Map(s); - } - public partial class V1Subject - { - public static explicit operator V1Subject(V1alpha1Subject s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1Subject - { - public static explicit operator V1beta1Subject(V1Subject s) => VersionConverter.Mapper.Map(s); - } - public partial class V1Subject - { - public static explicit operator V1Subject(V1beta1Subject s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1VolumeAttachment - { - public static explicit operator V1alpha1VolumeAttachment(V1VolumeAttachment s) => VersionConverter.Mapper.Map(s); - } - public partial class V1VolumeAttachment - { - public static explicit operator V1VolumeAttachment(V1alpha1VolumeAttachment s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1VolumeAttachmentList - { - public static explicit operator V1alpha1VolumeAttachmentList(V1VolumeAttachmentList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1VolumeAttachmentList - { - public static explicit operator V1VolumeAttachmentList(V1alpha1VolumeAttachmentList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1VolumeAttachmentSource - { - public static explicit operator V1alpha1VolumeAttachmentSource(V1VolumeAttachmentSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V1VolumeAttachmentSource - { - public static explicit operator V1VolumeAttachmentSource(V1alpha1VolumeAttachmentSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1VolumeAttachmentSpec - { - public static explicit operator V1alpha1VolumeAttachmentSpec(V1VolumeAttachmentSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V1VolumeAttachmentSpec - { - public static explicit operator V1VolumeAttachmentSpec(V1alpha1VolumeAttachmentSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1VolumeAttachmentStatus - { - public static explicit operator V1alpha1VolumeAttachmentStatus(V1VolumeAttachmentStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1VolumeAttachmentStatus - { - public static explicit operator V1VolumeAttachmentStatus(V1alpha1VolumeAttachmentStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1VolumeError - { - public static explicit operator V1alpha1VolumeError(V1VolumeError s) => VersionConverter.Mapper.Map(s); - } - public partial class V1VolumeError - { - public static explicit operator V1VolumeError(V1alpha1VolumeError s) => VersionConverter.Mapper.Map(s); - } -} diff --git a/src/KubernetesClient/generated/Models/Admissionregistrationv1ServiceReference.cs b/src/KubernetesClient/generated/Models/Admissionregistrationv1ServiceReference.cs deleted file mode 100644 index 7a7f23815..000000000 --- a/src/KubernetesClient/generated/Models/Admissionregistrationv1ServiceReference.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ServiceReference holds a reference to Service.legacy.k8s.io - /// - public partial class Admissionregistrationv1ServiceReference - { - /// - /// Initializes a new instance of the Admissionregistrationv1ServiceReference class. - /// - public Admissionregistrationv1ServiceReference() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Admissionregistrationv1ServiceReference class. - /// - /// - /// `name` is the name of the service. Required - /// - /// - /// `namespace` is the namespace of the service. Required - /// - /// - /// `path` is an optional URL path which will be sent in any request to this - /// service. - /// - /// - /// If specified, the port on the service that hosting webhook. Default to 443 for - /// backward compatibility. `port` should be a valid port number (1-65535, - /// inclusive). - /// - public Admissionregistrationv1ServiceReference(string name, string namespaceProperty, string path = null, int? port = null) - { - Name = name; - NamespaceProperty = namespaceProperty; - Path = path; - Port = port; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// `name` is the name of the service. Required - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// `namespace` is the namespace of the service. Required - /// - [JsonProperty(PropertyName = "namespace")] - public string NamespaceProperty { get; set; } - - /// - /// `path` is an optional URL path which will be sent in any request to this - /// service. - /// - [JsonProperty(PropertyName = "path")] - public string Path { get; set; } - - /// - /// 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). - /// - [JsonProperty(PropertyName = "port")] - public int? Port { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/Admissionregistrationv1WebhookClientConfig.cs b/src/KubernetesClient/generated/Models/Admissionregistrationv1WebhookClientConfig.cs deleted file mode 100644 index 4a1f6e016..000000000 --- a/src/KubernetesClient/generated/Models/Admissionregistrationv1WebhookClientConfig.cs +++ /dev/null @@ -1,135 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// WebhookClientConfig contains the information to make a TLS connection with the - /// webhook - /// - public partial class Admissionregistrationv1WebhookClientConfig - { - /// - /// Initializes a new instance of the Admissionregistrationv1WebhookClientConfig class. - /// - public Admissionregistrationv1WebhookClientConfig() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Admissionregistrationv1WebhookClientConfig class. - /// - /// - /// `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. - /// - /// - /// `service` is a reference to the service for this webhook. Either `service` or - /// `url` must be specified. - /// - /// If the webhook is running within the cluster, then you should use `service`. - /// - /// - /// `url` gives the location of the webhook, in standard URL form - /// (`scheme://host:port/path`). Exactly one of `url` or `service` must be - /// specified. - /// - /// The `host` should not refer to a service running in the cluster; use the - /// `service` field instead. The host might be resolved via external DNS in some - /// apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would - /// be a layering violation). `host` may also be an IP address. - /// - /// Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless - /// you take great care to run this webhook on all hosts which run an apiserver - /// which might need to make calls to this webhook. Such installs are likely to be - /// non-portable, i.e., not easy to turn up in a new cluster. - /// - /// The scheme must be "https"; the URL must begin with "https://". - /// - /// A path is optional, and if present may be any string permissible in a URL. You - /// may use the path to pass an arbitrary string to the webhook, for example, a - /// cluster identifier. - /// - /// Attempting to use a user or basic auth e.g. "user:password@" is not allowed. - /// Fragments ("#...") and query parameters ("?...") are not allowed, either. - /// - public Admissionregistrationv1WebhookClientConfig(byte[] caBundle = null, Admissionregistrationv1ServiceReference service = null, string url = null) - { - CaBundle = caBundle; - Service = service; - Url = url; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// `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. - /// - [JsonProperty(PropertyName = "caBundle")] - public byte[] CaBundle { get; set; } - - /// - /// `service` is a reference to the service for this webhook. Either `service` or - /// `url` must be specified. - /// - /// If the webhook is running within the cluster, then you should use `service`. - /// - [JsonProperty(PropertyName = "service")] - public Admissionregistrationv1ServiceReference Service { get; set; } - - /// - /// `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. - /// - [JsonProperty(PropertyName = "url")] - public string Url { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Service?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/Apiextensionsv1ServiceReference.cs b/src/KubernetesClient/generated/Models/Apiextensionsv1ServiceReference.cs deleted file mode 100644 index c8927e4e2..000000000 --- a/src/KubernetesClient/generated/Models/Apiextensionsv1ServiceReference.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ServiceReference holds a reference to Service.legacy.k8s.io - /// - public partial class Apiextensionsv1ServiceReference - { - /// - /// Initializes a new instance of the Apiextensionsv1ServiceReference class. - /// - public Apiextensionsv1ServiceReference() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Apiextensionsv1ServiceReference class. - /// - /// - /// name is the name of the service. Required - /// - /// - /// namespace is the namespace of the service. Required - /// - /// - /// path is an optional URL path at which the webhook will be contacted. - /// - /// - /// port is an optional service port at which the webhook will be contacted. `port` - /// should be a valid port number (1-65535, inclusive). Defaults to 443 for backward - /// compatibility. - /// - public Apiextensionsv1ServiceReference(string name, string namespaceProperty, string path = null, int? port = null) - { - Name = name; - NamespaceProperty = namespaceProperty; - Path = path; - Port = port; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// name is the name of the service. Required - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// namespace is the namespace of the service. Required - /// - [JsonProperty(PropertyName = "namespace")] - public string NamespaceProperty { get; set; } - - /// - /// path is an optional URL path at which the webhook will be contacted. - /// - [JsonProperty(PropertyName = "path")] - public string Path { get; set; } - - /// - /// port is an optional service port at which the webhook will be contacted. `port` - /// should be a valid port number (1-65535, inclusive). Defaults to 443 for backward - /// compatibility. - /// - [JsonProperty(PropertyName = "port")] - public int? Port { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/Apiextensionsv1WebhookClientConfig.cs b/src/KubernetesClient/generated/Models/Apiextensionsv1WebhookClientConfig.cs deleted file mode 100644 index 99993be5d..000000000 --- a/src/KubernetesClient/generated/Models/Apiextensionsv1WebhookClientConfig.cs +++ /dev/null @@ -1,135 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// WebhookClientConfig contains the information to make a TLS connection with the - /// webhook. - /// - public partial class Apiextensionsv1WebhookClientConfig - { - /// - /// Initializes a new instance of the Apiextensionsv1WebhookClientConfig class. - /// - public Apiextensionsv1WebhookClientConfig() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Apiextensionsv1WebhookClientConfig class. - /// - /// - /// 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. - /// - /// - /// service is a reference to the service for this webhook. Either service or url - /// must be specified. - /// - /// If the webhook is running within the cluster, then you should use `service`. - /// - /// - /// url gives the location of the webhook, in standard URL form - /// (`scheme://host:port/path`). Exactly one of `url` or `service` must be - /// specified. - /// - /// The `host` should not refer to a service running in the cluster; use the - /// `service` field instead. The host might be resolved via external DNS in some - /// apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would - /// be a layering violation). `host` may also be an IP address. - /// - /// Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless - /// you take great care to run this webhook on all hosts which run an apiserver - /// which might need to make calls to this webhook. Such installs are likely to be - /// non-portable, i.e., not easy to turn up in a new cluster. - /// - /// The scheme must be "https"; the URL must begin with "https://". - /// - /// A path is optional, and if present may be any string permissible in a URL. You - /// may use the path to pass an arbitrary string to the webhook, for example, a - /// cluster identifier. - /// - /// Attempting to use a user or basic auth e.g. "user:password@" is not allowed. - /// Fragments ("#...") and query parameters ("?...") are not allowed, either. - /// - public Apiextensionsv1WebhookClientConfig(byte[] caBundle = null, Apiextensionsv1ServiceReference service = null, string url = null) - { - CaBundle = caBundle; - Service = service; - Url = url; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "caBundle")] - public byte[] CaBundle { get; set; } - - /// - /// service is a reference to the service for this webhook. Either service or url - /// must be specified. - /// - /// If the webhook is running within the cluster, then you should use `service`. - /// - [JsonProperty(PropertyName = "service")] - public Apiextensionsv1ServiceReference Service { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "url")] - public string Url { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Service?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/Apiregistrationv1ServiceReference.cs b/src/KubernetesClient/generated/Models/Apiregistrationv1ServiceReference.cs deleted file mode 100644 index 17db3ad88..000000000 --- a/src/KubernetesClient/generated/Models/Apiregistrationv1ServiceReference.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ServiceReference holds a reference to Service.legacy.k8s.io - /// - public partial class Apiregistrationv1ServiceReference - { - /// - /// Initializes a new instance of the Apiregistrationv1ServiceReference class. - /// - public Apiregistrationv1ServiceReference() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Apiregistrationv1ServiceReference class. - /// - /// - /// Name is the name of the service - /// - /// - /// Namespace is the namespace of the service - /// - /// - /// If specified, the port on the service that hosting webhook. Default to 443 for - /// backward compatibility. `port` should be a valid port number (1-65535, - /// inclusive). - /// - public Apiregistrationv1ServiceReference(string name = null, string namespaceProperty = null, int? port = null) - { - Name = name; - NamespaceProperty = namespaceProperty; - Port = port; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Name is the name of the service - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Namespace is the namespace of the service - /// - [JsonProperty(PropertyName = "namespace")] - public string NamespaceProperty { get; set; } - - /// - /// 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). - /// - [JsonProperty(PropertyName = "port")] - public int? Port { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/Authenticationv1TokenRequest.cs b/src/KubernetesClient/generated/Models/Authenticationv1TokenRequest.cs deleted file mode 100644 index 13d4ee2a0..000000000 --- a/src/KubernetesClient/generated/Models/Authenticationv1TokenRequest.cs +++ /dev/null @@ -1,124 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// TokenRequest requests a token for a given service account. - /// - public partial class Authenticationv1TokenRequest - { - /// - /// Initializes a new instance of the Authenticationv1TokenRequest class. - /// - public Authenticationv1TokenRequest() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Authenticationv1TokenRequest class. - /// - /// - /// Spec holds information about the request being evaluated - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Status is filled in by the server and indicates whether the token can be - /// authenticated. - /// - public Authenticationv1TokenRequest(V1TokenRequestSpec spec, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1TokenRequestStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Spec holds information about the request being evaluated - /// - [JsonProperty(PropertyName = "spec")] - public V1TokenRequestSpec Spec { get; set; } - - /// - /// Status is filled in by the server and indicates whether the token can be - /// authenticated. - /// - [JsonProperty(PropertyName = "status")] - public V1TokenRequestStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Spec == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Spec"); - } - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/Corev1EndpointPort.cs b/src/KubernetesClient/generated/Models/Corev1EndpointPort.cs deleted file mode 100644 index 76c9af0e0..000000000 --- a/src/KubernetesClient/generated/Models/Corev1EndpointPort.cs +++ /dev/null @@ -1,99 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// EndpointPort is a tuple that describes a single port. - /// - public partial class Corev1EndpointPort - { - /// - /// Initializes a new instance of the Corev1EndpointPort class. - /// - public Corev1EndpointPort() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Corev1EndpointPort class. - /// - /// - /// The port number of the endpoint. - /// - /// - /// The application protocol for this port. This field follows standard Kubernetes - /// label syntax. Un-prefixed names are reserved for IANA standard service names (as - /// per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard - /// protocols should use prefixed names such as mycompany.com/my-custom-protocol. - /// - /// - /// The name of this port. This must match the 'name' field in the corresponding - /// ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. - /// - /// - /// The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. - /// - public Corev1EndpointPort(int port, string appProtocol = null, string name = null, string protocol = null) - { - AppProtocol = appProtocol; - Name = name; - Port = port; - Protocol = protocol; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The application protocol for this port. This field follows standard Kubernetes - /// label syntax. Un-prefixed names are reserved for IANA standard service names (as - /// per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard - /// protocols should use prefixed names such as mycompany.com/my-custom-protocol. - /// - [JsonProperty(PropertyName = "appProtocol")] - public string AppProtocol { get; set; } - - /// - /// The name of this port. This must match the 'name' field in the corresponding - /// ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// The port number of the endpoint. - /// - [JsonProperty(PropertyName = "port")] - public int Port { get; set; } - - /// - /// The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. - /// - [JsonProperty(PropertyName = "protocol")] - public string Protocol { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/Corev1Event.cs b/src/KubernetesClient/generated/Models/Corev1Event.cs deleted file mode 100644 index 323c16cfd..000000000 --- a/src/KubernetesClient/generated/Models/Corev1Event.cs +++ /dev/null @@ -1,261 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Event is a report of an event somewhere in the cluster. Events have a limited - /// retention time and triggers and messages may evolve with time. Event consumers - /// should not rely on the timing of an event with a given Reason reflecting a - /// consistent underlying trigger, or the continued existence of events with that - /// Reason. Events should be treated as informative, best-effort, supplemental - /// data. - /// - public partial class Corev1Event - { - /// - /// Initializes a new instance of the Corev1Event class. - /// - public Corev1Event() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Corev1Event class. - /// - /// - /// The object that this event is about. - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// What action was taken/failed regarding to the Regarding object. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to 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 number of times this event has occurred. - /// - /// - /// Time when this Event was first observed. - /// - /// - /// The time at which the event was first recorded. (Time of server receipt is in - /// TypeMeta.) - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// The time at which the most recent occurrence of this event was recorded. - /// - /// - /// A human-readable description of the status of this operation. - /// - /// - /// This should be a short, machine understandable string that gives the reason for - /// the transition into the object's current status. - /// - /// - /// Optional secondary object for more complex actions. - /// - /// - /// Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. - /// - /// - /// ID of the controller instance, e.g. `kubelet-xyzf`. - /// - /// - /// Data about the Event series this event represents or nil if it's a singleton - /// Event. - /// - /// - /// The component reporting this event. Should be a short machine understandable - /// string. - /// - /// - /// Type of this event (Normal, Warning), new types could be added in the future - /// - public Corev1Event(V1ObjectReference involvedObject, V1ObjectMeta metadata, string action = null, string apiVersion = null, int? count = null, System.DateTime? eventTime = null, System.DateTime? firstTimestamp = null, string kind = null, System.DateTime? lastTimestamp = null, string message = null, string reason = null, V1ObjectReference related = null, string reportingComponent = null, string reportingInstance = null, Corev1EventSeries series = null, V1EventSource source = null, string type = null) - { - Action = action; - ApiVersion = apiVersion; - Count = count; - EventTime = eventTime; - FirstTimestamp = firstTimestamp; - InvolvedObject = involvedObject; - Kind = kind; - LastTimestamp = lastTimestamp; - Message = message; - Metadata = metadata; - Reason = reason; - Related = related; - ReportingComponent = reportingComponent; - ReportingInstance = reportingInstance; - Series = series; - Source = source; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// What action was taken/failed regarding to the Regarding object. - /// - [JsonProperty(PropertyName = "action")] - public string Action { get; set; } - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// The number of times this event has occurred. - /// - [JsonProperty(PropertyName = "count")] - public int? Count { get; set; } - - /// - /// Time when this Event was first observed. - /// - [JsonProperty(PropertyName = "eventTime")] - public System.DateTime? EventTime { get; set; } - - /// - /// The time at which the event was first recorded. (Time of server receipt is in - /// TypeMeta.) - /// - [JsonProperty(PropertyName = "firstTimestamp")] - public System.DateTime? FirstTimestamp { get; set; } - - /// - /// The object that this event is about. - /// - [JsonProperty(PropertyName = "involvedObject")] - public V1ObjectReference InvolvedObject { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// The time at which the most recent occurrence of this event was recorded. - /// - [JsonProperty(PropertyName = "lastTimestamp")] - public System.DateTime? LastTimestamp { get; set; } - - /// - /// A human-readable description of the status of this operation. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// This should be a short, machine understandable string that gives the reason for - /// the transition into the object's current status. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Optional secondary object for more complex actions. - /// - [JsonProperty(PropertyName = "related")] - public V1ObjectReference Related { get; set; } - - /// - /// Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. - /// - [JsonProperty(PropertyName = "reportingComponent")] - public string ReportingComponent { get; set; } - - /// - /// ID of the controller instance, e.g. `kubelet-xyzf`. - /// - [JsonProperty(PropertyName = "reportingInstance")] - public string ReportingInstance { get; set; } - - /// - /// Data about the Event series this event represents or nil if it's a singleton - /// Event. - /// - [JsonProperty(PropertyName = "series")] - public Corev1EventSeries Series { get; set; } - - /// - /// The component reporting this event. Should be a short machine understandable - /// string. - /// - [JsonProperty(PropertyName = "source")] - public V1EventSource Source { get; set; } - - /// - /// Type of this event (Normal, Warning), new types could be added in the future - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (InvolvedObject == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "InvolvedObject"); - } - if (Metadata == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Metadata"); - } - InvolvedObject?.Validate(); - Metadata?.Validate(); - Related?.Validate(); - Series?.Validate(); - Source?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/Corev1EventList.cs b/src/KubernetesClient/generated/Models/Corev1EventList.cs deleted file mode 100644 index d00b046ef..000000000 --- a/src/KubernetesClient/generated/Models/Corev1EventList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// EventList is a list of events. - /// - public partial class Corev1EventList - { - /// - /// Initializes a new instance of the Corev1EventList class. - /// - public Corev1EventList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Corev1EventList class. - /// - /// - /// List of events - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - public Corev1EventList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// List of events - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/Corev1EventSeries.cs b/src/KubernetesClient/generated/Models/Corev1EventSeries.cs deleted file mode 100644 index 4f44e3402..000000000 --- a/src/KubernetesClient/generated/Models/Corev1EventSeries.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// EventSeries contain information on series of events, i.e. thing that was/is - /// happening continuously for some time. - /// - public partial class Corev1EventSeries - { - /// - /// Initializes a new instance of the Corev1EventSeries class. - /// - public Corev1EventSeries() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Corev1EventSeries class. - /// - /// - /// Number of occurrences in this series up to the last heartbeat time - /// - /// - /// Time of the last occurrence observed - /// - public Corev1EventSeries(int? count = null, System.DateTime? lastObservedTime = null) - { - Count = count; - LastObservedTime = lastObservedTime; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Number of occurrences in this series up to the last heartbeat time - /// - [JsonProperty(PropertyName = "count")] - public int? Count { get; set; } - - /// - /// Time of the last occurrence observed - /// - [JsonProperty(PropertyName = "lastObservedTime")] - public System.DateTime? LastObservedTime { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/Discoveryv1EndpointPort.cs b/src/KubernetesClient/generated/Models/Discoveryv1EndpointPort.cs deleted file mode 100644 index 087e6d8f1..000000000 --- a/src/KubernetesClient/generated/Models/Discoveryv1EndpointPort.cs +++ /dev/null @@ -1,109 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// EndpointPort represents a Port used by an EndpointSlice - /// - public partial class Discoveryv1EndpointPort - { - /// - /// Initializes a new instance of the Discoveryv1EndpointPort class. - /// - public Discoveryv1EndpointPort() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Discoveryv1EndpointPort class. - /// - /// - /// The application protocol for this port. This field follows standard Kubernetes - /// label syntax. Un-prefixed names are reserved for IANA standard service names (as - /// per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard - /// protocols should use prefixed names such as mycompany.com/my-custom-protocol. - /// - /// - /// The name of this port. All ports in an EndpointSlice must have a unique name. If - /// the EndpointSlice is dervied from a Kubernetes service, this corresponds to the - /// Service.ports[].name. Name must either be an empty string or pass DNS_LABEL - /// validation: * must be no more than 63 characters long. * must consist of lower - /// case alphanumeric characters or '-'. * must start and end with an alphanumeric - /// character. Default is empty string. - /// - /// - /// 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. - /// - /// - /// The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. - /// - public Discoveryv1EndpointPort(string appProtocol = null, string name = null, int? port = null, string protocol = null) - { - AppProtocol = appProtocol; - Name = name; - Port = port; - Protocol = protocol; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The application protocol for this port. This field follows standard Kubernetes - /// label syntax. Un-prefixed names are reserved for IANA standard service names (as - /// per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard - /// protocols should use prefixed names such as mycompany.com/my-custom-protocol. - /// - [JsonProperty(PropertyName = "appProtocol")] - public string AppProtocol { get; set; } - - /// - /// The name of this port. All ports in an EndpointSlice must have a unique name. If - /// the EndpointSlice is dervied from a Kubernetes service, this corresponds to the - /// Service.ports[].name. Name must either be an empty string or pass DNS_LABEL - /// validation: * must be no more than 63 characters long. * must consist of lower - /// case alphanumeric characters or '-'. * must start and end with an alphanumeric - /// character. Default is empty string. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "port")] - public int? Port { get; set; } - - /// - /// The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. - /// - [JsonProperty(PropertyName = "protocol")] - public string Protocol { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/Eventsv1Event.cs b/src/KubernetesClient/generated/Models/Eventsv1Event.cs deleted file mode 100644 index f5edae3d1..000000000 --- a/src/KubernetesClient/generated/Models/Eventsv1Event.cs +++ /dev/null @@ -1,281 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class Eventsv1Event - { - /// - /// Initializes a new instance of the Eventsv1Event class. - /// - public Eventsv1Event() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Eventsv1Event class. - /// - /// - /// eventTime is the time when this Event was first observed. It is required. - /// - /// - /// 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. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// deprecatedCount is the deprecated field assuring backward compatibility with - /// core.v1 Event type. - /// - /// - /// deprecatedFirstTimestamp is the deprecated field assuring backward compatibility - /// with core.v1 Event type. - /// - /// - /// deprecatedLastTimestamp is the deprecated field assuring backward compatibility - /// with core.v1 Event type. - /// - /// - /// deprecatedSource is the deprecated field assuring backward compatibility with - /// core.v1 Event type. - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// regarding contains the object this Event is about. In most cases it's an Object - /// reporting controller implements, e.g. ReplicaSetController implements - /// ReplicaSets and this event is emitted because it acts on some changes in a - /// ReplicaSet object. - /// - /// - /// related is the optional secondary object for more complex actions. E.g. when - /// regarding object triggers a creation or deletion of related object. - /// - /// - /// reportingController is the name of the controller that emitted this Event, e.g. - /// `kubernetes.io/kubelet`. This field cannot be empty for new Events. - /// - /// - /// 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. - /// - /// - /// series is data about the Event series this event represents or nil if it's a - /// singleton Event. - /// - /// - /// type is the type of this event (Normal, Warning), new types could be added in - /// the future. It is machine-readable. This field cannot be empty for new Events. - /// - public Eventsv1Event(System.DateTime eventTime, string action = null, string apiVersion = null, int? deprecatedCount = null, System.DateTime? deprecatedFirstTimestamp = null, System.DateTime? deprecatedLastTimestamp = null, V1EventSource deprecatedSource = null, string kind = null, V1ObjectMeta metadata = null, string note = null, string reason = null, V1ObjectReference regarding = null, V1ObjectReference related = null, string reportingController = null, string reportingInstance = null, Eventsv1EventSeries series = null, string type = null) - { - Action = action; - ApiVersion = apiVersion; - DeprecatedCount = deprecatedCount; - DeprecatedFirstTimestamp = deprecatedFirstTimestamp; - DeprecatedLastTimestamp = deprecatedLastTimestamp; - DeprecatedSource = deprecatedSource; - EventTime = eventTime; - Kind = kind; - Metadata = metadata; - Note = note; - Reason = reason; - Regarding = regarding; - Related = related; - ReportingController = reportingController; - ReportingInstance = reportingInstance; - Series = series; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "action")] - public string Action { get; set; } - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// deprecatedCount is the deprecated field assuring backward compatibility with - /// core.v1 Event type. - /// - [JsonProperty(PropertyName = "deprecatedCount")] - public int? DeprecatedCount { get; set; } - - /// - /// deprecatedFirstTimestamp is the deprecated field assuring backward compatibility - /// with core.v1 Event type. - /// - [JsonProperty(PropertyName = "deprecatedFirstTimestamp")] - public System.DateTime? DeprecatedFirstTimestamp { get; set; } - - /// - /// deprecatedLastTimestamp is the deprecated field assuring backward compatibility - /// with core.v1 Event type. - /// - [JsonProperty(PropertyName = "deprecatedLastTimestamp")] - public System.DateTime? DeprecatedLastTimestamp { get; set; } - - /// - /// deprecatedSource is the deprecated field assuring backward compatibility with - /// core.v1 Event type. - /// - [JsonProperty(PropertyName = "deprecatedSource")] - public V1EventSource DeprecatedSource { get; set; } - - /// - /// eventTime is the time when this Event was first observed. It is required. - /// - [JsonProperty(PropertyName = "eventTime")] - public System.DateTime EventTime { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "note")] - public string Note { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// regarding contains the object this Event is about. In most cases it's an Object - /// reporting controller implements, e.g. ReplicaSetController implements - /// ReplicaSets and this event is emitted because it acts on some changes in a - /// ReplicaSet object. - /// - [JsonProperty(PropertyName = "regarding")] - public V1ObjectReference Regarding { get; set; } - - /// - /// related is the optional secondary object for more complex actions. E.g. when - /// regarding object triggers a creation or deletion of related object. - /// - [JsonProperty(PropertyName = "related")] - public V1ObjectReference Related { get; set; } - - /// - /// reportingController is the name of the controller that emitted this Event, e.g. - /// `kubernetes.io/kubelet`. This field cannot be empty for new Events. - /// - [JsonProperty(PropertyName = "reportingController")] - public string ReportingController { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "reportingInstance")] - public string ReportingInstance { get; set; } - - /// - /// series is data about the Event series this event represents or nil if it's a - /// singleton Event. - /// - [JsonProperty(PropertyName = "series")] - public Eventsv1EventSeries Series { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - DeprecatedSource?.Validate(); - Metadata?.Validate(); - Regarding?.Validate(); - Related?.Validate(); - Series?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/Eventsv1EventList.cs b/src/KubernetesClient/generated/Models/Eventsv1EventList.cs deleted file mode 100644 index 8f7c80dc7..000000000 --- a/src/KubernetesClient/generated/Models/Eventsv1EventList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// EventList is a list of Event objects. - /// - public partial class Eventsv1EventList - { - /// - /// Initializes a new instance of the Eventsv1EventList class. - /// - public Eventsv1EventList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Eventsv1EventList class. - /// - /// - /// items is a list of schema objects. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public Eventsv1EventList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// items is a list of schema objects. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/Eventsv1EventSeries.cs b/src/KubernetesClient/generated/Models/Eventsv1EventSeries.cs deleted file mode 100644 index 57feb8ef8..000000000 --- a/src/KubernetesClient/generated/Models/Eventsv1EventSeries.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class Eventsv1EventSeries - { - /// - /// Initializes a new instance of the Eventsv1EventSeries class. - /// - public Eventsv1EventSeries() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Eventsv1EventSeries class. - /// - /// - /// count is the number of occurrences in this series up to the last heartbeat time. - /// - /// - /// lastObservedTime is the time when last Event from the series was seen before - /// last heartbeat. - /// - public Eventsv1EventSeries(int count, System.DateTime lastObservedTime) - { - Count = count; - LastObservedTime = lastObservedTime; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// count is the number of occurrences in this series up to the last heartbeat time. - /// - [JsonProperty(PropertyName = "count")] - public int Count { get; set; } - - /// - /// lastObservedTime is the time when last Event from the series was seen before - /// last heartbeat. - /// - [JsonProperty(PropertyName = "lastObservedTime")] - public System.DateTime LastObservedTime { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/IntstrIntOrString.cs b/src/KubernetesClient/generated/Models/IntstrIntOrString.cs deleted file mode 100644 index 2b748b21b..000000000 --- a/src/KubernetesClient/generated/Models/IntstrIntOrString.cs +++ /dev/null @@ -1,64 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// IntOrString is a type that can hold an int32 or a string. When used in JSON or - /// YAML marshalling and unmarshalling, it produces or consumes the inner type. - /// This allows you to have, for example, a JSON field that can accept a name or - /// number. - /// - public partial class IntstrIntOrString - { - /// - /// Initializes a new instance of the IntstrIntOrString class. - /// - public IntstrIntOrString() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the IntstrIntOrString class. - /// - /// - /// - /// - public IntstrIntOrString(string value = null) - { - Value = value; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// - /// - [JsonProperty(PropertyName = "value")] - public string Value { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/ResourceQuantity.cs b/src/KubernetesClient/generated/Models/ResourceQuantity.cs deleted file mode 100644 index 54f66b02c..000000000 --- a/src/KubernetesClient/generated/Models/ResourceQuantity.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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: - /// a. No precision is lost - /// b. No fractional digits will be emitted - /// c. The exponent (or suffix) is as large as possible. - /// The sign will be omitted unless the number is negative. - /// - /// Examples: - /// 1.5 will be serialized as "1500m" - /// 1.5Gi will be serialized as "1536Mi" - /// - /// Note that the quantity will NEVER be internally represented by a floating point - /// number. That is the whole point of this exercise. - /// - /// Non-canonical values will still parse as long as they are well formed, but will - /// be re-emitted in their canonical form. (So always use canonical form, or don't - /// diff.) - /// - /// This format is intended to make it difficult to use these numbers without - /// writing some sort of special handling code in the hopes that that will cause - /// implementors to also use a fixed point implementation. - /// - public partial class ResourceQuantity - { - /// - /// Initializes a new instance of the ResourceQuantity class. - /// - public ResourceQuantity() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ResourceQuantity class. - /// - /// - /// - /// - public ResourceQuantity(string value = null) - { - Value = value; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// - /// - [JsonProperty(PropertyName = "value")] - public string Value { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/Storagev1TokenRequest.cs b/src/KubernetesClient/generated/Models/Storagev1TokenRequest.cs deleted file mode 100644 index a99cf53da..000000000 --- a/src/KubernetesClient/generated/Models/Storagev1TokenRequest.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// TokenRequest contains parameters of a service account token. - /// - public partial class Storagev1TokenRequest - { - /// - /// Initializes a new instance of the Storagev1TokenRequest class. - /// - public Storagev1TokenRequest() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Storagev1TokenRequest class. - /// - /// - /// Audience is the intended audience of the token in "TokenRequestSpec". It will - /// default to the audiences of kube apiserver. - /// - /// - /// ExpirationSeconds is the duration of validity of the token in - /// "TokenRequestSpec". It has the same default value of "ExpirationSeconds" in - /// "TokenRequestSpec". - /// - public Storagev1TokenRequest(string audience, long? expirationSeconds = null) - { - Audience = audience; - ExpirationSeconds = expirationSeconds; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Audience is the intended audience of the token in "TokenRequestSpec". It will - /// default to the audiences of kube apiserver. - /// - [JsonProperty(PropertyName = "audience")] - public string Audience { get; set; } - - /// - /// ExpirationSeconds is the duration of validity of the token in - /// "TokenRequestSpec". It has the same default value of "ExpirationSeconds" in - /// "TokenRequestSpec". - /// - [JsonProperty(PropertyName = "expirationSeconds")] - public long? ExpirationSeconds { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1APIGroup.cs b/src/KubernetesClient/generated/Models/V1APIGroup.cs deleted file mode 100644 index a008b2bc6..000000000 --- a/src/KubernetesClient/generated/Models/V1APIGroup.cs +++ /dev/null @@ -1,153 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// APIGroup contains the name, the supported versions, and the preferred version of - /// a group. - /// - public partial class V1APIGroup - { - /// - /// Initializes a new instance of the V1APIGroup class. - /// - public V1APIGroup() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1APIGroup class. - /// - /// - /// name is the name of the group. - /// - /// - /// versions are the versions supported in this group. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// preferredVersion is the version preferred by the API server, which probably is - /// the storage version. - /// - /// - /// a map of client CIDR to server address that is serving this group. This is to - /// help clients reach servers in the most network-efficient way possible. Clients - /// can use the appropriate server address as per the CIDR that they match. In case - /// of multiple matches, clients should use the longest matching CIDR. The server - /// returns only those CIDRs that it thinks that the client can match. For example: - /// the master will return an internal IP CIDR only, if the client reaches the - /// server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip - /// header or request.RemoteAddr (in that order) to get the client IP. - /// - public V1APIGroup(string name, IList versions, string apiVersion = null, string kind = null, V1GroupVersionForDiscovery preferredVersion = null, IList serverAddressByClientCIDRs = null) - { - ApiVersion = apiVersion; - Kind = kind; - Name = name; - PreferredVersion = preferredVersion; - ServerAddressByClientCIDRs = serverAddressByClientCIDRs; - Versions = versions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// name is the name of the group. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// preferredVersion is the version preferred by the API server, which probably is - /// the storage version. - /// - [JsonProperty(PropertyName = "preferredVersion")] - public V1GroupVersionForDiscovery PreferredVersion { get; set; } - - /// - /// a map of client CIDR to server address that is serving this group. This is to - /// help clients reach servers in the most network-efficient way possible. Clients - /// can use the appropriate server address as per the CIDR that they match. In case - /// of multiple matches, clients should use the longest matching CIDR. The server - /// returns only those CIDRs that it thinks that the client can match. For example: - /// the master will return an internal IP CIDR only, if the client reaches the - /// server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip - /// header or request.RemoteAddr (in that order) to get the client IP. - /// - [JsonProperty(PropertyName = "serverAddressByClientCIDRs")] - public IList ServerAddressByClientCIDRs { get; set; } - - /// - /// versions are the versions supported in this group. - /// - [JsonProperty(PropertyName = "versions")] - public IList Versions { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - PreferredVersion?.Validate(); - if (ServerAddressByClientCIDRs != null){ - foreach(var obj in ServerAddressByClientCIDRs) - { - obj.Validate(); - } - } - if (Versions != null){ - foreach(var obj in Versions) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1APIGroupList.cs b/src/KubernetesClient/generated/Models/V1APIGroupList.cs deleted file mode 100644 index e70d7400c..000000000 --- a/src/KubernetesClient/generated/Models/V1APIGroupList.cs +++ /dev/null @@ -1,100 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// APIGroupList is a list of APIGroup, to allow clients to discover the API at - /// /apis. - /// - public partial class V1APIGroupList - { - /// - /// Initializes a new instance of the V1APIGroupList class. - /// - public V1APIGroupList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1APIGroupList class. - /// - /// - /// groups is a list of APIGroup. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - public V1APIGroupList(IList groups, string apiVersion = null, string kind = null) - { - ApiVersion = apiVersion; - Groups = groups; - Kind = kind; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// groups is a list of APIGroup. - /// - [JsonProperty(PropertyName = "groups")] - public IList Groups { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Groups != null){ - foreach(var obj in Groups) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1APIResource.cs b/src/KubernetesClient/generated/Models/V1APIResource.cs deleted file mode 100644 index e2c76b7ae..000000000 --- a/src/KubernetesClient/generated/Models/V1APIResource.cs +++ /dev/null @@ -1,179 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// APIResource specifies the name of a resource and whether it is namespaced. - /// - public partial class V1APIResource - { - /// - /// Initializes a new instance of the V1APIResource class. - /// - public V1APIResource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1APIResource class. - /// - /// - /// kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') - /// - /// - /// name is the plural name of the resource. - /// - /// - /// namespaced indicates if a resource is namespaced or not. - /// - /// - /// singularName is the singular name of the resource. This allows clients to - /// handle plural and singular opaquely. The singularName is more correct for - /// reporting status on a single item and both singular and plural are allowed from - /// the kubectl CLI interface. - /// - /// - /// verbs is a list of supported kube verbs (this includes get, list, watch, create, - /// update, patch, delete, deletecollection, and proxy) - /// - /// - /// categories is a list of the grouped resources this resource belongs to (e.g. - /// 'all') - /// - /// - /// group is the preferred group of the resource. Empty implies the group of the - /// containing resource list. For subresources, this may have a different value, for - /// example: Scale". - /// - /// - /// shortNames is a list of suggested short names of the resource. - /// - /// - /// The hash value of the storage version, the version this resource is converted to - /// when written to the data store. Value must be treated as opaque by clients. Only - /// equality comparison on the value is valid. This is an alpha feature and may - /// change or be removed in the future. The field is populated by the apiserver only - /// if the StorageVersionHash feature gate is enabled. This field will remain - /// optional even if it graduates. - /// - /// - /// version is the preferred version of the resource. Empty implies the version of - /// the containing resource list For subresources, this may have a different value, - /// for example: v1 (while inside a v1beta1 version of the core resource's group)". - /// - public V1APIResource(string kind, string name, bool namespaced, string singularName, IList verbs, IList categories = null, string group = null, IList shortNames = null, string storageVersionHash = null, string version = null) - { - Categories = categories; - Group = group; - Kind = kind; - Name = name; - Namespaced = namespaced; - ShortNames = shortNames; - SingularName = singularName; - StorageVersionHash = storageVersionHash; - Verbs = verbs; - Version = version; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// categories is a list of the grouped resources this resource belongs to (e.g. - /// 'all') - /// - [JsonProperty(PropertyName = "categories")] - public IList Categories { get; set; } - - /// - /// group is the preferred group of the resource. Empty implies the group of the - /// containing resource list. For subresources, this may have a different value, for - /// example: Scale". - /// - [JsonProperty(PropertyName = "group")] - public string Group { get; set; } - - /// - /// kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// name is the plural name of the resource. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// namespaced indicates if a resource is namespaced or not. - /// - [JsonProperty(PropertyName = "namespaced")] - public bool Namespaced { get; set; } - - /// - /// shortNames is a list of suggested short names of the resource. - /// - [JsonProperty(PropertyName = "shortNames")] - public IList ShortNames { get; set; } - - /// - /// singularName is the singular name of the resource. This allows clients to - /// handle plural and singular opaquely. The singularName is more correct for - /// reporting status on a single item and both singular and plural are allowed from - /// the kubectl CLI interface. - /// - [JsonProperty(PropertyName = "singularName")] - public string SingularName { get; set; } - - /// - /// The hash value of the storage version, the version this resource is converted to - /// when written to the data store. Value must be treated as opaque by clients. Only - /// equality comparison on the value is valid. This is an alpha feature and may - /// change or be removed in the future. The field is populated by the apiserver only - /// if the StorageVersionHash feature gate is enabled. This field will remain - /// optional even if it graduates. - /// - [JsonProperty(PropertyName = "storageVersionHash")] - public string StorageVersionHash { get; set; } - - /// - /// verbs is a list of supported kube verbs (this includes get, list, watch, create, - /// update, patch, delete, deletecollection, and proxy) - /// - [JsonProperty(PropertyName = "verbs")] - public IList Verbs { get; set; } - - /// - /// version is the preferred version of the resource. Empty implies the version of - /// the containing resource list For subresources, this may have a different value, - /// for example: v1 (while inside a v1beta1 version of the core resource's group)". - /// - [JsonProperty(PropertyName = "version")] - public string Version { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1APIResourceList.cs b/src/KubernetesClient/generated/Models/V1APIResourceList.cs deleted file mode 100644 index 6020cddf2..000000000 --- a/src/KubernetesClient/generated/Models/V1APIResourceList.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// APIResourceList is a list of APIResource, it is used to expose the name of the - /// resources supported in a specific group and version, and if the resource is - /// namespaced. - /// - public partial class V1APIResourceList - { - /// - /// Initializes a new instance of the V1APIResourceList class. - /// - public V1APIResourceList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1APIResourceList class. - /// - /// - /// groupVersion is the group and version this APIResourceList is for. - /// - /// - /// resources contains the name of the resources and if they are namespaced. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - public V1APIResourceList(string groupVersion, IList resources, string apiVersion = null, string kind = null) - { - ApiVersion = apiVersion; - GroupVersion = groupVersion; - Kind = kind; - Resources = resources; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// groupVersion is the group and version this APIResourceList is for. - /// - [JsonProperty(PropertyName = "groupVersion")] - public string GroupVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// resources contains the name of the resources and if they are namespaced. - /// - [JsonProperty(PropertyName = "resources")] - public IList Resources { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Resources != null){ - foreach(var obj in Resources) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1APIService.cs b/src/KubernetesClient/generated/Models/V1APIService.cs deleted file mode 100644 index d05269ea2..000000000 --- a/src/KubernetesClient/generated/Models/V1APIService.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// APIService represents a server for a particular GroupVersion. Name must be - /// "version.group". - /// - public partial class V1APIService - { - /// - /// Initializes a new instance of the V1APIService class. - /// - public V1APIService() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1APIService class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Spec contains information for locating and communicating with a server - /// - /// - /// Status contains derived information about an API server - /// - public V1APIService(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1APIServiceSpec spec = null, V1APIServiceStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Spec contains information for locating and communicating with a server - /// - [JsonProperty(PropertyName = "spec")] - public V1APIServiceSpec Spec { get; set; } - - /// - /// Status contains derived information about an API server - /// - [JsonProperty(PropertyName = "status")] - public V1APIServiceStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1APIServiceCondition.cs b/src/KubernetesClient/generated/Models/V1APIServiceCondition.cs deleted file mode 100644 index e6bbc70bd..000000000 --- a/src/KubernetesClient/generated/Models/V1APIServiceCondition.cs +++ /dev/null @@ -1,101 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// APIServiceCondition describes the state of an APIService at a particular point - /// - public partial class V1APIServiceCondition - { - /// - /// Initializes a new instance of the V1APIServiceCondition class. - /// - public V1APIServiceCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1APIServiceCondition class. - /// - /// - /// Status is the status of the condition. Can be True, False, Unknown. - /// - /// - /// Type is the type of the condition. - /// - /// - /// Last time the condition transitioned from one status to another. - /// - /// - /// Human-readable message indicating details about last transition. - /// - /// - /// Unique, one-word, CamelCase reason for the condition's last transition. - /// - public V1APIServiceCondition(string status, string type, System.DateTime? lastTransitionTime = null, string message = null, string reason = null) - { - LastTransitionTime = lastTransitionTime; - Message = message; - Reason = reason; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Last time the condition transitioned from one status to another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// Human-readable message indicating details about last transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Unique, one-word, CamelCase reason for the condition's last transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Status is the status of the condition. Can be True, False, Unknown. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Type is the type of the condition. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1APIServiceList.cs b/src/KubernetesClient/generated/Models/V1APIServiceList.cs deleted file mode 100644 index 975c870fd..000000000 --- a/src/KubernetesClient/generated/Models/V1APIServiceList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// APIServiceList is a list of APIService objects. - /// - public partial class V1APIServiceList - { - /// - /// Initializes a new instance of the V1APIServiceList class. - /// - public V1APIServiceList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1APIServiceList class. - /// - /// - /// Items is the list of APIService - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1APIServiceList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is the list of APIService - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1APIServiceSpec.cs b/src/KubernetesClient/generated/Models/V1APIServiceSpec.cs deleted file mode 100644 index e01cef34d..000000000 --- a/src/KubernetesClient/generated/Models/V1APIServiceSpec.cs +++ /dev/null @@ -1,178 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// APIServiceSpec contains information for locating and communicating with a - /// server. Only https is supported, though you are able to disable certificate - /// verification. - /// - public partial class V1APIServiceSpec - { - /// - /// Initializes a new instance of the V1APIServiceSpec class. - /// - public V1APIServiceSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1APIServiceSpec class. - /// - /// - /// GroupPriorityMininum is the priority this group should have at least. Higher - /// priority means that the group is preferred by clients over lower priority ones. - /// Note that other versions of this group might specify even higher - /// GroupPriorityMininum values such that the whole group gets a higher priority. - /// The primary sort is based on GroupPriorityMinimum, ordered highest number to - /// lowest (20 before 10). The secondary sort is based on the alphabetical - /// comparison of the name of the object. (v1.bar before v1.foo) We'd recommend - /// something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, - /// Deis) are recommended to be in the 2000s - /// - /// - /// VersionPriority controls the ordering of this API version inside of its group. - /// Must be greater than zero. The primary sort is based on VersionPriority, ordered - /// highest to lowest (20 before 10). Since it's inside of a group, the number can - /// be small, probably in the 10s. In case of equal version priorities, the version - /// string will be used to compute the order inside a group. If the version string - /// is "kube-like", it will sort above non "kube-like" version strings, which are - /// ordered lexicographically. "Kube-like" versions start with a "v", then are - /// followed by a number (the major version), then optionally the string "alpha" or - /// "beta" and another number (the minor version). These are sorted first by GA > - /// beta > alpha (where GA is a version with no suffix such as beta or alpha), and - /// then by comparing major version, then minor version. An example sorted list of - /// versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, - /// foo10. - /// - /// - /// CABundle is a PEM encoded CA bundle which will be used to validate an API - /// server's serving certificate. If unspecified, system trust roots on the - /// apiserver are used. - /// - /// - /// Group is the API group name this server hosts - /// - /// - /// InsecureSkipTLSVerify disables TLS certificate verification when communicating - /// with this server. This is strongly discouraged. You should use the CABundle - /// instead. - /// - /// - /// Service is a reference to the service for this API server. It must communicate - /// on port 443. If the Service is nil, that means the handling for the API - /// groupversion is handled locally on this server. The call will simply delegate to - /// the normal handler chain to be fulfilled. - /// - /// - /// Version is the API version this server hosts. For example, "v1" - /// - public V1APIServiceSpec(int groupPriorityMinimum, int versionPriority, byte[] caBundle = null, string group = null, bool? insecureSkipTLSVerify = null, Apiregistrationv1ServiceReference service = null, string version = null) - { - CaBundle = caBundle; - Group = group; - GroupPriorityMinimum = groupPriorityMinimum; - InsecureSkipTLSVerify = insecureSkipTLSVerify; - Service = service; - Version = version; - VersionPriority = versionPriority; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// CABundle is a PEM encoded CA bundle which will be used to validate an API - /// server's serving certificate. If unspecified, system trust roots on the - /// apiserver are used. - /// - [JsonProperty(PropertyName = "caBundle")] - public byte[] CaBundle { get; set; } - - /// - /// Group is the API group name this server hosts - /// - [JsonProperty(PropertyName = "group")] - public string Group { get; set; } - - /// - /// GroupPriorityMininum is the priority this group should have at least. Higher - /// priority means that the group is preferred by clients over lower priority ones. - /// Note that other versions of this group might specify even higher - /// GroupPriorityMininum values such that the whole group gets a higher priority. - /// The primary sort is based on GroupPriorityMinimum, ordered highest number to - /// lowest (20 before 10). The secondary sort is based on the alphabetical - /// comparison of the name of the object. (v1.bar before v1.foo) We'd recommend - /// something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, - /// Deis) are recommended to be in the 2000s - /// - [JsonProperty(PropertyName = "groupPriorityMinimum")] - public int GroupPriorityMinimum { get; set; } - - /// - /// InsecureSkipTLSVerify disables TLS certificate verification when communicating - /// with this server. This is strongly discouraged. You should use the CABundle - /// instead. - /// - [JsonProperty(PropertyName = "insecureSkipTLSVerify")] - public bool? InsecureSkipTLSVerify { get; set; } - - /// - /// Service is a reference to the service for this API server. It must communicate - /// on port 443. If the Service is nil, that means the handling for the API - /// groupversion is handled locally on this server. The call will simply delegate to - /// the normal handler chain to be fulfilled. - /// - [JsonProperty(PropertyName = "service")] - public Apiregistrationv1ServiceReference Service { get; set; } - - /// - /// Version is the API version this server hosts. For example, "v1" - /// - [JsonProperty(PropertyName = "version")] - public string Version { get; set; } - - /// - /// VersionPriority controls the ordering of this API version inside of its group. - /// Must be greater than zero. The primary sort is based on VersionPriority, ordered - /// highest to lowest (20 before 10). Since it's inside of a group, the number can - /// be small, probably in the 10s. In case of equal version priorities, the version - /// string will be used to compute the order inside a group. If the version string - /// is "kube-like", it will sort above non "kube-like" version strings, which are - /// ordered lexicographically. "Kube-like" versions start with a "v", then are - /// followed by a number (the major version), then optionally the string "alpha" or - /// "beta" and another number (the minor version). These are sorted first by GA > - /// beta > alpha (where GA is a version with no suffix such as beta or alpha), and - /// then by comparing major version, then minor version. An example sorted list of - /// versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, - /// foo10. - /// - [JsonProperty(PropertyName = "versionPriority")] - public int VersionPriority { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Service?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1APIServiceStatus.cs b/src/KubernetesClient/generated/Models/V1APIServiceStatus.cs deleted file mode 100644 index 073f8f259..000000000 --- a/src/KubernetesClient/generated/Models/V1APIServiceStatus.cs +++ /dev/null @@ -1,67 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// APIServiceStatus contains derived information about an API server - /// - public partial class V1APIServiceStatus - { - /// - /// Initializes a new instance of the V1APIServiceStatus class. - /// - public V1APIServiceStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1APIServiceStatus class. - /// - /// - /// Current service state of apiService. - /// - public V1APIServiceStatus(IList conditions = null) - { - Conditions = conditions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Current service state of apiService. - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Conditions != null){ - foreach(var obj in Conditions) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1APIVersions.cs b/src/KubernetesClient/generated/Models/V1APIVersions.cs deleted file mode 100644 index 5864d1519..000000000 --- a/src/KubernetesClient/generated/Models/V1APIVersions.cs +++ /dev/null @@ -1,124 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// APIVersions lists the versions that are available, to allow clients to discover - /// the API at /api, which is the root path of the legacy v1 API. - /// - public partial class V1APIVersions - { - /// - /// Initializes a new instance of the V1APIVersions class. - /// - public V1APIVersions() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1APIVersions class. - /// - /// - /// a map of client CIDR to server address that is serving this group. This is to - /// help clients reach servers in the most network-efficient way possible. Clients - /// can use the appropriate server address as per the CIDR that they match. In case - /// of multiple matches, clients should use the longest matching CIDR. The server - /// returns only those CIDRs that it thinks that the client can match. For example: - /// the master will return an internal IP CIDR only, if the client reaches the - /// server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip - /// header or request.RemoteAddr (in that order) to get the client IP. - /// - /// - /// versions are the api versions that are available. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - public V1APIVersions(IList serverAddressByClientCIDRs, IList versions, string apiVersion = null, string kind = null) - { - ApiVersion = apiVersion; - Kind = kind; - ServerAddressByClientCIDRs = serverAddressByClientCIDRs; - Versions = versions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// a map of client CIDR to server address that is serving this group. This is to - /// help clients reach servers in the most network-efficient way possible. Clients - /// can use the appropriate server address as per the CIDR that they match. In case - /// of multiple matches, clients should use the longest matching CIDR. The server - /// returns only those CIDRs that it thinks that the client can match. For example: - /// the master will return an internal IP CIDR only, if the client reaches the - /// server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip - /// header or request.RemoteAddr (in that order) to get the client IP. - /// - [JsonProperty(PropertyName = "serverAddressByClientCIDRs")] - public IList ServerAddressByClientCIDRs { get; set; } - - /// - /// versions are the api versions that are available. - /// - [JsonProperty(PropertyName = "versions")] - public IList Versions { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (ServerAddressByClientCIDRs != null){ - foreach(var obj in ServerAddressByClientCIDRs) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1AWSElasticBlockStoreVolumeSource.cs b/src/KubernetesClient/generated/Models/V1AWSElasticBlockStoreVolumeSource.cs deleted file mode 100644 index 2f970879f..000000000 --- a/src/KubernetesClient/generated/Models/V1AWSElasticBlockStoreVolumeSource.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents a Persistent Disk resource in AWS. - /// - /// An AWS EBS disk must exist before mounting to a container. The disk must also be - /// in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as - /// read/write once. AWS EBS volumes support ownership management and SELinux - /// relabeling. - /// - public partial class V1AWSElasticBlockStoreVolumeSource - { - /// - /// Initializes a new instance of the V1AWSElasticBlockStoreVolumeSource class. - /// - public V1AWSElasticBlockStoreVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1AWSElasticBlockStoreVolumeSource class. - /// - /// - /// Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: - /// https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - /// - /// - /// 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 - /// - /// - /// 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). - /// - /// - /// 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 - /// - public V1AWSElasticBlockStoreVolumeSource(string volumeID, string fsType = null, int? partition = null, bool? readOnlyProperty = null) - { - FsType = fsType; - Partition = partition; - ReadOnlyProperty = readOnlyProperty; - VolumeID = volumeID; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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 - /// - [JsonProperty(PropertyName = "fsType")] - public string FsType { get; set; } - - /// - /// 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). - /// - [JsonProperty(PropertyName = "partition")] - public int? Partition { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: - /// https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - /// - [JsonProperty(PropertyName = "volumeID")] - public string VolumeID { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Affinity.cs b/src/KubernetesClient/generated/Models/V1Affinity.cs deleted file mode 100644 index 1627abda1..000000000 --- a/src/KubernetesClient/generated/Models/V1Affinity.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Affinity is a group of affinity scheduling rules. - /// - public partial class V1Affinity - { - /// - /// Initializes a new instance of the V1Affinity class. - /// - public V1Affinity() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Affinity class. - /// - /// - /// Describes node affinity scheduling rules for the pod. - /// - /// - /// Describes pod affinity scheduling rules (e.g. co-locate this pod in the same - /// node, zone, etc. as some other pod(s)). - /// - /// - /// Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the - /// same node, zone, etc. as some other pod(s)). - /// - public V1Affinity(V1NodeAffinity nodeAffinity = null, V1PodAffinity podAffinity = null, V1PodAntiAffinity podAntiAffinity = null) - { - NodeAffinity = nodeAffinity; - PodAffinity = podAffinity; - PodAntiAffinity = podAntiAffinity; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Describes node affinity scheduling rules for the pod. - /// - [JsonProperty(PropertyName = "nodeAffinity")] - public V1NodeAffinity NodeAffinity { get; set; } - - /// - /// Describes pod affinity scheduling rules (e.g. co-locate this pod in the same - /// node, zone, etc. as some other pod(s)). - /// - [JsonProperty(PropertyName = "podAffinity")] - public V1PodAffinity PodAffinity { get; set; } - - /// - /// Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the - /// same node, zone, etc. as some other pod(s)). - /// - [JsonProperty(PropertyName = "podAntiAffinity")] - public V1PodAntiAffinity PodAntiAffinity { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - NodeAffinity?.Validate(); - PodAffinity?.Validate(); - PodAntiAffinity?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1AggregationRule.cs b/src/KubernetesClient/generated/Models/V1AggregationRule.cs deleted file mode 100644 index 4858c507b..000000000 --- a/src/KubernetesClient/generated/Models/V1AggregationRule.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// AggregationRule describes how to locate ClusterRoles to aggregate into the - /// ClusterRole - /// - public partial class V1AggregationRule - { - /// - /// Initializes a new instance of the V1AggregationRule class. - /// - public V1AggregationRule() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1AggregationRule class. - /// - /// - /// ClusterRoleSelectors holds a list of selectors which will be used to find - /// ClusterRoles and create the rules. If any of the selectors match, then the - /// ClusterRole's permissions will be added - /// - public V1AggregationRule(IList clusterRoleSelectors = null) - { - ClusterRoleSelectors = clusterRoleSelectors; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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 - /// - [JsonProperty(PropertyName = "clusterRoleSelectors")] - public IList ClusterRoleSelectors { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (ClusterRoleSelectors != null){ - foreach(var obj in ClusterRoleSelectors) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1AttachedVolume.cs b/src/KubernetesClient/generated/Models/V1AttachedVolume.cs deleted file mode 100644 index 5b74d21c5..000000000 --- a/src/KubernetesClient/generated/Models/V1AttachedVolume.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// AttachedVolume describes a volume attached to a node - /// - public partial class V1AttachedVolume - { - /// - /// Initializes a new instance of the V1AttachedVolume class. - /// - public V1AttachedVolume() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1AttachedVolume class. - /// - /// - /// DevicePath represents the device path where the volume should be available - /// - /// - /// Name of the attached volume - /// - public V1AttachedVolume(string devicePath, string name) - { - DevicePath = devicePath; - Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// DevicePath represents the device path where the volume should be available - /// - [JsonProperty(PropertyName = "devicePath")] - public string DevicePath { get; set; } - - /// - /// Name of the attached volume - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1AzureDiskVolumeSource.cs b/src/KubernetesClient/generated/Models/V1AzureDiskVolumeSource.cs deleted file mode 100644 index f27b924ab..000000000 --- a/src/KubernetesClient/generated/Models/V1AzureDiskVolumeSource.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// AzureDisk represents an Azure Data Disk mount on the host and bind mount to the - /// pod. - /// - public partial class V1AzureDiskVolumeSource - { - /// - /// Initializes a new instance of the V1AzureDiskVolumeSource class. - /// - public V1AzureDiskVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1AzureDiskVolumeSource class. - /// - /// - /// The Name of the data disk in the blob storage - /// - /// - /// The URI the data disk in the blob storage - /// - /// - /// Host Caching mode: None, Read Only, Read Write. - /// - /// - /// 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. - /// - /// - /// 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 - /// - /// - /// Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in - /// VolumeMounts. - /// - public V1AzureDiskVolumeSource(string diskName, string diskURI, string cachingMode = null, string fsType = null, string kind = null, bool? readOnlyProperty = null) - { - CachingMode = cachingMode; - DiskName = diskName; - DiskURI = diskURI; - FsType = fsType; - Kind = kind; - ReadOnlyProperty = readOnlyProperty; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Host Caching mode: None, Read Only, Read Write. - /// - [JsonProperty(PropertyName = "cachingMode")] - public string CachingMode { get; set; } - - /// - /// The Name of the data disk in the blob storage - /// - [JsonProperty(PropertyName = "diskName")] - public string DiskName { get; set; } - - /// - /// The URI the data disk in the blob storage - /// - [JsonProperty(PropertyName = "diskURI")] - public string DiskURI { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "fsType")] - public string FsType { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in - /// VolumeMounts. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1AzureFilePersistentVolumeSource.cs b/src/KubernetesClient/generated/Models/V1AzureFilePersistentVolumeSource.cs deleted file mode 100644 index 071e07953..000000000 --- a/src/KubernetesClient/generated/Models/V1AzureFilePersistentVolumeSource.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// AzureFile represents an Azure File Service mount on the host and bind mount to - /// the pod. - /// - public partial class V1AzureFilePersistentVolumeSource - { - /// - /// Initializes a new instance of the V1AzureFilePersistentVolumeSource class. - /// - public V1AzureFilePersistentVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1AzureFilePersistentVolumeSource class. - /// - /// - /// the name of secret that contains Azure Storage Account Name and Key - /// - /// - /// Share Name - /// - /// - /// Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in - /// VolumeMounts. - /// - /// - /// the namespace of the secret that contains Azure Storage Account Name and Key - /// default is the same as the Pod - /// - public V1AzureFilePersistentVolumeSource(string secretName, string shareName, bool? readOnlyProperty = null, string secretNamespace = null) - { - ReadOnlyProperty = readOnlyProperty; - SecretName = secretName; - SecretNamespace = secretNamespace; - ShareName = shareName; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in - /// VolumeMounts. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// the name of secret that contains Azure Storage Account Name and Key - /// - [JsonProperty(PropertyName = "secretName")] - public string SecretName { get; set; } - - /// - /// the namespace of the secret that contains Azure Storage Account Name and Key - /// default is the same as the Pod - /// - [JsonProperty(PropertyName = "secretNamespace")] - public string SecretNamespace { get; set; } - - /// - /// Share Name - /// - [JsonProperty(PropertyName = "shareName")] - public string ShareName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1AzureFileVolumeSource.cs b/src/KubernetesClient/generated/Models/V1AzureFileVolumeSource.cs deleted file mode 100644 index 8c1831e42..000000000 --- a/src/KubernetesClient/generated/Models/V1AzureFileVolumeSource.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// AzureFile represents an Azure File Service mount on the host and bind mount to - /// the pod. - /// - public partial class V1AzureFileVolumeSource - { - /// - /// Initializes a new instance of the V1AzureFileVolumeSource class. - /// - public V1AzureFileVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1AzureFileVolumeSource class. - /// - /// - /// the name of secret that contains Azure Storage Account Name and Key - /// - /// - /// Share Name - /// - /// - /// Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in - /// VolumeMounts. - /// - public V1AzureFileVolumeSource(string secretName, string shareName, bool? readOnlyProperty = null) - { - ReadOnlyProperty = readOnlyProperty; - SecretName = secretName; - ShareName = shareName; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in - /// VolumeMounts. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// the name of secret that contains Azure Storage Account Name and Key - /// - [JsonProperty(PropertyName = "secretName")] - public string SecretName { get; set; } - - /// - /// Share Name - /// - [JsonProperty(PropertyName = "shareName")] - public string ShareName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Binding.cs b/src/KubernetesClient/generated/Models/V1Binding.cs deleted file mode 100644 index f0d9b44c2..000000000 --- a/src/KubernetesClient/generated/Models/V1Binding.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1Binding - { - /// - /// Initializes a new instance of the V1Binding class. - /// - public V1Binding() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Binding class. - /// - /// - /// The target object that you want to bind to the standard object. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1Binding(V1ObjectReference target, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Target = target; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// The target object that you want to bind to the standard object. - /// - [JsonProperty(PropertyName = "target")] - public V1ObjectReference Target { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Target == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Target"); - } - Metadata?.Validate(); - Target?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1BoundObjectReference.cs b/src/KubernetesClient/generated/Models/V1BoundObjectReference.cs deleted file mode 100644 index 800b9e8cb..000000000 --- a/src/KubernetesClient/generated/Models/V1BoundObjectReference.cs +++ /dev/null @@ -1,91 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// BoundObjectReference is a reference to an object that a token is bound to. - /// - public partial class V1BoundObjectReference - { - /// - /// Initializes a new instance of the V1BoundObjectReference class. - /// - public V1BoundObjectReference() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1BoundObjectReference class. - /// - /// - /// API version of the referent. - /// - /// - /// Kind of the referent. Valid kinds are 'Pod' and 'Secret'. - /// - /// - /// Name of the referent. - /// - /// - /// UID of the referent. - /// - public V1BoundObjectReference(string apiVersion = null, string kind = null, string name = null, string uid = null) - { - ApiVersion = apiVersion; - Kind = kind; - Name = name; - Uid = uid; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// API version of the referent. - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind of the referent. Valid kinds are 'Pod' and 'Secret'. - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Name of the referent. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// UID of the referent. - /// - [JsonProperty(PropertyName = "uid")] - public string Uid { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CSIDriver.cs b/src/KubernetesClient/generated/Models/V1CSIDriver.cs deleted file mode 100644 index 366a1ccce..000000000 --- a/src/KubernetesClient/generated/Models/V1CSIDriver.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CSIDriver captures information about a Container Storage Interface (CSI) volume - /// driver deployed on the cluster. Kubernetes attach detach controller uses this - /// object to determine whether attach is required. Kubelet uses this object to - /// determine whether pod information needs to be passed on mount. CSIDriver objects - /// are non-namespaced. - /// - public partial class V1CSIDriver - { - /// - /// Initializes a new instance of the V1CSIDriver class. - /// - public V1CSIDriver() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CSIDriver class. - /// - /// - /// Specification of the CSI Driver. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object metadata. metadata.Name indicates the name of the CSI driver - /// that this object refers to; it MUST be the same name returned by the CSI - /// GetPluginName() call for that driver. The driver name must be 63 characters or - /// less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with - /// dashes (-), dots (.), and alphanumerics between. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1CSIDriver(V1CSIDriverSpec spec, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object metadata. metadata.Name indicates the name of the CSI driver - /// that this object refers to; it MUST be the same name returned by the CSI - /// GetPluginName() call for that driver. The driver name must be 63 characters or - /// less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with - /// dashes (-), dots (.), and alphanumerics between. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Specification of the CSI Driver. - /// - [JsonProperty(PropertyName = "spec")] - public V1CSIDriverSpec Spec { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Spec == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Spec"); - } - Metadata?.Validate(); - Spec?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CSIDriverList.cs b/src/KubernetesClient/generated/Models/V1CSIDriverList.cs deleted file mode 100644 index d6bd5033f..000000000 --- a/src/KubernetesClient/generated/Models/V1CSIDriverList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CSIDriverList is a collection of CSIDriver objects. - /// - public partial class V1CSIDriverList - { - /// - /// Initializes a new instance of the V1CSIDriverList class. - /// - public V1CSIDriverList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CSIDriverList class. - /// - /// - /// items is the list of CSIDriver - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1CSIDriverList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// items is the list of CSIDriver - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CSIDriverSpec.cs b/src/KubernetesClient/generated/Models/V1CSIDriverSpec.cs deleted file mode 100644 index e961a362b..000000000 --- a/src/KubernetesClient/generated/Models/V1CSIDriverSpec.cs +++ /dev/null @@ -1,301 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CSIDriverSpec is the specification of a CSIDriver. - /// - public partial class V1CSIDriverSpec - { - /// - /// Initializes a new instance of the V1CSIDriverSpec class. - /// - public V1CSIDriverSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CSIDriverSpec class. - /// - /// - /// 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. - /// - /// - /// Defines if the underlying volume supports changing ownership and permission of - /// the volume before being mounted. Refer to the specific FSGroupPolicy values for - /// additional details. This field is beta, and is only honored by servers that - /// enable the CSIVolumeFSGroupPolicy feature gate. - /// - /// This field is immutable. - /// - /// Defaults to ReadWriteOnceWithFSType, which will examine each volume to determine - /// if Kubernetes should modify ownership and permissions of the volume. With the - /// default policy the defined fsGroup will only be applied if a fstype is defined - /// and the volume's access mode contains ReadWriteOnce. - /// - /// - /// If set to true, podInfoOnMount indicates this CSI volume driver requires - /// additional pod information (like podName, podUID, etc.) during mount operations. - /// If set to false, pod information will not be passed on mount. Default is false. - /// The CSI driver specifies podInfoOnMount as part of driver deployment. If true, - /// Kubelet will pass pod information as VolumeContext in the CSI - /// NodePublishVolume() calls. The CSI driver is responsible for parsing and - /// validating the information passed in as VolumeContext. The following - /// VolumeConext will be passed if podInfoOnMount is set to true. This list might - /// grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name - /// "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": - /// string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" if the volume is an - /// ephemeral inline volume - /// defined by a CSIVolumeSource, otherwise "false" - /// - /// "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only - /// required for drivers which support both the "Persistent" and "Ephemeral" - /// VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore - /// this field. As Kubernetes 1.15 doesn't support this field, drivers can only - /// support one mode when deployed on such a cluster and the deployment determines - /// which mode that is, for example via a command line parameter of the driver. - /// - /// This field is immutable. - /// - /// - /// 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. - /// - /// - /// If set to true, 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. - /// - /// 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 is immutable. - /// - /// This is a beta field and only available when the CSIStorageCapacity feature is - /// enabled. The default is false. - /// - /// - /// 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. - /// - /// - /// volumeLifecycleModes defines what kind of volumes this CSI volume driver - /// supports. The default if the list is empty is "Persistent", which is the usage - /// defined by the CSI specification and implemented in Kubernetes via the usual - /// PV/PVC mechanism. The other mode is "Ephemeral". In this mode, volumes are - /// defined inline inside the pod spec with CSIVolumeSource and their lifecycle is - /// tied to the lifecycle of that pod. A driver has to be aware of this because it - /// is only going to get a NodePublishVolume call for such a volume. For more - /// information about implementing this mode, see - /// https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can - /// support one or more of these modes and more modes may be added in the future. - /// This field is beta. - /// - /// This field is immutable. - /// - public V1CSIDriverSpec(bool? attachRequired = null, string fsGroupPolicy = null, bool? podInfoOnMount = null, bool? requiresRepublish = null, bool? storageCapacity = null, IList tokenRequests = null, IList volumeLifecycleModes = null) - { - AttachRequired = attachRequired; - FsGroupPolicy = fsGroupPolicy; - PodInfoOnMount = podInfoOnMount; - RequiresRepublish = requiresRepublish; - StorageCapacity = storageCapacity; - TokenRequests = tokenRequests; - VolumeLifecycleModes = volumeLifecycleModes; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "attachRequired")] - public bool? AttachRequired { get; set; } - - /// - /// Defines if the underlying volume supports changing ownership and permission of - /// the volume before being mounted. Refer to the specific FSGroupPolicy values for - /// additional details. This field is beta, and is only honored by servers that - /// enable the CSIVolumeFSGroupPolicy feature gate. - /// - /// This field is immutable. - /// - /// Defaults to ReadWriteOnceWithFSType, which will examine each volume to determine - /// if Kubernetes should modify ownership and permissions of the volume. With the - /// default policy the defined fsGroup will only be applied if a fstype is defined - /// and the volume's access mode contains ReadWriteOnce. - /// - [JsonProperty(PropertyName = "fsGroupPolicy")] - public string FsGroupPolicy { get; set; } - - /// - /// If set to true, podInfoOnMount indicates this CSI volume driver requires - /// additional pod information (like podName, podUID, etc.) during mount operations. - /// If set to false, pod information will not be passed on mount. Default is false. - /// The CSI driver specifies podInfoOnMount as part of driver deployment. If true, - /// Kubelet will pass pod information as VolumeContext in the CSI - /// NodePublishVolume() calls. The CSI driver is responsible for parsing and - /// validating the information passed in as VolumeContext. The following - /// VolumeConext will be passed if podInfoOnMount is set to true. This list might - /// grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name - /// "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": - /// string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" if the volume is an - /// ephemeral inline volume - /// defined by a CSIVolumeSource, otherwise "false" - /// - /// "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only - /// required for drivers which support both the "Persistent" and "Ephemeral" - /// VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore - /// this field. As Kubernetes 1.15 doesn't support this field, drivers can only - /// support one mode when deployed on such a cluster and the deployment determines - /// which mode that is, for example via a command line parameter of the driver. - /// - /// This field is immutable. - /// - [JsonProperty(PropertyName = "podInfoOnMount")] - public bool? PodInfoOnMount { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "requiresRepublish")] - public bool? RequiresRepublish { get; set; } - - /// - /// If set to true, 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. - /// - /// 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 is immutable. - /// - /// This is a beta field and only available when the CSIStorageCapacity feature is - /// enabled. The default is false. - /// - [JsonProperty(PropertyName = "storageCapacity")] - public bool? StorageCapacity { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "tokenRequests")] - public IList TokenRequests { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "volumeLifecycleModes")] - public IList VolumeLifecycleModes { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (TokenRequests != null){ - foreach(var obj in TokenRequests) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CSINode.cs b/src/KubernetesClient/generated/Models/V1CSINode.cs deleted file mode 100644 index 29914971a..000000000 --- a/src/KubernetesClient/generated/Models/V1CSINode.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CSINode holds information about all CSI drivers installed on a node. CSI drivers - /// do not need to create the CSINode object directly. As long as they use the - /// node-driver-registrar sidecar container, the kubelet will automatically populate - /// the CSINode object for the CSI driver as part of kubelet plugin registration. - /// CSINode has the same name as a node. If the object is missing, it means either - /// there are no CSI Drivers available on the node, or the Kubelet version is low - /// enough that it doesn't create this object. CSINode has an OwnerReference that - /// points to the corresponding node object. - /// - public partial class V1CSINode - { - /// - /// Initializes a new instance of the V1CSINode class. - /// - public V1CSINode() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CSINode class. - /// - /// - /// spec is the specification of CSINode - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// metadata.name must be the Kubernetes node name. - /// - public V1CSINode(V1CSINodeSpec spec, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// metadata.name must be the Kubernetes node name. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// spec is the specification of CSINode - /// - [JsonProperty(PropertyName = "spec")] - public V1CSINodeSpec Spec { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Spec == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Spec"); - } - Metadata?.Validate(); - Spec?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CSINodeDriver.cs b/src/KubernetesClient/generated/Models/V1CSINodeDriver.cs deleted file mode 100644 index 915826a8f..000000000 --- a/src/KubernetesClient/generated/Models/V1CSINodeDriver.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CSINodeDriver holds information about the specification of one CSI driver - /// installed on a node - /// - public partial class V1CSINodeDriver - { - /// - /// Initializes a new instance of the V1CSINodeDriver class. - /// - public V1CSINodeDriver() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CSINodeDriver class. - /// - /// - /// This is the name of the CSI driver that this object refers to. This MUST be the - /// same name returned by the CSI GetPluginName() call for that driver. - /// - /// - /// nodeID of the node from the driver point of view. This field enables Kubernetes - /// to communicate with storage systems that do not share the same nomenclature for - /// nodes. For example, Kubernetes may refer to a given node as "node1", but the - /// storage system may refer to the same node as "nodeA". When Kubernetes issues a - /// command to the storage system to attach a volume to a specific node, it can use - /// this field to refer to the node name using the ID that the storage system will - /// understand, e.g. "nodeA" instead of "node1". This field is required. - /// - /// - /// allocatable represents the volume resources of a node that are available for - /// scheduling. This field is beta. - /// - /// - /// topologyKeys is the list of keys supported by the driver. When a driver is - /// initialized on a cluster, it provides a set of topology keys that it understands - /// (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on - /// a node, it provides the same topology keys along with values. Kubelet will - /// expose these topology keys as labels on its own node object. When Kubernetes - /// does topology aware provisioning, it can use this list to determine which labels - /// it should retrieve from the node object and pass back to the driver. It is - /// possible for different nodes to use different topology keys. This can be empty - /// if driver does not support topology. - /// - public V1CSINodeDriver(string name, string nodeID, V1VolumeNodeResources allocatable = null, IList topologyKeys = null) - { - Allocatable = allocatable; - Name = name; - NodeID = nodeID; - TopologyKeys = topologyKeys; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// allocatable represents the volume resources of a node that are available for - /// scheduling. This field is beta. - /// - [JsonProperty(PropertyName = "allocatable")] - public V1VolumeNodeResources Allocatable { get; set; } - - /// - /// This is the name of the CSI driver that this object refers to. This MUST be the - /// same name returned by the CSI GetPluginName() call for that driver. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// nodeID of the node from the driver point of view. This field enables Kubernetes - /// to communicate with storage systems that do not share the same nomenclature for - /// nodes. For example, Kubernetes may refer to a given node as "node1", but the - /// storage system may refer to the same node as "nodeA". When Kubernetes issues a - /// command to the storage system to attach a volume to a specific node, it can use - /// this field to refer to the node name using the ID that the storage system will - /// understand, e.g. "nodeA" instead of "node1". This field is required. - /// - [JsonProperty(PropertyName = "nodeID")] - public string NodeID { get; set; } - - /// - /// topologyKeys is the list of keys supported by the driver. When a driver is - /// initialized on a cluster, it provides a set of topology keys that it understands - /// (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on - /// a node, it provides the same topology keys along with values. Kubelet will - /// expose these topology keys as labels on its own node object. When Kubernetes - /// does topology aware provisioning, it can use this list to determine which labels - /// it should retrieve from the node object and pass back to the driver. It is - /// possible for different nodes to use different topology keys. This can be empty - /// if driver does not support topology. - /// - [JsonProperty(PropertyName = "topologyKeys")] - public IList TopologyKeys { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Allocatable?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CSINodeList.cs b/src/KubernetesClient/generated/Models/V1CSINodeList.cs deleted file mode 100644 index f1bcee1b6..000000000 --- a/src/KubernetesClient/generated/Models/V1CSINodeList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CSINodeList is a collection of CSINode objects. - /// - public partial class V1CSINodeList - { - /// - /// Initializes a new instance of the V1CSINodeList class. - /// - public V1CSINodeList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CSINodeList class. - /// - /// - /// items is the list of CSINode - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1CSINodeList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// items is the list of CSINode - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CSINodeSpec.cs b/src/KubernetesClient/generated/Models/V1CSINodeSpec.cs deleted file mode 100644 index 19a7758ac..000000000 --- a/src/KubernetesClient/generated/Models/V1CSINodeSpec.cs +++ /dev/null @@ -1,70 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CSINodeSpec holds information about the specification of all CSI drivers - /// installed on a node - /// - public partial class V1CSINodeSpec - { - /// - /// Initializes a new instance of the V1CSINodeSpec class. - /// - public V1CSINodeSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CSINodeSpec class. - /// - /// - /// drivers is a list of information of all CSI Drivers existing on a node. If all - /// drivers in the list are uninstalled, this can become empty. - /// - public V1CSINodeSpec(IList drivers) - { - Drivers = drivers; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// drivers is a list of information of all CSI Drivers existing on a node. If all - /// drivers in the list are uninstalled, this can become empty. - /// - [JsonProperty(PropertyName = "drivers")] - public IList Drivers { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Drivers != null){ - foreach(var obj in Drivers) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CSIPersistentVolumeSource.cs b/src/KubernetesClient/generated/Models/V1CSIPersistentVolumeSource.cs deleted file mode 100644 index 1b0f4a644..000000000 --- a/src/KubernetesClient/generated/Models/V1CSIPersistentVolumeSource.cs +++ /dev/null @@ -1,186 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents storage that is managed by an external CSI volume driver (Beta - /// feature) - /// - public partial class V1CSIPersistentVolumeSource - { - /// - /// Initializes a new instance of the V1CSIPersistentVolumeSource class. - /// - public V1CSIPersistentVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CSIPersistentVolumeSource class. - /// - /// - /// Driver is the name of the driver to use for this volume. Required. - /// - /// - /// VolumeHandle is the unique volume name returned by the CSI volume plugin’s - /// CreateVolume to refer to the volume on all subsequent calls. Required. - /// - /// - /// ControllerExpandSecretRef is a reference to the secret object containing - /// sensitive information to pass to the CSI driver to complete the CSI - /// ControllerExpandVolume call. This is an alpha field and requires enabling - /// ExpandCSIVolumes feature gate. This field is optional, and may be empty if no - /// secret is required. If the secret object contains more than one secret, all - /// secrets are passed. - /// - /// - /// ControllerPublishSecretRef is a reference to the secret object containing - /// sensitive information to pass to the CSI driver to complete the CSI - /// ControllerPublishVolume and ControllerUnpublishVolume calls. This field is - /// optional, and may be empty if no secret is required. If the secret object - /// contains more than one secret, all secrets are passed. - /// - /// - /// Filesystem type to mount. Must be a filesystem type supported by the host - /// operating system. Ex. "ext4", "xfs", "ntfs". - /// - /// - /// 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 secrets are - /// passed. - /// - /// - /// NodeStageSecretRef is a reference to the secret object containing sensitive - /// information to pass to the CSI driver to complete the CSI NodeStageVolume and - /// NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be - /// empty if no secret is required. If the secret object contains more than one - /// secret, all secrets are passed. - /// - /// - /// Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false - /// (read/write). - /// - /// - /// Attributes of the volume to publish. - /// - public V1CSIPersistentVolumeSource(string driver, string volumeHandle, V1SecretReference controllerExpandSecretRef = null, V1SecretReference controllerPublishSecretRef = null, string fsType = null, V1SecretReference nodePublishSecretRef = null, V1SecretReference nodeStageSecretRef = null, bool? readOnlyProperty = null, IDictionary volumeAttributes = null) - { - ControllerExpandSecretRef = controllerExpandSecretRef; - ControllerPublishSecretRef = controllerPublishSecretRef; - Driver = driver; - FsType = fsType; - NodePublishSecretRef = nodePublishSecretRef; - NodeStageSecretRef = nodeStageSecretRef; - ReadOnlyProperty = readOnlyProperty; - VolumeAttributes = volumeAttributes; - VolumeHandle = volumeHandle; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// ControllerExpandSecretRef is a reference to the secret object containing - /// sensitive information to pass to the CSI driver to complete the CSI - /// ControllerExpandVolume call. This is an alpha field and requires enabling - /// ExpandCSIVolumes feature gate. This field is optional, and may be empty if no - /// secret is required. If the secret object contains more than one secret, all - /// secrets are passed. - /// - [JsonProperty(PropertyName = "controllerExpandSecretRef")] - public V1SecretReference ControllerExpandSecretRef { get; set; } - - /// - /// ControllerPublishSecretRef is a reference to the secret object containing - /// sensitive information to pass to the CSI driver to complete the CSI - /// ControllerPublishVolume and ControllerUnpublishVolume calls. This field is - /// optional, and may be empty if no secret is required. If the secret object - /// contains more than one secret, all secrets are passed. - /// - [JsonProperty(PropertyName = "controllerPublishSecretRef")] - public V1SecretReference ControllerPublishSecretRef { get; set; } - - /// - /// Driver is the name of the driver to use for this volume. Required. - /// - [JsonProperty(PropertyName = "driver")] - public string Driver { get; set; } - - /// - /// Filesystem type to mount. Must be a filesystem type supported by the host - /// operating system. Ex. "ext4", "xfs", "ntfs". - /// - [JsonProperty(PropertyName = "fsType")] - public string FsType { get; set; } - - /// - /// 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 secrets are - /// passed. - /// - [JsonProperty(PropertyName = "nodePublishSecretRef")] - public V1SecretReference NodePublishSecretRef { get; set; } - - /// - /// NodeStageSecretRef is a reference to the secret object containing sensitive - /// information to pass to the CSI driver to complete the CSI NodeStageVolume and - /// NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be - /// empty if no secret is required. If the secret object contains more than one - /// secret, all secrets are passed. - /// - [JsonProperty(PropertyName = "nodeStageSecretRef")] - public V1SecretReference NodeStageSecretRef { get; set; } - - /// - /// Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false - /// (read/write). - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Attributes of the volume to publish. - /// - [JsonProperty(PropertyName = "volumeAttributes")] - public IDictionary VolumeAttributes { get; set; } - - /// - /// VolumeHandle is the unique volume name returned by the CSI volume plugin’s - /// CreateVolume to refer to the volume on all subsequent calls. Required. - /// - [JsonProperty(PropertyName = "volumeHandle")] - public string VolumeHandle { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - ControllerExpandSecretRef?.Validate(); - ControllerPublishSecretRef?.Validate(); - NodePublishSecretRef?.Validate(); - NodeStageSecretRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CSIVolumeSource.cs b/src/KubernetesClient/generated/Models/V1CSIVolumeSource.cs deleted file mode 100644 index e5621a53f..000000000 --- a/src/KubernetesClient/generated/Models/V1CSIVolumeSource.cs +++ /dev/null @@ -1,121 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents a source location of a volume to mount, managed by an external CSI - /// driver - /// - public partial class V1CSIVolumeSource - { - /// - /// Initializes a new instance of the V1CSIVolumeSource class. - /// - public V1CSIVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CSIVolumeSource class. - /// - /// - /// Driver is the name of the CSI driver that handles this volume. Consult with your - /// admin for the correct name as registered in the cluster. - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// Specifies a read-only configuration for the volume. Defaults to false - /// (read/write). - /// - /// - /// VolumeAttributes stores driver-specific properties that are passed to the CSI - /// driver. Consult your driver's documentation for supported values. - /// - public V1CSIVolumeSource(string driver, string fsType = null, V1LocalObjectReference nodePublishSecretRef = null, bool? readOnlyProperty = null, IDictionary volumeAttributes = null) - { - Driver = driver; - FsType = fsType; - NodePublishSecretRef = nodePublishSecretRef; - ReadOnlyProperty = readOnlyProperty; - VolumeAttributes = volumeAttributes; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Driver is the name of the CSI driver that handles this volume. Consult with your - /// admin for the correct name as registered in the cluster. - /// - [JsonProperty(PropertyName = "driver")] - public string Driver { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "fsType")] - public string FsType { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "nodePublishSecretRef")] - public V1LocalObjectReference NodePublishSecretRef { get; set; } - - /// - /// Specifies a read-only configuration for the volume. Defaults to false - /// (read/write). - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// VolumeAttributes stores driver-specific properties that are passed to the CSI - /// driver. Consult your driver's documentation for supported values. - /// - [JsonProperty(PropertyName = "volumeAttributes")] - public IDictionary VolumeAttributes { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - NodePublishSecretRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Capabilities.cs b/src/KubernetesClient/generated/Models/V1Capabilities.cs deleted file mode 100644 index 7856a2acf..000000000 --- a/src/KubernetesClient/generated/Models/V1Capabilities.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Adds and removes POSIX capabilities from running containers. - /// - public partial class V1Capabilities - { - /// - /// Initializes a new instance of the V1Capabilities class. - /// - public V1Capabilities() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Capabilities class. - /// - /// - /// Added capabilities - /// - /// - /// Removed capabilities - /// - public V1Capabilities(IList add = null, IList drop = null) - { - Add = add; - Drop = drop; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Added capabilities - /// - [JsonProperty(PropertyName = "add")] - public IList Add { get; set; } - - /// - /// Removed capabilities - /// - [JsonProperty(PropertyName = "drop")] - public IList Drop { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CephFSPersistentVolumeSource.cs b/src/KubernetesClient/generated/Models/V1CephFSPersistentVolumeSource.cs deleted file mode 100644 index 4e83d5c4b..000000000 --- a/src/KubernetesClient/generated/Models/V1CephFSPersistentVolumeSource.cs +++ /dev/null @@ -1,129 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs - /// volumes do not support ownership management or SELinux relabeling. - /// - public partial class V1CephFSPersistentVolumeSource - { - /// - /// Initializes a new instance of the V1CephFSPersistentVolumeSource class. - /// - public V1CephFSPersistentVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CephFSPersistentVolumeSource class. - /// - /// - /// Required: Monitors is a collection of Ceph monitors More info: - /// https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - /// - /// - /// Optional: Used as the mounted root, rather than the full Ceph tree, default is / - /// - /// - /// Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly - /// setting in VolumeMounts. More info: - /// https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - /// - /// - /// 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 - /// - /// - /// 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 - /// - /// - /// Optional: User is the rados user name, default is admin More info: - /// https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - /// - public V1CephFSPersistentVolumeSource(IList monitors, string path = null, bool? readOnlyProperty = null, string secretFile = null, V1SecretReference secretRef = null, string user = null) - { - Monitors = monitors; - Path = path; - ReadOnlyProperty = readOnlyProperty; - SecretFile = secretFile; - SecretRef = secretRef; - User = user; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Required: Monitors is a collection of Ceph monitors More info: - /// https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "monitors")] - public IList Monitors { get; set; } - - /// - /// Optional: Used as the mounted root, rather than the full Ceph tree, default is / - /// - [JsonProperty(PropertyName = "path")] - public string Path { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "secretFile")] - public string SecretFile { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "secretRef")] - public V1SecretReference SecretRef { get; set; } - - /// - /// Optional: User is the rados user name, default is admin More info: - /// https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "user")] - public string User { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - SecretRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CephFSVolumeSource.cs b/src/KubernetesClient/generated/Models/V1CephFSVolumeSource.cs deleted file mode 100644 index 1490aefbb..000000000 --- a/src/KubernetesClient/generated/Models/V1CephFSVolumeSource.cs +++ /dev/null @@ -1,129 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs - /// volumes do not support ownership management or SELinux relabeling. - /// - public partial class V1CephFSVolumeSource - { - /// - /// Initializes a new instance of the V1CephFSVolumeSource class. - /// - public V1CephFSVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CephFSVolumeSource class. - /// - /// - /// Required: Monitors is a collection of Ceph monitors More info: - /// https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - /// - /// - /// Optional: Used as the mounted root, rather than the full Ceph tree, default is / - /// - /// - /// Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly - /// setting in VolumeMounts. More info: - /// https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - /// - /// - /// 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 - /// - /// - /// 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 - /// - /// - /// Optional: User is the rados user name, default is admin More info: - /// https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - /// - public V1CephFSVolumeSource(IList monitors, string path = null, bool? readOnlyProperty = null, string secretFile = null, V1LocalObjectReference secretRef = null, string user = null) - { - Monitors = monitors; - Path = path; - ReadOnlyProperty = readOnlyProperty; - SecretFile = secretFile; - SecretRef = secretRef; - User = user; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Required: Monitors is a collection of Ceph monitors More info: - /// https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "monitors")] - public IList Monitors { get; set; } - - /// - /// Optional: Used as the mounted root, rather than the full Ceph tree, default is / - /// - [JsonProperty(PropertyName = "path")] - public string Path { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "secretFile")] - public string SecretFile { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "secretRef")] - public V1LocalObjectReference SecretRef { get; set; } - - /// - /// Optional: User is the rados user name, default is admin More info: - /// https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "user")] - public string User { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - SecretRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CertificateSigningRequest.cs b/src/KubernetesClient/generated/Models/V1CertificateSigningRequest.cs deleted file mode 100644 index c654b115e..000000000 --- a/src/KubernetesClient/generated/Models/V1CertificateSigningRequest.cs +++ /dev/null @@ -1,142 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CertificateSigningRequest objects provide a mechanism to obtain x509 - /// certificates by submitting a certificate signing request, and having it - /// asynchronously approved and issued. - /// - /// Kubelets use this API to obtain: - /// 1. client certificates to authenticate to kube-apiserver (with the - /// "kubernetes.io/kube-apiserver-client-kubelet" signerName). - /// 2. serving certificates for TLS endpoints kube-apiserver can connect to securely - /// (with the "kubernetes.io/kubelet-serving" signerName). - /// - /// This API can be used to request client certificates to authenticate to - /// kube-apiserver (with the "kubernetes.io/kube-apiserver-client" signerName), or - /// to obtain certificates from custom non-Kubernetes signers. - /// - public partial class V1CertificateSigningRequest - { - /// - /// Initializes a new instance of the V1CertificateSigningRequest class. - /// - public V1CertificateSigningRequest() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CertificateSigningRequest class. - /// - /// - /// spec contains the certificate request, and is immutable after creation. Only the - /// request, signerName, expirationSeconds, and usages fields can be set on - /// creation. Other fields are derived by Kubernetes and cannot be modified by - /// users. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// - /// - /// - /// status contains information about whether the request is approved or denied, and - /// the certificate issued by the signer, or the failure condition indicating signer - /// failure. - /// - public V1CertificateSigningRequest(V1CertificateSigningRequestSpec spec, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1CertificateSigningRequestStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// spec contains the certificate request, and is immutable after creation. Only the - /// request, signerName, expirationSeconds, and usages fields can be set on - /// creation. Other fields are derived by Kubernetes and cannot be modified by - /// users. - /// - [JsonProperty(PropertyName = "spec")] - public V1CertificateSigningRequestSpec Spec { get; set; } - - /// - /// status contains information about whether the request is approved or denied, and - /// the certificate issued by the signer, or the failure condition indicating signer - /// failure. - /// - [JsonProperty(PropertyName = "status")] - public V1CertificateSigningRequestStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Spec == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Spec"); - } - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CertificateSigningRequestCondition.cs b/src/KubernetesClient/generated/Models/V1CertificateSigningRequestCondition.cs deleted file mode 100644 index 5891062f8..000000000 --- a/src/KubernetesClient/generated/Models/V1CertificateSigningRequestCondition.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CertificateSigningRequestCondition describes a condition of a - /// CertificateSigningRequest object - /// - public partial class V1CertificateSigningRequestCondition - { - /// - /// Initializes a new instance of the V1CertificateSigningRequestCondition class. - /// - public V1CertificateSigningRequestCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CertificateSigningRequestCondition class. - /// - /// - /// status of the condition, one of True, False, Unknown. Approved, Denied, and - /// Failed conditions may not be "False" or "Unknown". - /// - /// - /// type of the condition. Known conditions are "Approved", "Denied", and "Failed". - /// - /// An "Approved" condition is added via the /approval subresource, indicating the - /// request was approved and should be issued by the signer. - /// - /// A "Denied" condition is added via the /approval subresource, indicating the - /// request was denied and should not be issued by the signer. - /// - /// A "Failed" condition is added via the /status subresource, indicating the signer - /// failed to issue the certificate. - /// - /// Approved and Denied conditions are mutually exclusive. Approved, Denied, and - /// Failed conditions cannot be removed once added. - /// - /// Only one condition of a given type is allowed. - /// - /// - /// lastTransitionTime is the time the condition last transitioned from one status - /// to another. If unset, when a new condition type is added or an existing - /// condition's status is changed, the server defaults this to the current time. - /// - /// - /// lastUpdateTime is the time of the last update to this condition - /// - /// - /// message contains a human readable message with details about the request state - /// - /// - /// reason indicates a brief reason for the request state - /// - public V1CertificateSigningRequestCondition(string status, string type, System.DateTime? lastTransitionTime = null, System.DateTime? lastUpdateTime = null, string message = null, string reason = null) - { - LastTransitionTime = lastTransitionTime; - LastUpdateTime = lastUpdateTime; - Message = message; - Reason = reason; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// lastTransitionTime is the time the condition last transitioned from one status - /// to another. If unset, when a new condition type is added or an existing - /// condition's status is changed, the server defaults this to the current time. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// lastUpdateTime is the time of the last update to this condition - /// - [JsonProperty(PropertyName = "lastUpdateTime")] - public System.DateTime? LastUpdateTime { get; set; } - - /// - /// message contains a human readable message with details about the request state - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// reason indicates a brief reason for the request state - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// status of the condition, one of True, False, Unknown. Approved, Denied, and - /// Failed conditions may not be "False" or "Unknown". - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// type of the condition. Known conditions are "Approved", "Denied", and "Failed". - /// - /// An "Approved" condition is added via the /approval subresource, indicating the - /// request was approved and should be issued by the signer. - /// - /// A "Denied" condition is added via the /approval subresource, indicating the - /// request was denied and should not be issued by the signer. - /// - /// A "Failed" condition is added via the /status subresource, indicating the signer - /// failed to issue the certificate. - /// - /// Approved and Denied conditions are mutually exclusive. Approved, Denied, and - /// Failed conditions cannot be removed once added. - /// - /// Only one condition of a given type is allowed. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CertificateSigningRequestList.cs b/src/KubernetesClient/generated/Models/V1CertificateSigningRequestList.cs deleted file mode 100644 index e38cb2f82..000000000 --- a/src/KubernetesClient/generated/Models/V1CertificateSigningRequestList.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CertificateSigningRequestList is a collection of CertificateSigningRequest - /// objects - /// - public partial class V1CertificateSigningRequestList - { - /// - /// Initializes a new instance of the V1CertificateSigningRequestList class. - /// - public V1CertificateSigningRequestList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CertificateSigningRequestList class. - /// - /// - /// items is a collection of CertificateSigningRequest objects - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// - /// - public V1CertificateSigningRequestList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// items is a collection of CertificateSigningRequest objects - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CertificateSigningRequestSpec.cs b/src/KubernetesClient/generated/Models/V1CertificateSigningRequestSpec.cs deleted file mode 100644 index bb7cd30fc..000000000 --- a/src/KubernetesClient/generated/Models/V1CertificateSigningRequestSpec.cs +++ /dev/null @@ -1,283 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CertificateSigningRequestSpec contains the certificate request. - /// - public partial class V1CertificateSigningRequestSpec - { - /// - /// Initializes a new instance of the V1CertificateSigningRequestSpec class. - /// - public V1CertificateSigningRequestSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CertificateSigningRequestSpec class. - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// As of v1.22, this field is beta and is controlled via the CSRDuration feature - /// gate. - /// - /// - /// extra contains extra attributes of the user that created the - /// CertificateSigningRequest. Populated by the API server on creation and - /// immutable. - /// - /// - /// groups contains group membership of the user that created the - /// CertificateSigningRequest. Populated by the API server on creation and - /// immutable. - /// - /// - /// uid contains the uid of the user that created the CertificateSigningRequest. - /// Populated by the API server on creation and immutable. - /// - /// - /// 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" - /// - /// - /// username contains the name of the user that created the - /// CertificateSigningRequest. Populated by the API server on creation and - /// immutable. - /// - public V1CertificateSigningRequestSpec(byte[] request, string signerName, int? expirationSeconds = null, IDictionary> extra = null, IList groups = null, string uid = null, IList usages = null, string username = null) - { - ExpirationSeconds = expirationSeconds; - Extra = extra; - Groups = groups; - Request = request; - SignerName = signerName; - Uid = uid; - Usages = usages; - Username = username; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - /// As of v1.22, this field is beta and is controlled via the CSRDuration feature - /// gate. - /// - [JsonProperty(PropertyName = "expirationSeconds")] - public int? ExpirationSeconds { get; set; } - - /// - /// extra contains extra attributes of the user that created the - /// CertificateSigningRequest. Populated by the API server on creation and - /// immutable. - /// - [JsonProperty(PropertyName = "extra")] - public IDictionary> Extra { get; set; } - - /// - /// groups contains group membership of the user that created the - /// CertificateSigningRequest. Populated by the API server on creation and - /// immutable. - /// - [JsonProperty(PropertyName = "groups")] - public IList Groups { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "request")] - public byte[] Request { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "signerName")] - public string SignerName { get; set; } - - /// - /// uid contains the uid of the user that created the CertificateSigningRequest. - /// Populated by the API server on creation and immutable. - /// - [JsonProperty(PropertyName = "uid")] - public string Uid { get; set; } - - /// - /// 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" - /// - [JsonProperty(PropertyName = "usages")] - public IList Usages { get; set; } - - /// - /// username contains the name of the user that created the - /// CertificateSigningRequest. Populated by the API server on creation and - /// immutable. - /// - [JsonProperty(PropertyName = "username")] - public string Username { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CertificateSigningRequestStatus.cs b/src/KubernetesClient/generated/Models/V1CertificateSigningRequestStatus.cs deleted file mode 100644 index acbeec0eb..000000000 --- a/src/KubernetesClient/generated/Models/V1CertificateSigningRequestStatus.cs +++ /dev/null @@ -1,144 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CertificateSigningRequestStatus contains conditions used to indicate - /// approved/denied/failed status of the request, and the issued certificate. - /// - public partial class V1CertificateSigningRequestStatus - { - /// - /// Initializes a new instance of the V1CertificateSigningRequestStatus class. - /// - public V1CertificateSigningRequestStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CertificateSigningRequestStatus class. - /// - /// - /// 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----- - /// ) - /// - /// - /// conditions applied to the request. Known conditions are "Approved", "Denied", - /// and "Failed". - /// - public V1CertificateSigningRequestStatus(byte[] certificate = null, IList conditions = null) - { - Certificate = certificate; - Conditions = conditions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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----- - /// ) - /// - [JsonProperty(PropertyName = "certificate")] - public byte[] Certificate { get; set; } - - /// - /// conditions applied to the request. Known conditions are "Approved", "Denied", - /// and "Failed". - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Conditions != null){ - foreach(var obj in Conditions) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CinderPersistentVolumeSource.cs b/src/KubernetesClient/generated/Models/V1CinderPersistentVolumeSource.cs deleted file mode 100644 index 42d2441d2..000000000 --- a/src/KubernetesClient/generated/Models/V1CinderPersistentVolumeSource.cs +++ /dev/null @@ -1,108 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents a cinder volume resource in Openstack. A Cinder volume must exist - /// before mounting to a container. The volume must also be in the same region as - /// the kubelet. Cinder volumes support ownership management and SELinux relabeling. - /// - public partial class V1CinderPersistentVolumeSource - { - /// - /// Initializes a new instance of the V1CinderPersistentVolumeSource class. - /// - public V1CinderPersistentVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CinderPersistentVolumeSource class. - /// - /// - /// volume id used to identify the volume in cinder. More info: - /// https://examples.k8s.io/mysql-cinder-pd/README.md - /// - /// - /// 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 - /// - /// - /// 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 - /// - /// - /// Optional: points to a secret object containing parameters used to connect to - /// OpenStack. - /// - public V1CinderPersistentVolumeSource(string volumeID, string fsType = null, bool? readOnlyProperty = null, V1SecretReference secretRef = null) - { - FsType = fsType; - ReadOnlyProperty = readOnlyProperty; - SecretRef = secretRef; - VolumeID = volumeID; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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 - /// - [JsonProperty(PropertyName = "fsType")] - public string FsType { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Optional: points to a secret object containing parameters used to connect to - /// OpenStack. - /// - [JsonProperty(PropertyName = "secretRef")] - public V1SecretReference SecretRef { get; set; } - - /// - /// volume id used to identify the volume in cinder. More info: - /// https://examples.k8s.io/mysql-cinder-pd/README.md - /// - [JsonProperty(PropertyName = "volumeID")] - public string VolumeID { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - SecretRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CinderVolumeSource.cs b/src/KubernetesClient/generated/Models/V1CinderVolumeSource.cs deleted file mode 100644 index a37b3eef2..000000000 --- a/src/KubernetesClient/generated/Models/V1CinderVolumeSource.cs +++ /dev/null @@ -1,108 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents a cinder volume resource in Openstack. A Cinder volume must exist - /// before mounting to a container. The volume must also be in the same region as - /// the kubelet. Cinder volumes support ownership management and SELinux relabeling. - /// - public partial class V1CinderVolumeSource - { - /// - /// Initializes a new instance of the V1CinderVolumeSource class. - /// - public V1CinderVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CinderVolumeSource class. - /// - /// - /// volume id used to identify the volume in cinder. More info: - /// https://examples.k8s.io/mysql-cinder-pd/README.md - /// - /// - /// 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 - /// - /// - /// 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 - /// - /// - /// Optional: points to a secret object containing parameters used to connect to - /// OpenStack. - /// - public V1CinderVolumeSource(string volumeID, string fsType = null, bool? readOnlyProperty = null, V1LocalObjectReference secretRef = null) - { - FsType = fsType; - ReadOnlyProperty = readOnlyProperty; - SecretRef = secretRef; - VolumeID = volumeID; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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 - /// - [JsonProperty(PropertyName = "fsType")] - public string FsType { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Optional: points to a secret object containing parameters used to connect to - /// OpenStack. - /// - [JsonProperty(PropertyName = "secretRef")] - public V1LocalObjectReference SecretRef { get; set; } - - /// - /// volume id used to identify the volume in cinder. More info: - /// https://examples.k8s.io/mysql-cinder-pd/README.md - /// - [JsonProperty(PropertyName = "volumeID")] - public string VolumeID { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - SecretRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ClientIPConfig.cs b/src/KubernetesClient/generated/Models/V1ClientIPConfig.cs deleted file mode 100644 index f384bdfe0..000000000 --- a/src/KubernetesClient/generated/Models/V1ClientIPConfig.cs +++ /dev/null @@ -1,66 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ClientIPConfig represents the configurations of Client IP based session - /// affinity. - /// - public partial class V1ClientIPConfig - { - /// - /// Initializes a new instance of the V1ClientIPConfig class. - /// - public V1ClientIPConfig() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ClientIPConfig class. - /// - /// - /// timeoutSeconds specifies the seconds of ClientIP type session sticky time. The - /// value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP". Default - /// value is 10800(for 3 hours). - /// - public V1ClientIPConfig(int? timeoutSeconds = null) - { - TimeoutSeconds = timeoutSeconds; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// timeoutSeconds specifies the seconds of ClientIP type session sticky time. The - /// value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP". Default - /// value is 10800(for 3 hours). - /// - [JsonProperty(PropertyName = "timeoutSeconds")] - public int? TimeoutSeconds { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ClusterRole.cs b/src/KubernetesClient/generated/Models/V1ClusterRole.cs deleted file mode 100644 index 4e2da1cc8..000000000 --- a/src/KubernetesClient/generated/Models/V1ClusterRole.cs +++ /dev/null @@ -1,126 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ClusterRole is a cluster level, logical grouping of PolicyRules that can be - /// referenced as a unit by a RoleBinding or ClusterRoleBinding. - /// - public partial class V1ClusterRole - { - /// - /// Initializes a new instance of the V1ClusterRole class. - /// - public V1ClusterRole() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ClusterRole class. - /// - /// - /// AggregationRule is an optional field that describes how to build the Rules for - /// this ClusterRole. If AggregationRule is set, then the Rules are controller - /// managed and direct changes to Rules will be stomped by the controller. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. - /// - /// - /// Rules holds all the PolicyRules for this ClusterRole - /// - public V1ClusterRole(V1AggregationRule aggregationRule = null, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, IList rules = null) - { - AggregationRule = aggregationRule; - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Rules = rules; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// AggregationRule is an optional field that describes how to build the Rules for - /// this ClusterRole. If AggregationRule is set, then the Rules are controller - /// managed and direct changes to Rules will be stomped by the controller. - /// - [JsonProperty(PropertyName = "aggregationRule")] - public V1AggregationRule AggregationRule { get; set; } - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Rules holds all the PolicyRules for this ClusterRole - /// - [JsonProperty(PropertyName = "rules")] - public IList Rules { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - AggregationRule?.Validate(); - Metadata?.Validate(); - if (Rules != null){ - foreach(var obj in Rules) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ClusterRoleBinding.cs b/src/KubernetesClient/generated/Models/V1ClusterRoleBinding.cs deleted file mode 100644 index b28e68116..000000000 --- a/src/KubernetesClient/generated/Models/V1ClusterRoleBinding.cs +++ /dev/null @@ -1,129 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ClusterRoleBinding references a ClusterRole, but not contain it. It can - /// reference a ClusterRole in the global namespace, and adds who information via - /// Subject. - /// - public partial class V1ClusterRoleBinding - { - /// - /// Initializes a new instance of the V1ClusterRoleBinding class. - /// - public V1ClusterRoleBinding() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ClusterRoleBinding class. - /// - /// - /// RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef - /// cannot be resolved, the Authorizer must return an error. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. - /// - /// - /// Subjects holds references to the objects the role applies to. - /// - public V1ClusterRoleBinding(V1RoleRef roleRef, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, IList subjects = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - RoleRef = roleRef; - Subjects = subjects; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef - /// cannot be resolved, the Authorizer must return an error. - /// - [JsonProperty(PropertyName = "roleRef")] - public V1RoleRef RoleRef { get; set; } - - /// - /// Subjects holds references to the objects the role applies to. - /// - [JsonProperty(PropertyName = "subjects")] - public IList Subjects { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (RoleRef == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "RoleRef"); - } - Metadata?.Validate(); - RoleRef?.Validate(); - if (Subjects != null){ - foreach(var obj in Subjects) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ClusterRoleBindingList.cs b/src/KubernetesClient/generated/Models/V1ClusterRoleBindingList.cs deleted file mode 100644 index 7e46a8255..000000000 --- a/src/KubernetesClient/generated/Models/V1ClusterRoleBindingList.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ClusterRoleBindingList is a collection of ClusterRoleBindings - /// - public partial class V1ClusterRoleBindingList - { - /// - /// Initializes a new instance of the V1ClusterRoleBindingList class. - /// - public V1ClusterRoleBindingList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ClusterRoleBindingList class. - /// - /// - /// Items is a list of ClusterRoleBindings - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. - /// - public V1ClusterRoleBindingList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is a list of ClusterRoleBindings - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ClusterRoleList.cs b/src/KubernetesClient/generated/Models/V1ClusterRoleList.cs deleted file mode 100644 index 69503b849..000000000 --- a/src/KubernetesClient/generated/Models/V1ClusterRoleList.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ClusterRoleList is a collection of ClusterRoles - /// - public partial class V1ClusterRoleList - { - /// - /// Initializes a new instance of the V1ClusterRoleList class. - /// - public V1ClusterRoleList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ClusterRoleList class. - /// - /// - /// Items is a list of ClusterRoles - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. - /// - public V1ClusterRoleList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is a list of ClusterRoles - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ComponentCondition.cs b/src/KubernetesClient/generated/Models/V1ComponentCondition.cs deleted file mode 100644 index bb38631f8..000000000 --- a/src/KubernetesClient/generated/Models/V1ComponentCondition.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Information about the condition of a component. - /// - public partial class V1ComponentCondition - { - /// - /// Initializes a new instance of the V1ComponentCondition class. - /// - public V1ComponentCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ComponentCondition class. - /// - /// - /// Status of the condition for a component. Valid values for "Healthy": "True", - /// "False", or "Unknown". - /// - /// - /// Type of condition for a component. Valid value: "Healthy" - /// - /// - /// Condition error code for a component. For example, a health check error code. - /// - /// - /// Message about the condition for a component. For example, information about a - /// health check. - /// - public V1ComponentCondition(string status, string type, string error = null, string message = null) - { - Error = error; - Message = message; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Condition error code for a component. For example, a health check error code. - /// - [JsonProperty(PropertyName = "error")] - public string Error { get; set; } - - /// - /// Message about the condition for a component. For example, information about a - /// health check. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Status of the condition for a component. Valid values for "Healthy": "True", - /// "False", or "Unknown". - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Type of condition for a component. Valid value: "Healthy" - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ComponentStatus.cs b/src/KubernetesClient/generated/Models/V1ComponentStatus.cs deleted file mode 100644 index bdec6e828..000000000 --- a/src/KubernetesClient/generated/Models/V1ComponentStatus.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ComponentStatus (and ComponentStatusList) holds the cluster validation info. - /// Deprecated: This API is deprecated in v1.19+ - /// - public partial class V1ComponentStatus - { - /// - /// Initializes a new instance of the V1ComponentStatus class. - /// - public V1ComponentStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ComponentStatus class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// List of component conditions observed - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1ComponentStatus(string apiVersion = null, IList conditions = null, string kind = null, V1ObjectMeta metadata = null) - { - ApiVersion = apiVersion; - Conditions = conditions; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// List of component conditions observed - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Conditions != null){ - foreach(var obj in Conditions) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ComponentStatusList.cs b/src/KubernetesClient/generated/Models/V1ComponentStatusList.cs deleted file mode 100644 index f6d108599..000000000 --- a/src/KubernetesClient/generated/Models/V1ComponentStatusList.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Status of all the conditions for the component as a list of ComponentStatus - /// objects. Deprecated: This API is deprecated in v1.19+ - /// - public partial class V1ComponentStatusList - { - /// - /// Initializes a new instance of the V1ComponentStatusList class. - /// - public V1ComponentStatusList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ComponentStatusList class. - /// - /// - /// List of ComponentStatus objects. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - public V1ComponentStatusList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// List of ComponentStatus objects. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Condition.cs b/src/KubernetesClient/generated/Models/V1Condition.cs deleted file mode 100644 index 861d192cd..000000000 --- a/src/KubernetesClient/generated/Models/V1Condition.cs +++ /dev/null @@ -1,132 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Condition contains details for one aspect of the current state of this API - /// Resource. - /// - public partial class V1Condition - { - /// - /// Initializes a new instance of the V1Condition class. - /// - public V1Condition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Condition class. - /// - /// - /// lastTransitionTime is the last time the condition transitioned from one status - /// to another. This should be when the underlying condition changed. If that is - /// not known, then using the time when the API field changed is acceptable. - /// - /// - /// message is a human readable message indicating details about the transition. - /// This may be an empty string. - /// - /// - /// reason contains a programmatic identifier indicating the reason for the - /// condition's last transition. Producers of specific condition types may define - /// expected values and meanings for this field, and whether the values are - /// considered a guaranteed API. The value should be a CamelCase string. This field - /// may not be empty. - /// - /// - /// status of the condition, one of True, False, Unknown. - /// - /// - /// type of condition in CamelCase or in foo.example.com/CamelCase. - /// - /// - /// observedGeneration represents the .metadata.generation that the condition was - /// set based upon. For instance, if .metadata.generation is currently 12, but the - /// .status.conditions[x].observedGeneration is 9, the condition is out of date with - /// respect to the current state of the instance. - /// - public V1Condition(System.DateTime lastTransitionTime, string message, string reason, string status, string type, long? observedGeneration = null) - { - LastTransitionTime = lastTransitionTime; - Message = message; - ObservedGeneration = observedGeneration; - Reason = reason; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// lastTransitionTime is the last time the condition transitioned from one status - /// to another. This should be when the underlying condition changed. If that is - /// not known, then using the time when the API field changed is acceptable. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime LastTransitionTime { get; set; } - - /// - /// message is a human readable message indicating details about the transition. - /// This may be an empty string. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "observedGeneration")] - public long? ObservedGeneration { get; set; } - - /// - /// reason contains a programmatic identifier indicating the reason for the - /// condition's last transition. Producers of specific condition types may define - /// expected values and meanings for this field, and whether the values are - /// considered a guaranteed API. The value should be a CamelCase string. This field - /// may not be empty. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// status of the condition, one of True, False, Unknown. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// type of condition in CamelCase or in foo.example.com/CamelCase. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ConfigMap.cs b/src/KubernetesClient/generated/Models/V1ConfigMap.cs deleted file mode 100644 index 0cc842529..000000000 --- a/src/KubernetesClient/generated/Models/V1ConfigMap.cs +++ /dev/null @@ -1,144 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ConfigMap holds configuration data for pods to consume. - /// - public partial class V1ConfigMap - { - /// - /// Initializes a new instance of the V1ConfigMap class. - /// - public V1ConfigMap() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ConfigMap class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// BinaryData contains the binary data. Each key must consist of alphanumeric - /// characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not - /// in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones - /// in the Data field, this is enforced during validation process. Using this field - /// will require 1.10+ apiserver and kubelet. - /// - /// - /// Data contains the configuration data. Each key must consist of alphanumeric - /// characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the - /// BinaryData field. The keys stored in Data must not overlap with the keys in the - /// BinaryData field, this is enforced during validation process. - /// - /// - /// Immutable, if set to true, ensures that data stored in the ConfigMap cannot be - /// updated (only object metadata can be modified). If not set to true, the field - /// can be modified at any time. Defaulted to nil. - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1ConfigMap(string apiVersion = null, IDictionary binaryData = null, IDictionary data = null, bool? immutable = null, string kind = null, V1ObjectMeta metadata = null) - { - ApiVersion = apiVersion; - BinaryData = binaryData; - Data = data; - Immutable = immutable; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// BinaryData contains the binary data. Each key must consist of alphanumeric - /// characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not - /// in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones - /// in the Data field, this is enforced during validation process. Using this field - /// will require 1.10+ apiserver and kubelet. - /// - [JsonProperty(PropertyName = "binaryData")] - public IDictionary BinaryData { get; set; } - - /// - /// Data contains the configuration data. Each key must consist of alphanumeric - /// characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the - /// BinaryData field. The keys stored in Data must not overlap with the keys in the - /// BinaryData field, this is enforced during validation process. - /// - [JsonProperty(PropertyName = "data")] - public IDictionary Data { get; set; } - - /// - /// Immutable, if set to true, ensures that data stored in the ConfigMap cannot be - /// updated (only object metadata can be modified). If not set to true, the field - /// can be modified at any time. Defaulted to nil. - /// - [JsonProperty(PropertyName = "immutable")] - public bool? Immutable { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ConfigMapEnvSource.cs b/src/KubernetesClient/generated/Models/V1ConfigMapEnvSource.cs deleted file mode 100644 index 0d0c804b6..000000000 --- a/src/KubernetesClient/generated/Models/V1ConfigMapEnvSource.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ConfigMapEnvSource selects a ConfigMap to populate the environment variables - /// with. - /// - /// The contents of the target ConfigMap's Data field will represent the key-value - /// pairs as environment variables. - /// - public partial class V1ConfigMapEnvSource - { - /// - /// Initializes a new instance of the V1ConfigMapEnvSource class. - /// - public V1ConfigMapEnvSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ConfigMapEnvSource class. - /// - /// - /// Name of the referent. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - /// - /// - /// Specify whether the ConfigMap must be defined - /// - public V1ConfigMapEnvSource(string name = null, bool? optional = null) - { - Name = name; - Optional = optional; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Name of the referent. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Specify whether the ConfigMap must be defined - /// - [JsonProperty(PropertyName = "optional")] - public bool? Optional { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ConfigMapKeySelector.cs b/src/KubernetesClient/generated/Models/V1ConfigMapKeySelector.cs deleted file mode 100644 index 7a62f0e92..000000000 --- a/src/KubernetesClient/generated/Models/V1ConfigMapKeySelector.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Selects a key from a ConfigMap. - /// - public partial class V1ConfigMapKeySelector - { - /// - /// Initializes a new instance of the V1ConfigMapKeySelector class. - /// - public V1ConfigMapKeySelector() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ConfigMapKeySelector class. - /// - /// - /// The key to select. - /// - /// - /// Name of the referent. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - /// - /// - /// Specify whether the ConfigMap or its key must be defined - /// - public V1ConfigMapKeySelector(string key, string name = null, bool? optional = null) - { - Key = key; - Name = name; - Optional = optional; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The key to select. - /// - [JsonProperty(PropertyName = "key")] - public string Key { get; set; } - - /// - /// Name of the referent. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Specify whether the ConfigMap or its key must be defined - /// - [JsonProperty(PropertyName = "optional")] - public bool? Optional { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ConfigMapList.cs b/src/KubernetesClient/generated/Models/V1ConfigMapList.cs deleted file mode 100644 index 8cb667a49..000000000 --- a/src/KubernetesClient/generated/Models/V1ConfigMapList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ConfigMapList is a resource containing a list of ConfigMap objects. - /// - public partial class V1ConfigMapList - { - /// - /// Initializes a new instance of the V1ConfigMapList class. - /// - public V1ConfigMapList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ConfigMapList class. - /// - /// - /// Items is the list of ConfigMaps. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1ConfigMapList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is the list of ConfigMaps. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ConfigMapNodeConfigSource.cs b/src/KubernetesClient/generated/Models/V1ConfigMapNodeConfigSource.cs deleted file mode 100644 index d87725871..000000000 --- a/src/KubernetesClient/generated/Models/V1ConfigMapNodeConfigSource.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a - /// config source for the Node. This API is deprecated since 1.22: - /// https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration - /// - public partial class V1ConfigMapNodeConfigSource - { - /// - /// Initializes a new instance of the V1ConfigMapNodeConfigSource class. - /// - public V1ConfigMapNodeConfigSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ConfigMapNodeConfigSource class. - /// - /// - /// KubeletConfigKey declares which key of the referenced ConfigMap corresponds to - /// the KubeletConfiguration structure This field is required in all cases. - /// - /// - /// Name is the metadata.name of the referenced ConfigMap. This field is required in - /// all cases. - /// - /// - /// Namespace is the metadata.namespace of the referenced ConfigMap. This field is - /// required in all cases. - /// - /// - /// ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. - /// This field is forbidden in Node.Spec, and required in Node.Status. - /// - /// - /// UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in - /// Node.Spec, and required in Node.Status. - /// - public V1ConfigMapNodeConfigSource(string kubeletConfigKey, string name, string namespaceProperty, string resourceVersion = null, string uid = null) - { - KubeletConfigKey = kubeletConfigKey; - Name = name; - NamespaceProperty = namespaceProperty; - ResourceVersion = resourceVersion; - Uid = uid; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// KubeletConfigKey declares which key of the referenced ConfigMap corresponds to - /// the KubeletConfiguration structure This field is required in all cases. - /// - [JsonProperty(PropertyName = "kubeletConfigKey")] - public string KubeletConfigKey { get; set; } - - /// - /// Name is the metadata.name of the referenced ConfigMap. This field is required in - /// all cases. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Namespace is the metadata.namespace of the referenced ConfigMap. This field is - /// required in all cases. - /// - [JsonProperty(PropertyName = "namespace")] - public string NamespaceProperty { get; set; } - - /// - /// ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. - /// This field is forbidden in Node.Spec, and required in Node.Status. - /// - [JsonProperty(PropertyName = "resourceVersion")] - public string ResourceVersion { get; set; } - - /// - /// UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in - /// Node.Spec, and required in Node.Status. - /// - [JsonProperty(PropertyName = "uid")] - public string Uid { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ConfigMapProjection.cs b/src/KubernetesClient/generated/Models/V1ConfigMapProjection.cs deleted file mode 100644 index 13c9fab1a..000000000 --- a/src/KubernetesClient/generated/Models/V1ConfigMapProjection.cs +++ /dev/null @@ -1,107 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Adapts a ConfigMap into a projected volume. - /// - /// The contents of the target ConfigMap's Data field will be presented in a - /// projected volume as files using the keys in the Data field as the file names, - /// unless the items element is populated with specific mappings of keys to paths. - /// Note that this is identical to a configmap volume source without the default - /// mode. - /// - public partial class V1ConfigMapProjection - { - /// - /// Initializes a new instance of the V1ConfigMapProjection class. - /// - public V1ConfigMapProjection() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ConfigMapProjection class. - /// - /// - /// 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 '..'. - /// - /// - /// Name of the referent. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - /// - /// - /// Specify whether the ConfigMap or its keys must be defined - /// - public V1ConfigMapProjection(IList items = null, string name = null, bool? optional = null) - { - Items = items; - Name = name; - Optional = optional; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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 '..'. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Name of the referent. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Specify whether the ConfigMap or its keys must be defined - /// - [JsonProperty(PropertyName = "optional")] - public bool? Optional { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ConfigMapVolumeSource.cs b/src/KubernetesClient/generated/Models/V1ConfigMapVolumeSource.cs deleted file mode 100644 index 4e5a6f333..000000000 --- a/src/KubernetesClient/generated/Models/V1ConfigMapVolumeSource.cs +++ /dev/null @@ -1,126 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Adapts a ConfigMap into a volume. - /// - /// The contents of the target ConfigMap's Data field will be presented in a volume - /// as files using the keys in the Data field as the file names, unless the items - /// element is populated with specific mappings of keys to paths. ConfigMap volumes - /// support ownership management and SELinux relabeling. - /// - public partial class V1ConfigMapVolumeSource - { - /// - /// Initializes a new instance of the V1ConfigMapVolumeSource class. - /// - public V1ConfigMapVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ConfigMapVolumeSource class. - /// - /// - /// 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. - /// - /// - /// 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 '..'. - /// - /// - /// Name of the referent. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - /// - /// - /// Specify whether the ConfigMap or its keys must be defined - /// - public V1ConfigMapVolumeSource(int? defaultMode = null, IList items = null, string name = null, bool? optional = null) - { - DefaultMode = defaultMode; - Items = items; - Name = name; - Optional = optional; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "defaultMode")] - public int? DefaultMode { get; set; } - - /// - /// 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 '..'. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Name of the referent. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Specify whether the ConfigMap or its keys must be defined - /// - [JsonProperty(PropertyName = "optional")] - public bool? Optional { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Container.cs b/src/KubernetesClient/generated/Models/V1Container.cs deleted file mode 100644 index 9b32b5274..000000000 --- a/src/KubernetesClient/generated/Models/V1Container.cs +++ /dev/null @@ -1,441 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// A single application container that you want to run within a pod. - /// - public partial class V1Container - { - /// - /// Initializes a new instance of the V1Container class. - /// - public V1Container() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Container class. - /// - /// - /// Name of the container specified as a DNS_LABEL. Each container in a pod must - /// have a unique name (DNS_LABEL). Cannot be updated. - /// - /// - /// 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. 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 - /// - /// - /// 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. 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 - /// - /// - /// List of environment variables to set in the container. Cannot be updated. - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// 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 - /// - /// - /// Actions that the management system should take in response to container - /// lifecycle events. Cannot be updated. - /// - /// - /// 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 - /// - /// - /// 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. - /// - /// - /// 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 - /// - /// - /// Compute Resources required by this container. Cannot be updated. More info: - /// https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - /// - /// - /// SecurityContext defines the security options the container should be run with. - /// If set, the fields of SecurityContext override the equivalent fields of - /// PodSecurityContext. More info: - /// https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - /// - /// - /// 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. More info: - /// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - /// - /// - /// 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. - /// - /// - /// 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 - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// Whether this container should allocate a TTY for itself, also requires 'stdin' - /// to be true. Default is false. - /// - /// - /// volumeDevices is the list of block devices to be used by the container. - /// - /// - /// Pod volumes to mount into the container's filesystem. Cannot be updated. - /// - /// - /// Container's working directory. If not specified, the container runtime's default - /// will be used, which might be configured in the container image. Cannot be - /// updated. - /// - public V1Container(string name, IList args = null, IList command = null, IList env = null, IList envFrom = null, string image = null, string imagePullPolicy = null, V1Lifecycle lifecycle = null, V1Probe livenessProbe = null, IList ports = null, V1Probe readinessProbe = null, V1ResourceRequirements resources = null, V1SecurityContext securityContext = null, V1Probe startupProbe = null, bool? stdin = null, bool? stdinOnce = null, string terminationMessagePath = null, string terminationMessagePolicy = null, bool? tty = null, IList volumeDevices = null, IList volumeMounts = null, string workingDir = null) - { - Args = args; - Command = command; - Env = env; - EnvFrom = envFrom; - Image = image; - ImagePullPolicy = imagePullPolicy; - Lifecycle = lifecycle; - LivenessProbe = livenessProbe; - Name = name; - Ports = ports; - ReadinessProbe = readinessProbe; - Resources = resources; - SecurityContext = securityContext; - StartupProbe = startupProbe; - Stdin = stdin; - StdinOnce = stdinOnce; - TerminationMessagePath = terminationMessagePath; - TerminationMessagePolicy = terminationMessagePolicy; - Tty = tty; - VolumeDevices = volumeDevices; - VolumeMounts = volumeMounts; - WorkingDir = workingDir; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. 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 - /// - [JsonProperty(PropertyName = "args")] - public IList Args { get; set; } - - /// - /// 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. 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 - /// - [JsonProperty(PropertyName = "command")] - public IList Command { get; set; } - - /// - /// List of environment variables to set in the container. Cannot be updated. - /// - [JsonProperty(PropertyName = "env")] - public IList Env { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "envFrom")] - public IList EnvFrom { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "image")] - public string Image { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "imagePullPolicy")] - public string ImagePullPolicy { get; set; } - - /// - /// Actions that the management system should take in response to container - /// lifecycle events. Cannot be updated. - /// - [JsonProperty(PropertyName = "lifecycle")] - public V1Lifecycle Lifecycle { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "livenessProbe")] - public V1Probe LivenessProbe { get; set; } - - /// - /// Name of the container specified as a DNS_LABEL. Each container in a pod must - /// have a unique name (DNS_LABEL). Cannot be updated. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "ports")] - public IList Ports { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "readinessProbe")] - public V1Probe ReadinessProbe { get; set; } - - /// - /// Compute Resources required by this container. Cannot be updated. More info: - /// https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - /// - [JsonProperty(PropertyName = "resources")] - public V1ResourceRequirements Resources { get; set; } - - /// - /// SecurityContext defines the security options the container should be run with. - /// If set, the fields of SecurityContext override the equivalent fields of - /// PodSecurityContext. More info: - /// https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - /// - [JsonProperty(PropertyName = "securityContext")] - public V1SecurityContext SecurityContext { get; set; } - - /// - /// 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. More info: - /// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - /// - [JsonProperty(PropertyName = "startupProbe")] - public V1Probe StartupProbe { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "stdin")] - public bool? Stdin { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "stdinOnce")] - public bool? StdinOnce { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "terminationMessagePath")] - public string TerminationMessagePath { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "terminationMessagePolicy")] - public string TerminationMessagePolicy { get; set; } - - /// - /// Whether this container should allocate a TTY for itself, also requires 'stdin' - /// to be true. Default is false. - /// - [JsonProperty(PropertyName = "tty")] - public bool? Tty { get; set; } - - /// - /// volumeDevices is the list of block devices to be used by the container. - /// - [JsonProperty(PropertyName = "volumeDevices")] - public IList VolumeDevices { get; set; } - - /// - /// Pod volumes to mount into the container's filesystem. Cannot be updated. - /// - [JsonProperty(PropertyName = "volumeMounts")] - public IList VolumeMounts { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "workingDir")] - public string WorkingDir { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Env != null){ - foreach(var obj in Env) - { - obj.Validate(); - } - } - if (EnvFrom != null){ - foreach(var obj in EnvFrom) - { - obj.Validate(); - } - } - Lifecycle?.Validate(); - LivenessProbe?.Validate(); - if (Ports != null){ - foreach(var obj in Ports) - { - obj.Validate(); - } - } - ReadinessProbe?.Validate(); - Resources?.Validate(); - SecurityContext?.Validate(); - StartupProbe?.Validate(); - if (VolumeDevices != null){ - foreach(var obj in VolumeDevices) - { - obj.Validate(); - } - } - if (VolumeMounts != null){ - foreach(var obj in VolumeMounts) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ContainerImage.cs b/src/KubernetesClient/generated/Models/V1ContainerImage.cs deleted file mode 100644 index 1241be2c1..000000000 --- a/src/KubernetesClient/generated/Models/V1ContainerImage.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Describe a container image - /// - public partial class V1ContainerImage - { - /// - /// Initializes a new instance of the V1ContainerImage class. - /// - public V1ContainerImage() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ContainerImage class. - /// - /// - /// Names by which this image is known. e.g. ["k8s.gcr.io/hyperkube:v1.0.7", - /// "dockerhub.io/google_containers/hyperkube:v1.0.7"] - /// - /// - /// The size of the image in bytes. - /// - public V1ContainerImage(IList names = null, long? sizeBytes = null) - { - Names = names; - SizeBytes = sizeBytes; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Names by which this image is known. e.g. ["k8s.gcr.io/hyperkube:v1.0.7", - /// "dockerhub.io/google_containers/hyperkube:v1.0.7"] - /// - [JsonProperty(PropertyName = "names")] - public IList Names { get; set; } - - /// - /// The size of the image in bytes. - /// - [JsonProperty(PropertyName = "sizeBytes")] - public long? SizeBytes { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ContainerPort.cs b/src/KubernetesClient/generated/Models/V1ContainerPort.cs deleted file mode 100644 index cfad0cd9d..000000000 --- a/src/KubernetesClient/generated/Models/V1ContainerPort.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ContainerPort represents a network port in a single container. - /// - public partial class V1ContainerPort - { - /// - /// Initializes a new instance of the V1ContainerPort class. - /// - public V1ContainerPort() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ContainerPort class. - /// - /// - /// Number of port to expose on the pod's IP address. This must be a valid port - /// number, 0 < x < 65536. - /// - /// - /// What host IP to bind the external port to. - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - /// - public V1ContainerPort(int containerPort, string hostIP = null, int? hostPort = null, string name = null, string protocol = null) - { - ContainerPort = containerPort; - HostIP = hostIP; - HostPort = hostPort; - Name = name; - Protocol = protocol; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Number of port to expose on the pod's IP address. This must be a valid port - /// number, 0 < x < 65536. - /// - [JsonProperty(PropertyName = "containerPort")] - public int ContainerPort { get; set; } - - /// - /// What host IP to bind the external port to. - /// - [JsonProperty(PropertyName = "hostIP")] - public string HostIP { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "hostPort")] - public int? HostPort { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - /// - [JsonProperty(PropertyName = "protocol")] - public string Protocol { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ContainerState.cs b/src/KubernetesClient/generated/Models/V1ContainerState.cs deleted file mode 100644 index cb17cbf9c..000000000 --- a/src/KubernetesClient/generated/Models/V1ContainerState.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ContainerState holds a possible state of container. Only one of its members may - /// be specified. If none of them is specified, the default one is - /// ContainerStateWaiting. - /// - public partial class V1ContainerState - { - /// - /// Initializes a new instance of the V1ContainerState class. - /// - public V1ContainerState() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ContainerState class. - /// - /// - /// Details about a running container - /// - /// - /// Details about a terminated container - /// - /// - /// Details about a waiting container - /// - public V1ContainerState(V1ContainerStateRunning running = null, V1ContainerStateTerminated terminated = null, V1ContainerStateWaiting waiting = null) - { - Running = running; - Terminated = terminated; - Waiting = waiting; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Details about a running container - /// - [JsonProperty(PropertyName = "running")] - public V1ContainerStateRunning Running { get; set; } - - /// - /// Details about a terminated container - /// - [JsonProperty(PropertyName = "terminated")] - public V1ContainerStateTerminated Terminated { get; set; } - - /// - /// Details about a waiting container - /// - [JsonProperty(PropertyName = "waiting")] - public V1ContainerStateWaiting Waiting { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Running?.Validate(); - Terminated?.Validate(); - Waiting?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ContainerStateRunning.cs b/src/KubernetesClient/generated/Models/V1ContainerStateRunning.cs deleted file mode 100644 index b8392e6f3..000000000 --- a/src/KubernetesClient/generated/Models/V1ContainerStateRunning.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ContainerStateRunning is a running state of a container. - /// - public partial class V1ContainerStateRunning - { - /// - /// Initializes a new instance of the V1ContainerStateRunning class. - /// - public V1ContainerStateRunning() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ContainerStateRunning class. - /// - /// - /// Time at which the container was last (re-)started - /// - public V1ContainerStateRunning(System.DateTime? startedAt = null) - { - StartedAt = startedAt; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Time at which the container was last (re-)started - /// - [JsonProperty(PropertyName = "startedAt")] - public System.DateTime? StartedAt { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ContainerStateTerminated.cs b/src/KubernetesClient/generated/Models/V1ContainerStateTerminated.cs deleted file mode 100644 index 082b3fa31..000000000 --- a/src/KubernetesClient/generated/Models/V1ContainerStateTerminated.cs +++ /dev/null @@ -1,121 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ContainerStateTerminated is a terminated state of a container. - /// - public partial class V1ContainerStateTerminated - { - /// - /// Initializes a new instance of the V1ContainerStateTerminated class. - /// - public V1ContainerStateTerminated() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ContainerStateTerminated class. - /// - /// - /// Exit status from the last termination of the container - /// - /// - /// Container's ID in the format 'docker://<container_id>' - /// - /// - /// Time at which the container last terminated - /// - /// - /// Message regarding the last termination of the container - /// - /// - /// (brief) reason from the last termination of the container - /// - /// - /// Signal from the last termination of the container - /// - /// - /// Time at which previous execution of the container started - /// - public V1ContainerStateTerminated(int exitCode, string containerID = null, System.DateTime? finishedAt = null, string message = null, string reason = null, int? signal = null, System.DateTime? startedAt = null) - { - ContainerID = containerID; - ExitCode = exitCode; - FinishedAt = finishedAt; - Message = message; - Reason = reason; - Signal = signal; - StartedAt = startedAt; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Container's ID in the format 'docker://<container_id>' - /// - [JsonProperty(PropertyName = "containerID")] - public string ContainerID { get; set; } - - /// - /// Exit status from the last termination of the container - /// - [JsonProperty(PropertyName = "exitCode")] - public int ExitCode { get; set; } - - /// - /// Time at which the container last terminated - /// - [JsonProperty(PropertyName = "finishedAt")] - public System.DateTime? FinishedAt { get; set; } - - /// - /// Message regarding the last termination of the container - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// (brief) reason from the last termination of the container - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Signal from the last termination of the container - /// - [JsonProperty(PropertyName = "signal")] - public int? Signal { get; set; } - - /// - /// Time at which previous execution of the container started - /// - [JsonProperty(PropertyName = "startedAt")] - public System.DateTime? StartedAt { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ContainerStateWaiting.cs b/src/KubernetesClient/generated/Models/V1ContainerStateWaiting.cs deleted file mode 100644 index f0cc28103..000000000 --- a/src/KubernetesClient/generated/Models/V1ContainerStateWaiting.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ContainerStateWaiting is a waiting state of a container. - /// - public partial class V1ContainerStateWaiting - { - /// - /// Initializes a new instance of the V1ContainerStateWaiting class. - /// - public V1ContainerStateWaiting() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ContainerStateWaiting class. - /// - /// - /// Message regarding why the container is not yet running. - /// - /// - /// (brief) reason the container is not yet running. - /// - public V1ContainerStateWaiting(string message = null, string reason = null) - { - Message = message; - Reason = reason; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Message regarding why the container is not yet running. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// (brief) reason the container is not yet running. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ContainerStatus.cs b/src/KubernetesClient/generated/Models/V1ContainerStatus.cs deleted file mode 100644 index 8c5d8a5c8..000000000 --- a/src/KubernetesClient/generated/Models/V1ContainerStatus.cs +++ /dev/null @@ -1,159 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ContainerStatus contains details for the current status of this container. - /// - public partial class V1ContainerStatus - { - /// - /// Initializes a new instance of the V1ContainerStatus class. - /// - public V1ContainerStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ContainerStatus class. - /// - /// - /// The image the container is running. More info: - /// https://kubernetes.io/docs/concepts/containers/images - /// - /// - /// ImageID of the container's image. - /// - /// - /// This must be a DNS_LABEL. Each container in a pod must have a unique name. - /// Cannot be updated. - /// - /// - /// Specifies whether the container has passed its readiness probe. - /// - /// - /// The number of times the container has been restarted, currently based on the - /// number of dead containers that have not yet been removed. Note that this is - /// calculated from dead containers. But those containers are subject to garbage - /// collection. This value will get capped at 5 by GC. - /// - /// - /// Container's ID in the format 'docker://<container_id>'. - /// - /// - /// Details about the container's last termination condition. - /// - /// - /// Specifies whether the container has 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. Is - /// always true when no startupProbe is defined. - /// - /// - /// Details about the container's current condition. - /// - public V1ContainerStatus(string image, string imageID, string name, bool ready, int restartCount, string containerID = null, V1ContainerState lastState = null, bool? started = null, V1ContainerState state = null) - { - ContainerID = containerID; - Image = image; - ImageID = imageID; - LastState = lastState; - Name = name; - Ready = ready; - RestartCount = restartCount; - Started = started; - State = state; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Container's ID in the format 'docker://<container_id>'. - /// - [JsonProperty(PropertyName = "containerID")] - public string ContainerID { get; set; } - - /// - /// The image the container is running. More info: - /// https://kubernetes.io/docs/concepts/containers/images - /// - [JsonProperty(PropertyName = "image")] - public string Image { get; set; } - - /// - /// ImageID of the container's image. - /// - [JsonProperty(PropertyName = "imageID")] - public string ImageID { get; set; } - - /// - /// Details about the container's last termination condition. - /// - [JsonProperty(PropertyName = "lastState")] - public V1ContainerState LastState { get; set; } - - /// - /// This must be a DNS_LABEL. Each container in a pod must have a unique name. - /// Cannot be updated. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Specifies whether the container has passed its readiness probe. - /// - [JsonProperty(PropertyName = "ready")] - public bool Ready { get; set; } - - /// - /// The number of times the container has been restarted, currently based on the - /// number of dead containers that have not yet been removed. Note that this is - /// calculated from dead containers. But those containers are subject to garbage - /// collection. This value will get capped at 5 by GC. - /// - [JsonProperty(PropertyName = "restartCount")] - public int RestartCount { get; set; } - - /// - /// Specifies whether the container has 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. Is - /// always true when no startupProbe is defined. - /// - [JsonProperty(PropertyName = "started")] - public bool? Started { get; set; } - - /// - /// Details about the container's current condition. - /// - [JsonProperty(PropertyName = "state")] - public V1ContainerState State { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - LastState?.Validate(); - State?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ControllerRevision.cs b/src/KubernetesClient/generated/Models/V1ControllerRevision.cs deleted file mode 100644 index 5f6ae0dee..000000000 --- a/src/KubernetesClient/generated/Models/V1ControllerRevision.cs +++ /dev/null @@ -1,124 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1ControllerRevision - { - /// - /// Initializes a new instance of the V1ControllerRevision class. - /// - public V1ControllerRevision() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ControllerRevision class. - /// - /// - /// Revision indicates the revision of the state represented by Data. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Data is the serialized representation of the state. - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1ControllerRevision(long revision, string apiVersion = null, object data = null, string kind = null, V1ObjectMeta metadata = null) - { - ApiVersion = apiVersion; - Data = data; - Kind = kind; - Metadata = metadata; - Revision = revision; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Data is the serialized representation of the state. - /// - [JsonProperty(PropertyName = "data")] - public object Data { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Revision indicates the revision of the state represented by Data. - /// - [JsonProperty(PropertyName = "revision")] - public long Revision { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ControllerRevisionList.cs b/src/KubernetesClient/generated/Models/V1ControllerRevisionList.cs deleted file mode 100644 index b294b6bdc..000000000 --- a/src/KubernetesClient/generated/Models/V1ControllerRevisionList.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ControllerRevisionList is a resource containing a list of ControllerRevision - /// objects. - /// - public partial class V1ControllerRevisionList - { - /// - /// Initializes a new instance of the V1ControllerRevisionList class. - /// - public V1ControllerRevisionList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ControllerRevisionList class. - /// - /// - /// Items is the list of ControllerRevisions - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1ControllerRevisionList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is the list of ControllerRevisions - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CronJob.cs b/src/KubernetesClient/generated/Models/V1CronJob.cs deleted file mode 100644 index 19e74c6b7..000000000 --- a/src/KubernetesClient/generated/Models/V1CronJob.cs +++ /dev/null @@ -1,124 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CronJob represents the configuration of a single cron job. - /// - public partial class V1CronJob - { - /// - /// Initializes a new instance of the V1CronJob class. - /// - public V1CronJob() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CronJob class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Specification of the desired behavior of a cron job, including the schedule. - /// More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - /// - /// Current status of a cron job. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - public V1CronJob(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1CronJobSpec spec = null, V1CronJobStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Specification of the desired behavior of a cron job, including the schedule. - /// More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1CronJobSpec Spec { get; set; } - - /// - /// Current status of a cron job. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "status")] - public V1CronJobStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CronJobList.cs b/src/KubernetesClient/generated/Models/V1CronJobList.cs deleted file mode 100644 index a27670668..000000000 --- a/src/KubernetesClient/generated/Models/V1CronJobList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CronJobList is a collection of cron jobs. - /// - public partial class V1CronJobList - { - /// - /// Initializes a new instance of the V1CronJobList class. - /// - public V1CronJobList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CronJobList class. - /// - /// - /// items is the list of CronJobs. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1CronJobList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// items is the list of CronJobs. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CronJobSpec.cs b/src/KubernetesClient/generated/Models/V1CronJobSpec.cs deleted file mode 100644 index cc2b9b805..000000000 --- a/src/KubernetesClient/generated/Models/V1CronJobSpec.cs +++ /dev/null @@ -1,141 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CronJobSpec describes how the job execution will look like and when it will - /// actually run. - /// - public partial class V1CronJobSpec - { - /// - /// Initializes a new instance of the V1CronJobSpec class. - /// - public V1CronJobSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CronJobSpec class. - /// - /// - /// Specifies the job that will be created when executing a CronJob. - /// - /// - /// The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. - /// - /// - /// Specifies how to treat concurrent executions of a Job. Valid values are: - - /// "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids - /// concurrent runs, skipping next run if previous run hasn't finished yet; - - /// "Replace": cancels currently running job and replaces it with a new one - /// - /// - /// The number of failed finished jobs to retain. Value must be non-negative - /// integer. Defaults to 1. - /// - /// - /// Optional deadline in seconds for starting the job if it misses scheduled time - /// for any reason. Missed jobs executions will be counted as failed ones. - /// - /// - /// The number of successful finished jobs to retain. Value must be non-negative - /// integer. Defaults to 3. - /// - /// - /// This flag tells the controller to suspend subsequent executions, it does not - /// apply to already started executions. Defaults to false. - /// - public V1CronJobSpec(V1JobTemplateSpec jobTemplate, string schedule, string concurrencyPolicy = null, int? failedJobsHistoryLimit = null, long? startingDeadlineSeconds = null, int? successfulJobsHistoryLimit = null, bool? suspend = null) - { - ConcurrencyPolicy = concurrencyPolicy; - FailedJobsHistoryLimit = failedJobsHistoryLimit; - JobTemplate = jobTemplate; - Schedule = schedule; - StartingDeadlineSeconds = startingDeadlineSeconds; - SuccessfulJobsHistoryLimit = successfulJobsHistoryLimit; - Suspend = suspend; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Specifies how to treat concurrent executions of a Job. Valid values are: - - /// "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids - /// concurrent runs, skipping next run if previous run hasn't finished yet; - - /// "Replace": cancels currently running job and replaces it with a new one - /// - [JsonProperty(PropertyName = "concurrencyPolicy")] - public string ConcurrencyPolicy { get; set; } - - /// - /// The number of failed finished jobs to retain. Value must be non-negative - /// integer. Defaults to 1. - /// - [JsonProperty(PropertyName = "failedJobsHistoryLimit")] - public int? FailedJobsHistoryLimit { get; set; } - - /// - /// Specifies the job that will be created when executing a CronJob. - /// - [JsonProperty(PropertyName = "jobTemplate")] - public V1JobTemplateSpec JobTemplate { get; set; } - - /// - /// The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. - /// - [JsonProperty(PropertyName = "schedule")] - public string Schedule { get; set; } - - /// - /// Optional deadline in seconds for starting the job if it misses scheduled time - /// for any reason. Missed jobs executions will be counted as failed ones. - /// - [JsonProperty(PropertyName = "startingDeadlineSeconds")] - public long? StartingDeadlineSeconds { get; set; } - - /// - /// The number of successful finished jobs to retain. Value must be non-negative - /// integer. Defaults to 3. - /// - [JsonProperty(PropertyName = "successfulJobsHistoryLimit")] - public int? SuccessfulJobsHistoryLimit { get; set; } - - /// - /// This flag tells the controller to suspend subsequent executions, it does not - /// apply to already started executions. Defaults to false. - /// - [JsonProperty(PropertyName = "suspend")] - public bool? Suspend { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (JobTemplate == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "JobTemplate"); - } - JobTemplate?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CronJobStatus.cs b/src/KubernetesClient/generated/Models/V1CronJobStatus.cs deleted file mode 100644 index af32fdb69..000000000 --- a/src/KubernetesClient/generated/Models/V1CronJobStatus.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CronJobStatus represents the current state of a cron job. - /// - public partial class V1CronJobStatus - { - /// - /// Initializes a new instance of the V1CronJobStatus class. - /// - public V1CronJobStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CronJobStatus class. - /// - /// - /// A list of pointers to currently running jobs. - /// - /// - /// Information when was the last time the job was successfully scheduled. - /// - /// - /// Information when was the last time the job successfully completed. - /// - public V1CronJobStatus(IList active = null, System.DateTime? lastScheduleTime = null, System.DateTime? lastSuccessfulTime = null) - { - Active = active; - LastScheduleTime = lastScheduleTime; - LastSuccessfulTime = lastSuccessfulTime; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// A list of pointers to currently running jobs. - /// - [JsonProperty(PropertyName = "active")] - public IList Active { get; set; } - - /// - /// Information when was the last time the job was successfully scheduled. - /// - [JsonProperty(PropertyName = "lastScheduleTime")] - public System.DateTime? LastScheduleTime { get; set; } - - /// - /// Information when was the last time the job successfully completed. - /// - [JsonProperty(PropertyName = "lastSuccessfulTime")] - public System.DateTime? LastSuccessfulTime { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Active != null){ - foreach(var obj in Active) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CrossVersionObjectReference.cs b/src/KubernetesClient/generated/Models/V1CrossVersionObjectReference.cs deleted file mode 100644 index 2a4f25957..000000000 --- a/src/KubernetesClient/generated/Models/V1CrossVersionObjectReference.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CrossVersionObjectReference contains enough information to let you identify the - /// referred resource. - /// - public partial class V1CrossVersionObjectReference - { - /// - /// Initializes a new instance of the V1CrossVersionObjectReference class. - /// - public V1CrossVersionObjectReference() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CrossVersionObjectReference class. - /// - /// - /// Kind of the referent; More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - /// - /// - /// Name of the referent; More info: - /// http://kubernetes.io/docs/user-guide/identifiers#names - /// - /// - /// API version of the referent - /// - public V1CrossVersionObjectReference(string kind, string name, string apiVersion = null) - { - ApiVersion = apiVersion; - Kind = kind; - Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// API version of the referent - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind of the referent; More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Name of the referent; More info: - /// http://kubernetes.io/docs/user-guide/identifiers#names - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CustomResourceColumnDefinition.cs b/src/KubernetesClient/generated/Models/V1CustomResourceColumnDefinition.cs deleted file mode 100644 index a94e50ca4..000000000 --- a/src/KubernetesClient/generated/Models/V1CustomResourceColumnDefinition.cs +++ /dev/null @@ -1,129 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CustomResourceColumnDefinition specifies a column for server side printing. - /// - public partial class V1CustomResourceColumnDefinition - { - /// - /// Initializes a new instance of the V1CustomResourceColumnDefinition class. - /// - public V1CustomResourceColumnDefinition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CustomResourceColumnDefinition class. - /// - /// - /// jsonPath is a simple JSON path (i.e. with array notation) which is evaluated - /// against each custom resource to produce the value for this column. - /// - /// - /// name is a human readable name for the column. - /// - /// - /// type is an OpenAPI type definition for this column. See - /// https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types - /// for details. - /// - /// - /// description is a human readable description of this column. - /// - /// - /// format is an optional OpenAPI type definition for this column. The 'name' format - /// is applied to the primary identifier column to assist in clients identifying - /// column is the resource name. See - /// https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types - /// for details. - /// - /// - /// priority is an integer defining the relative importance of this column compared - /// to others. Lower numbers are considered higher priority. Columns that may be - /// omitted in limited space scenarios should be given a priority greater than 0. - /// - public V1CustomResourceColumnDefinition(string jsonPath, string name, string type, string description = null, string format = null, int? priority = null) - { - Description = description; - Format = format; - JsonPath = jsonPath; - Name = name; - Priority = priority; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// description is a human readable description of this column. - /// - [JsonProperty(PropertyName = "description")] - public string Description { get; set; } - - /// - /// format is an optional OpenAPI type definition for this column. The 'name' format - /// is applied to the primary identifier column to assist in clients identifying - /// column is the resource name. See - /// https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types - /// for details. - /// - [JsonProperty(PropertyName = "format")] - public string Format { get; set; } - - /// - /// jsonPath is a simple JSON path (i.e. with array notation) which is evaluated - /// against each custom resource to produce the value for this column. - /// - [JsonProperty(PropertyName = "jsonPath")] - public string JsonPath { get; set; } - - /// - /// name is a human readable name for the column. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// priority is an integer defining the relative importance of this column compared - /// to others. Lower numbers are considered higher priority. Columns that may be - /// omitted in limited space scenarios should be given a priority greater than 0. - /// - [JsonProperty(PropertyName = "priority")] - public int? Priority { get; set; } - - /// - /// type is an OpenAPI type definition for this column. See - /// https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types - /// for details. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CustomResourceConversion.cs b/src/KubernetesClient/generated/Models/V1CustomResourceConversion.cs deleted file mode 100644 index 5faaef2cb..000000000 --- a/src/KubernetesClient/generated/Models/V1CustomResourceConversion.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CustomResourceConversion describes how to convert different versions of a CR. - /// - public partial class V1CustomResourceConversion - { - /// - /// Initializes a new instance of the V1CustomResourceConversion class. - /// - public V1CustomResourceConversion() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CustomResourceConversion class. - /// - /// - /// strategy specifies how custom resources are converted between versions. Allowed - /// values are: - `None`: The converter only change the apiVersion and would not - /// touch any other field in the custom resource. - `Webhook`: API Server will call - /// to an external webhook to do the conversion. Additional information - /// is needed for this option. This requires spec.preserveUnknownFields to be false, - /// and spec.conversion.webhook to be set. - /// - /// - /// webhook describes how to call the conversion webhook. Required when `strategy` - /// is set to `Webhook`. - /// - public V1CustomResourceConversion(string strategy, V1WebhookConversion webhook = null) - { - Strategy = strategy; - Webhook = webhook; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// strategy specifies how custom resources are converted between versions. Allowed - /// values are: - `None`: The converter only change the apiVersion and would not - /// touch any other field in the custom resource. - `Webhook`: API Server will call - /// to an external webhook to do the conversion. Additional information - /// is needed for this option. This requires spec.preserveUnknownFields to be false, - /// and spec.conversion.webhook to be set. - /// - [JsonProperty(PropertyName = "strategy")] - public string Strategy { get; set; } - - /// - /// webhook describes how to call the conversion webhook. Required when `strategy` - /// is set to `Webhook`. - /// - [JsonProperty(PropertyName = "webhook")] - public V1WebhookConversion Webhook { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Webhook?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CustomResourceDefinition.cs b/src/KubernetesClient/generated/Models/V1CustomResourceDefinition.cs deleted file mode 100644 index 466100c4e..000000000 --- a/src/KubernetesClient/generated/Models/V1CustomResourceDefinition.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CustomResourceDefinition represents a resource that should be exposed on the API - /// server. Its name MUST be in the format <.spec.name>.<.spec.group>. - /// - public partial class V1CustomResourceDefinition - { - /// - /// Initializes a new instance of the V1CustomResourceDefinition class. - /// - public V1CustomResourceDefinition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CustomResourceDefinition class. - /// - /// - /// spec describes how the user wants the resources to appear - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// status indicates the actual state of the CustomResourceDefinition - /// - public V1CustomResourceDefinition(V1CustomResourceDefinitionSpec spec, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1CustomResourceDefinitionStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// spec describes how the user wants the resources to appear - /// - [JsonProperty(PropertyName = "spec")] - public V1CustomResourceDefinitionSpec Spec { get; set; } - - /// - /// status indicates the actual state of the CustomResourceDefinition - /// - [JsonProperty(PropertyName = "status")] - public V1CustomResourceDefinitionStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Spec == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Spec"); - } - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CustomResourceDefinitionCondition.cs b/src/KubernetesClient/generated/Models/V1CustomResourceDefinitionCondition.cs deleted file mode 100644 index ea49dc6d1..000000000 --- a/src/KubernetesClient/generated/Models/V1CustomResourceDefinitionCondition.cs +++ /dev/null @@ -1,108 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CustomResourceDefinitionCondition contains details for the current condition of - /// this pod. - /// - public partial class V1CustomResourceDefinitionCondition - { - /// - /// Initializes a new instance of the V1CustomResourceDefinitionCondition class. - /// - public V1CustomResourceDefinitionCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CustomResourceDefinitionCondition class. - /// - /// - /// status is the status of the condition. Can be True, False, Unknown. - /// - /// - /// type is the type of the condition. Types include Established, NamesAccepted and - /// Terminating. - /// - /// - /// lastTransitionTime last time the condition transitioned from one status to - /// another. - /// - /// - /// message is a human-readable message indicating details about last transition. - /// - /// - /// reason is a unique, one-word, CamelCase reason for the condition's last - /// transition. - /// - public V1CustomResourceDefinitionCondition(string status, string type, System.DateTime? lastTransitionTime = null, string message = null, string reason = null) - { - LastTransitionTime = lastTransitionTime; - Message = message; - Reason = reason; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// lastTransitionTime last time the condition transitioned from one status to - /// another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// message is a human-readable message indicating details about last transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// reason is a unique, one-word, CamelCase reason for the condition's last - /// transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// status is the status of the condition. Can be True, False, Unknown. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// type is the type of the condition. Types include Established, NamesAccepted and - /// Terminating. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CustomResourceDefinitionList.cs b/src/KubernetesClient/generated/Models/V1CustomResourceDefinitionList.cs deleted file mode 100644 index 4010c09fb..000000000 --- a/src/KubernetesClient/generated/Models/V1CustomResourceDefinitionList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CustomResourceDefinitionList is a list of CustomResourceDefinition objects. - /// - public partial class V1CustomResourceDefinitionList - { - /// - /// Initializes a new instance of the V1CustomResourceDefinitionList class. - /// - public V1CustomResourceDefinitionList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CustomResourceDefinitionList class. - /// - /// - /// items list individual CustomResourceDefinition objects - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1CustomResourceDefinitionList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// items list individual CustomResourceDefinition objects - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CustomResourceDefinitionNames.cs b/src/KubernetesClient/generated/Models/V1CustomResourceDefinitionNames.cs deleted file mode 100644 index 270fef9d8..000000000 --- a/src/KubernetesClient/generated/Models/V1CustomResourceDefinitionNames.cs +++ /dev/null @@ -1,134 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CustomResourceDefinitionNames indicates the names to serve this - /// CustomResourceDefinition - /// - public partial class V1CustomResourceDefinitionNames - { - /// - /// Initializes a new instance of the V1CustomResourceDefinitionNames class. - /// - public V1CustomResourceDefinitionNames() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CustomResourceDefinitionNames class. - /// - /// - /// kind is the serialized kind of the resource. It is normally CamelCase and - /// singular. Custom resource instances will use this value as the `kind` attribute - /// in API calls. - /// - /// - /// plural is the plural name of the resource to serve. The custom resources are - /// served under `/apis/<group>/<version>/.../<plural>`. Must match the name of the - /// CustomResourceDefinition (in the form `<names.plural>.<group>`). Must be all - /// lowercase. - /// - /// - /// categories is a list of grouped resources this custom resource belongs to (e.g. - /// 'all'). This is published in API discovery documents, and used by clients to - /// support invocations like `kubectl get all`. - /// - /// - /// listKind is the serialized kind of the list for this resource. Defaults to - /// "`kind`List". - /// - /// - /// shortNames are short names for the resource, exposed in API discovery documents, - /// and used by clients to support invocations like `kubectl get <shortname>`. It - /// must be all lowercase. - /// - /// - /// singular is the singular name of the resource. It must be all lowercase. - /// Defaults to lowercased `kind`. - /// - public V1CustomResourceDefinitionNames(string kind, string plural, IList categories = null, string listKind = null, IList shortNames = null, string singular = null) - { - Categories = categories; - Kind = kind; - ListKind = listKind; - Plural = plural; - ShortNames = shortNames; - Singular = singular; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// categories is a list of grouped resources this custom resource belongs to (e.g. - /// 'all'). This is published in API discovery documents, and used by clients to - /// support invocations like `kubectl get all`. - /// - [JsonProperty(PropertyName = "categories")] - public IList Categories { get; set; } - - /// - /// kind is the serialized kind of the resource. It is normally CamelCase and - /// singular. Custom resource instances will use this value as the `kind` attribute - /// in API calls. - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// listKind is the serialized kind of the list for this resource. Defaults to - /// "`kind`List". - /// - [JsonProperty(PropertyName = "listKind")] - public string ListKind { get; set; } - - /// - /// plural is the plural name of the resource to serve. The custom resources are - /// served under `/apis/<group>/<version>/.../<plural>`. Must match the name of the - /// CustomResourceDefinition (in the form `<names.plural>.<group>`). Must be all - /// lowercase. - /// - [JsonProperty(PropertyName = "plural")] - public string Plural { get; set; } - - /// - /// shortNames are short names for the resource, exposed in API discovery documents, - /// and used by clients to support invocations like `kubectl get <shortname>`. It - /// must be all lowercase. - /// - [JsonProperty(PropertyName = "shortNames")] - public IList ShortNames { get; set; } - - /// - /// singular is the singular name of the resource. It must be all lowercase. - /// Defaults to lowercased `kind`. - /// - [JsonProperty(PropertyName = "singular")] - public string Singular { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CustomResourceDefinitionSpec.cs b/src/KubernetesClient/generated/Models/V1CustomResourceDefinitionSpec.cs deleted file mode 100644 index ac368fd5e..000000000 --- a/src/KubernetesClient/generated/Models/V1CustomResourceDefinitionSpec.cs +++ /dev/null @@ -1,159 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CustomResourceDefinitionSpec describes how a user wants their resource to appear - /// - public partial class V1CustomResourceDefinitionSpec - { - /// - /// Initializes a new instance of the V1CustomResourceDefinitionSpec class. - /// - public V1CustomResourceDefinitionSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CustomResourceDefinitionSpec class. - /// - /// - /// group is the API group of the defined custom resource. The custom resources are - /// served under `/apis/<group>/...`. Must match the name of the - /// CustomResourceDefinition (in the form `<names.plural>.<group>`). - /// - /// - /// names specify the resource and kind names for the custom resource. - /// - /// - /// scope indicates whether the defined custom resource is cluster- or - /// namespace-scoped. Allowed values are `Cluster` and `Namespaced`. - /// - /// - /// versions is the list of all API versions of the defined custom resource. Version - /// names are used to compute the order in which served versions are listed in API - /// discovery. If the version string is "kube-like", it will sort above non - /// "kube-like" version strings, which are ordered lexicographically. "Kube-like" - /// versions start with a "v", then are followed by a number (the major version), - /// then optionally the string "alpha" or "beta" and another number (the minor - /// version). These are sorted first by GA > beta > alpha (where GA is a version - /// with no suffix such as beta or alpha), and then by comparing major version, then - /// minor version. An example sorted list of versions: v10, v2, v1, v11beta2, - /// v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. - /// - /// - /// conversion defines conversion settings for the CRD. - /// - /// - /// preserveUnknownFields indicates that object fields which are not specified in - /// the OpenAPI schema should be preserved when persisting to storage. apiVersion, - /// kind, metadata and known fields inside metadata are always preserved. This field - /// is deprecated in favor of setting `x-preserve-unknown-fields` to true in - /// `spec.versions[*].schema.openAPIV3Schema`. See - /// https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields - /// for details. - /// - public V1CustomResourceDefinitionSpec(string group, V1CustomResourceDefinitionNames names, string scope, IList versions, V1CustomResourceConversion conversion = null, bool? preserveUnknownFields = null) - { - Conversion = conversion; - Group = group; - Names = names; - PreserveUnknownFields = preserveUnknownFields; - Scope = scope; - Versions = versions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// conversion defines conversion settings for the CRD. - /// - [JsonProperty(PropertyName = "conversion")] - public V1CustomResourceConversion Conversion { get; set; } - - /// - /// group is the API group of the defined custom resource. The custom resources are - /// served under `/apis/<group>/...`. Must match the name of the - /// CustomResourceDefinition (in the form `<names.plural>.<group>`). - /// - [JsonProperty(PropertyName = "group")] - public string Group { get; set; } - - /// - /// names specify the resource and kind names for the custom resource. - /// - [JsonProperty(PropertyName = "names")] - public V1CustomResourceDefinitionNames Names { get; set; } - - /// - /// preserveUnknownFields indicates that object fields which are not specified in - /// the OpenAPI schema should be preserved when persisting to storage. apiVersion, - /// kind, metadata and known fields inside metadata are always preserved. This field - /// is deprecated in favor of setting `x-preserve-unknown-fields` to true in - /// `spec.versions[*].schema.openAPIV3Schema`. See - /// https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields - /// for details. - /// - [JsonProperty(PropertyName = "preserveUnknownFields")] - public bool? PreserveUnknownFields { get; set; } - - /// - /// scope indicates whether the defined custom resource is cluster- or - /// namespace-scoped. Allowed values are `Cluster` and `Namespaced`. - /// - [JsonProperty(PropertyName = "scope")] - public string Scope { get; set; } - - /// - /// versions is the list of all API versions of the defined custom resource. Version - /// names are used to compute the order in which served versions are listed in API - /// discovery. If the version string is "kube-like", it will sort above non - /// "kube-like" version strings, which are ordered lexicographically. "Kube-like" - /// versions start with a "v", then are followed by a number (the major version), - /// then optionally the string "alpha" or "beta" and another number (the minor - /// version). These are sorted first by GA > beta > alpha (where GA is a version - /// with no suffix such as beta or alpha), and then by comparing major version, then - /// minor version. An example sorted list of versions: v10, v2, v1, v11beta2, - /// v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. - /// - [JsonProperty(PropertyName = "versions")] - public IList Versions { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Names == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Names"); - } - Conversion?.Validate(); - Names?.Validate(); - if (Versions != null){ - foreach(var obj in Versions) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CustomResourceDefinitionStatus.cs b/src/KubernetesClient/generated/Models/V1CustomResourceDefinitionStatus.cs deleted file mode 100644 index 959e4f028..000000000 --- a/src/KubernetesClient/generated/Models/V1CustomResourceDefinitionStatus.cs +++ /dev/null @@ -1,101 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CustomResourceDefinitionStatus indicates the state of the - /// CustomResourceDefinition - /// - public partial class V1CustomResourceDefinitionStatus - { - /// - /// Initializes a new instance of the V1CustomResourceDefinitionStatus class. - /// - public V1CustomResourceDefinitionStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CustomResourceDefinitionStatus class. - /// - /// - /// acceptedNames are the names that are actually being used to serve discovery. - /// They may be different than the names in spec. - /// - /// - /// conditions indicate state for particular aspects of a CustomResourceDefinition - /// - /// - /// storedVersions lists all versions of CustomResources that were ever persisted. - /// Tracking these versions allows a migration path for stored versions in etcd. The - /// field is mutable so a migration controller can finish a migration to another - /// version (ensuring no old objects are left in storage), and then remove the rest - /// of the versions from this list. Versions may not be removed from `spec.versions` - /// while they exist in this list. - /// - public V1CustomResourceDefinitionStatus(V1CustomResourceDefinitionNames acceptedNames = null, IList conditions = null, IList storedVersions = null) - { - AcceptedNames = acceptedNames; - Conditions = conditions; - StoredVersions = storedVersions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// acceptedNames are the names that are actually being used to serve discovery. - /// They may be different than the names in spec. - /// - [JsonProperty(PropertyName = "acceptedNames")] - public V1CustomResourceDefinitionNames AcceptedNames { get; set; } - - /// - /// conditions indicate state for particular aspects of a CustomResourceDefinition - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "storedVersions")] - public IList StoredVersions { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - AcceptedNames?.Validate(); - if (Conditions != null){ - foreach(var obj in Conditions) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CustomResourceDefinitionVersion.cs b/src/KubernetesClient/generated/Models/V1CustomResourceDefinitionVersion.cs deleted file mode 100644 index 1abfcdbe8..000000000 --- a/src/KubernetesClient/generated/Models/V1CustomResourceDefinitionVersion.cs +++ /dev/null @@ -1,165 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CustomResourceDefinitionVersion describes a version for CRD. - /// - public partial class V1CustomResourceDefinitionVersion - { - /// - /// Initializes a new instance of the V1CustomResourceDefinitionVersion class. - /// - public V1CustomResourceDefinitionVersion() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CustomResourceDefinitionVersion class. - /// - /// - /// name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are - /// served under this version at `/apis/<group>/<version>/...` if `served` is true. - /// - /// - /// served is a flag enabling/disabling this version from being served via REST APIs - /// - /// - /// storage indicates this version should be used when persisting custom resources - /// to storage. There must be exactly one version with storage=true. - /// - /// - /// additionalPrinterColumns specifies additional columns returned in Table output. - /// See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables - /// for details. If no columns are specified, a single column displaying the age of - /// the custom resource is used. - /// - /// - /// deprecated indicates this version of the custom resource API is deprecated. When - /// set to true, API requests to this version receive a warning header in the server - /// response. Defaults to false. - /// - /// - /// deprecationWarning overrides the default warning returned to API clients. May - /// only be set when `deprecated` is true. The default warning indicates this - /// version is deprecated and recommends use of the newest served version of equal - /// or greater stability, if one exists. - /// - /// - /// schema describes the schema used for validation, pruning, and defaulting of this - /// version of the custom resource. - /// - /// - /// subresources specify what subresources this version of the defined custom - /// resource have. - /// - public V1CustomResourceDefinitionVersion(string name, bool served, bool storage, IList additionalPrinterColumns = null, bool? deprecated = null, string deprecationWarning = null, V1CustomResourceValidation schema = null, V1CustomResourceSubresources subresources = null) - { - AdditionalPrinterColumns = additionalPrinterColumns; - Deprecated = deprecated; - DeprecationWarning = deprecationWarning; - Name = name; - Schema = schema; - Served = served; - Storage = storage; - Subresources = subresources; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// additionalPrinterColumns specifies additional columns returned in Table output. - /// See - /// https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables - /// for details. If no columns are specified, a single column displaying the age of - /// the custom resource is used. - /// - [JsonProperty(PropertyName = "additionalPrinterColumns")] - public IList AdditionalPrinterColumns { get; set; } - - /// - /// deprecated indicates this version of the custom resource API is deprecated. When - /// set to true, API requests to this version receive a warning header in the server - /// response. Defaults to false. - /// - [JsonProperty(PropertyName = "deprecated")] - public bool? Deprecated { get; set; } - - /// - /// deprecationWarning overrides the default warning returned to API clients. May - /// only be set when `deprecated` is true. The default warning indicates this - /// version is deprecated and recommends use of the newest served version of equal - /// or greater stability, if one exists. - /// - [JsonProperty(PropertyName = "deprecationWarning")] - public string DeprecationWarning { get; set; } - - /// - /// name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are - /// served under this version at `/apis/<group>/<version>/...` if `served` is true. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// schema describes the schema used for validation, pruning, and defaulting of this - /// version of the custom resource. - /// - [JsonProperty(PropertyName = "schema")] - public V1CustomResourceValidation Schema { get; set; } - - /// - /// served is a flag enabling/disabling this version from being served via REST APIs - /// - [JsonProperty(PropertyName = "served")] - public bool Served { get; set; } - - /// - /// storage indicates this version should be used when persisting custom resources - /// to storage. There must be exactly one version with storage=true. - /// - [JsonProperty(PropertyName = "storage")] - public bool Storage { get; set; } - - /// - /// subresources specify what subresources this version of the defined custom - /// resource have. - /// - [JsonProperty(PropertyName = "subresources")] - public V1CustomResourceSubresources Subresources { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (AdditionalPrinterColumns != null){ - foreach(var obj in AdditionalPrinterColumns) - { - obj.Validate(); - } - } - Schema?.Validate(); - Subresources?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CustomResourceSubresourceScale.cs b/src/KubernetesClient/generated/Models/V1CustomResourceSubresourceScale.cs deleted file mode 100644 index 1ba84a7cc..000000000 --- a/src/KubernetesClient/generated/Models/V1CustomResourceSubresourceScale.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CustomResourceSubresourceScale defines how to serve the scale subresource for - /// CustomResources. - /// - public partial class V1CustomResourceSubresourceScale - { - /// - /// Initializes a new instance of the V1CustomResourceSubresourceScale class. - /// - public V1CustomResourceSubresourceScale() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CustomResourceSubresourceScale class. - /// - /// - /// specReplicasPath defines the JSON path inside of a custom resource that - /// corresponds to Scale `spec.replicas`. Only JSON paths without the array notation - /// are allowed. Must be a JSON Path under `.spec`. If there is no value under the - /// given path in the custom resource, the `/scale` subresource will return an error - /// on GET. - /// - /// - /// statusReplicasPath defines the JSON path inside of a custom resource that - /// corresponds to Scale `status.replicas`. Only JSON paths without the array - /// notation are allowed. Must be a JSON Path under `.status`. If there is no value - /// under the given path in the custom resource, the `status.replicas` value in the - /// `/scale` subresource will default to 0. - /// - /// - /// labelSelectorPath defines the JSON path inside of a custom resource that - /// corresponds to Scale `status.selector`. Only JSON paths without the array - /// notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be - /// set to work with HorizontalPodAutoscaler. The field pointed by this JSON path - /// must be a string field (not a complex selector struct) which contains a - /// serialized label selector in string form. More info: - /// https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource - /// If there is no value under the given path in the custom resource, the - /// `status.selector` value in the `/scale` subresource will default to the empty - /// string. - /// - public V1CustomResourceSubresourceScale(string specReplicasPath, string statusReplicasPath, string labelSelectorPath = null) - { - LabelSelectorPath = labelSelectorPath; - SpecReplicasPath = specReplicasPath; - StatusReplicasPath = statusReplicasPath; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// labelSelectorPath defines the JSON path inside of a custom resource that - /// corresponds to Scale `status.selector`. Only JSON paths without the array - /// notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be - /// set to work with HorizontalPodAutoscaler. The field pointed by this JSON path - /// must be a string field (not a complex selector struct) which contains a - /// serialized label selector in string form. More info: - /// https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource - /// If there is no value under the given path in the custom resource, the - /// `status.selector` value in the `/scale` subresource will default to the empty - /// string. - /// - [JsonProperty(PropertyName = "labelSelectorPath")] - public string LabelSelectorPath { get; set; } - - /// - /// specReplicasPath defines the JSON path inside of a custom resource that - /// corresponds to Scale `spec.replicas`. Only JSON paths without the array notation - /// are allowed. Must be a JSON Path under `.spec`. If there is no value under the - /// given path in the custom resource, the `/scale` subresource will return an error - /// on GET. - /// - [JsonProperty(PropertyName = "specReplicasPath")] - public string SpecReplicasPath { get; set; } - - /// - /// statusReplicasPath defines the JSON path inside of a custom resource that - /// corresponds to Scale `status.replicas`. Only JSON paths without the array - /// notation are allowed. Must be a JSON Path under `.status`. If there is no value - /// under the given path in the custom resource, the `status.replicas` value in the - /// `/scale` subresource will default to 0. - /// - [JsonProperty(PropertyName = "statusReplicasPath")] - public string StatusReplicasPath { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CustomResourceSubresources.cs b/src/KubernetesClient/generated/Models/V1CustomResourceSubresources.cs deleted file mode 100644 index 0ba996b65..000000000 --- a/src/KubernetesClient/generated/Models/V1CustomResourceSubresources.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CustomResourceSubresources defines the status and scale subresources for - /// CustomResources. - /// - public partial class V1CustomResourceSubresources - { - /// - /// Initializes a new instance of the V1CustomResourceSubresources class. - /// - public V1CustomResourceSubresources() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CustomResourceSubresources class. - /// - /// - /// scale indicates the custom resource should serve a `/scale` subresource that - /// returns an `autoscaling/v1` Scale object. - /// - /// - /// status indicates the custom resource should serve a `/status` subresource. When - /// enabled: 1. requests to the custom resource primary endpoint ignore changes to - /// the `status` stanza of the object. 2. requests to the custom resource `/status` - /// subresource ignore changes to anything other than the `status` stanza of the - /// object. - /// - public V1CustomResourceSubresources(V1CustomResourceSubresourceScale scale = null, object status = null) - { - Scale = scale; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// scale indicates the custom resource should serve a `/scale` subresource that - /// returns an `autoscaling/v1` Scale object. - /// - [JsonProperty(PropertyName = "scale")] - public V1CustomResourceSubresourceScale Scale { get; set; } - - /// - /// status indicates the custom resource should serve a `/status` subresource. When - /// enabled: 1. requests to the custom resource primary endpoint ignore changes to - /// the `status` stanza of the object. 2. requests to the custom resource `/status` - /// subresource ignore changes to anything other than the `status` stanza of the - /// object. - /// - [JsonProperty(PropertyName = "status")] - public object Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Scale?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1CustomResourceValidation.cs b/src/KubernetesClient/generated/Models/V1CustomResourceValidation.cs deleted file mode 100644 index f77f14204..000000000 --- a/src/KubernetesClient/generated/Models/V1CustomResourceValidation.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CustomResourceValidation is a list of validation methods for CustomResources. - /// - public partial class V1CustomResourceValidation - { - /// - /// Initializes a new instance of the V1CustomResourceValidation class. - /// - public V1CustomResourceValidation() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1CustomResourceValidation class. - /// - /// - /// openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. - /// - public V1CustomResourceValidation(V1JSONSchemaProps openAPIV3Schema = null) - { - OpenAPIV3Schema = openAPIV3Schema; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. - /// - [JsonProperty(PropertyName = "openAPIV3Schema")] - public V1JSONSchemaProps OpenAPIV3Schema { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - OpenAPIV3Schema?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1DaemonEndpoint.cs b/src/KubernetesClient/generated/Models/V1DaemonEndpoint.cs deleted file mode 100644 index 758f60d13..000000000 --- a/src/KubernetesClient/generated/Models/V1DaemonEndpoint.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// DaemonEndpoint contains information about a single Daemon endpoint. - /// - public partial class V1DaemonEndpoint - { - /// - /// Initializes a new instance of the V1DaemonEndpoint class. - /// - public V1DaemonEndpoint() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1DaemonEndpoint class. - /// - /// - /// Port number of the given endpoint. - /// - public V1DaemonEndpoint(int port) - { - Port = port; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Port number of the given endpoint. - /// - [JsonProperty(PropertyName = "Port")] - public int Port { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1DaemonSet.cs b/src/KubernetesClient/generated/Models/V1DaemonSet.cs deleted file mode 100644 index 456ff95da..000000000 --- a/src/KubernetesClient/generated/Models/V1DaemonSet.cs +++ /dev/null @@ -1,124 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// DaemonSet represents the configuration of a daemon set. - /// - public partial class V1DaemonSet - { - /// - /// Initializes a new instance of the V1DaemonSet class. - /// - public V1DaemonSet() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1DaemonSet class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// The desired behavior of this daemon set. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - /// - /// The current status of this daemon set. This data may be out of date by some - /// window of time. Populated by the system. Read-only. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - public V1DaemonSet(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1DaemonSetSpec spec = null, V1DaemonSetStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// The desired behavior of this daemon set. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1DaemonSetSpec Spec { get; set; } - - /// - /// The current status of this daemon set. This data may be out of date by some - /// window of time. Populated by the system. Read-only. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "status")] - public V1DaemonSetStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1DaemonSetCondition.cs b/src/KubernetesClient/generated/Models/V1DaemonSetCondition.cs deleted file mode 100644 index 13f161037..000000000 --- a/src/KubernetesClient/generated/Models/V1DaemonSetCondition.cs +++ /dev/null @@ -1,101 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// DaemonSetCondition describes the state of a DaemonSet at a certain point. - /// - public partial class V1DaemonSetCondition - { - /// - /// Initializes a new instance of the V1DaemonSetCondition class. - /// - public V1DaemonSetCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1DaemonSetCondition class. - /// - /// - /// Status of the condition, one of True, False, Unknown. - /// - /// - /// Type of DaemonSet condition. - /// - /// - /// Last time the condition transitioned from one status to another. - /// - /// - /// A human readable message indicating details about the transition. - /// - /// - /// The reason for the condition's last transition. - /// - public V1DaemonSetCondition(string status, string type, System.DateTime? lastTransitionTime = null, string message = null, string reason = null) - { - LastTransitionTime = lastTransitionTime; - Message = message; - Reason = reason; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Last time the condition transitioned from one status to another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// A human readable message indicating details about the transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// The reason for the condition's last transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Status of the condition, one of True, False, Unknown. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Type of DaemonSet condition. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1DaemonSetList.cs b/src/KubernetesClient/generated/Models/V1DaemonSetList.cs deleted file mode 100644 index e834f7a99..000000000 --- a/src/KubernetesClient/generated/Models/V1DaemonSetList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// DaemonSetList is a collection of daemon sets. - /// - public partial class V1DaemonSetList - { - /// - /// Initializes a new instance of the V1DaemonSetList class. - /// - public V1DaemonSetList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1DaemonSetList class. - /// - /// - /// A list of daemon sets. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1DaemonSetList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// A list of daemon sets. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1DaemonSetSpec.cs b/src/KubernetesClient/generated/Models/V1DaemonSetSpec.cs deleted file mode 100644 index b1e4bfb61..000000000 --- a/src/KubernetesClient/generated/Models/V1DaemonSetSpec.cs +++ /dev/null @@ -1,128 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// DaemonSetSpec is the specification of a daemon set. - /// - public partial class V1DaemonSetSpec - { - /// - /// Initializes a new instance of the V1DaemonSetSpec class. - /// - public V1DaemonSetSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1DaemonSetSpec class. - /// - /// - /// A label query over pods that are managed by the daemon set. Must match in order - /// to be controlled. It must match the pod template's labels. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - /// - /// - /// An object that describes the pod that will be created. The DaemonSet will create - /// exactly one copy of this pod on every node that matches the template's node - /// selector (or on every node if no node selector is specified). More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - /// - /// - /// The minimum number of seconds for which a newly created DaemonSet pod should be - /// ready without any of its container crashing, for it to be considered available. - /// Defaults to 0 (pod will be considered available as soon as it is ready). - /// - /// - /// The number of old history to retain to allow rollback. This is a pointer to - /// distinguish between explicit zero and not specified. Defaults to 10. - /// - /// - /// An update strategy to replace existing DaemonSet pods with new pods. - /// - public V1DaemonSetSpec(V1LabelSelector selector, V1PodTemplateSpec template, int? minReadySeconds = null, int? revisionHistoryLimit = null, V1DaemonSetUpdateStrategy updateStrategy = null) - { - MinReadySeconds = minReadySeconds; - RevisionHistoryLimit = revisionHistoryLimit; - Selector = selector; - Template = template; - UpdateStrategy = updateStrategy; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The minimum number of seconds for which a newly created DaemonSet pod should be - /// ready without any of its container crashing, for it to be considered available. - /// Defaults to 0 (pod will be considered available as soon as it is ready). - /// - [JsonProperty(PropertyName = "minReadySeconds")] - public int? MinReadySeconds { get; set; } - - /// - /// The number of old history to retain to allow rollback. This is a pointer to - /// distinguish between explicit zero and not specified. Defaults to 10. - /// - [JsonProperty(PropertyName = "revisionHistoryLimit")] - public int? RevisionHistoryLimit { get; set; } - - /// - /// A label query over pods that are managed by the daemon set. Must match in order - /// to be controlled. It must match the pod template's labels. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - /// - [JsonProperty(PropertyName = "selector")] - public V1LabelSelector Selector { get; set; } - - /// - /// An object that describes the pod that will be created. The DaemonSet will create - /// exactly one copy of this pod on every node that matches the template's node - /// selector (or on every node if no node selector is specified). More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - /// - [JsonProperty(PropertyName = "template")] - public V1PodTemplateSpec Template { get; set; } - - /// - /// An update strategy to replace existing DaemonSet pods with new pods. - /// - [JsonProperty(PropertyName = "updateStrategy")] - public V1DaemonSetUpdateStrategy UpdateStrategy { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Selector == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Selector"); - } - if (Template == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Template"); - } - Selector?.Validate(); - Template?.Validate(); - UpdateStrategy?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1DaemonSetStatus.cs b/src/KubernetesClient/generated/Models/V1DaemonSetStatus.cs deleted file mode 100644 index 7256c35f4..000000000 --- a/src/KubernetesClient/generated/Models/V1DaemonSetStatus.cs +++ /dev/null @@ -1,181 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// DaemonSetStatus represents the current status of a daemon set. - /// - public partial class V1DaemonSetStatus - { - /// - /// Initializes a new instance of the V1DaemonSetStatus class. - /// - public V1DaemonSetStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1DaemonSetStatus class. - /// - /// - /// The number of nodes that are running at least 1 daemon pod and are supposed to - /// run the daemon pod. More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - /// - /// - /// The total number of nodes that should be running the daemon pod (including nodes - /// correctly running the daemon pod). More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - /// - /// - /// The number of nodes that are running the daemon pod, but are not supposed to run - /// the daemon pod. More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - /// - /// - /// The number of nodes that should be running the daemon pod and have one or more - /// of the daemon pod running and ready. - /// - /// - /// Count of hash collisions for the DaemonSet. The DaemonSet controller uses this - /// field as a collision avoidance mechanism when it needs to create the name for - /// the newest ControllerRevision. - /// - /// - /// Represents the latest available observations of a DaemonSet's current state. - /// - /// - /// The number of nodes that should be running the daemon pod and have one or more - /// of the daemon pod running and available (ready for at least - /// spec.minReadySeconds) - /// - /// - /// The number of nodes that should be running the daemon pod and have none of the - /// daemon pod running and available (ready for at least spec.minReadySeconds) - /// - /// - /// The most recent generation observed by the daemon set controller. - /// - /// - /// The total number of nodes that are running updated daemon pod - /// - public V1DaemonSetStatus(int currentNumberScheduled, int desiredNumberScheduled, int numberMisscheduled, int numberReady, int? collisionCount = null, IList conditions = null, int? numberAvailable = null, int? numberUnavailable = null, long? observedGeneration = null, int? updatedNumberScheduled = null) - { - CollisionCount = collisionCount; - Conditions = conditions; - CurrentNumberScheduled = currentNumberScheduled; - DesiredNumberScheduled = desiredNumberScheduled; - NumberAvailable = numberAvailable; - NumberMisscheduled = numberMisscheduled; - NumberReady = numberReady; - NumberUnavailable = numberUnavailable; - ObservedGeneration = observedGeneration; - UpdatedNumberScheduled = updatedNumberScheduled; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Count of hash collisions for the DaemonSet. The DaemonSet controller uses this - /// field as a collision avoidance mechanism when it needs to create the name for - /// the newest ControllerRevision. - /// - [JsonProperty(PropertyName = "collisionCount")] - public int? CollisionCount { get; set; } - - /// - /// Represents the latest available observations of a DaemonSet's current state. - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// The number of nodes that are running at least 1 daemon pod and are supposed to - /// run the daemon pod. More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - /// - [JsonProperty(PropertyName = "currentNumberScheduled")] - public int CurrentNumberScheduled { get; set; } - - /// - /// The total number of nodes that should be running the daemon pod (including nodes - /// correctly running the daemon pod). More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - /// - [JsonProperty(PropertyName = "desiredNumberScheduled")] - public int DesiredNumberScheduled { get; set; } - - /// - /// The number of nodes that should be running the daemon pod and have one or more - /// of the daemon pod running and available (ready for at least - /// spec.minReadySeconds) - /// - [JsonProperty(PropertyName = "numberAvailable")] - public int? NumberAvailable { get; set; } - - /// - /// The number of nodes that are running the daemon pod, but are not supposed to run - /// the daemon pod. More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - /// - [JsonProperty(PropertyName = "numberMisscheduled")] - public int NumberMisscheduled { get; set; } - - /// - /// The number of nodes that should be running the daemon pod and have one or more - /// of the daemon pod running and ready. - /// - [JsonProperty(PropertyName = "numberReady")] - public int NumberReady { get; set; } - - /// - /// The number of nodes that should be running the daemon pod and have none of the - /// daemon pod running and available (ready for at least spec.minReadySeconds) - /// - [JsonProperty(PropertyName = "numberUnavailable")] - public int? NumberUnavailable { get; set; } - - /// - /// The most recent generation observed by the daemon set controller. - /// - [JsonProperty(PropertyName = "observedGeneration")] - public long? ObservedGeneration { get; set; } - - /// - /// The total number of nodes that are running updated daemon pod - /// - [JsonProperty(PropertyName = "updatedNumberScheduled")] - public int? UpdatedNumberScheduled { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Conditions != null){ - foreach(var obj in Conditions) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1DaemonSetUpdateStrategy.cs b/src/KubernetesClient/generated/Models/V1DaemonSetUpdateStrategy.cs deleted file mode 100644 index ffeaf5962..000000000 --- a/src/KubernetesClient/generated/Models/V1DaemonSetUpdateStrategy.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// DaemonSetUpdateStrategy is a struct used to control the update strategy for a - /// DaemonSet. - /// - public partial class V1DaemonSetUpdateStrategy - { - /// - /// Initializes a new instance of the V1DaemonSetUpdateStrategy class. - /// - public V1DaemonSetUpdateStrategy() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1DaemonSetUpdateStrategy class. - /// - /// - /// Rolling update config params. Present only if type = "RollingUpdate". - /// - /// - /// Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is - /// RollingUpdate. - /// - public V1DaemonSetUpdateStrategy(V1RollingUpdateDaemonSet rollingUpdate = null, string type = null) - { - RollingUpdate = rollingUpdate; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Rolling update config params. Present only if type = "RollingUpdate". - /// - [JsonProperty(PropertyName = "rollingUpdate")] - public V1RollingUpdateDaemonSet RollingUpdate { get; set; } - - /// - /// Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is - /// RollingUpdate. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - RollingUpdate?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1DeleteOptions.cs b/src/KubernetesClient/generated/Models/V1DeleteOptions.cs deleted file mode 100644 index 958dee1ed..000000000 --- a/src/KubernetesClient/generated/Models/V1DeleteOptions.cs +++ /dev/null @@ -1,166 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// DeleteOptions may be provided when deleting an API object. - /// - public partial class V1DeleteOptions - { - /// - /// Initializes a new instance of the V1DeleteOptions class. - /// - public V1DeleteOptions() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1DeleteOptions class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - /// - /// Must be fulfilled before a deletion is carried out. If not possible, a 409 - /// Conflict status will be returned. - /// - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - public V1DeleteOptions(string apiVersion = null, IList dryRun = null, long? gracePeriodSeconds = null, string kind = null, bool? orphanDependents = null, V1Preconditions preconditions = null, string propagationPolicy = null) - { - ApiVersion = apiVersion; - DryRun = dryRun; - GracePeriodSeconds = gracePeriodSeconds; - Kind = kind; - OrphanDependents = orphanDependents; - Preconditions = preconditions; - PropagationPolicy = propagationPolicy; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// When present, indicates that modifications should not be persisted. An invalid - /// or unrecognized dryRun directive will result in an error response and no further - /// processing of the request. Valid values are: - All: all dry run stages will be - /// processed - /// - [JsonProperty(PropertyName = "dryRun")] - public IList DryRun { get; set; } - - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this value - /// is nil, the default grace period for the specified type will be used. Defaults - /// to a per object value if not specified. zero means delete immediately. - /// - [JsonProperty(PropertyName = "gracePeriodSeconds")] - public long? GracePeriodSeconds { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Deprecated: please use the PropagationPolicy, this field will be deprecated in - /// 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" - /// finalizer will be added to/removed from the object's finalizers list. Either - /// this field or PropagationPolicy may be set, but not both. - /// - [JsonProperty(PropertyName = "orphanDependents")] - public bool? OrphanDependents { get; set; } - - /// - /// Must be fulfilled before a deletion is carried out. If not possible, a 409 - /// Conflict status will be returned. - /// - [JsonProperty(PropertyName = "preconditions")] - public V1Preconditions Preconditions { get; set; } - - /// - /// Whether and how garbage collection will be performed. Either this field or - /// OrphanDependents may be set, but not both. The default policy is decided by the - /// existing finalizer set in the metadata.finalizers and the resource-specific - /// default policy. Acceptable values are: 'Orphan' - orphan the dependents; - /// 'Background' - allow the garbage collector to delete the dependents in the - /// background; 'Foreground' - a cascading policy that deletes all dependents in the - /// foreground. - /// - [JsonProperty(PropertyName = "propagationPolicy")] - public string PropagationPolicy { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Preconditions?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Deployment.cs b/src/KubernetesClient/generated/Models/V1Deployment.cs deleted file mode 100644 index 9de1c9db4..000000000 --- a/src/KubernetesClient/generated/Models/V1Deployment.cs +++ /dev/null @@ -1,118 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Deployment enables declarative updates for Pods and ReplicaSets. - /// - public partial class V1Deployment - { - /// - /// Initializes a new instance of the V1Deployment class. - /// - public V1Deployment() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Deployment class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Specification of the desired behavior of the Deployment. - /// - /// - /// Most recently observed status of the Deployment. - /// - public V1Deployment(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1DeploymentSpec spec = null, V1DeploymentStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Specification of the desired behavior of the Deployment. - /// - [JsonProperty(PropertyName = "spec")] - public V1DeploymentSpec Spec { get; set; } - - /// - /// Most recently observed status of the Deployment. - /// - [JsonProperty(PropertyName = "status")] - public V1DeploymentStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1DeploymentCondition.cs b/src/KubernetesClient/generated/Models/V1DeploymentCondition.cs deleted file mode 100644 index 5d5189b2a..000000000 --- a/src/KubernetesClient/generated/Models/V1DeploymentCondition.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// DeploymentCondition describes the state of a deployment at a certain point. - /// - public partial class V1DeploymentCondition - { - /// - /// Initializes a new instance of the V1DeploymentCondition class. - /// - public V1DeploymentCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1DeploymentCondition class. - /// - /// - /// Status of the condition, one of True, False, Unknown. - /// - /// - /// Type of deployment condition. - /// - /// - /// Last time the condition transitioned from one status to another. - /// - /// - /// The last time this condition was updated. - /// - /// - /// A human readable message indicating details about the transition. - /// - /// - /// The reason for the condition's last transition. - /// - public V1DeploymentCondition(string status, string type, System.DateTime? lastTransitionTime = null, System.DateTime? lastUpdateTime = null, string message = null, string reason = null) - { - LastTransitionTime = lastTransitionTime; - LastUpdateTime = lastUpdateTime; - Message = message; - Reason = reason; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Last time the condition transitioned from one status to another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// The last time this condition was updated. - /// - [JsonProperty(PropertyName = "lastUpdateTime")] - public System.DateTime? LastUpdateTime { get; set; } - - /// - /// A human readable message indicating details about the transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// The reason for the condition's last transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Status of the condition, one of True, False, Unknown. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Type of deployment condition. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1DeploymentList.cs b/src/KubernetesClient/generated/Models/V1DeploymentList.cs deleted file mode 100644 index 2095e1040..000000000 --- a/src/KubernetesClient/generated/Models/V1DeploymentList.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// DeploymentList is a list of Deployments. - /// - public partial class V1DeploymentList - { - /// - /// Initializes a new instance of the V1DeploymentList class. - /// - public V1DeploymentList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1DeploymentList class. - /// - /// - /// Items is the list of Deployments. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. - /// - public V1DeploymentList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is the list of Deployments. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1DeploymentSpec.cs b/src/KubernetesClient/generated/Models/V1DeploymentSpec.cs deleted file mode 100644 index a6e814fa6..000000000 --- a/src/KubernetesClient/generated/Models/V1DeploymentSpec.cs +++ /dev/null @@ -1,162 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// DeploymentSpec is the specification of the desired behavior of the Deployment. - /// - public partial class V1DeploymentSpec - { - /// - /// Initializes a new instance of the V1DeploymentSpec class. - /// - public V1DeploymentSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1DeploymentSpec class. - /// - /// - /// Label selector for pods. Existing ReplicaSets whose pods are selected by this - /// will be the ones affected by this deployment. It must match the pod template's - /// labels. - /// - /// - /// Template describes the pods that will be created. - /// - /// - /// 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) - /// - /// - /// Indicates that the deployment is paused. - /// - /// - /// The maximum time in seconds for a deployment to make progress before it is - /// considered to be failed. The deployment controller will continue to process - /// failed deployments and a condition with a ProgressDeadlineExceeded reason will - /// be surfaced in the deployment status. Note that progress will not be estimated - /// during the time a deployment is paused. Defaults to 600s. - /// - /// - /// Number of desired pods. This is a pointer to distinguish between explicit zero - /// and not specified. Defaults to 1. - /// - /// - /// The number of old ReplicaSets to retain to allow rollback. This is a pointer to - /// distinguish between explicit zero and not specified. Defaults to 10. - /// - /// - /// The deployment strategy to use to replace existing pods with new ones. - /// - public V1DeploymentSpec(V1LabelSelector selector, V1PodTemplateSpec template, int? minReadySeconds = null, bool? paused = null, int? progressDeadlineSeconds = null, int? replicas = null, int? revisionHistoryLimit = null, V1DeploymentStrategy strategy = null) - { - MinReadySeconds = minReadySeconds; - Paused = paused; - ProgressDeadlineSeconds = progressDeadlineSeconds; - Replicas = replicas; - RevisionHistoryLimit = revisionHistoryLimit; - Selector = selector; - Strategy = strategy; - Template = template; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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) - /// - [JsonProperty(PropertyName = "minReadySeconds")] - public int? MinReadySeconds { get; set; } - - /// - /// Indicates that the deployment is paused. - /// - [JsonProperty(PropertyName = "paused")] - public bool? Paused { get; set; } - - /// - /// The maximum time in seconds for a deployment to make progress before it is - /// considered to be failed. The deployment controller will continue to process - /// failed deployments and a condition with a ProgressDeadlineExceeded reason will - /// be surfaced in the deployment status. Note that progress will not be estimated - /// during the time a deployment is paused. Defaults to 600s. - /// - [JsonProperty(PropertyName = "progressDeadlineSeconds")] - public int? ProgressDeadlineSeconds { get; set; } - - /// - /// Number of desired pods. This is a pointer to distinguish between explicit zero - /// and not specified. Defaults to 1. - /// - [JsonProperty(PropertyName = "replicas")] - public int? Replicas { get; set; } - - /// - /// The number of old ReplicaSets to retain to allow rollback. This is a pointer to - /// distinguish between explicit zero and not specified. Defaults to 10. - /// - [JsonProperty(PropertyName = "revisionHistoryLimit")] - public int? RevisionHistoryLimit { get; set; } - - /// - /// Label selector for pods. Existing ReplicaSets whose pods are selected by this - /// will be the ones affected by this deployment. It must match the pod template's - /// labels. - /// - [JsonProperty(PropertyName = "selector")] - public V1LabelSelector Selector { get; set; } - - /// - /// The deployment strategy to use to replace existing pods with new ones. - /// - [JsonProperty(PropertyName = "strategy")] - public V1DeploymentStrategy Strategy { get; set; } - - /// - /// Template describes the pods that will be created. - /// - [JsonProperty(PropertyName = "template")] - public V1PodTemplateSpec Template { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Selector == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Selector"); - } - if (Template == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Template"); - } - Selector?.Validate(); - Strategy?.Validate(); - Template?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1DeploymentStatus.cs b/src/KubernetesClient/generated/Models/V1DeploymentStatus.cs deleted file mode 100644 index 3af19101c..000000000 --- a/src/KubernetesClient/generated/Models/V1DeploymentStatus.cs +++ /dev/null @@ -1,153 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// DeploymentStatus is the most recently observed status of the Deployment. - /// - public partial class V1DeploymentStatus - { - /// - /// Initializes a new instance of the V1DeploymentStatus class. - /// - public V1DeploymentStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1DeploymentStatus class. - /// - /// - /// Total number of available pods (ready for at least minReadySeconds) targeted by - /// this deployment. - /// - /// - /// 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. - /// - /// - /// Represents the latest available observations of a deployment's current state. - /// - /// - /// The generation observed by the deployment controller. - /// - /// - /// Total number of ready pods targeted by this deployment. - /// - /// - /// Total number of non-terminated pods targeted by this deployment (their labels - /// match the selector). - /// - /// - /// 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. - /// - /// - /// Total number of non-terminated pods targeted by this deployment that have the - /// desired template spec. - /// - public V1DeploymentStatus(int? availableReplicas = null, int? collisionCount = null, IList conditions = null, long? observedGeneration = null, int? readyReplicas = null, int? replicas = null, int? unavailableReplicas = null, int? updatedReplicas = null) - { - AvailableReplicas = availableReplicas; - CollisionCount = collisionCount; - Conditions = conditions; - ObservedGeneration = observedGeneration; - ReadyReplicas = readyReplicas; - Replicas = replicas; - UnavailableReplicas = unavailableReplicas; - UpdatedReplicas = updatedReplicas; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Total number of available pods (ready for at least minReadySeconds) targeted by - /// this deployment. - /// - [JsonProperty(PropertyName = "availableReplicas")] - public int? AvailableReplicas { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "collisionCount")] - public int? CollisionCount { get; set; } - - /// - /// Represents the latest available observations of a deployment's current state. - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// The generation observed by the deployment controller. - /// - [JsonProperty(PropertyName = "observedGeneration")] - public long? ObservedGeneration { get; set; } - - /// - /// Total number of ready pods targeted by this deployment. - /// - [JsonProperty(PropertyName = "readyReplicas")] - public int? ReadyReplicas { get; set; } - - /// - /// Total number of non-terminated pods targeted by this deployment (their labels - /// match the selector). - /// - [JsonProperty(PropertyName = "replicas")] - public int? Replicas { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "unavailableReplicas")] - public int? UnavailableReplicas { get; set; } - - /// - /// Total number of non-terminated pods targeted by this deployment that have the - /// desired template spec. - /// - [JsonProperty(PropertyName = "updatedReplicas")] - public int? UpdatedReplicas { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Conditions != null){ - foreach(var obj in Conditions) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1DeploymentStrategy.cs b/src/KubernetesClient/generated/Models/V1DeploymentStrategy.cs deleted file mode 100644 index aa3819167..000000000 --- a/src/KubernetesClient/generated/Models/V1DeploymentStrategy.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// DeploymentStrategy describes how to replace existing pods with new ones. - /// - public partial class V1DeploymentStrategy - { - /// - /// Initializes a new instance of the V1DeploymentStrategy class. - /// - public V1DeploymentStrategy() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1DeploymentStrategy class. - /// - /// - /// Rolling update config params. Present only if DeploymentStrategyType = - /// RollingUpdate. - /// - /// - /// Type of deployment. Can be "Recreate" or "RollingUpdate". Default is - /// RollingUpdate. - /// - public V1DeploymentStrategy(V1RollingUpdateDeployment rollingUpdate = null, string type = null) - { - RollingUpdate = rollingUpdate; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Rolling update config params. Present only if DeploymentStrategyType = - /// RollingUpdate. - /// - [JsonProperty(PropertyName = "rollingUpdate")] - public V1RollingUpdateDeployment RollingUpdate { get; set; } - - /// - /// Type of deployment. Can be "Recreate" or "RollingUpdate". Default is - /// RollingUpdate. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - RollingUpdate?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1DownwardAPIProjection.cs b/src/KubernetesClient/generated/Models/V1DownwardAPIProjection.cs deleted file mode 100644 index 0ea28ce66..000000000 --- a/src/KubernetesClient/generated/Models/V1DownwardAPIProjection.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents downward API info for projecting into a projected volume. Note that - /// this is identical to a downwardAPI volume source without the default mode. - /// - public partial class V1DownwardAPIProjection - { - /// - /// Initializes a new instance of the V1DownwardAPIProjection class. - /// - public V1DownwardAPIProjection() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1DownwardAPIProjection class. - /// - /// - /// Items is a list of DownwardAPIVolume file - /// - public V1DownwardAPIProjection(IList items = null) - { - Items = items; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Items is a list of DownwardAPIVolume file - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1DownwardAPIVolumeFile.cs b/src/KubernetesClient/generated/Models/V1DownwardAPIVolumeFile.cs deleted file mode 100644 index d00d40e7f..000000000 --- a/src/KubernetesClient/generated/Models/V1DownwardAPIVolumeFile.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// DownwardAPIVolumeFile represents information to create the file containing the - /// pod field - /// - public partial class V1DownwardAPIVolumeFile - { - /// - /// Initializes a new instance of the V1DownwardAPIVolumeFile class. - /// - public V1DownwardAPIVolumeFile() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1DownwardAPIVolumeFile class. - /// - /// - /// Required: Path is the relative path name of the file to be created. Must not be - /// absolute or contain the '..' path. Must be utf-8 encoded. The first item of the - /// relative path must not start with '..' - /// - /// - /// Required: Selects a field of the pod: only annotations, labels, name and - /// namespace are supported. - /// - /// - /// Optional: mode bits used to set permissions on this file, must be an octal value - /// between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both - /// octal and decimal values, JSON requires decimal values for mode bits. If not - /// specified, the volume defaultMode will be used. This might be in conflict with - /// other options that affect the file mode, like fsGroup, and the result can be - /// other mode bits set. - /// - /// - /// Selects a resource of the container: only resources limits and requests - /// (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently - /// supported. - /// - public V1DownwardAPIVolumeFile(string path, V1ObjectFieldSelector fieldRef = null, int? mode = null, V1ResourceFieldSelector resourceFieldRef = null) - { - FieldRef = fieldRef; - Mode = mode; - Path = path; - ResourceFieldRef = resourceFieldRef; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Required: Selects a field of the pod: only annotations, labels, name and - /// namespace are supported. - /// - [JsonProperty(PropertyName = "fieldRef")] - public V1ObjectFieldSelector FieldRef { get; set; } - - /// - /// Optional: mode bits used to set permissions on this file, must be an octal value - /// between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both - /// octal and decimal values, JSON requires decimal values for mode bits. If not - /// specified, the volume defaultMode will be used. This might be in conflict with - /// other options that affect the file mode, like fsGroup, and the result can be - /// other mode bits set. - /// - [JsonProperty(PropertyName = "mode")] - public int? Mode { get; set; } - - /// - /// Required: Path is the relative path name of the file to be created. Must not be - /// absolute or contain the '..' path. Must be utf-8 encoded. The first item of the - /// relative path must not start with '..' - /// - [JsonProperty(PropertyName = "path")] - public string Path { get; set; } - - /// - /// Selects a resource of the container: only resources limits and requests - /// (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently - /// supported. - /// - [JsonProperty(PropertyName = "resourceFieldRef")] - public V1ResourceFieldSelector ResourceFieldRef { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - FieldRef?.Validate(); - ResourceFieldRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1DownwardAPIVolumeSource.cs b/src/KubernetesClient/generated/Models/V1DownwardAPIVolumeSource.cs deleted file mode 100644 index 3822ac956..000000000 --- a/src/KubernetesClient/generated/Models/V1DownwardAPIVolumeSource.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// DownwardAPIVolumeSource represents a volume containing downward API info. - /// Downward API volumes support ownership management and SELinux relabeling. - /// - public partial class V1DownwardAPIVolumeSource - { - /// - /// Initializes a new instance of the V1DownwardAPIVolumeSource class. - /// - public V1DownwardAPIVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1DownwardAPIVolumeSource class. - /// - /// - /// Optional: mode bits to use on created files by default. Must be a Optional: mode - /// bits used to set permissions on created files by default. Must be an octal value - /// between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both - /// octal and decimal values, JSON requires decimal values for mode bits. Defaults - /// to 0644. Directories within the path are not affected by this setting. This - /// might be in conflict with other options that affect the file mode, like fsGroup, - /// and the result can be other mode bits set. - /// - /// - /// Items is a list of downward API volume file - /// - public V1DownwardAPIVolumeSource(int? defaultMode = null, IList items = null) - { - DefaultMode = defaultMode; - Items = items; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Optional: mode bits to use on created files by default. Must be a Optional: mode - /// bits used to set permissions on created files by default. Must be an octal value - /// between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both - /// octal and decimal values, JSON requires decimal values for mode bits. Defaults - /// to 0644. Directories within the path are not affected by this setting. This - /// might be in conflict with other options that affect the file mode, like fsGroup, - /// and the result can be other mode bits set. - /// - [JsonProperty(PropertyName = "defaultMode")] - public int? DefaultMode { get; set; } - - /// - /// Items is a list of downward API volume file - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1EmptyDirVolumeSource.cs b/src/KubernetesClient/generated/Models/V1EmptyDirVolumeSource.cs deleted file mode 100644 index 11cc98aa4..000000000 --- a/src/KubernetesClient/generated/Models/V1EmptyDirVolumeSource.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents an empty directory for a pod. Empty directory volumes support - /// ownership management and SELinux relabeling. - /// - public partial class V1EmptyDirVolumeSource - { - /// - /// Initializes a new instance of the V1EmptyDirVolumeSource class. - /// - public V1EmptyDirVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1EmptyDirVolumeSource class. - /// - /// - /// 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 - /// - /// - /// 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 - /// - public V1EmptyDirVolumeSource(string medium = null, ResourceQuantity sizeLimit = null) - { - Medium = medium; - SizeLimit = sizeLimit; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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 - /// - [JsonProperty(PropertyName = "medium")] - public string Medium { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "sizeLimit")] - public ResourceQuantity SizeLimit { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - SizeLimit?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Endpoint.cs b/src/KubernetesClient/generated/Models/V1Endpoint.cs deleted file mode 100644 index 85408e8ef..000000000 --- a/src/KubernetesClient/generated/Models/V1Endpoint.cs +++ /dev/null @@ -1,160 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Endpoint represents a single logical "backend" implementing a service. - /// - public partial class V1Endpoint - { - /// - /// Initializes a new instance of the V1Endpoint class. - /// - public V1Endpoint() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Endpoint class. - /// - /// - /// 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. - /// - /// - /// conditions contains information about the current status of the endpoint. - /// - /// - /// 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. - /// - /// - /// hints contains information associated with how an endpoint should be consumed. - /// - /// - /// 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. - /// - /// - /// nodeName represents the name of the Node hosting this endpoint. This can be used - /// to determine endpoints local to a Node. This field can be enabled with the - /// EndpointSliceNodeName feature gate. - /// - /// - /// targetRef is a reference to a Kubernetes object that represents this endpoint. - /// - /// - /// zone is the name of the Zone this endpoint exists in. - /// - public V1Endpoint(IList addresses, V1EndpointConditions conditions = null, IDictionary deprecatedTopology = null, V1EndpointHints hints = null, string hostname = null, string nodeName = null, V1ObjectReference targetRef = null, string zone = null) - { - Addresses = addresses; - Conditions = conditions; - DeprecatedTopology = deprecatedTopology; - Hints = hints; - Hostname = hostname; - NodeName = nodeName; - TargetRef = targetRef; - Zone = zone; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "addresses")] - public IList Addresses { get; set; } - - /// - /// conditions contains information about the current status of the endpoint. - /// - [JsonProperty(PropertyName = "conditions")] - public V1EndpointConditions Conditions { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "deprecatedTopology")] - public IDictionary DeprecatedTopology { get; set; } - - /// - /// hints contains information associated with how an endpoint should be consumed. - /// - [JsonProperty(PropertyName = "hints")] - public V1EndpointHints Hints { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "hostname")] - public string Hostname { get; set; } - - /// - /// nodeName represents the name of the Node hosting this endpoint. This can be used - /// to determine endpoints local to a Node. This field can be enabled with the - /// EndpointSliceNodeName feature gate. - /// - [JsonProperty(PropertyName = "nodeName")] - public string NodeName { get; set; } - - /// - /// targetRef is a reference to a Kubernetes object that represents this endpoint. - /// - [JsonProperty(PropertyName = "targetRef")] - public V1ObjectReference TargetRef { get; set; } - - /// - /// zone is the name of the Zone this endpoint exists in. - /// - [JsonProperty(PropertyName = "zone")] - public string Zone { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Conditions?.Validate(); - Hints?.Validate(); - TargetRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1EndpointAddress.cs b/src/KubernetesClient/generated/Models/V1EndpointAddress.cs deleted file mode 100644 index 98f3a5738..000000000 --- a/src/KubernetesClient/generated/Models/V1EndpointAddress.cs +++ /dev/null @@ -1,100 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// EndpointAddress is a tuple that describes single IP address. - /// - public partial class V1EndpointAddress - { - /// - /// Initializes a new instance of the V1EndpointAddress class. - /// - public V1EndpointAddress() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1EndpointAddress class. - /// - /// - /// The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local - /// (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted - /// but not fully supported on all platforms. Also, certain kubernetes components, - /// like kube-proxy, are not IPv6 ready. - /// - /// - /// The Hostname of this endpoint - /// - /// - /// Optional: Node hosting this endpoint. This can be used to determine endpoints - /// local to a node. - /// - /// - /// Reference to object providing the endpoint. - /// - public V1EndpointAddress(string ip, string hostname = null, string nodeName = null, V1ObjectReference targetRef = null) - { - Hostname = hostname; - Ip = ip; - NodeName = nodeName; - TargetRef = targetRef; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The Hostname of this endpoint - /// - [JsonProperty(PropertyName = "hostname")] - public string Hostname { get; set; } - - /// - /// The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local - /// (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted - /// but not fully supported on all platforms. Also, certain kubernetes components, - /// like kube-proxy, are not IPv6 ready. - /// - [JsonProperty(PropertyName = "ip")] - public string Ip { get; set; } - - /// - /// Optional: Node hosting this endpoint. This can be used to determine endpoints - /// local to a node. - /// - [JsonProperty(PropertyName = "nodeName")] - public string NodeName { get; set; } - - /// - /// Reference to object providing the endpoint. - /// - [JsonProperty(PropertyName = "targetRef")] - public V1ObjectReference TargetRef { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - TargetRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1EndpointConditions.cs b/src/KubernetesClient/generated/Models/V1EndpointConditions.cs deleted file mode 100644 index fc2e52db5..000000000 --- a/src/KubernetesClient/generated/Models/V1EndpointConditions.cs +++ /dev/null @@ -1,101 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// EndpointConditions represents the current condition of an endpoint. - /// - public partial class V1EndpointConditions - { - /// - /// Initializes a new instance of the V1EndpointConditions class. - /// - public V1EndpointConditions() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1EndpointConditions class. - /// - /// - /// 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. - /// - /// - /// 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. This field can be enabled with the EndpointSliceTerminatingCondition - /// feature gate. - /// - /// - /// 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. This field can be enabled with the - /// EndpointSliceTerminatingCondition feature gate. - /// - public V1EndpointConditions(bool? ready = null, bool? serving = null, bool? terminating = null) - { - Ready = ready; - Serving = serving; - Terminating = terminating; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "ready")] - public bool? Ready { get; set; } - - /// - /// 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. This field can be enabled with the EndpointSliceTerminatingCondition - /// feature gate. - /// - [JsonProperty(PropertyName = "serving")] - public bool? Serving { get; set; } - - /// - /// 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. This field can be enabled with the - /// EndpointSliceTerminatingCondition feature gate. - /// - [JsonProperty(PropertyName = "terminating")] - public bool? Terminating { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1EndpointHints.cs b/src/KubernetesClient/generated/Models/V1EndpointHints.cs deleted file mode 100644 index 36bd78b73..000000000 --- a/src/KubernetesClient/generated/Models/V1EndpointHints.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// EndpointHints provides hints describing how an endpoint should be consumed. - /// - public partial class V1EndpointHints - { - /// - /// Initializes a new instance of the V1EndpointHints class. - /// - public V1EndpointHints() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1EndpointHints class. - /// - /// - /// forZones indicates the zone(s) this endpoint should be consumed by to enable - /// topology aware routing. - /// - public V1EndpointHints(IList forZones = null) - { - ForZones = forZones; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// forZones indicates the zone(s) this endpoint should be consumed by to enable - /// topology aware routing. - /// - [JsonProperty(PropertyName = "forZones")] - public IList ForZones { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (ForZones != null){ - foreach(var obj in ForZones) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1EndpointSlice.cs b/src/KubernetesClient/generated/Models/V1EndpointSlice.cs deleted file mode 100644 index 814487e5c..000000000 --- a/src/KubernetesClient/generated/Models/V1EndpointSlice.cs +++ /dev/null @@ -1,154 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1EndpointSlice - { - /// - /// Initializes a new instance of the V1EndpointSlice class. - /// - public V1EndpointSlice() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1EndpointSlice class. - /// - /// - /// 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. - /// - /// - /// endpoints is a list of unique endpoints in this slice. Each slice may include a - /// maximum of 1000 endpoints. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. - /// - /// - /// ports specifies the list of network ports exposed by each endpoint in this - /// slice. Each port must have a unique name. When ports is empty, it indicates that - /// there are no defined ports. When a port is defined with a nil port value, it - /// indicates "all ports". Each slice may include a maximum of 100 ports. - /// - public V1EndpointSlice(string addressType, IList endpoints, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, IList ports = null) - { - AddressType = addressType; - ApiVersion = apiVersion; - Endpoints = endpoints; - Kind = kind; - Metadata = metadata; - Ports = ports; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "addressType")] - public string AddressType { get; set; } - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// endpoints is a list of unique endpoints in this slice. Each slice may include a - /// maximum of 1000 endpoints. - /// - [JsonProperty(PropertyName = "endpoints")] - public IList Endpoints { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "ports")] - public IList Ports { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Endpoints != null){ - foreach(var obj in Endpoints) - { - obj.Validate(); - } - } - Metadata?.Validate(); - if (Ports != null){ - foreach(var obj in Ports) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1EndpointSliceList.cs b/src/KubernetesClient/generated/Models/V1EndpointSliceList.cs deleted file mode 100644 index 33b809c65..000000000 --- a/src/KubernetesClient/generated/Models/V1EndpointSliceList.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// EndpointSliceList represents a list of endpoint slices - /// - public partial class V1EndpointSliceList - { - /// - /// Initializes a new instance of the V1EndpointSliceList class. - /// - public V1EndpointSliceList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1EndpointSliceList class. - /// - /// - /// List of endpoint slices - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. - /// - public V1EndpointSliceList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// List of endpoint slices - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1EndpointSubset.cs b/src/KubernetesClient/generated/Models/V1EndpointSubset.cs deleted file mode 100644 index 9e3319d4f..000000000 --- a/src/KubernetesClient/generated/Models/V1EndpointSubset.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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 ] - /// - public partial class V1EndpointSubset - { - /// - /// Initializes a new instance of the V1EndpointSubset class. - /// - public V1EndpointSubset() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1EndpointSubset class. - /// - /// - /// IP addresses which offer the related ports that are marked as ready. These - /// endpoints should be considered safe for load balancers and clients to utilize. - /// - /// - /// IP addresses which offer the related ports but are not currently marked as ready - /// because they have not yet finished starting, have recently failed a readiness - /// check, or have recently failed a liveness check. - /// - /// - /// Port numbers available on the related IP addresses. - /// - public V1EndpointSubset(IList addresses = null, IList notReadyAddresses = null, IList ports = null) - { - Addresses = addresses; - NotReadyAddresses = notReadyAddresses; - Ports = ports; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// IP addresses which offer the related ports that are marked as ready. These - /// endpoints should be considered safe for load balancers and clients to utilize. - /// - [JsonProperty(PropertyName = "addresses")] - public IList Addresses { get; set; } - - /// - /// IP addresses which offer the related ports but are not currently marked as ready - /// because they have not yet finished starting, have recently failed a readiness - /// check, or have recently failed a liveness check. - /// - [JsonProperty(PropertyName = "notReadyAddresses")] - public IList NotReadyAddresses { get; set; } - - /// - /// Port numbers available on the related IP addresses. - /// - [JsonProperty(PropertyName = "ports")] - public IList Ports { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Addresses != null){ - foreach(var obj in Addresses) - { - obj.Validate(); - } - } - if (NotReadyAddresses != null){ - foreach(var obj in NotReadyAddresses) - { - obj.Validate(); - } - } - if (Ports != null){ - foreach(var obj in Ports) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Endpoints.cs b/src/KubernetesClient/generated/Models/V1Endpoints.cs deleted file mode 100644 index 0bd3b7f1c..000000000 --- a/src/KubernetesClient/generated/Models/V1Endpoints.cs +++ /dev/null @@ -1,136 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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}] - /// }, - /// ] - /// - public partial class V1Endpoints - { - /// - /// Initializes a new instance of the V1Endpoints class. - /// - public V1Endpoints() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Endpoints class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// The set of all endpoints is the union of all subsets. Addresses are placed into - /// subsets according to the IPs they share. A single address with multiple ports, - /// some of which are ready and some of which are not (because they come from - /// different containers) will result in the address being displayed in different - /// subsets for the different ports. No address will appear in both Addresses and - /// NotReadyAddresses in the same subset. Sets of addresses and ports that comprise - /// a service. - /// - public V1Endpoints(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, IList subsets = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Subsets = subsets; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// The set of all endpoints is the union of all subsets. Addresses are placed into - /// subsets according to the IPs they share. A single address with multiple ports, - /// some of which are ready and some of which are not (because they come from - /// different containers) will result in the address being displayed in different - /// subsets for the different ports. No address will appear in both Addresses and - /// NotReadyAddresses in the same subset. Sets of addresses and ports that comprise - /// a service. - /// - [JsonProperty(PropertyName = "subsets")] - public IList Subsets { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - if (Subsets != null){ - foreach(var obj in Subsets) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1EndpointsList.cs b/src/KubernetesClient/generated/Models/V1EndpointsList.cs deleted file mode 100644 index 25a17e8c5..000000000 --- a/src/KubernetesClient/generated/Models/V1EndpointsList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// EndpointsList is a list of endpoints. - /// - public partial class V1EndpointsList - { - /// - /// Initializes a new instance of the V1EndpointsList class. - /// - public V1EndpointsList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1EndpointsList class. - /// - /// - /// List of endpoints. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - public V1EndpointsList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// List of endpoints. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1EnvFromSource.cs b/src/KubernetesClient/generated/Models/V1EnvFromSource.cs deleted file mode 100644 index b0aa0c062..000000000 --- a/src/KubernetesClient/generated/Models/V1EnvFromSource.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// EnvFromSource represents the source of a set of ConfigMaps - /// - public partial class V1EnvFromSource - { - /// - /// Initializes a new instance of the V1EnvFromSource class. - /// - public V1EnvFromSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1EnvFromSource class. - /// - /// - /// The ConfigMap to select from - /// - /// - /// An optional identifier to prepend to each key in the ConfigMap. Must be a - /// C_IDENTIFIER. - /// - /// - /// The Secret to select from - /// - public V1EnvFromSource(V1ConfigMapEnvSource configMapRef = null, string prefix = null, V1SecretEnvSource secretRef = null) - { - ConfigMapRef = configMapRef; - Prefix = prefix; - SecretRef = secretRef; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The ConfigMap to select from - /// - [JsonProperty(PropertyName = "configMapRef")] - public V1ConfigMapEnvSource ConfigMapRef { get; set; } - - /// - /// An optional identifier to prepend to each key in the ConfigMap. Must be a - /// C_IDENTIFIER. - /// - [JsonProperty(PropertyName = "prefix")] - public string Prefix { get; set; } - - /// - /// The Secret to select from - /// - [JsonProperty(PropertyName = "secretRef")] - public V1SecretEnvSource SecretRef { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - ConfigMapRef?.Validate(); - SecretRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1EnvVar.cs b/src/KubernetesClient/generated/Models/V1EnvVar.cs deleted file mode 100644 index 9514ad27b..000000000 --- a/src/KubernetesClient/generated/Models/V1EnvVar.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// EnvVar represents an environment variable present in a Container. - /// - public partial class V1EnvVar - { - /// - /// Initializes a new instance of the V1EnvVar class. - /// - public V1EnvVar() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1EnvVar class. - /// - /// - /// Name of the environment variable. Must be a C_IDENTIFIER. - /// - /// - /// 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 "". - /// - /// - /// Source for the environment variable's value. Cannot be used if value is not - /// empty. - /// - public V1EnvVar(string name, string value = null, V1EnvVarSource valueFrom = null) - { - Name = name; - Value = value; - ValueFrom = valueFrom; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Name of the environment variable. Must be a C_IDENTIFIER. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// 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 "". - /// - [JsonProperty(PropertyName = "value")] - public string Value { get; set; } - - /// - /// Source for the environment variable's value. Cannot be used if value is not - /// empty. - /// - [JsonProperty(PropertyName = "valueFrom")] - public V1EnvVarSource ValueFrom { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - ValueFrom?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1EnvVarSource.cs b/src/KubernetesClient/generated/Models/V1EnvVarSource.cs deleted file mode 100644 index 98386b1dc..000000000 --- a/src/KubernetesClient/generated/Models/V1EnvVarSource.cs +++ /dev/null @@ -1,103 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// EnvVarSource represents a source for the value of an EnvVar. - /// - public partial class V1EnvVarSource - { - /// - /// Initializes a new instance of the V1EnvVarSource class. - /// - public V1EnvVarSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1EnvVarSource class. - /// - /// - /// Selects a key of a ConfigMap. - /// - /// - /// Selects a field of the pod: supports metadata.name, metadata.namespace, - /// `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`, spec.nodeName, - /// spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs. - /// - /// - /// 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. - /// - /// - /// Selects a key of a secret in the pod's namespace - /// - public V1EnvVarSource(V1ConfigMapKeySelector configMapKeyRef = null, V1ObjectFieldSelector fieldRef = null, V1ResourceFieldSelector resourceFieldRef = null, V1SecretKeySelector secretKeyRef = null) - { - ConfigMapKeyRef = configMapKeyRef; - FieldRef = fieldRef; - ResourceFieldRef = resourceFieldRef; - SecretKeyRef = secretKeyRef; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Selects a key of a ConfigMap. - /// - [JsonProperty(PropertyName = "configMapKeyRef")] - public V1ConfigMapKeySelector ConfigMapKeyRef { get; set; } - - /// - /// Selects a field of the pod: supports metadata.name, metadata.namespace, - /// `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`, spec.nodeName, - /// spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs. - /// - [JsonProperty(PropertyName = "fieldRef")] - public V1ObjectFieldSelector FieldRef { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "resourceFieldRef")] - public V1ResourceFieldSelector ResourceFieldRef { get; set; } - - /// - /// Selects a key of a secret in the pod's namespace - /// - [JsonProperty(PropertyName = "secretKeyRef")] - public V1SecretKeySelector SecretKeyRef { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - ConfigMapKeyRef?.Validate(); - FieldRef?.Validate(); - ResourceFieldRef?.Validate(); - SecretKeyRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1EphemeralContainer.cs b/src/KubernetesClient/generated/Models/V1EphemeralContainer.cs deleted file mode 100644 index d8e820fc9..000000000 --- a/src/KubernetesClient/generated/Models/V1EphemeralContainer.cs +++ /dev/null @@ -1,429 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// An EphemeralContainer is a container that may be added temporarily to an - /// existing pod for user-initiated activities such as debugging. Ephemeral - /// containers have no resource or scheduling guarantees, and they will not be - /// restarted when they exit or when a pod is removed or restarted. If an ephemeral - /// container causes a pod to exceed its resource allocation, the pod may be - /// evicted. Ephemeral containers may not be added by directly updating the pod - /// spec. They must be added via the pod's ephemeralcontainers subresource, and they - /// will appear in the pod spec once added. This is an alpha feature enabled by the - /// EphemeralContainers feature flag. - /// - public partial class V1EphemeralContainer - { - /// - /// Initializes a new instance of the V1EphemeralContainer class. - /// - public V1EphemeralContainer() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1EphemeralContainer class. - /// - /// - /// Name of the ephemeral container specified as a DNS_LABEL. This name must be - /// unique among all containers, init containers and ephemeral containers. - /// - /// - /// 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. 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 - /// - /// - /// 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. 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 - /// - /// - /// List of environment variables to set in the container. Cannot be updated. - /// - /// - /// 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. - /// - /// - /// Docker image name. More info: - /// https://kubernetes.io/docs/concepts/containers/images - /// - /// - /// 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 - /// - /// - /// Lifecycle is not allowed for ephemeral containers. - /// - /// - /// Probes are not allowed for ephemeral containers. - /// - /// - /// Ports are not allowed for ephemeral containers. - /// - /// - /// Probes are not allowed for ephemeral containers. - /// - /// - /// Resources are not allowed for ephemeral containers. Ephemeral containers use - /// spare resources already allocated to the pod. - /// - /// - /// Optional: SecurityContext defines the security options the ephemeral container - /// should be run with. If set, the fields of SecurityContext override the - /// equivalent fields of PodSecurityContext. - /// - /// - /// Probes are not allowed for ephemeral containers. - /// - /// - /// 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. - /// - /// - /// 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 - /// - /// - /// If set, the name of the container from PodSpec that this ephemeral container - /// targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) - /// of this container. If not set then the ephemeral container is run in whatever - /// namespaces are shared for the pod. Note that the container runtime must support - /// this feature. - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// Whether this container should allocate a TTY for itself, also requires 'stdin' - /// to be true. Default is false. - /// - /// - /// volumeDevices is the list of block devices to be used by the container. - /// - /// - /// Pod volumes to mount into the container's filesystem. Cannot be updated. - /// - /// - /// Container's working directory. If not specified, the container runtime's default - /// will be used, which might be configured in the container image. Cannot be - /// updated. - /// - public V1EphemeralContainer(string name, IList args = null, IList command = null, IList env = null, IList envFrom = null, string image = null, string imagePullPolicy = null, V1Lifecycle lifecycle = null, V1Probe livenessProbe = null, IList ports = null, V1Probe readinessProbe = null, V1ResourceRequirements resources = null, V1SecurityContext securityContext = null, V1Probe startupProbe = null, bool? stdin = null, bool? stdinOnce = null, string targetContainerName = null, string terminationMessagePath = null, string terminationMessagePolicy = null, bool? tty = null, IList volumeDevices = null, IList volumeMounts = null, string workingDir = null) - { - Args = args; - Command = command; - Env = env; - EnvFrom = envFrom; - Image = image; - ImagePullPolicy = imagePullPolicy; - Lifecycle = lifecycle; - LivenessProbe = livenessProbe; - Name = name; - Ports = ports; - ReadinessProbe = readinessProbe; - Resources = resources; - SecurityContext = securityContext; - StartupProbe = startupProbe; - Stdin = stdin; - StdinOnce = stdinOnce; - TargetContainerName = targetContainerName; - TerminationMessagePath = terminationMessagePath; - TerminationMessagePolicy = terminationMessagePolicy; - Tty = tty; - VolumeDevices = volumeDevices; - VolumeMounts = volumeMounts; - WorkingDir = workingDir; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. 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 - /// - [JsonProperty(PropertyName = "args")] - public IList Args { get; set; } - - /// - /// 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. 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 - /// - [JsonProperty(PropertyName = "command")] - public IList Command { get; set; } - - /// - /// List of environment variables to set in the container. Cannot be updated. - /// - [JsonProperty(PropertyName = "env")] - public IList Env { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "envFrom")] - public IList EnvFrom { get; set; } - - /// - /// Docker image name. More info: - /// https://kubernetes.io/docs/concepts/containers/images - /// - [JsonProperty(PropertyName = "image")] - public string Image { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "imagePullPolicy")] - public string ImagePullPolicy { get; set; } - - /// - /// Lifecycle is not allowed for ephemeral containers. - /// - [JsonProperty(PropertyName = "lifecycle")] - public V1Lifecycle Lifecycle { get; set; } - - /// - /// Probes are not allowed for ephemeral containers. - /// - [JsonProperty(PropertyName = "livenessProbe")] - public V1Probe LivenessProbe { get; set; } - - /// - /// Name of the ephemeral container specified as a DNS_LABEL. This name must be - /// unique among all containers, init containers and ephemeral containers. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Ports are not allowed for ephemeral containers. - /// - [JsonProperty(PropertyName = "ports")] - public IList Ports { get; set; } - - /// - /// Probes are not allowed for ephemeral containers. - /// - [JsonProperty(PropertyName = "readinessProbe")] - public V1Probe ReadinessProbe { get; set; } - - /// - /// Resources are not allowed for ephemeral containers. Ephemeral containers use - /// spare resources already allocated to the pod. - /// - [JsonProperty(PropertyName = "resources")] - public V1ResourceRequirements Resources { get; set; } - - /// - /// Optional: SecurityContext defines the security options the ephemeral container - /// should be run with. If set, the fields of SecurityContext override the - /// equivalent fields of PodSecurityContext. - /// - [JsonProperty(PropertyName = "securityContext")] - public V1SecurityContext SecurityContext { get; set; } - - /// - /// Probes are not allowed for ephemeral containers. - /// - [JsonProperty(PropertyName = "startupProbe")] - public V1Probe StartupProbe { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "stdin")] - public bool? Stdin { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "stdinOnce")] - public bool? StdinOnce { get; set; } - - /// - /// If set, the name of the container from PodSpec that this ephemeral container - /// targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) - /// of this container. If not set then the ephemeral container is run in whatever - /// namespaces are shared for the pod. Note that the container runtime must support - /// this feature. - /// - [JsonProperty(PropertyName = "targetContainerName")] - public string TargetContainerName { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "terminationMessagePath")] - public string TerminationMessagePath { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "terminationMessagePolicy")] - public string TerminationMessagePolicy { get; set; } - - /// - /// Whether this container should allocate a TTY for itself, also requires 'stdin' - /// to be true. Default is false. - /// - [JsonProperty(PropertyName = "tty")] - public bool? Tty { get; set; } - - /// - /// volumeDevices is the list of block devices to be used by the container. - /// - [JsonProperty(PropertyName = "volumeDevices")] - public IList VolumeDevices { get; set; } - - /// - /// Pod volumes to mount into the container's filesystem. Cannot be updated. - /// - [JsonProperty(PropertyName = "volumeMounts")] - public IList VolumeMounts { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "workingDir")] - public string WorkingDir { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Env != null){ - foreach(var obj in Env) - { - obj.Validate(); - } - } - if (EnvFrom != null){ - foreach(var obj in EnvFrom) - { - obj.Validate(); - } - } - Lifecycle?.Validate(); - LivenessProbe?.Validate(); - if (Ports != null){ - foreach(var obj in Ports) - { - obj.Validate(); - } - } - ReadinessProbe?.Validate(); - Resources?.Validate(); - SecurityContext?.Validate(); - StartupProbe?.Validate(); - if (VolumeDevices != null){ - foreach(var obj in VolumeDevices) - { - obj.Validate(); - } - } - if (VolumeMounts != null){ - foreach(var obj in VolumeMounts) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1EphemeralVolumeSource.cs b/src/KubernetesClient/generated/Models/V1EphemeralVolumeSource.cs deleted file mode 100644 index 5de435cf7..000000000 --- a/src/KubernetesClient/generated/Models/V1EphemeralVolumeSource.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents an ephemeral volume that is handled by a normal storage driver. - /// - public partial class V1EphemeralVolumeSource - { - /// - /// Initializes a new instance of the V1EphemeralVolumeSource class. - /// - public V1EphemeralVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1EphemeralVolumeSource class. - /// - /// - /// Will be used to create a stand-alone PVC to provision the volume. The pod in - /// which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. - /// the PVC will be deleted together with the pod. The name of the PVC will be - /// `<pod name>-<volume name>` where `<volume name>` is the name from the - /// `PodSpec.Volumes` array entry. Pod validation will reject the pod if the - /// concatenated name is not valid for a PVC (for example, too long). - /// - /// An existing PVC with that name that is not owned by the pod will *not* be used - /// for the pod to avoid using an unrelated volume by mistake. Starting the pod is - /// then blocked until the unrelated PVC is removed. If such a pre-created PVC is - /// meant to be used by the pod, the PVC has to updated with an owner reference to - /// the pod once the pod exists. Normally this should not be necessary, but it may - /// be useful when manually reconstructing a broken cluster. - /// - /// This field is read-only and no changes will be made by Kubernetes to the PVC - /// after it has been created. - /// - /// Required, must not be nil. - /// - public V1EphemeralVolumeSource(V1PersistentVolumeClaimTemplate volumeClaimTemplate = null) - { - VolumeClaimTemplate = volumeClaimTemplate; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Will be used to create a stand-alone PVC to provision the volume. The pod in - /// which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. - /// the PVC will be deleted together with the pod. The name of the PVC will be - /// `<pod name>-<volume name>` where `<volume name>` is the name from the - /// `PodSpec.Volumes` array entry. Pod validation will reject the pod if the - /// concatenated name is not valid for a PVC (for example, too long). - /// - /// An existing PVC with that name that is not owned by the pod will *not* be used - /// for the pod to avoid using an unrelated volume by mistake. Starting the pod is - /// then blocked until the unrelated PVC is removed. If such a pre-created PVC is - /// meant to be used by the pod, the PVC has to updated with an owner reference to - /// the pod once the pod exists. Normally this should not be necessary, but it may - /// be useful when manually reconstructing a broken cluster. - /// - /// This field is read-only and no changes will be made by Kubernetes to the PVC - /// after it has been created. - /// - /// Required, must not be nil. - /// - [JsonProperty(PropertyName = "volumeClaimTemplate")] - public V1PersistentVolumeClaimTemplate VolumeClaimTemplate { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - VolumeClaimTemplate?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1EventSource.cs b/src/KubernetesClient/generated/Models/V1EventSource.cs deleted file mode 100644 index 53ccafa3d..000000000 --- a/src/KubernetesClient/generated/Models/V1EventSource.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// EventSource contains information for an event. - /// - public partial class V1EventSource - { - /// - /// Initializes a new instance of the V1EventSource class. - /// - public V1EventSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1EventSource class. - /// - /// - /// Component from which the event is generated. - /// - /// - /// Node name on which the event is generated. - /// - public V1EventSource(string component = null, string host = null) - { - Component = component; - Host = host; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Component from which the event is generated. - /// - [JsonProperty(PropertyName = "component")] - public string Component { get; set; } - - /// - /// Node name on which the event is generated. - /// - [JsonProperty(PropertyName = "host")] - public string Host { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Eviction.cs b/src/KubernetesClient/generated/Models/V1Eviction.cs deleted file mode 100644 index 830780e10..000000000 --- a/src/KubernetesClient/generated/Models/V1Eviction.cs +++ /dev/null @@ -1,107 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Eviction evicts a pod from its node subject to certain policies and safety - /// constraints. This is a subresource of Pod. A request to cause such an eviction - /// is created by POSTing to .../pods/<pod name>/evictions. - /// - public partial class V1Eviction - { - /// - /// Initializes a new instance of the V1Eviction class. - /// - public V1Eviction() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Eviction class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// DeleteOptions may be provided - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// ObjectMeta describes the pod that is being evicted. - /// - public V1Eviction(string apiVersion = null, V1DeleteOptions deleteOptions = null, string kind = null, V1ObjectMeta metadata = null) - { - ApiVersion = apiVersion; - DeleteOptions = deleteOptions; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// DeleteOptions may be provided - /// - [JsonProperty(PropertyName = "deleteOptions")] - public V1DeleteOptions DeleteOptions { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// ObjectMeta describes the pod that is being evicted. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - DeleteOptions?.Validate(); - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ExecAction.cs b/src/KubernetesClient/generated/Models/V1ExecAction.cs deleted file mode 100644 index 97539fcca..000000000 --- a/src/KubernetesClient/generated/Models/V1ExecAction.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ExecAction describes a "run in container" action. - /// - public partial class V1ExecAction - { - /// - /// Initializes a new instance of the V1ExecAction class. - /// - public V1ExecAction() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ExecAction class. - /// - /// - /// Command is the command line to execute inside the container, the working - /// directory for the command is root ('/') in the container's filesystem. The - /// command is simply exec'd, it is not run inside a shell, so traditional shell - /// instructions ('|', etc) won't work. To use a shell, you need to explicitly call - /// out to that shell. Exit status of 0 is treated as live/healthy and non-zero is - /// unhealthy. - /// - public V1ExecAction(IList command = null) - { - Command = command; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "command")] - public IList Command { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ExternalDocumentation.cs b/src/KubernetesClient/generated/Models/V1ExternalDocumentation.cs deleted file mode 100644 index ff1faad54..000000000 --- a/src/KubernetesClient/generated/Models/V1ExternalDocumentation.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ExternalDocumentation allows referencing an external resource for extended - /// documentation. - /// - public partial class V1ExternalDocumentation - { - /// - /// Initializes a new instance of the V1ExternalDocumentation class. - /// - public V1ExternalDocumentation() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ExternalDocumentation class. - /// - /// - /// - /// - /// - /// - /// - public V1ExternalDocumentation(string description = null, string url = null) - { - Description = description; - Url = url; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// - /// - [JsonProperty(PropertyName = "description")] - public string Description { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "url")] - public string Url { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1FCVolumeSource.cs b/src/KubernetesClient/generated/Models/V1FCVolumeSource.cs deleted file mode 100644 index 8e964342f..000000000 --- a/src/KubernetesClient/generated/Models/V1FCVolumeSource.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as - /// read/write once. Fibre Channel volumes support ownership management and SELinux - /// relabeling. - /// - public partial class V1FCVolumeSource - { - /// - /// Initializes a new instance of the V1FCVolumeSource class. - /// - public V1FCVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1FCVolumeSource class. - /// - /// - /// 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. - /// - /// - /// Optional: FC target lun number - /// - /// - /// Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly - /// setting in VolumeMounts. - /// - /// - /// Optional: FC target worldwide names (WWNs) - /// - /// - /// Optional: FC volume world wide identifiers (wwids) Either wwids or combination - /// of targetWWNs and lun must be set, but not both simultaneously. - /// - public V1FCVolumeSource(string fsType = null, int? lun = null, bool? readOnlyProperty = null, IList targetWWNs = null, IList wwids = null) - { - FsType = fsType; - Lun = lun; - ReadOnlyProperty = readOnlyProperty; - TargetWWNs = targetWWNs; - Wwids = wwids; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "fsType")] - public string FsType { get; set; } - - /// - /// Optional: FC target lun number - /// - [JsonProperty(PropertyName = "lun")] - public int? Lun { get; set; } - - /// - /// Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly - /// setting in VolumeMounts. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Optional: FC target worldwide names (WWNs) - /// - [JsonProperty(PropertyName = "targetWWNs")] - public IList TargetWWNs { get; set; } - - /// - /// Optional: FC volume world wide identifiers (wwids) Either wwids or combination - /// of targetWWNs and lun must be set, but not both simultaneously. - /// - [JsonProperty(PropertyName = "wwids")] - public IList Wwids { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1FlexPersistentVolumeSource.cs b/src/KubernetesClient/generated/Models/V1FlexPersistentVolumeSource.cs deleted file mode 100644 index 79c103b94..000000000 --- a/src/KubernetesClient/generated/Models/V1FlexPersistentVolumeSource.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// FlexPersistentVolumeSource represents a generic persistent volume resource that - /// is provisioned/attached using an exec based plugin. - /// - public partial class V1FlexPersistentVolumeSource - { - /// - /// Initializes a new instance of the V1FlexPersistentVolumeSource class. - /// - public V1FlexPersistentVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1FlexPersistentVolumeSource class. - /// - /// - /// Driver is the name of the driver to use for this volume. - /// - /// - /// 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. - /// - /// - /// Optional: Extra command options if any. - /// - /// - /// Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly - /// setting in VolumeMounts. - /// - /// - /// 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. - /// - public V1FlexPersistentVolumeSource(string driver, string fsType = null, IDictionary options = null, bool? readOnlyProperty = null, V1SecretReference secretRef = null) - { - Driver = driver; - FsType = fsType; - Options = options; - ReadOnlyProperty = readOnlyProperty; - SecretRef = secretRef; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Driver is the name of the driver to use for this volume. - /// - [JsonProperty(PropertyName = "driver")] - public string Driver { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "fsType")] - public string FsType { get; set; } - - /// - /// Optional: Extra command options if any. - /// - [JsonProperty(PropertyName = "options")] - public IDictionary Options { get; set; } - - /// - /// Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly - /// setting in VolumeMounts. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "secretRef")] - public V1SecretReference SecretRef { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - SecretRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1FlexVolumeSource.cs b/src/KubernetesClient/generated/Models/V1FlexVolumeSource.cs deleted file mode 100644 index 817e2521b..000000000 --- a/src/KubernetesClient/generated/Models/V1FlexVolumeSource.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// FlexVolume represents a generic volume resource that is provisioned/attached - /// using an exec based plugin. - /// - public partial class V1FlexVolumeSource - { - /// - /// Initializes a new instance of the V1FlexVolumeSource class. - /// - public V1FlexVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1FlexVolumeSource class. - /// - /// - /// Driver is the name of the driver to use for this volume. - /// - /// - /// 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. - /// - /// - /// Optional: Extra command options if any. - /// - /// - /// Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly - /// setting in VolumeMounts. - /// - /// - /// 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. - /// - public V1FlexVolumeSource(string driver, string fsType = null, IDictionary options = null, bool? readOnlyProperty = null, V1LocalObjectReference secretRef = null) - { - Driver = driver; - FsType = fsType; - Options = options; - ReadOnlyProperty = readOnlyProperty; - SecretRef = secretRef; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Driver is the name of the driver to use for this volume. - /// - [JsonProperty(PropertyName = "driver")] - public string Driver { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "fsType")] - public string FsType { get; set; } - - /// - /// Optional: Extra command options if any. - /// - [JsonProperty(PropertyName = "options")] - public IDictionary Options { get; set; } - - /// - /// Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly - /// setting in VolumeMounts. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "secretRef")] - public V1LocalObjectReference SecretRef { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - SecretRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1FlockerVolumeSource.cs b/src/KubernetesClient/generated/Models/V1FlockerVolumeSource.cs deleted file mode 100644 index 69b2f03bc..000000000 --- a/src/KubernetesClient/generated/Models/V1FlockerVolumeSource.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents a Flocker volume mounted by the Flocker agent. One and only one of - /// datasetName and datasetUUID should be set. Flocker volumes do not support - /// ownership management or SELinux relabeling. - /// - public partial class V1FlockerVolumeSource - { - /// - /// Initializes a new instance of the V1FlockerVolumeSource class. - /// - public V1FlockerVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1FlockerVolumeSource class. - /// - /// - /// Name of the dataset stored as metadata -> name on the dataset for Flocker should - /// be considered as deprecated - /// - /// - /// UUID of the dataset. This is unique identifier of a Flocker dataset - /// - public V1FlockerVolumeSource(string datasetName = null, string datasetUUID = null) - { - DatasetName = datasetName; - DatasetUUID = datasetUUID; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Name of the dataset stored as metadata -> name on the dataset for Flocker should - /// be considered as deprecated - /// - [JsonProperty(PropertyName = "datasetName")] - public string DatasetName { get; set; } - - /// - /// UUID of the dataset. This is unique identifier of a Flocker dataset - /// - [JsonProperty(PropertyName = "datasetUUID")] - public string DatasetUUID { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ForZone.cs b/src/KubernetesClient/generated/Models/V1ForZone.cs deleted file mode 100644 index afde1d58e..000000000 --- a/src/KubernetesClient/generated/Models/V1ForZone.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ForZone provides information about which zones should consume this endpoint. - /// - public partial class V1ForZone - { - /// - /// Initializes a new instance of the V1ForZone class. - /// - public V1ForZone() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ForZone class. - /// - /// - /// name represents the name of the zone. - /// - public V1ForZone(string name) - { - Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// name represents the name of the zone. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1GCEPersistentDiskVolumeSource.cs b/src/KubernetesClient/generated/Models/V1GCEPersistentDiskVolumeSource.cs deleted file mode 100644 index 5ad3d0f8b..000000000 --- a/src/KubernetesClient/generated/Models/V1GCEPersistentDiskVolumeSource.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents a Persistent Disk resource in Google Compute Engine. - /// - /// A GCE PD must exist before mounting to a container. The disk must also be in the - /// same GCE project and zone as the kubelet. A GCE PD can only be mounted as - /// read/write once or read-only many times. GCE PDs support ownership management - /// and SELinux relabeling. - /// - public partial class V1GCEPersistentDiskVolumeSource - { - /// - /// Initializes a new instance of the V1GCEPersistentDiskVolumeSource class. - /// - public V1GCEPersistentDiskVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1GCEPersistentDiskVolumeSource class. - /// - /// - /// Unique name of the PD resource in GCE. Used to identify the disk in GCE. More - /// info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - /// - /// - /// 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 - /// - /// - /// 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 - /// - /// - /// ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to - /// false. More info: - /// https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - /// - public V1GCEPersistentDiskVolumeSource(string pdName, string fsType = null, int? partition = null, bool? readOnlyProperty = null) - { - FsType = fsType; - Partition = partition; - PdName = pdName; - ReadOnlyProperty = readOnlyProperty; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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 - /// - [JsonProperty(PropertyName = "fsType")] - public string FsType { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "partition")] - public int? Partition { get; set; } - - /// - /// Unique name of the PD resource in GCE. Used to identify the disk in GCE. More - /// info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - /// - [JsonProperty(PropertyName = "pdName")] - public string PdName { get; set; } - - /// - /// ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to - /// false. More info: - /// https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1GitRepoVolumeSource.cs b/src/KubernetesClient/generated/Models/V1GitRepoVolumeSource.cs deleted file mode 100644 index 025f39a5e..000000000 --- a/src/KubernetesClient/generated/Models/V1GitRepoVolumeSource.cs +++ /dev/null @@ -1,91 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents a volume that is populated with the contents of a git repository. Git - /// repo volumes do not support ownership management. Git repo volumes support - /// SELinux relabeling. - /// - /// DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, - /// mount an EmptyDir into an InitContainer that clones the repo using git, then - /// mount the EmptyDir into the Pod's container. - /// - public partial class V1GitRepoVolumeSource - { - /// - /// Initializes a new instance of the V1GitRepoVolumeSource class. - /// - public V1GitRepoVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1GitRepoVolumeSource class. - /// - /// - /// Repository URL - /// - /// - /// 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. - /// - /// - /// Commit hash for the specified revision. - /// - public V1GitRepoVolumeSource(string repository, string directory = null, string revision = null) - { - Directory = directory; - Repository = repository; - Revision = revision; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "directory")] - public string Directory { get; set; } - - /// - /// Repository URL - /// - [JsonProperty(PropertyName = "repository")] - public string Repository { get; set; } - - /// - /// Commit hash for the specified revision. - /// - [JsonProperty(PropertyName = "revision")] - public string Revision { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1GlusterfsPersistentVolumeSource.cs b/src/KubernetesClient/generated/Models/V1GlusterfsPersistentVolumeSource.cs deleted file mode 100644 index 912488a8f..000000000 --- a/src/KubernetesClient/generated/Models/V1GlusterfsPersistentVolumeSource.cs +++ /dev/null @@ -1,106 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes - /// do not support ownership management or SELinux relabeling. - /// - public partial class V1GlusterfsPersistentVolumeSource - { - /// - /// Initializes a new instance of the V1GlusterfsPersistentVolumeSource class. - /// - public V1GlusterfsPersistentVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1GlusterfsPersistentVolumeSource class. - /// - /// - /// EndpointsName is the endpoint name that details Glusterfs topology. More info: - /// https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - /// - /// - /// Path is the Glusterfs volume path. More info: - /// https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - /// - /// - /// EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this - /// field is empty, the EndpointNamespace defaults to the same namespace as the - /// bound PVC. More info: - /// https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - /// - /// - /// ReadOnly here will force the Glusterfs volume to be mounted with read-only - /// permissions. Defaults to false. More info: - /// https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - /// - public V1GlusterfsPersistentVolumeSource(string endpoints, string path, string endpointsNamespace = null, bool? readOnlyProperty = null) - { - Endpoints = endpoints; - EndpointsNamespace = endpointsNamespace; - Path = path; - ReadOnlyProperty = readOnlyProperty; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// EndpointsName is the endpoint name that details Glusterfs topology. More info: - /// https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - /// - [JsonProperty(PropertyName = "endpoints")] - public string Endpoints { get; set; } - - /// - /// EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this - /// field is empty, the EndpointNamespace defaults to the same namespace as the - /// bound PVC. More info: - /// https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - /// - [JsonProperty(PropertyName = "endpointsNamespace")] - public string EndpointsNamespace { get; set; } - - /// - /// Path is the Glusterfs volume path. More info: - /// https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - /// - [JsonProperty(PropertyName = "path")] - public string Path { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1GlusterfsVolumeSource.cs b/src/KubernetesClient/generated/Models/V1GlusterfsVolumeSource.cs deleted file mode 100644 index 56fe6378c..000000000 --- a/src/KubernetesClient/generated/Models/V1GlusterfsVolumeSource.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes - /// do not support ownership management or SELinux relabeling. - /// - public partial class V1GlusterfsVolumeSource - { - /// - /// Initializes a new instance of the V1GlusterfsVolumeSource class. - /// - public V1GlusterfsVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1GlusterfsVolumeSource class. - /// - /// - /// EndpointsName is the endpoint name that details Glusterfs topology. More info: - /// https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - /// - /// - /// Path is the Glusterfs volume path. More info: - /// https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - /// - /// - /// ReadOnly here will force the Glusterfs volume to be mounted with read-only - /// permissions. Defaults to false. More info: - /// https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - /// - public V1GlusterfsVolumeSource(string endpoints, string path, bool? readOnlyProperty = null) - { - Endpoints = endpoints; - Path = path; - ReadOnlyProperty = readOnlyProperty; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// EndpointsName is the endpoint name that details Glusterfs topology. More info: - /// https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - /// - [JsonProperty(PropertyName = "endpoints")] - public string Endpoints { get; set; } - - /// - /// Path is the Glusterfs volume path. More info: - /// https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - /// - [JsonProperty(PropertyName = "path")] - public string Path { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1GroupVersionForDiscovery.cs b/src/KubernetesClient/generated/Models/V1GroupVersionForDiscovery.cs deleted file mode 100644 index bc0a804d3..000000000 --- a/src/KubernetesClient/generated/Models/V1GroupVersionForDiscovery.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// GroupVersion contains the "group/version" and "version" string of a version. It - /// is made a struct to keep extensibility. - /// - public partial class V1GroupVersionForDiscovery - { - /// - /// Initializes a new instance of the V1GroupVersionForDiscovery class. - /// - public V1GroupVersionForDiscovery() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1GroupVersionForDiscovery class. - /// - /// - /// groupVersion specifies the API group and version in the form "group/version" - /// - /// - /// version specifies the version in the form of "version". This is to save the - /// clients the trouble of splitting the GroupVersion. - /// - public V1GroupVersionForDiscovery(string groupVersion, string version) - { - GroupVersion = groupVersion; - Version = version; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// groupVersion specifies the API group and version in the form "group/version" - /// - [JsonProperty(PropertyName = "groupVersion")] - public string GroupVersion { get; set; } - - /// - /// version specifies the version in the form of "version". This is to save the - /// clients the trouble of splitting the GroupVersion. - /// - [JsonProperty(PropertyName = "version")] - public string Version { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1HTTPGetAction.cs b/src/KubernetesClient/generated/Models/V1HTTPGetAction.cs deleted file mode 100644 index 606456c92..000000000 --- a/src/KubernetesClient/generated/Models/V1HTTPGetAction.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// HTTPGetAction describes an action based on HTTP Get requests. - /// - public partial class V1HTTPGetAction - { - /// - /// Initializes a new instance of the V1HTTPGetAction class. - /// - public V1HTTPGetAction() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1HTTPGetAction class. - /// - /// - /// Name or number of the port to access on the container. Number must be in the - /// range 1 to 65535. Name must be an IANA_SVC_NAME. - /// - /// - /// Host name to connect to, defaults to the pod IP. You probably want to set "Host" - /// in httpHeaders instead. - /// - /// - /// Custom headers to set in the request. HTTP allows repeated headers. - /// - /// - /// Path to access on the HTTP server. - /// - /// - /// Scheme to use for connecting to the host. Defaults to HTTP. - /// - public V1HTTPGetAction(IntstrIntOrString port, string host = null, IList httpHeaders = null, string path = null, string scheme = null) - { - Host = host; - HttpHeaders = httpHeaders; - Path = path; - Port = port; - Scheme = scheme; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Host name to connect to, defaults to the pod IP. You probably want to set "Host" - /// in httpHeaders instead. - /// - [JsonProperty(PropertyName = "host")] - public string Host { get; set; } - - /// - /// Custom headers to set in the request. HTTP allows repeated headers. - /// - [JsonProperty(PropertyName = "httpHeaders")] - public IList HttpHeaders { get; set; } - - /// - /// Path to access on the HTTP server. - /// - [JsonProperty(PropertyName = "path")] - public string Path { get; set; } - - /// - /// Name or number of the port to access on the container. Number must be in the - /// range 1 to 65535. Name must be an IANA_SVC_NAME. - /// - [JsonProperty(PropertyName = "port")] - public IntstrIntOrString Port { get; set; } - - /// - /// Scheme to use for connecting to the host. Defaults to HTTP. - /// - [JsonProperty(PropertyName = "scheme")] - public string Scheme { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Port == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Port"); - } - if (HttpHeaders != null){ - foreach(var obj in HttpHeaders) - { - obj.Validate(); - } - } - Port?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1HTTPHeader.cs b/src/KubernetesClient/generated/Models/V1HTTPHeader.cs deleted file mode 100644 index 8756827f0..000000000 --- a/src/KubernetesClient/generated/Models/V1HTTPHeader.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// HTTPHeader describes a custom header to be used in HTTP probes - /// - public partial class V1HTTPHeader - { - /// - /// Initializes a new instance of the V1HTTPHeader class. - /// - public V1HTTPHeader() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1HTTPHeader class. - /// - /// - /// The header field name - /// - /// - /// The header field value - /// - public V1HTTPHeader(string name, string value) - { - Name = name; - Value = value; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The header field name - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// The header field value - /// - [JsonProperty(PropertyName = "value")] - public string Value { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1HTTPIngressPath.cs b/src/KubernetesClient/generated/Models/V1HTTPIngressPath.cs deleted file mode 100644 index 83d8d3d8c..000000000 --- a/src/KubernetesClient/generated/Models/V1HTTPIngressPath.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// HTTPIngressPath associates a path with a backend. Incoming urls matching the - /// path are forwarded to the backend. - /// - public partial class V1HTTPIngressPath - { - /// - /// Initializes a new instance of the V1HTTPIngressPath class. - /// - public V1HTTPIngressPath() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1HTTPIngressPath class. - /// - /// - /// Backend defines the referenced service endpoint to which the traffic will be - /// forwarded to. - /// - /// - /// 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. - /// - /// - /// Path is matched against the path of an incoming request. Currently it can - /// contain characters disallowed from the conventional "path" part of a URL as - /// defined by RFC 3986. Paths must begin with a '/' and must be present when using - /// PathType with value "Exact" or "Prefix". - /// - public V1HTTPIngressPath(V1IngressBackend backend, string pathType, string path = null) - { - Backend = backend; - Path = path; - PathType = pathType; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Backend defines the referenced service endpoint to which the traffic will be - /// forwarded to. - /// - [JsonProperty(PropertyName = "backend")] - public V1IngressBackend Backend { get; set; } - - /// - /// 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". - /// - [JsonProperty(PropertyName = "path")] - public string Path { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "pathType")] - public string PathType { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Backend == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Backend"); - } - Backend?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1HTTPIngressRuleValue.cs b/src/KubernetesClient/generated/Models/V1HTTPIngressRuleValue.cs deleted file mode 100644 index 18259e191..000000000 --- a/src/KubernetesClient/generated/Models/V1HTTPIngressRuleValue.cs +++ /dev/null @@ -1,70 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// HTTPIngressRuleValue is a list of http selectors pointing to backends. In the - /// example: http://<host>/<path>?<searchpart> -> backend where where parts of the - /// url correspond to RFC 3986, this resource will be used to match against - /// everything after the last '/' and before the first '?' or '#'. - /// - public partial class V1HTTPIngressRuleValue - { - /// - /// Initializes a new instance of the V1HTTPIngressRuleValue class. - /// - public V1HTTPIngressRuleValue() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1HTTPIngressRuleValue class. - /// - /// - /// A collection of paths that map requests to backends. - /// - public V1HTTPIngressRuleValue(IList paths) - { - Paths = paths; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// A collection of paths that map requests to backends. - /// - [JsonProperty(PropertyName = "paths")] - public IList Paths { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Paths != null){ - foreach(var obj in Paths) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Handler.cs b/src/KubernetesClient/generated/Models/V1Handler.cs deleted file mode 100644 index be1e8702a..000000000 --- a/src/KubernetesClient/generated/Models/V1Handler.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Handler defines a specific action that should be taken - /// - public partial class V1Handler - { - /// - /// Initializes a new instance of the V1Handler class. - /// - public V1Handler() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Handler class. - /// - /// - /// One and only one of the following should be specified. Exec specifies the action - /// to take. - /// - /// - /// HTTPGet specifies the http request to perform. - /// - /// - /// TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - /// - public V1Handler(V1ExecAction exec = null, V1HTTPGetAction httpGet = null, V1TCPSocketAction tcpSocket = null) - { - Exec = exec; - HttpGet = httpGet; - TcpSocket = tcpSocket; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// One and only one of the following should be specified. Exec specifies the action - /// to take. - /// - [JsonProperty(PropertyName = "exec")] - public V1ExecAction Exec { get; set; } - - /// - /// HTTPGet specifies the http request to perform. - /// - [JsonProperty(PropertyName = "httpGet")] - public V1HTTPGetAction HttpGet { get; set; } - - /// - /// TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - /// - [JsonProperty(PropertyName = "tcpSocket")] - public V1TCPSocketAction TcpSocket { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Exec?.Validate(); - HttpGet?.Validate(); - TcpSocket?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1HorizontalPodAutoscaler.cs b/src/KubernetesClient/generated/Models/V1HorizontalPodAutoscaler.cs deleted file mode 100644 index 0f8267fb4..000000000 --- a/src/KubernetesClient/generated/Models/V1HorizontalPodAutoscaler.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// configuration of a horizontal pod autoscaler. - /// - public partial class V1HorizontalPodAutoscaler - { - /// - /// Initializes a new instance of the V1HorizontalPodAutoscaler class. - /// - public V1HorizontalPodAutoscaler() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1HorizontalPodAutoscaler class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// behaviour of autoscaler. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - /// - /// - /// current information about the autoscaler. - /// - public V1HorizontalPodAutoscaler(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1HorizontalPodAutoscalerSpec spec = null, V1HorizontalPodAutoscalerStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// behaviour of autoscaler. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - /// - [JsonProperty(PropertyName = "spec")] - public V1HorizontalPodAutoscalerSpec Spec { get; set; } - - /// - /// current information about the autoscaler. - /// - [JsonProperty(PropertyName = "status")] - public V1HorizontalPodAutoscalerStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1HorizontalPodAutoscalerList.cs b/src/KubernetesClient/generated/Models/V1HorizontalPodAutoscalerList.cs deleted file mode 100644 index db59f506a..000000000 --- a/src/KubernetesClient/generated/Models/V1HorizontalPodAutoscalerList.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// list of horizontal pod autoscaler objects. - /// - public partial class V1HorizontalPodAutoscalerList - { - /// - /// Initializes a new instance of the V1HorizontalPodAutoscalerList class. - /// - public V1HorizontalPodAutoscalerList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1HorizontalPodAutoscalerList class. - /// - /// - /// list of horizontal pod autoscaler objects. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. - /// - public V1HorizontalPodAutoscalerList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// list of horizontal pod autoscaler objects. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1HorizontalPodAutoscalerSpec.cs b/src/KubernetesClient/generated/Models/V1HorizontalPodAutoscalerSpec.cs deleted file mode 100644 index 1843d487a..000000000 --- a/src/KubernetesClient/generated/Models/V1HorizontalPodAutoscalerSpec.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// specification of a horizontal pod autoscaler. - /// - public partial class V1HorizontalPodAutoscalerSpec - { - /// - /// Initializes a new instance of the V1HorizontalPodAutoscalerSpec class. - /// - public V1HorizontalPodAutoscalerSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1HorizontalPodAutoscalerSpec class. - /// - /// - /// upper limit for the number of pods that can be set by the autoscaler; cannot be - /// smaller than MinReplicas. - /// - /// - /// reference to scaled resource; horizontal pod autoscaler will learn the current - /// resource consumption and will set the desired number of pods by using its Scale - /// subresource. - /// - /// - /// minReplicas is the lower limit for the number of replicas to which the - /// autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be - /// 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or - /// External metric is configured. Scaling is active as long as at least one metric - /// value is available. - /// - /// - /// target average CPU utilization (represented as a percentage of requested CPU) - /// over all the pods; if not specified the default autoscaling policy will be used. - /// - public V1HorizontalPodAutoscalerSpec(int maxReplicas, V1CrossVersionObjectReference scaleTargetRef, int? minReplicas = null, int? targetCPUUtilizationPercentage = null) - { - MaxReplicas = maxReplicas; - MinReplicas = minReplicas; - ScaleTargetRef = scaleTargetRef; - TargetCPUUtilizationPercentage = targetCPUUtilizationPercentage; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// upper limit for the number of pods that can be set by the autoscaler; cannot be - /// smaller than MinReplicas. - /// - [JsonProperty(PropertyName = "maxReplicas")] - public int MaxReplicas { get; set; } - - /// - /// minReplicas is the lower limit for the number of replicas to which the - /// autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be - /// 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or - /// External metric is configured. Scaling is active as long as at least one metric - /// value is available. - /// - [JsonProperty(PropertyName = "minReplicas")] - public int? MinReplicas { get; set; } - - /// - /// reference to scaled resource; horizontal pod autoscaler will learn the current - /// resource consumption and will set the desired number of pods by using its Scale - /// subresource. - /// - [JsonProperty(PropertyName = "scaleTargetRef")] - public V1CrossVersionObjectReference ScaleTargetRef { get; set; } - - /// - /// target average CPU utilization (represented as a percentage of requested CPU) - /// over all the pods; if not specified the default autoscaling policy will be used. - /// - [JsonProperty(PropertyName = "targetCPUUtilizationPercentage")] - public int? TargetCPUUtilizationPercentage { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (ScaleTargetRef == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ScaleTargetRef"); - } - ScaleTargetRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1HorizontalPodAutoscalerStatus.cs b/src/KubernetesClient/generated/Models/V1HorizontalPodAutoscalerStatus.cs deleted file mode 100644 index e92679d5b..000000000 --- a/src/KubernetesClient/generated/Models/V1HorizontalPodAutoscalerStatus.cs +++ /dev/null @@ -1,107 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// current status of a horizontal pod autoscaler - /// - public partial class V1HorizontalPodAutoscalerStatus - { - /// - /// Initializes a new instance of the V1HorizontalPodAutoscalerStatus class. - /// - public V1HorizontalPodAutoscalerStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1HorizontalPodAutoscalerStatus class. - /// - /// - /// current number of replicas of pods managed by this autoscaler. - /// - /// - /// desired number of replicas of pods managed by this autoscaler. - /// - /// - /// current average CPU utilization over all pods, represented as a percentage of - /// requested CPU, e.g. 70 means that an average pod is using now 70% of its - /// requested CPU. - /// - /// - /// last time the HorizontalPodAutoscaler scaled the number of pods; used by the - /// autoscaler to control how often the number of pods is changed. - /// - /// - /// most recent generation observed by this autoscaler. - /// - public V1HorizontalPodAutoscalerStatus(int currentReplicas, int desiredReplicas, int? currentCPUUtilizationPercentage = null, System.DateTime? lastScaleTime = null, long? observedGeneration = null) - { - CurrentCPUUtilizationPercentage = currentCPUUtilizationPercentage; - CurrentReplicas = currentReplicas; - DesiredReplicas = desiredReplicas; - LastScaleTime = lastScaleTime; - ObservedGeneration = observedGeneration; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// current average CPU utilization over all pods, represented as a percentage of - /// requested CPU, e.g. 70 means that an average pod is using now 70% of its - /// requested CPU. - /// - [JsonProperty(PropertyName = "currentCPUUtilizationPercentage")] - public int? CurrentCPUUtilizationPercentage { get; set; } - - /// - /// current number of replicas of pods managed by this autoscaler. - /// - [JsonProperty(PropertyName = "currentReplicas")] - public int CurrentReplicas { get; set; } - - /// - /// desired number of replicas of pods managed by this autoscaler. - /// - [JsonProperty(PropertyName = "desiredReplicas")] - public int DesiredReplicas { get; set; } - - /// - /// last time the HorizontalPodAutoscaler scaled the number of pods; used by the - /// autoscaler to control how often the number of pods is changed. - /// - [JsonProperty(PropertyName = "lastScaleTime")] - public System.DateTime? LastScaleTime { get; set; } - - /// - /// most recent generation observed by this autoscaler. - /// - [JsonProperty(PropertyName = "observedGeneration")] - public long? ObservedGeneration { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1HostAlias.cs b/src/KubernetesClient/generated/Models/V1HostAlias.cs deleted file mode 100644 index ebb4126f3..000000000 --- a/src/KubernetesClient/generated/Models/V1HostAlias.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// HostAlias holds the mapping between IP and hostnames that will be injected as an - /// entry in the pod's hosts file. - /// - public partial class V1HostAlias - { - /// - /// Initializes a new instance of the V1HostAlias class. - /// - public V1HostAlias() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1HostAlias class. - /// - /// - /// Hostnames for the above IP address. - /// - /// - /// IP address of the host file entry. - /// - public V1HostAlias(IList hostnames = null, string ip = null) - { - Hostnames = hostnames; - Ip = ip; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Hostnames for the above IP address. - /// - [JsonProperty(PropertyName = "hostnames")] - public IList Hostnames { get; set; } - - /// - /// IP address of the host file entry. - /// - [JsonProperty(PropertyName = "ip")] - public string Ip { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1HostPathVolumeSource.cs b/src/KubernetesClient/generated/Models/V1HostPathVolumeSource.cs deleted file mode 100644 index 73e376f3c..000000000 --- a/src/KubernetesClient/generated/Models/V1HostPathVolumeSource.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents a host path mapped into a pod. Host path volumes do not support - /// ownership management or SELinux relabeling. - /// - public partial class V1HostPathVolumeSource - { - /// - /// Initializes a new instance of the V1HostPathVolumeSource class. - /// - public V1HostPathVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1HostPathVolumeSource class. - /// - /// - /// Path of the directory on the host. If the path is a symlink, it will follow the - /// link to the real path. More info: - /// https://kubernetes.io/docs/concepts/storage/volumes#hostpath - /// - /// - /// Type for HostPath Volume Defaults to "" More info: - /// https://kubernetes.io/docs/concepts/storage/volumes#hostpath - /// - public V1HostPathVolumeSource(string path, string type = null) - { - Path = path; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Path of the directory on the host. If the path is a symlink, it will follow the - /// link to the real path. More info: - /// https://kubernetes.io/docs/concepts/storage/volumes#hostpath - /// - [JsonProperty(PropertyName = "path")] - public string Path { get; set; } - - /// - /// Type for HostPath Volume Defaults to "" More info: - /// https://kubernetes.io/docs/concepts/storage/volumes#hostpath - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1IPBlock.cs b/src/KubernetesClient/generated/Models/V1IPBlock.cs deleted file mode 100644 index 7e0141a5c..000000000 --- a/src/KubernetesClient/generated/Models/V1IPBlock.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// IPBlock describes a particular CIDR (Ex. "192.168.1.1/24","2001:db9::/64") that - /// is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except - /// entry describes CIDRs that should not be included within this rule. - /// - public partial class V1IPBlock - { - /// - /// Initializes a new instance of the V1IPBlock class. - /// - public V1IPBlock() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1IPBlock class. - /// - /// - /// CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" - /// or "2001:db9::/64" - /// - /// - /// Except is a slice of CIDRs that should not be included within an IP Block Valid - /// examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected - /// if they are outside the CIDR range - /// - public V1IPBlock(string cidr, IList except = null) - { - Cidr = cidr; - Except = except; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" - /// or "2001:db9::/64" - /// - [JsonProperty(PropertyName = "cidr")] - public string Cidr { get; set; } - - /// - /// Except is a slice of CIDRs that should not be included within an IP Block Valid - /// examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected - /// if they are outside the CIDR range - /// - [JsonProperty(PropertyName = "except")] - public IList Except { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ISCSIPersistentVolumeSource.cs b/src/KubernetesClient/generated/Models/V1ISCSIPersistentVolumeSource.cs deleted file mode 100644 index 789ba7cea..000000000 --- a/src/KubernetesClient/generated/Models/V1ISCSIPersistentVolumeSource.cs +++ /dev/null @@ -1,180 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be - /// mounted as read/write once. ISCSI volumes support ownership management and - /// SELinux relabeling. - /// - public partial class V1ISCSIPersistentVolumeSource - { - /// - /// Initializes a new instance of the V1ISCSIPersistentVolumeSource class. - /// - public V1ISCSIPersistentVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ISCSIPersistentVolumeSource class. - /// - /// - /// Target iSCSI Qualified Name. - /// - /// - /// iSCSI Target Lun number. - /// - /// - /// iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is - /// other than default (typically TCP ports 860 and 3260). - /// - /// - /// whether support iSCSI Discovery CHAP authentication - /// - /// - /// whether support iSCSI Session CHAP authentication - /// - /// - /// 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 - /// - /// - /// Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface - /// simultaneously, new iSCSI interface <target portal>:<volume name> will be - /// created for the connection. - /// - /// - /// iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - /// - /// - /// 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). - /// - /// - /// ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to - /// false. - /// - /// - /// CHAP Secret for iSCSI target and initiator authentication - /// - public V1ISCSIPersistentVolumeSource(string iqn, int lun, string targetPortal, bool? chapAuthDiscovery = null, bool? chapAuthSession = null, string fsType = null, string initiatorName = null, string iscsiInterface = null, IList portals = null, bool? readOnlyProperty = null, V1SecretReference secretRef = null) - { - ChapAuthDiscovery = chapAuthDiscovery; - ChapAuthSession = chapAuthSession; - FsType = fsType; - InitiatorName = initiatorName; - Iqn = iqn; - IscsiInterface = iscsiInterface; - Lun = lun; - Portals = portals; - ReadOnlyProperty = readOnlyProperty; - SecretRef = secretRef; - TargetPortal = targetPortal; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// whether support iSCSI Discovery CHAP authentication - /// - [JsonProperty(PropertyName = "chapAuthDiscovery")] - public bool? ChapAuthDiscovery { get; set; } - - /// - /// whether support iSCSI Session CHAP authentication - /// - [JsonProperty(PropertyName = "chapAuthSession")] - public bool? ChapAuthSession { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "fsType")] - public string FsType { get; set; } - - /// - /// Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface - /// simultaneously, new iSCSI interface <target portal>:<volume name> will be - /// created for the connection. - /// - [JsonProperty(PropertyName = "initiatorName")] - public string InitiatorName { get; set; } - - /// - /// Target iSCSI Qualified Name. - /// - [JsonProperty(PropertyName = "iqn")] - public string Iqn { get; set; } - - /// - /// iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - /// - [JsonProperty(PropertyName = "iscsiInterface")] - public string IscsiInterface { get; set; } - - /// - /// iSCSI Target Lun number. - /// - [JsonProperty(PropertyName = "lun")] - public int Lun { get; set; } - - /// - /// 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). - /// - [JsonProperty(PropertyName = "portals")] - public IList Portals { get; set; } - - /// - /// ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to - /// false. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// CHAP Secret for iSCSI target and initiator authentication - /// - [JsonProperty(PropertyName = "secretRef")] - public V1SecretReference SecretRef { get; set; } - - /// - /// iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is - /// other than default (typically TCP ports 860 and 3260). - /// - [JsonProperty(PropertyName = "targetPortal")] - public string TargetPortal { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - SecretRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ISCSIVolumeSource.cs b/src/KubernetesClient/generated/Models/V1ISCSIVolumeSource.cs deleted file mode 100644 index 246d9d804..000000000 --- a/src/KubernetesClient/generated/Models/V1ISCSIVolumeSource.cs +++ /dev/null @@ -1,179 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. - /// ISCSI volumes support ownership management and SELinux relabeling. - /// - public partial class V1ISCSIVolumeSource - { - /// - /// Initializes a new instance of the V1ISCSIVolumeSource class. - /// - public V1ISCSIVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ISCSIVolumeSource class. - /// - /// - /// Target iSCSI Qualified Name. - /// - /// - /// iSCSI Target Lun number. - /// - /// - /// iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is - /// other than default (typically TCP ports 860 and 3260). - /// - /// - /// whether support iSCSI Discovery CHAP authentication - /// - /// - /// whether support iSCSI Session CHAP authentication - /// - /// - /// 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 - /// - /// - /// Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface - /// simultaneously, new iSCSI interface <target portal>:<volume name> will be - /// created for the connection. - /// - /// - /// iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - /// - /// - /// 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). - /// - /// - /// ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to - /// false. - /// - /// - /// CHAP Secret for iSCSI target and initiator authentication - /// - public V1ISCSIVolumeSource(string iqn, int lun, string targetPortal, bool? chapAuthDiscovery = null, bool? chapAuthSession = null, string fsType = null, string initiatorName = null, string iscsiInterface = null, IList portals = null, bool? readOnlyProperty = null, V1LocalObjectReference secretRef = null) - { - ChapAuthDiscovery = chapAuthDiscovery; - ChapAuthSession = chapAuthSession; - FsType = fsType; - InitiatorName = initiatorName; - Iqn = iqn; - IscsiInterface = iscsiInterface; - Lun = lun; - Portals = portals; - ReadOnlyProperty = readOnlyProperty; - SecretRef = secretRef; - TargetPortal = targetPortal; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// whether support iSCSI Discovery CHAP authentication - /// - [JsonProperty(PropertyName = "chapAuthDiscovery")] - public bool? ChapAuthDiscovery { get; set; } - - /// - /// whether support iSCSI Session CHAP authentication - /// - [JsonProperty(PropertyName = "chapAuthSession")] - public bool? ChapAuthSession { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "fsType")] - public string FsType { get; set; } - - /// - /// Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface - /// simultaneously, new iSCSI interface <target portal>:<volume name> will be - /// created for the connection. - /// - [JsonProperty(PropertyName = "initiatorName")] - public string InitiatorName { get; set; } - - /// - /// Target iSCSI Qualified Name. - /// - [JsonProperty(PropertyName = "iqn")] - public string Iqn { get; set; } - - /// - /// iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - /// - [JsonProperty(PropertyName = "iscsiInterface")] - public string IscsiInterface { get; set; } - - /// - /// iSCSI Target Lun number. - /// - [JsonProperty(PropertyName = "lun")] - public int Lun { get; set; } - - /// - /// 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). - /// - [JsonProperty(PropertyName = "portals")] - public IList Portals { get; set; } - - /// - /// ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to - /// false. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// CHAP Secret for iSCSI target and initiator authentication - /// - [JsonProperty(PropertyName = "secretRef")] - public V1LocalObjectReference SecretRef { get; set; } - - /// - /// iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is - /// other than default (typically TCP ports 860 and 3260). - /// - [JsonProperty(PropertyName = "targetPortal")] - public string TargetPortal { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - SecretRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Ingress.cs b/src/KubernetesClient/generated/Models/V1Ingress.cs deleted file mode 100644 index 7149923c8..000000000 --- a/src/KubernetesClient/generated/Models/V1Ingress.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1Ingress - { - /// - /// Initializes a new instance of the V1Ingress class. - /// - public V1Ingress() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Ingress class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Spec is the desired state of the Ingress. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - /// - /// Status is the current state of the Ingress. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - public V1Ingress(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1IngressSpec spec = null, V1IngressStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Spec is the desired state of the Ingress. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1IngressSpec Spec { get; set; } - - /// - /// Status is the current state of the Ingress. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "status")] - public V1IngressStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1IngressBackend.cs b/src/KubernetesClient/generated/Models/V1IngressBackend.cs deleted file mode 100644 index 3e4b865b9..000000000 --- a/src/KubernetesClient/generated/Models/V1IngressBackend.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// IngressBackend describes all endpoints for a given service and port. - /// - public partial class V1IngressBackend - { - /// - /// Initializes a new instance of the V1IngressBackend class. - /// - public V1IngressBackend() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1IngressBackend class. - /// - /// - /// Resource is an ObjectRef to another Kubernetes resource in the namespace of the - /// Ingress object. If resource is specified, a service.Name and service.Port must - /// not be specified. This is a mutually exclusive setting with "Service". - /// - /// - /// Service references a Service as a Backend. This is a mutually exclusive setting - /// with "Resource". - /// - public V1IngressBackend(V1TypedLocalObjectReference resource = null, V1IngressServiceBackend service = null) - { - Resource = resource; - Service = service; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Resource is an ObjectRef to another Kubernetes resource in the namespace of the - /// Ingress object. If resource is specified, a service.Name and service.Port must - /// not be specified. This is a mutually exclusive setting with "Service". - /// - [JsonProperty(PropertyName = "resource")] - public V1TypedLocalObjectReference Resource { get; set; } - - /// - /// Service references a Service as a Backend. This is a mutually exclusive setting - /// with "Resource". - /// - [JsonProperty(PropertyName = "service")] - public V1IngressServiceBackend Service { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Resource?.Validate(); - Service?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1IngressClass.cs b/src/KubernetesClient/generated/Models/V1IngressClass.cs deleted file mode 100644 index bdb35e320..000000000 --- a/src/KubernetesClient/generated/Models/V1IngressClass.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1IngressClass - { - /// - /// Initializes a new instance of the V1IngressClass class. - /// - public V1IngressClass() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1IngressClass class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Spec is the desired state of the IngressClass. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - public V1IngressClass(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1IngressClassSpec spec = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Spec is the desired state of the IngressClass. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1IngressClassSpec Spec { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1IngressClassList.cs b/src/KubernetesClient/generated/Models/V1IngressClassList.cs deleted file mode 100644 index 59505400f..000000000 --- a/src/KubernetesClient/generated/Models/V1IngressClassList.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// IngressClassList is a collection of IngressClasses. - /// - public partial class V1IngressClassList - { - /// - /// Initializes a new instance of the V1IngressClassList class. - /// - public V1IngressClassList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1IngressClassList class. - /// - /// - /// Items is the list of IngressClasses. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. - /// - public V1IngressClassList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is the list of IngressClasses. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1IngressClassParametersReference.cs b/src/KubernetesClient/generated/Models/V1IngressClassParametersReference.cs deleted file mode 100644 index d46cd5cb5..000000000 --- a/src/KubernetesClient/generated/Models/V1IngressClassParametersReference.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// IngressClassParametersReference identifies an API object. This can be used to - /// specify a cluster or namespace-scoped resource. - /// - public partial class V1IngressClassParametersReference - { - /// - /// Initializes a new instance of the V1IngressClassParametersReference class. - /// - public V1IngressClassParametersReference() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1IngressClassParametersReference class. - /// - /// - /// Kind is the type of resource being referenced. - /// - /// - /// Name is the name of resource being referenced. - /// - /// - /// 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. - /// - /// - /// 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". - /// - /// - /// Scope represents if this refers to a cluster or namespace scoped resource. This - /// may be set to "Cluster" (default) or "Namespace". Field can be enabled with - /// IngressClassNamespacedParams feature gate. - /// - public V1IngressClassParametersReference(string kind, string name, string apiGroup = null, string namespaceProperty = null, string scope = null) - { - ApiGroup = apiGroup; - Kind = kind; - Name = name; - NamespaceProperty = namespaceProperty; - Scope = scope; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "apiGroup")] - public string ApiGroup { get; set; } - - /// - /// Kind is the type of resource being referenced. - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Name is the name of resource being referenced. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// 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". - /// - [JsonProperty(PropertyName = "namespace")] - public string NamespaceProperty { get; set; } - - /// - /// Scope represents if this refers to a cluster or namespace scoped resource. This - /// may be set to "Cluster" (default) or "Namespace". Field can be enabled with - /// IngressClassNamespacedParams feature gate. - /// - [JsonProperty(PropertyName = "scope")] - public string Scope { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1IngressClassSpec.cs b/src/KubernetesClient/generated/Models/V1IngressClassSpec.cs deleted file mode 100644 index 630727424..000000000 --- a/src/KubernetesClient/generated/Models/V1IngressClassSpec.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// IngressClassSpec provides information about the class of an Ingress. - /// - public partial class V1IngressClassSpec - { - /// - /// Initializes a new instance of the V1IngressClassSpec class. - /// - public V1IngressClassSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1IngressClassSpec class. - /// - /// - /// 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. - /// - /// - /// Parameters is a link to a custom resource containing additional configuration - /// for the controller. This is optional if the controller does not require extra - /// parameters. - /// - public V1IngressClassSpec(string controller = null, V1IngressClassParametersReference parameters = null) - { - Controller = controller; - Parameters = parameters; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "controller")] - public string Controller { get; set; } - - /// - /// Parameters is a link to a custom resource containing additional configuration - /// for the controller. This is optional if the controller does not require extra - /// parameters. - /// - [JsonProperty(PropertyName = "parameters")] - public V1IngressClassParametersReference Parameters { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Parameters?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1IngressList.cs b/src/KubernetesClient/generated/Models/V1IngressList.cs deleted file mode 100644 index 4b41ed1cb..000000000 --- a/src/KubernetesClient/generated/Models/V1IngressList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// IngressList is a collection of Ingress. - /// - public partial class V1IngressList - { - /// - /// Initializes a new instance of the V1IngressList class. - /// - public V1IngressList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1IngressList class. - /// - /// - /// Items is the list of Ingress. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1IngressList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is the list of Ingress. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1IngressRule.cs b/src/KubernetesClient/generated/Models/V1IngressRule.cs deleted file mode 100644 index f00c63c2f..000000000 --- a/src/KubernetesClient/generated/Models/V1IngressRule.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1IngressRule - { - /// - /// Initializes a new instance of the V1IngressRule class. - /// - public V1IngressRule() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1IngressRule class. - /// - /// - /// Host is the fully qualified domain name of a network host, as defined by RFC - /// 3986. Note the following deviations from the "host" part of the URI as defined - /// in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only - /// apply to - /// the IP in the Spec of the parent Ingress. - /// 2. The `:` delimiter is not respected because ports are not allowed. - /// Currently the port of an Ingress is implicitly :80 for http and - /// :443 for https. - /// Both these may change in the future. Incoming requests are matched against the - /// host before the IngressRuleValue. If the host is unspecified, the Ingress routes - /// all traffic based on the specified IngressRuleValue. - /// - /// Host can be "precise" which is a domain name without the terminating dot of a - /// network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed - /// with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must - /// appear by itself as the first DNS label and matches only a single label. You - /// cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be - /// matched against the Host field in the following way: 1. If Host is precise, the - /// request matches this rule if the http host header is equal to Host. 2. If Host - /// is a wildcard, then the request matches this rule if the http host header is to - /// equal to the suffix (removing the first label) of the wildcard rule. - /// - /// - /// - /// - public V1IngressRule(string host = null, V1HTTPIngressRuleValue http = null) - { - Host = host; - Http = http; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Host is the fully qualified domain name of a network host, as defined by RFC - /// 3986. Note the following deviations from the "host" part of the URI as defined - /// in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only - /// apply to - /// the IP in the Spec of the parent Ingress. - /// 2. The `:` delimiter is not respected because ports are not allowed. - /// Currently the port of an Ingress is implicitly :80 for http and - /// :443 for https. - /// Both these may change in the future. Incoming requests are matched against the - /// host before the IngressRuleValue. If the host is unspecified, the Ingress routes - /// all traffic based on the specified IngressRuleValue. - /// - /// Host can be "precise" which is a domain name without the terminating dot of a - /// network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed - /// with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must - /// appear by itself as the first DNS label and matches only a single label. You - /// cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be - /// matched against the Host field in the following way: 1. If Host is precise, the - /// request matches this rule if the http host header is equal to Host. 2. If Host - /// is a wildcard, then the request matches this rule if the http host header is to - /// equal to the suffix (removing the first label) of the wildcard rule. - /// - [JsonProperty(PropertyName = "host")] - public string Host { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "http")] - public V1HTTPIngressRuleValue Http { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Http?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1IngressServiceBackend.cs b/src/KubernetesClient/generated/Models/V1IngressServiceBackend.cs deleted file mode 100644 index 7ed10c04c..000000000 --- a/src/KubernetesClient/generated/Models/V1IngressServiceBackend.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// IngressServiceBackend references a Kubernetes Service as a Backend. - /// - public partial class V1IngressServiceBackend - { - /// - /// Initializes a new instance of the V1IngressServiceBackend class. - /// - public V1IngressServiceBackend() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1IngressServiceBackend class. - /// - /// - /// Name is the referenced service. The service must exist in the same namespace as - /// the Ingress object. - /// - /// - /// Port of the referenced service. A port name or port number is required for a - /// IngressServiceBackend. - /// - public V1IngressServiceBackend(string name, V1ServiceBackendPort port = null) - { - Name = name; - Port = port; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Name is the referenced service. The service must exist in the same namespace as - /// the Ingress object. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Port of the referenced service. A port name or port number is required for a - /// IngressServiceBackend. - /// - [JsonProperty(PropertyName = "port")] - public V1ServiceBackendPort Port { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Port?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1IngressSpec.cs b/src/KubernetesClient/generated/Models/V1IngressSpec.cs deleted file mode 100644 index d219e1e43..000000000 --- a/src/KubernetesClient/generated/Models/V1IngressSpec.cs +++ /dev/null @@ -1,134 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// IngressSpec describes the Ingress the user wishes to exist. - /// - public partial class V1IngressSpec - { - /// - /// Initializes a new instance of the V1IngressSpec class. - /// - public V1IngressSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1IngressSpec class. - /// - /// - /// DefaultBackend is the backend that should handle requests that don't match any - /// rule. If Rules are not specified, DefaultBackend must be specified. If - /// DefaultBackend is not set, the handling of requests that do not match any of the - /// rules will be up to the Ingress controller. - /// - /// - /// IngressClassName is the name of the IngressClass cluster resource. The - /// associated IngressClass defines which controller will implement the resource. - /// This replaces the deprecated `kubernetes.io/ingress.class` annotation. For - /// backwards compatibility, when that annotation is set, it must be given - /// precedence over this field. The controller may emit a warning if the field and - /// annotation have different values. Implementations of this API should ignore - /// Ingresses without a class specified. An IngressClass resource may be marked as - /// default, which can be used to set a default value for this field. For more - /// information, refer to the IngressClass documentation. - /// - /// - /// A list of host rules used to configure the Ingress. If unspecified, or no rule - /// matches, all traffic is sent to the default backend. - /// - /// - /// TLS configuration. Currently the Ingress only supports a single TLS port, 443. - /// If multiple members of this list specify different hosts, they will be - /// multiplexed on the same port according to the hostname specified through the SNI - /// TLS extension, if the ingress controller fulfilling the ingress supports SNI. - /// - public V1IngressSpec(V1IngressBackend defaultBackend = null, string ingressClassName = null, IList rules = null, IList tls = null) - { - DefaultBackend = defaultBackend; - IngressClassName = ingressClassName; - Rules = rules; - Tls = tls; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// DefaultBackend is the backend that should handle requests that don't match any - /// rule. If Rules are not specified, DefaultBackend must be specified. If - /// DefaultBackend is not set, the handling of requests that do not match any of the - /// rules will be up to the Ingress controller. - /// - [JsonProperty(PropertyName = "defaultBackend")] - public V1IngressBackend DefaultBackend { get; set; } - - /// - /// IngressClassName is the name of the IngressClass cluster resource. The - /// associated IngressClass defines which controller will implement the resource. - /// This replaces the deprecated `kubernetes.io/ingress.class` annotation. For - /// backwards compatibility, when that annotation is set, it must be given - /// precedence over this field. The controller may emit a warning if the field and - /// annotation have different values. Implementations of this API should ignore - /// Ingresses without a class specified. An IngressClass resource may be marked as - /// default, which can be used to set a default value for this field. For more - /// information, refer to the IngressClass documentation. - /// - [JsonProperty(PropertyName = "ingressClassName")] - public string IngressClassName { get; set; } - - /// - /// A list of host rules used to configure the Ingress. If unspecified, or no rule - /// matches, all traffic is sent to the default backend. - /// - [JsonProperty(PropertyName = "rules")] - public IList Rules { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "tls")] - public IList Tls { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - DefaultBackend?.Validate(); - if (Rules != null){ - foreach(var obj in Rules) - { - obj.Validate(); - } - } - if (Tls != null){ - foreach(var obj in Tls) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1IngressStatus.cs b/src/KubernetesClient/generated/Models/V1IngressStatus.cs deleted file mode 100644 index db3b0f90a..000000000 --- a/src/KubernetesClient/generated/Models/V1IngressStatus.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// IngressStatus describe the current state of the Ingress. - /// - public partial class V1IngressStatus - { - /// - /// Initializes a new instance of the V1IngressStatus class. - /// - public V1IngressStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1IngressStatus class. - /// - /// - /// LoadBalancer contains the current status of the load-balancer. - /// - public V1IngressStatus(V1LoadBalancerStatus loadBalancer = null) - { - LoadBalancer = loadBalancer; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// LoadBalancer contains the current status of the load-balancer. - /// - [JsonProperty(PropertyName = "loadBalancer")] - public V1LoadBalancerStatus LoadBalancer { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - LoadBalancer?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1IngressTLS.cs b/src/KubernetesClient/generated/Models/V1IngressTLS.cs deleted file mode 100644 index d62f0ba62..000000000 --- a/src/KubernetesClient/generated/Models/V1IngressTLS.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// IngressTLS describes the transport layer security associated with an Ingress. - /// - public partial class V1IngressTLS - { - /// - /// Initializes a new instance of the V1IngressTLS class. - /// - public V1IngressTLS() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1IngressTLS class. - /// - /// - /// Hosts are 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. - /// - /// - /// SecretName is the name of the secret used to terminate TLS traffic on port 443. - /// Field is left optional to allow TLS routing based on SNI hostname alone. If the - /// SNI host in a listener conflicts with the "Host" header field used by an - /// IngressRule, the SNI host is used for termination and value of the Host header - /// is used for routing. - /// - public V1IngressTLS(IList hosts = null, string secretName = null) - { - Hosts = hosts; - SecretName = secretName; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Hosts are 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. - /// - [JsonProperty(PropertyName = "hosts")] - public IList Hosts { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "secretName")] - public string SecretName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1JSONSchemaProps.cs b/src/KubernetesClient/generated/Models/V1JSONSchemaProps.cs deleted file mode 100644 index 86afbcee5..000000000 --- a/src/KubernetesClient/generated/Models/V1JSONSchemaProps.cs +++ /dev/null @@ -1,676 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// JSONSchemaProps is a JSON-Schema following Specification Draft 4 - /// (http://json-schema.org/). - /// - public partial class V1JSONSchemaProps - { - /// - /// Initializes a new instance of the V1JSONSchemaProps class. - /// - public V1JSONSchemaProps() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1JSONSchemaProps class. - /// - /// - /// - /// - /// - /// - /// - /// - /// JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to - /// true for the boolean property. - /// - /// - /// JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to - /// true for the boolean property. - /// - /// - /// - /// - /// - /// - /// - /// - /// default is a default value for undefined object fields. Defaulting is a beta - /// feature under the CustomResourceDefaulting feature gate. Defaulting requires - /// spec.preserveUnknownFields to be false. - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// JSON represents any valid JSON value. These types are supported: bool, int64, - /// float64, string, []interface{}, map[string]interface{} and nil. - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// 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. - /// - /// - /// - /// - /// - /// JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps - /// or an array of JSONSchemaProps. Mainly here for serialization purposes. - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes - /// runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is - /// allowed to further restrict the embedded object. kind, apiVersion and metadata - /// are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to - /// be true, but does not have to be if the object is fully specified (up to kind, - /// apiVersion, metadata). - /// - /// - /// x-kubernetes-int-or-string specifies that this value is either an integer or a - /// string. If this is true, an empty type is allowed and type as child of anyOf is - /// permitted if following one of the following patterns: - /// - /// 1) anyOf: - /// - type: integer - /// - type: string - /// 2) allOf: - /// - anyOf: - /// - type: integer - /// - type: string - /// - ... zero or more - /// - /// - /// x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type - /// `map` by specifying the keys used as the index of the map. - /// - /// This tag MUST only be used on lists that have the "x-kubernetes-list-type" - /// extension set to "map". Also, the values specified for this attribute must be a - /// scalar typed field of the child structure (no nesting is supported). - /// - /// The properties specified must either be required or have a default value, to - /// ensure those properties are present for all list items. - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// x-kubernetes-preserve-unknown-fields stops the API server decoding step from - /// pruning fields which are not specified in the validation schema. This affects - /// fields recursively, but switches back to normal pruning behaviour if nested - /// properties or additionalProperties are specified in the schema. This can either - /// be true or undefined. False is forbidden. - /// - public V1JSONSchemaProps(string refProperty = null, string schema = null, object additionalItems = null, object additionalProperties = null, IList allOf = null, IList anyOf = null, object defaultProperty = null, IDictionary definitions = null, IDictionary dependencies = null, string description = null, IList enumProperty = null, object example = null, bool? exclusiveMaximum = null, bool? exclusiveMinimum = null, V1ExternalDocumentation externalDocs = null, string format = null, string id = null, object items = null, long? maxItems = null, long? maxLength = null, long? maxProperties = null, double? maximum = null, long? minItems = null, long? minLength = null, long? minProperties = null, double? minimum = null, double? multipleOf = null, V1JSONSchemaProps not = null, bool? nullable = null, IList oneOf = null, string pattern = null, IDictionary patternProperties = null, IDictionary properties = null, IList required = null, string title = null, string type = null, bool? uniqueItems = null, bool? xKubernetesEmbeddedResource = null, bool? xKubernetesIntOrString = null, IList xKubernetesListMapKeys = null, string xKubernetesListType = null, string xKubernetesMapType = null, bool? xKubernetesPreserveUnknownFields = null) - { - RefProperty = refProperty; - Schema = schema; - AdditionalItems = additionalItems; - AdditionalProperties = additionalProperties; - AllOf = allOf; - AnyOf = anyOf; - DefaultProperty = defaultProperty; - Definitions = definitions; - Dependencies = dependencies; - Description = description; - EnumProperty = enumProperty; - Example = example; - ExclusiveMaximum = exclusiveMaximum; - ExclusiveMinimum = exclusiveMinimum; - ExternalDocs = externalDocs; - Format = format; - Id = id; - Items = items; - MaxItems = maxItems; - MaxLength = maxLength; - MaxProperties = maxProperties; - Maximum = maximum; - MinItems = minItems; - MinLength = minLength; - MinProperties = minProperties; - Minimum = minimum; - MultipleOf = multipleOf; - Not = not; - Nullable = nullable; - OneOf = oneOf; - Pattern = pattern; - PatternProperties = patternProperties; - Properties = properties; - Required = required; - Title = title; - Type = type; - UniqueItems = uniqueItems; - XKubernetesEmbeddedResource = xKubernetesEmbeddedResource; - XKubernetesIntOrString = xKubernetesIntOrString; - XKubernetesListMapKeys = xKubernetesListMapKeys; - XKubernetesListType = xKubernetesListType; - XKubernetesMapType = xKubernetesMapType; - XKubernetesPreserveUnknownFields = xKubernetesPreserveUnknownFields; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// - /// - [JsonProperty(PropertyName = "__referencePath")] - public string RefProperty { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "$schema")] - public string Schema { get; set; } - - /// - /// JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to - /// true for the boolean property. - /// - [JsonProperty(PropertyName = "additionalItems")] - public object AdditionalItems { get; set; } - - /// - /// JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to - /// true for the boolean property. - /// - [JsonProperty(PropertyName = "additionalProperties")] - public object AdditionalProperties { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "allOf")] - public IList AllOf { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "anyOf")] - public IList AnyOf { get; set; } - - /// - /// default is a default value for undefined object fields. Defaulting is a beta - /// feature under the CustomResourceDefaulting feature gate. Defaulting requires - /// spec.preserveUnknownFields to be false. - /// - [JsonProperty(PropertyName = "default")] - public object DefaultProperty { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "definitions")] - public IDictionary Definitions { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "dependencies")] - public IDictionary Dependencies { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "description")] - public string Description { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "enum")] - public IList EnumProperty { get; set; } - - /// - /// JSON represents any valid JSON value. These types are supported: bool, int64, - /// float64, string, []interface{}, map[string]interface{} and nil. - /// - [JsonProperty(PropertyName = "example")] - public object Example { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "exclusiveMaximum")] - public bool? ExclusiveMaximum { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "exclusiveMinimum")] - public bool? ExclusiveMinimum { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "externalDocs")] - public V1ExternalDocumentation ExternalDocs { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "format")] - public string Format { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "id")] - public string Id { get; set; } - - /// - /// JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps - /// or an array of JSONSchemaProps. Mainly here for serialization purposes. - /// - [JsonProperty(PropertyName = "items")] - public object Items { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "maxItems")] - public long? MaxItems { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "maxLength")] - public long? MaxLength { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "maxProperties")] - public long? MaxProperties { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "maximum")] - public double? Maximum { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "minItems")] - public long? MinItems { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "minLength")] - public long? MinLength { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "minProperties")] - public long? MinProperties { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "minimum")] - public double? Minimum { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "multipleOf")] - public double? MultipleOf { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "not")] - public V1JSONSchemaProps Not { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "nullable")] - public bool? Nullable { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "oneOf")] - public IList OneOf { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "pattern")] - public string Pattern { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "patternProperties")] - public IDictionary PatternProperties { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "properties")] - public IDictionary Properties { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "required")] - public IList Required { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "title")] - public string Title { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "uniqueItems")] - public bool? UniqueItems { get; set; } - - /// - /// x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes - /// runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is - /// allowed to further restrict the embedded object. kind, apiVersion and metadata - /// are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to - /// be true, but does not have to be if the object is fully specified (up to kind, - /// apiVersion, metadata). - /// - [JsonProperty(PropertyName = "x-kubernetes-embedded-resource")] - public bool? XKubernetesEmbeddedResource { get; set; } - - /// - /// x-kubernetes-int-or-string specifies that this value is either an integer or a - /// string. If this is true, an empty type is allowed and type as child of anyOf is - /// permitted if following one of the following patterns: - /// - /// 1) anyOf: - /// - type: integer - /// - type: string - /// 2) allOf: - /// - anyOf: - /// - type: integer - /// - type: string - /// - ... zero or more - /// - [JsonProperty(PropertyName = "x-kubernetes-int-or-string")] - public bool? XKubernetesIntOrString { get; set; } - - /// - /// x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type - /// `map` by specifying the keys used as the index of the map. - /// - /// This tag MUST only be used on lists that have the "x-kubernetes-list-type" - /// extension set to "map". Also, the values specified for this attribute must be a - /// scalar typed field of the child structure (no nesting is supported). - /// - /// The properties specified must either be required or have a default value, to - /// ensure those properties are present for all list items. - /// - [JsonProperty(PropertyName = "x-kubernetes-list-map-keys")] - public IList XKubernetesListMapKeys { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "x-kubernetes-list-type")] - public string XKubernetesListType { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "x-kubernetes-map-type")] - public string XKubernetesMapType { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "x-kubernetes-preserve-unknown-fields")] - public bool? XKubernetesPreserveUnknownFields { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (AllOf != null){ - foreach(var obj in AllOf) - { - obj.Validate(); - } - } - if (AnyOf != null){ - foreach(var obj in AnyOf) - { - obj.Validate(); - } - } - ExternalDocs?.Validate(); - Not?.Validate(); - if (OneOf != null){ - foreach(var obj in OneOf) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Job.cs b/src/KubernetesClient/generated/Models/V1Job.cs deleted file mode 100644 index 333b7b39b..000000000 --- a/src/KubernetesClient/generated/Models/V1Job.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Job represents the configuration of a single job. - /// - public partial class V1Job - { - /// - /// Initializes a new instance of the V1Job class. - /// - public V1Job() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Job class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Specification of the desired behavior of a job. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - /// - /// Current status of a job. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - public V1Job(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1JobSpec spec = null, V1JobStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Specification of the desired behavior of a job. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1JobSpec Spec { get; set; } - - /// - /// Current status of a job. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "status")] - public V1JobStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1JobCondition.cs b/src/KubernetesClient/generated/Models/V1JobCondition.cs deleted file mode 100644 index e54fec8fb..000000000 --- a/src/KubernetesClient/generated/Models/V1JobCondition.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// JobCondition describes current state of a job. - /// - public partial class V1JobCondition - { - /// - /// Initializes a new instance of the V1JobCondition class. - /// - public V1JobCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1JobCondition class. - /// - /// - /// Status of the condition, one of True, False, Unknown. - /// - /// - /// Type of job condition, Complete or Failed. - /// - /// - /// Last time the condition was checked. - /// - /// - /// Last time the condition transit from one status to another. - /// - /// - /// Human readable message indicating details about last transition. - /// - /// - /// (brief) reason for the condition's last transition. - /// - public V1JobCondition(string status, string type, System.DateTime? lastProbeTime = null, System.DateTime? lastTransitionTime = null, string message = null, string reason = null) - { - LastProbeTime = lastProbeTime; - LastTransitionTime = lastTransitionTime; - Message = message; - Reason = reason; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Last time the condition was checked. - /// - [JsonProperty(PropertyName = "lastProbeTime")] - public System.DateTime? LastProbeTime { get; set; } - - /// - /// Last time the condition transit from one status to another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// Human readable message indicating details about last transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// (brief) reason for the condition's last transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Status of the condition, one of True, False, Unknown. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Type of job condition, Complete or Failed. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1JobList.cs b/src/KubernetesClient/generated/Models/V1JobList.cs deleted file mode 100644 index 473e34be6..000000000 --- a/src/KubernetesClient/generated/Models/V1JobList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// JobList is a collection of jobs. - /// - public partial class V1JobList - { - /// - /// Initializes a new instance of the V1JobList class. - /// - public V1JobList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1JobList class. - /// - /// - /// items is the list of Jobs. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1JobList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// items is the list of Jobs. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1JobSpec.cs b/src/KubernetesClient/generated/Models/V1JobSpec.cs deleted file mode 100644 index 0ecad9926..000000000 --- a/src/KubernetesClient/generated/Models/V1JobSpec.cs +++ /dev/null @@ -1,269 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// JobSpec describes how the job execution will look like. - /// - public partial class V1JobSpec - { - /// - /// Initializes a new instance of the V1JobSpec class. - /// - public V1JobSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1JobSpec class. - /// - /// - /// Describes the pod that will be created when executing a job. More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - /// - /// - /// 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. - /// - /// - /// Specifies the number of retries before marking this job failed. Defaults to 6 - /// - /// - /// 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)`. - /// - /// This field is beta-level. More completion modes can be added in the future. If - /// the Job controller observes a mode that it doesn't recognize, the controller - /// skips updates for the Job. - /// - /// - /// Specifies the desired number of successfully finished pods the job should be run - /// with. Setting to nil 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/ - /// - /// - /// 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 - /// - /// - /// 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/ - /// - /// - /// A label query over pods that should match the pod count. Normally, the system - /// sets this field for you. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - /// - /// - /// 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. - /// - /// This field is beta-level, gated by SuspendJob feature flag (enabled by default). - /// - /// - /// ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution - /// (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after - /// the Job finishes, it is eligible to be automatically deleted. When the Job is - /// being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If - /// this field is unset, the Job won't be automatically deleted. If this field is - /// set to zero, the Job becomes eligible to be deleted immediately after it - /// finishes. This field is alpha-level and is only honored by servers that enable - /// the TTLAfterFinished feature. - /// - public V1JobSpec(V1PodTemplateSpec template, long? activeDeadlineSeconds = null, int? backoffLimit = null, string completionMode = null, int? completions = null, bool? manualSelector = null, int? parallelism = null, V1LabelSelector selector = null, bool? suspend = null, int? ttlSecondsAfterFinished = null) - { - ActiveDeadlineSeconds = activeDeadlineSeconds; - BackoffLimit = backoffLimit; - CompletionMode = completionMode; - Completions = completions; - ManualSelector = manualSelector; - Parallelism = parallelism; - Selector = selector; - Suspend = suspend; - Template = template; - TtlSecondsAfterFinished = ttlSecondsAfterFinished; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "activeDeadlineSeconds")] - public long? ActiveDeadlineSeconds { get; set; } - - /// - /// Specifies the number of retries before marking this job failed. Defaults to 6 - /// - [JsonProperty(PropertyName = "backoffLimit")] - public int? BackoffLimit { get; set; } - - /// - /// 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)`. - /// - /// This field is beta-level. More completion modes can be added in the future. If - /// the Job controller observes a mode that it doesn't recognize, the controller - /// skips updates for the Job. - /// - [JsonProperty(PropertyName = "completionMode")] - public string CompletionMode { get; set; } - - /// - /// Specifies the desired number of successfully finished pods the job should be run - /// with. Setting to nil 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/ - /// - [JsonProperty(PropertyName = "completions")] - public int? Completions { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "manualSelector")] - public bool? ManualSelector { get; set; } - - /// - /// 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/ - /// - [JsonProperty(PropertyName = "parallelism")] - public int? Parallelism { get; set; } - - /// - /// A label query over pods that should match the pod count. Normally, the system - /// sets this field for you. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - /// - [JsonProperty(PropertyName = "selector")] - public V1LabelSelector Selector { get; set; } - - /// - /// 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. - /// - /// This field is beta-level, gated by SuspendJob feature flag (enabled by default). - /// - [JsonProperty(PropertyName = "suspend")] - public bool? Suspend { get; set; } - - /// - /// Describes the pod that will be created when executing a job. More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - /// - [JsonProperty(PropertyName = "template")] - public V1PodTemplateSpec Template { get; set; } - - /// - /// ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution - /// (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after - /// the Job finishes, it is eligible to be automatically deleted. When the Job is - /// being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If - /// this field is unset, the Job won't be automatically deleted. If this field is - /// set to zero, the Job becomes eligible to be deleted immediately after it - /// finishes. This field is alpha-level and is only honored by servers that enable - /// the TTLAfterFinished feature. - /// - [JsonProperty(PropertyName = "ttlSecondsAfterFinished")] - public int? TtlSecondsAfterFinished { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Template == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Template"); - } - Selector?.Validate(); - Template?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1JobStatus.cs b/src/KubernetesClient/generated/Models/V1JobStatus.cs deleted file mode 100644 index bd9761ad0..000000000 --- a/src/KubernetesClient/generated/Models/V1JobStatus.cs +++ /dev/null @@ -1,196 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// JobStatus represents the current state of a Job. - /// - public partial class V1JobStatus - { - /// - /// Initializes a new instance of the V1JobStatus class. - /// - public V1JobStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1JobStatus class. - /// - /// - /// The number of actively running pods. - /// - /// - /// CompletedIndexes holds the completed indexes when .spec.completionMode = - /// "Indexed" in a text format. The indexes are represented as decimal integers - /// separated by commas. The numbers are listed in increasing order. Three or more - /// consecutive numbers are compressed and represented by the first and last element - /// of the series, separated by a hyphen. For example, if the completed indexes are - /// 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". - /// - /// - /// Represents time when the job was completed. It is not guaranteed to be set in - /// happens-before order across separate operations. It is represented in RFC3339 - /// form and is in UTC. The completion time is only set when the job finishes - /// successfully. - /// - /// - /// The latest available observations of an object's current state. When a Job - /// fails, one of the conditions will have type "Failed" and status true. When a Job - /// is suspended, one of the conditions will have type "Suspended" and status true; - /// when the Job is resumed, the status of this condition will become false. When a - /// Job is completed, one of the conditions will have type "Complete" and status - /// true. More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - /// - /// - /// The number of pods which reached phase Failed. - /// - /// - /// 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. - /// - /// - /// The number of pods which reached phase Succeeded. - /// - /// - /// UncountedTerminatedPods holds the UIDs of Pods that have terminated but the job - /// controller hasn't yet accounted for in the status counters. - /// - /// The job controller creates pods with a finalizer. When a pod terminates - /// (succeeded or failed), the controller does three steps to account for it in the - /// job status: (1) Add the pod UID to the arrays in this field. (2) Remove the pod - /// finalizer. (3) Remove the pod UID from the arrays while increasing the - /// corresponding - /// counter. - /// - /// This field is alpha-level. The job controller only makes use of this field when - /// the feature gate PodTrackingWithFinalizers is enabled. Old jobs might not be - /// tracked using this field, in which case the field remains null. - /// - public V1JobStatus(int? active = null, string completedIndexes = null, System.DateTime? completionTime = null, IList conditions = null, int? failed = null, System.DateTime? startTime = null, int? succeeded = null, V1UncountedTerminatedPods uncountedTerminatedPods = null) - { - Active = active; - CompletedIndexes = completedIndexes; - CompletionTime = completionTime; - Conditions = conditions; - Failed = failed; - StartTime = startTime; - Succeeded = succeeded; - UncountedTerminatedPods = uncountedTerminatedPods; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The number of actively running pods. - /// - [JsonProperty(PropertyName = "active")] - public int? Active { get; set; } - - /// - /// CompletedIndexes holds the completed indexes when .spec.completionMode = - /// "Indexed" in a text format. The indexes are represented as decimal integers - /// separated by commas. The numbers are listed in increasing order. Three or more - /// consecutive numbers are compressed and represented by the first and last element - /// of the series, separated by a hyphen. For example, if the completed indexes are - /// 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". - /// - [JsonProperty(PropertyName = "completedIndexes")] - public string CompletedIndexes { get; set; } - - /// - /// Represents time when the job was completed. It is not guaranteed to be set in - /// happens-before order across separate operations. It is represented in RFC3339 - /// form and is in UTC. The completion time is only set when the job finishes - /// successfully. - /// - [JsonProperty(PropertyName = "completionTime")] - public System.DateTime? CompletionTime { get; set; } - - /// - /// The latest available observations of an object's current state. When a Job - /// fails, one of the conditions will have type "Failed" and status true. When a Job - /// is suspended, one of the conditions will have type "Suspended" and status true; - /// when the Job is resumed, the status of this condition will become false. When a - /// Job is completed, one of the conditions will have type "Complete" and status - /// true. More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// The number of pods which reached phase Failed. - /// - [JsonProperty(PropertyName = "failed")] - public int? Failed { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "startTime")] - public System.DateTime? StartTime { get; set; } - - /// - /// The number of pods which reached phase Succeeded. - /// - [JsonProperty(PropertyName = "succeeded")] - public int? Succeeded { get; set; } - - /// - /// UncountedTerminatedPods holds the UIDs of Pods that have terminated but the job - /// controller hasn't yet accounted for in the status counters. - /// - /// The job controller creates pods with a finalizer. When a pod terminates - /// (succeeded or failed), the controller does three steps to account for it in the - /// job status: (1) Add the pod UID to the arrays in this field. (2) Remove the pod - /// finalizer. (3) Remove the pod UID from the arrays while increasing the - /// corresponding - /// counter. - /// - /// This field is alpha-level. The job controller only makes use of this field when - /// the feature gate PodTrackingWithFinalizers is enabled. Old jobs might not be - /// tracked using this field, in which case the field remains null. - /// - [JsonProperty(PropertyName = "uncountedTerminatedPods")] - public V1UncountedTerminatedPods UncountedTerminatedPods { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Conditions != null){ - foreach(var obj in Conditions) - { - obj.Validate(); - } - } - UncountedTerminatedPods?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1JobTemplateSpec.cs b/src/KubernetesClient/generated/Models/V1JobTemplateSpec.cs deleted file mode 100644 index fea064834..000000000 --- a/src/KubernetesClient/generated/Models/V1JobTemplateSpec.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// JobTemplateSpec describes the data a Job should have when created from a - /// template - /// - public partial class V1JobTemplateSpec - { - /// - /// Initializes a new instance of the V1JobTemplateSpec class. - /// - public V1JobTemplateSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1JobTemplateSpec class. - /// - /// - /// Standard object's metadata of the jobs created from this template. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Specification of the desired behavior of the job. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - public V1JobTemplateSpec(V1ObjectMeta metadata = null, V1JobSpec spec = null) - { - Metadata = metadata; - Spec = spec; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Standard object's metadata of the jobs created from this template. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Specification of the desired behavior of the job. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1JobSpec Spec { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1KeyToPath.cs b/src/KubernetesClient/generated/Models/V1KeyToPath.cs deleted file mode 100644 index 361383f01..000000000 --- a/src/KubernetesClient/generated/Models/V1KeyToPath.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Maps a string key to a path within a volume. - /// - public partial class V1KeyToPath - { - /// - /// Initializes a new instance of the V1KeyToPath class. - /// - public V1KeyToPath() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1KeyToPath class. - /// - /// - /// The key to project. - /// - /// - /// The relative path of the file to map the key to. May not be an absolute path. - /// May not contain the path element '..'. May not start with the string '..'. - /// - /// - /// Optional: mode bits used to set permissions on this file. Must be an octal value - /// between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both - /// octal and decimal values, JSON requires decimal values for mode bits. If not - /// specified, the volume defaultMode will be used. This might be in conflict with - /// other options that affect the file mode, like fsGroup, and the result can be - /// other mode bits set. - /// - public V1KeyToPath(string key, string path, int? mode = null) - { - Key = key; - Mode = mode; - Path = path; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The key to project. - /// - [JsonProperty(PropertyName = "key")] - public string Key { get; set; } - - /// - /// Optional: mode bits used to set permissions on this file. Must be an octal value - /// between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both - /// octal and decimal values, JSON requires decimal values for mode bits. If not - /// specified, the volume defaultMode will be used. This might be in conflict with - /// other options that affect the file mode, like fsGroup, and the result can be - /// other mode bits set. - /// - [JsonProperty(PropertyName = "mode")] - public int? Mode { get; set; } - - /// - /// The relative path of the file to map the key to. May not be an absolute path. - /// May not contain the path element '..'. May not start with the string '..'. - /// - [JsonProperty(PropertyName = "path")] - public string Path { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1LabelSelector.cs b/src/KubernetesClient/generated/Models/V1LabelSelector.cs deleted file mode 100644 index 9eb2d6247..000000000 --- a/src/KubernetesClient/generated/Models/V1LabelSelector.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// A label selector is a label query over a set of resources. The result of - /// matchLabels and matchExpressions are ANDed. An empty label selector matches all - /// objects. A null label selector matches no objects. - /// - public partial class V1LabelSelector - { - /// - /// Initializes a new instance of the V1LabelSelector class. - /// - public V1LabelSelector() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1LabelSelector class. - /// - /// - /// matchExpressions is a list of label selector requirements. The requirements are - /// ANDed. - /// - /// - /// matchLabels is a map of {key,value} pairs. A single {key,value} in the - /// matchLabels map is equivalent to an element of matchExpressions, whose key field - /// is "key", the operator is "In", and the values array contains only "value". The - /// requirements are ANDed. - /// - public V1LabelSelector(IList matchExpressions = null, IDictionary matchLabels = null) - { - MatchExpressions = matchExpressions; - MatchLabels = matchLabels; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// matchExpressions is a list of label selector requirements. The requirements are - /// ANDed. - /// - [JsonProperty(PropertyName = "matchExpressions")] - public IList MatchExpressions { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "matchLabels")] - public IDictionary MatchLabels { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (MatchExpressions != null){ - foreach(var obj in MatchExpressions) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1LabelSelectorRequirement.cs b/src/KubernetesClient/generated/Models/V1LabelSelectorRequirement.cs deleted file mode 100644 index eca19b28a..000000000 --- a/src/KubernetesClient/generated/Models/V1LabelSelectorRequirement.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// A label selector requirement is a selector that contains values, a key, and an - /// operator that relates the key and values. - /// - public partial class V1LabelSelectorRequirement - { - /// - /// Initializes a new instance of the V1LabelSelectorRequirement class. - /// - public V1LabelSelectorRequirement() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1LabelSelectorRequirement class. - /// - /// - /// key is the label key that the selector applies to. - /// - /// - /// operator represents a key's relationship to a set of values. Valid operators are - /// In, NotIn, Exists and DoesNotExist. - /// - /// - /// values is an array of string values. If the operator is In or NotIn, the values - /// array must be non-empty. If the operator is Exists or DoesNotExist, the values - /// array must be empty. This array is replaced during a strategic merge patch. - /// - public V1LabelSelectorRequirement(string key, string operatorProperty, IList values = null) - { - Key = key; - OperatorProperty = operatorProperty; - Values = values; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// key is the label key that the selector applies to. - /// - [JsonProperty(PropertyName = "key")] - public string Key { get; set; } - - /// - /// operator represents a key's relationship to a set of values. Valid operators are - /// In, NotIn, Exists and DoesNotExist. - /// - [JsonProperty(PropertyName = "operator")] - public string OperatorProperty { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "values")] - public IList Values { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Lease.cs b/src/KubernetesClient/generated/Models/V1Lease.cs deleted file mode 100644 index e5f56208f..000000000 --- a/src/KubernetesClient/generated/Models/V1Lease.cs +++ /dev/null @@ -1,109 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Lease defines a lease concept. - /// - public partial class V1Lease - { - /// - /// Initializes a new instance of the V1Lease class. - /// - public V1Lease() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Lease class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Specification of the Lease. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - public V1Lease(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1LeaseSpec spec = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Specification of the Lease. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1LeaseSpec Spec { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1LeaseList.cs b/src/KubernetesClient/generated/Models/V1LeaseList.cs deleted file mode 100644 index 2fafe01bc..000000000 --- a/src/KubernetesClient/generated/Models/V1LeaseList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// LeaseList is a list of Lease objects. - /// - public partial class V1LeaseList - { - /// - /// Initializes a new instance of the V1LeaseList class. - /// - public V1LeaseList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1LeaseList class. - /// - /// - /// Items is a list of schema objects. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1LeaseList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is a list of schema objects. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1LeaseSpec.cs b/src/KubernetesClient/generated/Models/V1LeaseSpec.cs deleted file mode 100644 index 357a5a2d3..000000000 --- a/src/KubernetesClient/generated/Models/V1LeaseSpec.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// LeaseSpec is a specification of a Lease. - /// - public partial class V1LeaseSpec - { - /// - /// Initializes a new instance of the V1LeaseSpec class. - /// - public V1LeaseSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1LeaseSpec class. - /// - /// - /// acquireTime is a time when the current lease was acquired. - /// - /// - /// holderIdentity contains the identity of the holder of a current lease. - /// - /// - /// 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. - /// - /// - /// leaseTransitions is the number of transitions of a lease between holders. - /// - /// - /// renewTime is a time when the current holder of a lease has last updated the - /// lease. - /// - public V1LeaseSpec(System.DateTime? acquireTime = null, string holderIdentity = null, int? leaseDurationSeconds = null, int? leaseTransitions = null, System.DateTime? renewTime = null) - { - AcquireTime = acquireTime; - HolderIdentity = holderIdentity; - LeaseDurationSeconds = leaseDurationSeconds; - LeaseTransitions = leaseTransitions; - RenewTime = renewTime; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// acquireTime is a time when the current lease was acquired. - /// - [JsonProperty(PropertyName = "acquireTime")] - public System.DateTime? AcquireTime { get; set; } - - /// - /// holderIdentity contains the identity of the holder of a current lease. - /// - [JsonProperty(PropertyName = "holderIdentity")] - public string HolderIdentity { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "leaseDurationSeconds")] - public int? LeaseDurationSeconds { get; set; } - - /// - /// leaseTransitions is the number of transitions of a lease between holders. - /// - [JsonProperty(PropertyName = "leaseTransitions")] - public int? LeaseTransitions { get; set; } - - /// - /// renewTime is a time when the current holder of a lease has last updated the - /// lease. - /// - [JsonProperty(PropertyName = "renewTime")] - public System.DateTime? RenewTime { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Lifecycle.cs b/src/KubernetesClient/generated/Models/V1Lifecycle.cs deleted file mode 100644 index 96b339e24..000000000 --- a/src/KubernetesClient/generated/Models/V1Lifecycle.cs +++ /dev/null @@ -1,102 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Lifecycle describes actions that the management system should take in response - /// to container lifecycle events. For the PostStart and PreStop lifecycle handlers, - /// management of the container blocks until the action is complete, unless the - /// container process fails, in which case the handler is aborted. - /// - public partial class V1Lifecycle - { - /// - /// Initializes a new instance of the V1Lifecycle class. - /// - public V1Lifecycle() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Lifecycle class. - /// - /// - /// 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 - /// - /// - /// 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 - /// - public V1Lifecycle(V1Handler postStart = null, V1Handler preStop = null) - { - PostStart = postStart; - PreStop = preStop; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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 - /// - [JsonProperty(PropertyName = "postStart")] - public V1Handler PostStart { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "preStop")] - public V1Handler PreStop { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - PostStart?.Validate(); - PreStop?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1LimitRange.cs b/src/KubernetesClient/generated/Models/V1LimitRange.cs deleted file mode 100644 index 28656efef..000000000 --- a/src/KubernetesClient/generated/Models/V1LimitRange.cs +++ /dev/null @@ -1,109 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// LimitRange sets resource usage limits for each kind of resource in a Namespace. - /// - public partial class V1LimitRange - { - /// - /// Initializes a new instance of the V1LimitRange class. - /// - public V1LimitRange() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1LimitRange class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Spec defines the limits enforced. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - public V1LimitRange(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1LimitRangeSpec spec = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Spec defines the limits enforced. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1LimitRangeSpec Spec { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1LimitRangeItem.cs b/src/KubernetesClient/generated/Models/V1LimitRangeItem.cs deleted file mode 100644 index be82d392e..000000000 --- a/src/KubernetesClient/generated/Models/V1LimitRangeItem.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// LimitRangeItem defines a min/max usage limit for any resource that matches on - /// kind. - /// - public partial class V1LimitRangeItem - { - /// - /// Initializes a new instance of the V1LimitRangeItem class. - /// - public V1LimitRangeItem() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1LimitRangeItem class. - /// - /// - /// Type of resource that this limit applies to. - /// - /// - /// Default resource requirement limit value by resource name if resource limit is - /// omitted. - /// - /// - /// DefaultRequest is the default resource requirement request value by resource - /// name if resource request is omitted. - /// - /// - /// Max usage constraints on this kind by resource name. - /// - /// - /// MaxLimitRequestRatio if specified, the named resource must have a request and - /// limit that are both non-zero where limit divided by request is less than or - /// equal to the enumerated value; this represents the max burst for the named - /// resource. - /// - /// - /// Min usage constraints on this kind by resource name. - /// - public V1LimitRangeItem(string type, IDictionary defaultProperty = null, IDictionary defaultRequest = null, IDictionary max = null, IDictionary maxLimitRequestRatio = null, IDictionary min = null) - { - DefaultProperty = defaultProperty; - DefaultRequest = defaultRequest; - Max = max; - MaxLimitRequestRatio = maxLimitRequestRatio; - Min = min; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Default resource requirement limit value by resource name if resource limit is - /// omitted. - /// - [JsonProperty(PropertyName = "default")] - public IDictionary DefaultProperty { get; set; } - - /// - /// DefaultRequest is the default resource requirement request value by resource - /// name if resource request is omitted. - /// - [JsonProperty(PropertyName = "defaultRequest")] - public IDictionary DefaultRequest { get; set; } - - /// - /// Max usage constraints on this kind by resource name. - /// - [JsonProperty(PropertyName = "max")] - public IDictionary Max { get; set; } - - /// - /// MaxLimitRequestRatio if specified, the named resource must have a request and - /// limit that are both non-zero where limit divided by request is less than or - /// equal to the enumerated value; this represents the max burst for the named - /// resource. - /// - [JsonProperty(PropertyName = "maxLimitRequestRatio")] - public IDictionary MaxLimitRequestRatio { get; set; } - - /// - /// Min usage constraints on this kind by resource name. - /// - [JsonProperty(PropertyName = "min")] - public IDictionary Min { get; set; } - - /// - /// Type of resource that this limit applies to. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1LimitRangeList.cs b/src/KubernetesClient/generated/Models/V1LimitRangeList.cs deleted file mode 100644 index 895662c4a..000000000 --- a/src/KubernetesClient/generated/Models/V1LimitRangeList.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// LimitRangeList is a list of LimitRange items. - /// - public partial class V1LimitRangeList - { - /// - /// Initializes a new instance of the V1LimitRangeList class. - /// - public V1LimitRangeList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1LimitRangeList class. - /// - /// - /// Items is a list of LimitRange objects. More info: - /// https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - public V1LimitRangeList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is a list of LimitRange objects. More info: - /// https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1LimitRangeSpec.cs b/src/KubernetesClient/generated/Models/V1LimitRangeSpec.cs deleted file mode 100644 index ea7590f8a..000000000 --- a/src/KubernetesClient/generated/Models/V1LimitRangeSpec.cs +++ /dev/null @@ -1,67 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// LimitRangeSpec defines a min/max usage limit for resources that match on kind. - /// - public partial class V1LimitRangeSpec - { - /// - /// Initializes a new instance of the V1LimitRangeSpec class. - /// - public V1LimitRangeSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1LimitRangeSpec class. - /// - /// - /// Limits is the list of LimitRangeItem objects that are enforced. - /// - public V1LimitRangeSpec(IList limits) - { - Limits = limits; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Limits is the list of LimitRangeItem objects that are enforced. - /// - [JsonProperty(PropertyName = "limits")] - public IList Limits { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Limits != null){ - foreach(var obj in Limits) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ListMeta.cs b/src/KubernetesClient/generated/Models/V1ListMeta.cs deleted file mode 100644 index 6a80972ea..000000000 --- a/src/KubernetesClient/generated/Models/V1ListMeta.cs +++ /dev/null @@ -1,137 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ListMeta describes metadata that synthetic resources must have, including lists - /// and various status objects. A resource may have only one of {ObjectMeta, - /// ListMeta}. - /// - public partial class V1ListMeta - { - /// - /// Initializes a new instance of the V1ListMeta class. - /// - public V1ListMeta() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ListMeta class. - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// 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 - /// - /// - /// 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. - /// - public V1ListMeta(string continueProperty = null, long? remainingItemCount = null, string resourceVersion = null, string selfLink = null) - { - ContinueProperty = continueProperty; - RemainingItemCount = remainingItemCount; - ResourceVersion = resourceVersion; - SelfLink = selfLink; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "continue")] - public string ContinueProperty { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "remainingItemCount")] - public long? RemainingItemCount { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "resourceVersion")] - public string ResourceVersion { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "selfLink")] - public string SelfLink { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1LoadBalancerIngress.cs b/src/KubernetesClient/generated/Models/V1LoadBalancerIngress.cs deleted file mode 100644 index 6d627a8d1..000000000 --- a/src/KubernetesClient/generated/Models/V1LoadBalancerIngress.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// LoadBalancerIngress represents the status of a load-balancer ingress point: - /// traffic intended for the service should be sent to an ingress point. - /// - public partial class V1LoadBalancerIngress - { - /// - /// Initializes a new instance of the V1LoadBalancerIngress class. - /// - public V1LoadBalancerIngress() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1LoadBalancerIngress class. - /// - /// - /// Hostname is set for load-balancer ingress points that are DNS based (typically - /// AWS load-balancers) - /// - /// - /// IP is set for load-balancer ingress points that are IP based (typically GCE or - /// OpenStack load-balancers) - /// - /// - /// Ports is a list of records of service ports If used, every port defined in the - /// service should have an entry in it - /// - public V1LoadBalancerIngress(string hostname = null, string ip = null, IList ports = null) - { - Hostname = hostname; - Ip = ip; - Ports = ports; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Hostname is set for load-balancer ingress points that are DNS based (typically - /// AWS load-balancers) - /// - [JsonProperty(PropertyName = "hostname")] - public string Hostname { get; set; } - - /// - /// IP is set for load-balancer ingress points that are IP based (typically GCE or - /// OpenStack load-balancers) - /// - [JsonProperty(PropertyName = "ip")] - public string Ip { get; set; } - - /// - /// Ports is a list of records of service ports If used, every port defined in the - /// service should have an entry in it - /// - [JsonProperty(PropertyName = "ports")] - public IList Ports { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Ports != null){ - foreach(var obj in Ports) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1LoadBalancerStatus.cs b/src/KubernetesClient/generated/Models/V1LoadBalancerStatus.cs deleted file mode 100644 index 73acffba8..000000000 --- a/src/KubernetesClient/generated/Models/V1LoadBalancerStatus.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// LoadBalancerStatus represents the status of a load-balancer. - /// - public partial class V1LoadBalancerStatus - { - /// - /// Initializes a new instance of the V1LoadBalancerStatus class. - /// - public V1LoadBalancerStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1LoadBalancerStatus class. - /// - /// - /// Ingress is a list containing ingress points for the load-balancer. Traffic - /// intended for the service should be sent to these ingress points. - /// - public V1LoadBalancerStatus(IList ingress = null) - { - Ingress = ingress; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Ingress is a list containing ingress points for the load-balancer. Traffic - /// intended for the service should be sent to these ingress points. - /// - [JsonProperty(PropertyName = "ingress")] - public IList Ingress { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Ingress != null){ - foreach(var obj in Ingress) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1LocalObjectReference.cs b/src/KubernetesClient/generated/Models/V1LocalObjectReference.cs deleted file mode 100644 index dde6559cf..000000000 --- a/src/KubernetesClient/generated/Models/V1LocalObjectReference.cs +++ /dev/null @@ -1,64 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// LocalObjectReference contains enough information to let you locate the - /// referenced object inside the same namespace. - /// - public partial class V1LocalObjectReference - { - /// - /// Initializes a new instance of the V1LocalObjectReference class. - /// - public V1LocalObjectReference() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1LocalObjectReference class. - /// - /// - /// Name of the referent. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - /// - public V1LocalObjectReference(string name = null) - { - Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Name of the referent. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1LocalSubjectAccessReview.cs b/src/KubernetesClient/generated/Models/V1LocalSubjectAccessReview.cs deleted file mode 100644 index e55a39162..000000000 --- a/src/KubernetesClient/generated/Models/V1LocalSubjectAccessReview.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// LocalSubjectAccessReview checks whether or not a user or group can perform an - /// action in a given namespace. Having a namespace scoped resource makes it much - /// easier to grant namespace scoped policy that includes permissions checking. - /// - public partial class V1LocalSubjectAccessReview - { - /// - /// Initializes a new instance of the V1LocalSubjectAccessReview class. - /// - public V1LocalSubjectAccessReview() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1LocalSubjectAccessReview class. - /// - /// - /// Spec holds information about the request being evaluated. spec.namespace must - /// be equal to the namespace you made the request against. If empty, it is - /// defaulted. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Status is filled in by the server and indicates whether the request is allowed - /// or not - /// - public V1LocalSubjectAccessReview(V1SubjectAccessReviewSpec spec, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1SubjectAccessReviewStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Spec holds information about the request being evaluated. spec.namespace must - /// be equal to the namespace you made the request against. If empty, it is - /// defaulted. - /// - [JsonProperty(PropertyName = "spec")] - public V1SubjectAccessReviewSpec Spec { get; set; } - - /// - /// Status is filled in by the server and indicates whether the request is allowed - /// or not - /// - [JsonProperty(PropertyName = "status")] - public V1SubjectAccessReviewStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Spec == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Spec"); - } - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1LocalVolumeSource.cs b/src/KubernetesClient/generated/Models/V1LocalVolumeSource.cs deleted file mode 100644 index 3e909ef0d..000000000 --- a/src/KubernetesClient/generated/Models/V1LocalVolumeSource.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Local represents directly-attached storage with node affinity (Beta feature) - /// - public partial class V1LocalVolumeSource - { - /// - /// Initializes a new instance of the V1LocalVolumeSource class. - /// - public V1LocalVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1LocalVolumeSource class. - /// - /// - /// The full path to the volume on the node. It can be either a directory or block - /// device (disk, partition, ...). - /// - /// - /// Filesystem type to mount. It applies only when the Path is a block device. Must - /// be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", - /// "ntfs". The default value is to auto-select a fileystem if unspecified. - /// - public V1LocalVolumeSource(string path, string fsType = null) - { - FsType = fsType; - Path = path; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Filesystem type to mount. It applies only when the Path is a block device. Must - /// be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", - /// "ntfs". The default value is to auto-select a fileystem if unspecified. - /// - [JsonProperty(PropertyName = "fsType")] - public string FsType { get; set; } - - /// - /// The full path to the volume on the node. It can be either a directory or block - /// device (disk, partition, ...). - /// - [JsonProperty(PropertyName = "path")] - public string Path { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ManagedFieldsEntry.cs b/src/KubernetesClient/generated/Models/V1ManagedFieldsEntry.cs deleted file mode 100644 index 6a057a837..000000000 --- a/src/KubernetesClient/generated/Models/V1ManagedFieldsEntry.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the - /// resource that the fieldset applies to. - /// - public partial class V1ManagedFieldsEntry - { - /// - /// Initializes a new instance of the V1ManagedFieldsEntry class. - /// - public V1ManagedFieldsEntry() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ManagedFieldsEntry class. - /// - /// - /// APIVersion defines the version of this resource that this field set applies to. - /// The format is "group/version" just like the top-level APIVersion field. It is - /// necessary to track the version of a field set because it cannot be automatically - /// converted. - /// - /// - /// FieldsType is the discriminator for the different fields format and version. - /// There is currently only one possible value: "FieldsV1" - /// - /// - /// FieldsV1 holds the first JSON version format as described in the "FieldsV1" - /// type. - /// - /// - /// Manager is an identifier of the workflow managing these fields. - /// - /// - /// Operation is the type of operation which lead to this ManagedFieldsEntry being - /// created. The only valid values for this field are 'Apply' and 'Update'. - /// - /// - /// Subresource is the name of the subresource used to update that object, or empty - /// string if the object was updated through the main resource. The value of this - /// field is used to distinguish between managers, even if they share the same name. - /// For example, a status update will be distinct from a regular update using the - /// same manager name. Note that the APIVersion field is not related to the - /// Subresource field and it always corresponds to the version of the main resource. - /// - /// - /// Time is timestamp of when these fields were set. It should always be empty if - /// Operation is 'Apply' - /// - public V1ManagedFieldsEntry(string apiVersion = null, string fieldsType = null, object fieldsV1 = null, string manager = null, string operation = null, string subresource = null, System.DateTime? time = null) - { - ApiVersion = apiVersion; - FieldsType = fieldsType; - FieldsV1 = fieldsV1; - Manager = manager; - Operation = operation; - Subresource = subresource; - Time = time; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the version of this resource that this field set applies to. - /// The format is "group/version" just like the top-level APIVersion field. It is - /// necessary to track the version of a field set because it cannot be automatically - /// converted. - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// FieldsType is the discriminator for the different fields format and version. - /// There is currently only one possible value: "FieldsV1" - /// - [JsonProperty(PropertyName = "fieldsType")] - public string FieldsType { get; set; } - - /// - /// FieldsV1 holds the first JSON version format as described in the "FieldsV1" - /// type. - /// - [JsonProperty(PropertyName = "fieldsV1")] - public object FieldsV1 { get; set; } - - /// - /// Manager is an identifier of the workflow managing these fields. - /// - [JsonProperty(PropertyName = "manager")] - public string Manager { get; set; } - - /// - /// Operation is the type of operation which lead to this ManagedFieldsEntry being - /// created. The only valid values for this field are 'Apply' and 'Update'. - /// - [JsonProperty(PropertyName = "operation")] - public string Operation { get; set; } - - /// - /// Subresource is the name of the subresource used to update that object, or empty - /// string if the object was updated through the main resource. The value of this - /// field is used to distinguish between managers, even if they share the same name. - /// For example, a status update will be distinct from a regular update using the - /// same manager name. Note that the APIVersion field is not related to the - /// Subresource field and it always corresponds to the version of the main resource. - /// - [JsonProperty(PropertyName = "subresource")] - public string Subresource { get; set; } - - /// - /// Time is timestamp of when these fields were set. It should always be empty if - /// Operation is 'Apply' - /// - [JsonProperty(PropertyName = "time")] - public System.DateTime? Time { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1MutatingWebhook.cs b/src/KubernetesClient/generated/Models/V1MutatingWebhook.cs deleted file mode 100644 index 1b6377106..000000000 --- a/src/KubernetesClient/generated/Models/V1MutatingWebhook.cs +++ /dev/null @@ -1,383 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// MutatingWebhook describes an admission webhook and the resources and operations - /// it applies to. - /// - public partial class V1MutatingWebhook - { - /// - /// Initializes a new instance of the V1MutatingWebhook class. - /// - public V1MutatingWebhook() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1MutatingWebhook class. - /// - /// - /// AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` - /// versions the Webhook expects. API server will try to use first version in the - /// list which it supports. If none of the versions specified in this list supported - /// by API server, validation will fail for this object. If a persisted webhook - /// configuration specifies allowed versions and does not include any versions known - /// to the API Server, calls to the webhook will fail and be subject to the failure - /// policy. - /// - /// - /// ClientConfig defines how to communicate with the hook. Required - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// FailurePolicy defines how unrecognized errors from the admission endpoint are - /// handled - allowed values are Ignore or Fail. Defaults to Fail. - /// - /// - /// 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" - /// - /// - /// NamespaceSelector decides whether to run the webhook on an object based on - /// whether the namespace for that object matches the selector. If the object itself - /// is a namespace, the matching is performed on object.metadata.labels. If the - /// object is another cluster scoped resource, it never skips the webhook. - /// - /// For example, to run the webhook on any objects whose namespace is not associated - /// with "runlevel" of "0" or "1"; you will set the selector as follows: - /// "namespaceSelector": { - /// "matchExpressions": [ - /// { - /// "key": "runlevel", - /// "operator": "NotIn", - /// "values": [ - /// "0", - /// "1" - /// ] - /// } - /// ] - /// } - /// - /// If instead you want to only run the webhook on any objects whose namespace is - /// associated with the "environment" of "prod" or "staging"; you will set the - /// selector as follows: "namespaceSelector": { - /// "matchExpressions": [ - /// { - /// "key": "environment", - /// "operator": "In", - /// "values": [ - /// "prod", - /// "staging" - /// ] - /// } - /// ] - /// } - /// - /// See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - /// for more examples of label selectors. - /// - /// Default to the empty LabelSelector, which matches everything. - /// - /// - /// ObjectSelector decides whether to run the webhook based on if the object has - /// matching labels. objectSelector is evaluated against both the oldObject and - /// newObject that would be sent to the webhook, and is considered to match if - /// either object matches the selector. A null object (oldObject in the case of - /// create, or newObject in the case of delete) or an object that cannot have labels - /// (like a DeploymentRollback or a PodProxyOptions object) is not considered to - /// match. Use the object selector only if the webhook is opt-in, because end users - /// may skip the admission webhook by setting the labels. Default to the empty - /// LabelSelector, which matches everything. - /// - /// - /// 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". - /// - /// - /// 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. - /// - /// - /// TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, - /// the webhook call will be ignored or the API call will fail based on the failure - /// policy. The timeout value must be between 1 and 30 seconds. Default to 10 - /// seconds. - /// - public V1MutatingWebhook(IList admissionReviewVersions, Admissionregistrationv1WebhookClientConfig clientConfig, string name, string sideEffects, string failurePolicy = null, string matchPolicy = null, V1LabelSelector namespaceSelector = null, V1LabelSelector objectSelector = null, string reinvocationPolicy = null, IList rules = null, int? timeoutSeconds = null) - { - AdmissionReviewVersions = admissionReviewVersions; - ClientConfig = clientConfig; - FailurePolicy = failurePolicy; - MatchPolicy = matchPolicy; - Name = name; - NamespaceSelector = namespaceSelector; - ObjectSelector = objectSelector; - ReinvocationPolicy = reinvocationPolicy; - Rules = rules; - SideEffects = sideEffects; - TimeoutSeconds = timeoutSeconds; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "admissionReviewVersions")] - public IList AdmissionReviewVersions { get; set; } - - /// - /// ClientConfig defines how to communicate with the hook. Required - /// - [JsonProperty(PropertyName = "clientConfig")] - public Admissionregistrationv1WebhookClientConfig ClientConfig { get; set; } - - /// - /// FailurePolicy defines how unrecognized errors from the admission endpoint are - /// handled - allowed values are Ignore or Fail. Defaults to Fail. - /// - [JsonProperty(PropertyName = "failurePolicy")] - public string FailurePolicy { get; set; } - - /// - /// 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" - /// - [JsonProperty(PropertyName = "matchPolicy")] - public string MatchPolicy { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// NamespaceSelector decides whether to run the webhook on an object based on - /// whether the namespace for that object matches the selector. If the object itself - /// is a namespace, the matching is performed on object.metadata.labels. If the - /// object is another cluster scoped resource, it never skips the webhook. - /// - /// For example, to run the webhook on any objects whose namespace is not associated - /// with "runlevel" of "0" or "1"; you will set the selector as follows: - /// "namespaceSelector": { - /// "matchExpressions": [ - /// { - /// "key": "runlevel", - /// "operator": "NotIn", - /// "values": [ - /// "0", - /// "1" - /// ] - /// } - /// ] - /// } - /// - /// If instead you want to only run the webhook on any objects whose namespace is - /// associated with the "environment" of "prod" or "staging"; you will set the - /// selector as follows: "namespaceSelector": { - /// "matchExpressions": [ - /// { - /// "key": "environment", - /// "operator": "In", - /// "values": [ - /// "prod", - /// "staging" - /// ] - /// } - /// ] - /// } - /// - /// See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - /// for more examples of label selectors. - /// - /// Default to the empty LabelSelector, which matches everything. - /// - [JsonProperty(PropertyName = "namespaceSelector")] - public V1LabelSelector NamespaceSelector { get; set; } - - /// - /// ObjectSelector decides whether to run the webhook based on if the object has - /// matching labels. objectSelector is evaluated against both the oldObject and - /// newObject that would be sent to the webhook, and is considered to match if - /// either object matches the selector. A null object (oldObject in the case of - /// create, or newObject in the case of delete) or an object that cannot have labels - /// (like a DeploymentRollback or a PodProxyOptions object) is not considered to - /// match. Use the object selector only if the webhook is opt-in, because end users - /// may skip the admission webhook by setting the labels. Default to the empty - /// LabelSelector, which matches everything. - /// - [JsonProperty(PropertyName = "objectSelector")] - public V1LabelSelector ObjectSelector { get; set; } - - /// - /// 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". - /// - [JsonProperty(PropertyName = "reinvocationPolicy")] - public string ReinvocationPolicy { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "rules")] - public IList Rules { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "sideEffects")] - public string SideEffects { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "timeoutSeconds")] - public int? TimeoutSeconds { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (ClientConfig == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ClientConfig"); - } - ClientConfig?.Validate(); - NamespaceSelector?.Validate(); - ObjectSelector?.Validate(); - if (Rules != null){ - foreach(var obj in Rules) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1MutatingWebhookConfiguration.cs b/src/KubernetesClient/generated/Models/V1MutatingWebhookConfiguration.cs deleted file mode 100644 index a9994e711..000000000 --- a/src/KubernetesClient/generated/Models/V1MutatingWebhookConfiguration.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// MutatingWebhookConfiguration describes the configuration of and admission - /// webhook that accept or reject and may change the object. - /// - public partial class V1MutatingWebhookConfiguration - { - /// - /// Initializes a new instance of the V1MutatingWebhookConfiguration class. - /// - public V1MutatingWebhookConfiguration() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1MutatingWebhookConfiguration class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object metadata; More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - /// - /// - /// Webhooks is a list of webhooks and the affected resources and operations. - /// - public V1MutatingWebhookConfiguration(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, IList webhooks = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Webhooks = webhooks; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object metadata; More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Webhooks is a list of webhooks and the affected resources and operations. - /// - [JsonProperty(PropertyName = "webhooks")] - public IList Webhooks { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - if (Webhooks != null){ - foreach(var obj in Webhooks) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1MutatingWebhookConfigurationList.cs b/src/KubernetesClient/generated/Models/V1MutatingWebhookConfigurationList.cs deleted file mode 100644 index 65d5a70f3..000000000 --- a/src/KubernetesClient/generated/Models/V1MutatingWebhookConfigurationList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. - /// - public partial class V1MutatingWebhookConfigurationList - { - /// - /// Initializes a new instance of the V1MutatingWebhookConfigurationList class. - /// - public V1MutatingWebhookConfigurationList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1MutatingWebhookConfigurationList class. - /// - /// - /// List of MutatingWebhookConfiguration. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - public V1MutatingWebhookConfigurationList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// List of MutatingWebhookConfiguration. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NFSVolumeSource.cs b/src/KubernetesClient/generated/Models/V1NFSVolumeSource.cs deleted file mode 100644 index 26623752f..000000000 --- a/src/KubernetesClient/generated/Models/V1NFSVolumeSource.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not - /// support ownership management or SELinux relabeling. - /// - public partial class V1NFSVolumeSource - { - /// - /// Initializes a new instance of the V1NFSVolumeSource class. - /// - public V1NFSVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NFSVolumeSource class. - /// - /// - /// Path that is exported by the NFS server. More info: - /// https://kubernetes.io/docs/concepts/storage/volumes#nfs - /// - /// - /// Server is the hostname or IP address of the NFS server. More info: - /// https://kubernetes.io/docs/concepts/storage/volumes#nfs - /// - /// - /// ReadOnly here will force the NFS export to be mounted with read-only - /// permissions. Defaults to false. More info: - /// https://kubernetes.io/docs/concepts/storage/volumes#nfs - /// - public V1NFSVolumeSource(string path, string server, bool? readOnlyProperty = null) - { - Path = path; - ReadOnlyProperty = readOnlyProperty; - Server = server; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Path that is exported by the NFS server. More info: - /// https://kubernetes.io/docs/concepts/storage/volumes#nfs - /// - [JsonProperty(PropertyName = "path")] - public string Path { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Server is the hostname or IP address of the NFS server. More info: - /// https://kubernetes.io/docs/concepts/storage/volumes#nfs - /// - [JsonProperty(PropertyName = "server")] - public string Server { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Namespace.cs b/src/KubernetesClient/generated/Models/V1Namespace.cs deleted file mode 100644 index 056295a7b..000000000 --- a/src/KubernetesClient/generated/Models/V1Namespace.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Namespace provides a scope for Names. Use of multiple namespaces is optional. - /// - public partial class V1Namespace - { - /// - /// Initializes a new instance of the V1Namespace class. - /// - public V1Namespace() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Namespace class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Spec defines the behavior of the Namespace. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - /// - /// Status describes the current status of a Namespace. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - public V1Namespace(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1NamespaceSpec spec = null, V1NamespaceStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Spec defines the behavior of the Namespace. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1NamespaceSpec Spec { get; set; } - - /// - /// Status describes the current status of a Namespace. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "status")] - public V1NamespaceStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NamespaceCondition.cs b/src/KubernetesClient/generated/Models/V1NamespaceCondition.cs deleted file mode 100644 index acd2655c9..000000000 --- a/src/KubernetesClient/generated/Models/V1NamespaceCondition.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// NamespaceCondition contains details about state of namespace. - /// - public partial class V1NamespaceCondition - { - /// - /// Initializes a new instance of the V1NamespaceCondition class. - /// - public V1NamespaceCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NamespaceCondition class. - /// - /// - /// Status of the condition, one of True, False, Unknown. - /// - /// - /// Type of namespace controller condition. - /// - /// - /// Time is a wrapper around time.Time which supports correct marshaling to YAML and - /// JSON. Wrappers are provided for many of the factory methods that the time - /// package offers. - /// - /// - /// - /// - /// - /// - /// - public V1NamespaceCondition(string status, string type, System.DateTime? lastTransitionTime = null, string message = null, string reason = null) - { - LastTransitionTime = lastTransitionTime; - Message = message; - Reason = reason; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Status of the condition, one of True, False, Unknown. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Type of namespace controller condition. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NamespaceList.cs b/src/KubernetesClient/generated/Models/V1NamespaceList.cs deleted file mode 100644 index 2566619c1..000000000 --- a/src/KubernetesClient/generated/Models/V1NamespaceList.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// NamespaceList is a list of Namespaces. - /// - public partial class V1NamespaceList - { - /// - /// Initializes a new instance of the V1NamespaceList class. - /// - public V1NamespaceList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NamespaceList class. - /// - /// - /// Items is the list of Namespace objects in the list. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - public V1NamespaceList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is the list of Namespace objects in the list. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NamespaceSpec.cs b/src/KubernetesClient/generated/Models/V1NamespaceSpec.cs deleted file mode 100644 index 6343c4b0c..000000000 --- a/src/KubernetesClient/generated/Models/V1NamespaceSpec.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// NamespaceSpec describes the attributes on a Namespace. - /// - public partial class V1NamespaceSpec - { - /// - /// Initializes a new instance of the V1NamespaceSpec class. - /// - public V1NamespaceSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NamespaceSpec class. - /// - /// - /// Finalizers is an opaque list of values that must be empty to permanently remove - /// object from storage. More info: - /// https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ - /// - public V1NamespaceSpec(IList finalizers = null) - { - Finalizers = finalizers; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Finalizers is an opaque list of values that must be empty to permanently remove - /// object from storage. More info: - /// https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ - /// - [JsonProperty(PropertyName = "finalizers")] - public IList Finalizers { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NamespaceStatus.cs b/src/KubernetesClient/generated/Models/V1NamespaceStatus.cs deleted file mode 100644 index 5a52d4371..000000000 --- a/src/KubernetesClient/generated/Models/V1NamespaceStatus.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// NamespaceStatus is information about the current status of a Namespace. - /// - public partial class V1NamespaceStatus - { - /// - /// Initializes a new instance of the V1NamespaceStatus class. - /// - public V1NamespaceStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NamespaceStatus class. - /// - /// - /// Represents the latest available observations of a namespace's current state. - /// - /// - /// Phase is the current lifecycle phase of the namespace. More info: - /// https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ - /// - public V1NamespaceStatus(IList conditions = null, string phase = null) - { - Conditions = conditions; - Phase = phase; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Represents the latest available observations of a namespace's current state. - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// Phase is the current lifecycle phase of the namespace. More info: - /// https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ - /// - [JsonProperty(PropertyName = "phase")] - public string Phase { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Conditions != null){ - foreach(var obj in Conditions) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NetworkPolicy.cs b/src/KubernetesClient/generated/Models/V1NetworkPolicy.cs deleted file mode 100644 index cfd3fef3e..000000000 --- a/src/KubernetesClient/generated/Models/V1NetworkPolicy.cs +++ /dev/null @@ -1,107 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// NetworkPolicy describes what network traffic is allowed for a set of Pods - /// - public partial class V1NetworkPolicy - { - /// - /// Initializes a new instance of the V1NetworkPolicy class. - /// - public V1NetworkPolicy() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NetworkPolicy class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Specification of the desired behavior for this NetworkPolicy. - /// - public V1NetworkPolicy(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1NetworkPolicySpec spec = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Specification of the desired behavior for this NetworkPolicy. - /// - [JsonProperty(PropertyName = "spec")] - public V1NetworkPolicySpec Spec { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NetworkPolicyEgressRule.cs b/src/KubernetesClient/generated/Models/V1NetworkPolicyEgressRule.cs deleted file mode 100644 index 61dc42f42..000000000 --- a/src/KubernetesClient/generated/Models/V1NetworkPolicyEgressRule.cs +++ /dev/null @@ -1,101 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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 - /// - public partial class V1NetworkPolicyEgressRule - { - /// - /// Initializes a new instance of the V1NetworkPolicyEgressRule class. - /// - public V1NetworkPolicyEgressRule() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NetworkPolicyEgressRule class. - /// - /// - /// 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. - /// - /// - /// List of destinations for outgoing traffic of pods selected for this rule. Items - /// in this list are combined using a logical OR operation. If this field is empty - /// or missing, this rule matches all destinations (traffic not restricted by - /// destination). If this field is present and contains at least one item, this rule - /// allows traffic only if the traffic matches at least one item in the to list. - /// - public V1NetworkPolicyEgressRule(IList ports = null, IList to = null) - { - Ports = ports; - To = to; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "ports")] - public IList Ports { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "to")] - public IList To { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Ports != null){ - foreach(var obj in Ports) - { - obj.Validate(); - } - } - if (To != null){ - foreach(var obj in To) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NetworkPolicyIngressRule.cs b/src/KubernetesClient/generated/Models/V1NetworkPolicyIngressRule.cs deleted file mode 100644 index d37030613..000000000 --- a/src/KubernetesClient/generated/Models/V1NetworkPolicyIngressRule.cs +++ /dev/null @@ -1,101 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1NetworkPolicyIngressRule - { - /// - /// Initializes a new instance of the V1NetworkPolicyIngressRule class. - /// - public V1NetworkPolicyIngressRule() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NetworkPolicyIngressRule class. - /// - /// - /// 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. - /// - /// - /// List of ports which should be made accessible on the pods selected for this - /// rule. Each item in this list is combined using a logical OR. If this field is - /// empty or missing, this rule matches all ports (traffic not restricted by port). - /// If this field is present and contains at least one item, then this rule allows - /// traffic only if the traffic matches at least one port in the list. - /// - public V1NetworkPolicyIngressRule(IList fromProperty = null, IList ports = null) - { - FromProperty = fromProperty; - Ports = ports; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "from")] - public IList FromProperty { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "ports")] - public IList Ports { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (FromProperty != null){ - foreach(var obj in FromProperty) - { - obj.Validate(); - } - } - if (Ports != null){ - foreach(var obj in Ports) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NetworkPolicyList.cs b/src/KubernetesClient/generated/Models/V1NetworkPolicyList.cs deleted file mode 100644 index 91d12019e..000000000 --- a/src/KubernetesClient/generated/Models/V1NetworkPolicyList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// NetworkPolicyList is a list of NetworkPolicy objects. - /// - public partial class V1NetworkPolicyList - { - /// - /// Initializes a new instance of the V1NetworkPolicyList class. - /// - public V1NetworkPolicyList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NetworkPolicyList class. - /// - /// - /// Items is a list of schema objects. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1NetworkPolicyList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is a list of schema objects. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NetworkPolicyPeer.cs b/src/KubernetesClient/generated/Models/V1NetworkPolicyPeer.cs deleted file mode 100644 index 7cc2e8073..000000000 --- a/src/KubernetesClient/generated/Models/V1NetworkPolicyPeer.cs +++ /dev/null @@ -1,109 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain - /// combinations of fields are allowed - /// - public partial class V1NetworkPolicyPeer - { - /// - /// Initializes a new instance of the V1NetworkPolicyPeer class. - /// - public V1NetworkPolicyPeer() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NetworkPolicyPeer class. - /// - /// - /// IPBlock defines policy on a particular IPBlock. If this field is set then - /// neither of the other fields can be. - /// - /// - /// Selects Namespaces using cluster-scoped labels. This field follows standard - /// label selector semantics; if present but empty, it selects all namespaces. - /// - /// If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the - /// Pods matching PodSelector in the Namespaces selected by NamespaceSelector. - /// Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. - /// - /// - /// This is a label selector which selects Pods. This field follows standard label - /// selector semantics; if present but empty, it selects all pods. - /// - /// If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects - /// the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. - /// Otherwise it selects the Pods matching PodSelector in the policy's own - /// Namespace. - /// - public V1NetworkPolicyPeer(V1IPBlock ipBlock = null, V1LabelSelector namespaceSelector = null, V1LabelSelector podSelector = null) - { - IpBlock = ipBlock; - NamespaceSelector = namespaceSelector; - PodSelector = podSelector; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// IPBlock defines policy on a particular IPBlock. If this field is set then - /// neither of the other fields can be. - /// - [JsonProperty(PropertyName = "ipBlock")] - public V1IPBlock IpBlock { get; set; } - - /// - /// Selects Namespaces using cluster-scoped labels. This field follows standard - /// label selector semantics; if present but empty, it selects all namespaces. - /// - /// If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the - /// Pods matching PodSelector in the Namespaces selected by NamespaceSelector. - /// Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. - /// - [JsonProperty(PropertyName = "namespaceSelector")] - public V1LabelSelector NamespaceSelector { get; set; } - - /// - /// This is a label selector which selects Pods. This field follows standard label - /// selector semantics; if present but empty, it selects all pods. - /// - /// If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects - /// the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. - /// Otherwise it selects the Pods matching PodSelector in the policy's own - /// Namespace. - /// - [JsonProperty(PropertyName = "podSelector")] - public V1LabelSelector PodSelector { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - IpBlock?.Validate(); - NamespaceSelector?.Validate(); - PodSelector?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NetworkPolicyPort.cs b/src/KubernetesClient/generated/Models/V1NetworkPolicyPort.cs deleted file mode 100644 index 8bdf792b5..000000000 --- a/src/KubernetesClient/generated/Models/V1NetworkPolicyPort.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// NetworkPolicyPort describes a port to allow traffic on - /// - public partial class V1NetworkPolicyPort - { - /// - /// Initializes a new instance of the V1NetworkPolicyPort class. - /// - public V1NetworkPolicyPort() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NetworkPolicyPort class. - /// - /// - /// If set, indicates that the range of ports from port to endPort, 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. This feature is in Beta state and is - /// enabled by default. It can be disabled using the Feature Gate - /// "NetworkPolicyEndPort". - /// - /// - /// The port on the given protocol. This can either be a numerical or named port on - /// a pod. If this field is not provided, this matches all port names and numbers. - /// If present, only traffic on the specified protocol AND port will be matched. - /// - /// - /// The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, - /// this field defaults to TCP. - /// - public V1NetworkPolicyPort(int? endPort = null, IntstrIntOrString port = null, string protocol = null) - { - EndPort = endPort; - Port = port; - Protocol = protocol; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// If set, indicates that the range of ports from port to endPort, 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. This feature is in Beta state and is - /// enabled by default. It can be disabled using the Feature Gate - /// "NetworkPolicyEndPort". - /// - [JsonProperty(PropertyName = "endPort")] - public int? EndPort { get; set; } - - /// - /// The port on the given protocol. This can either be a numerical or named port on - /// a pod. If this field is not provided, this matches all port names and numbers. - /// If present, only traffic on the specified protocol AND port will be matched. - /// - [JsonProperty(PropertyName = "port")] - public IntstrIntOrString Port { get; set; } - - /// - /// The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, - /// this field defaults to TCP. - /// - [JsonProperty(PropertyName = "protocol")] - public string Protocol { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Port?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NetworkPolicySpec.cs b/src/KubernetesClient/generated/Models/V1NetworkPolicySpec.cs deleted file mode 100644 index f65ed1740..000000000 --- a/src/KubernetesClient/generated/Models/V1NetworkPolicySpec.cs +++ /dev/null @@ -1,160 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// NetworkPolicySpec provides the specification of a NetworkPolicy - /// - public partial class V1NetworkPolicySpec - { - /// - /// Initializes a new instance of the V1NetworkPolicySpec class. - /// - public V1NetworkPolicySpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NetworkPolicySpec class. - /// - /// - /// Selects the pods to which this NetworkPolicy object applies. The array of - /// ingress rules is applied to any pods selected by this field. Multiple network - /// policies can select the same set of pods. In this case, the ingress rules for - /// each are combined additively. This field is NOT optional and follows standard - /// label selector semantics. An empty podSelector matches all pods in this - /// namespace. - /// - /// - /// 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 - /// - /// - /// 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) - /// - /// - /// List of rule types that the NetworkPolicy relates to. Valid options are - /// ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not - /// specified, it will default based on the existence of Ingress or Egress rules; - /// policies that contain an Egress section are assumed to affect Egress, and all - /// policies (whether or not they contain an Ingress section) are assumed to affect - /// Ingress. If you want to write an egress-only policy, you must explicitly specify - /// policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies - /// that no egress is allowed, you must specify a policyTypes value that include - /// "Egress" (since such a policy would not include an Egress section and would - /// otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 - /// - public V1NetworkPolicySpec(V1LabelSelector podSelector, IList egress = null, IList ingress = null, IList policyTypes = null) - { - Egress = egress; - Ingress = ingress; - PodSelector = podSelector; - PolicyTypes = policyTypes; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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 - /// - [JsonProperty(PropertyName = "egress")] - public IList Egress { get; set; } - - /// - /// 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) - /// - [JsonProperty(PropertyName = "ingress")] - public IList Ingress { get; set; } - - /// - /// Selects the pods to which this NetworkPolicy object applies. The array of - /// ingress rules is applied to any pods selected by this field. Multiple network - /// policies can select the same set of pods. In this case, the ingress rules for - /// each are combined additively. This field is NOT optional and follows standard - /// label selector semantics. An empty podSelector matches all pods in this - /// namespace. - /// - [JsonProperty(PropertyName = "podSelector")] - public V1LabelSelector PodSelector { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "policyTypes")] - public IList PolicyTypes { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (PodSelector == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "PodSelector"); - } - if (Egress != null){ - foreach(var obj in Egress) - { - obj.Validate(); - } - } - if (Ingress != null){ - foreach(var obj in Ingress) - { - obj.Validate(); - } - } - PodSelector?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Node.cs b/src/KubernetesClient/generated/Models/V1Node.cs deleted file mode 100644 index 00ad95e19..000000000 --- a/src/KubernetesClient/generated/Models/V1Node.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Node is a worker node in Kubernetes. Each node will have a unique identifier in - /// the cache (i.e. in etcd). - /// - public partial class V1Node - { - /// - /// Initializes a new instance of the V1Node class. - /// - public V1Node() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Node class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Spec defines the behavior of a node. - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - /// - /// Most recently observed status of the node. Populated by the system. Read-only. - /// More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - public V1Node(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1NodeSpec spec = null, V1NodeStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Spec defines the behavior of a node. - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1NodeSpec Spec { get; set; } - - /// - /// Most recently observed status of the node. Populated by the system. Read-only. - /// More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "status")] - public V1NodeStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NodeAddress.cs b/src/KubernetesClient/generated/Models/V1NodeAddress.cs deleted file mode 100644 index 89abdcba7..000000000 --- a/src/KubernetesClient/generated/Models/V1NodeAddress.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// NodeAddress contains information for the node's address. - /// - public partial class V1NodeAddress - { - /// - /// Initializes a new instance of the V1NodeAddress class. - /// - public V1NodeAddress() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NodeAddress class. - /// - /// - /// The node address. - /// - /// - /// Node address type, one of Hostname, ExternalIP or InternalIP. - /// - public V1NodeAddress(string address, string type) - { - Address = address; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The node address. - /// - [JsonProperty(PropertyName = "address")] - public string Address { get; set; } - - /// - /// Node address type, one of Hostname, ExternalIP or InternalIP. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NodeAffinity.cs b/src/KubernetesClient/generated/Models/V1NodeAffinity.cs deleted file mode 100644 index 5aa3d9d7c..000000000 --- a/src/KubernetesClient/generated/Models/V1NodeAffinity.cs +++ /dev/null @@ -1,100 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Node affinity is a group of node affinity scheduling rules. - /// - public partial class V1NodeAffinity - { - /// - /// Initializes a new instance of the V1NodeAffinity class. - /// - public V1NodeAffinity() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NodeAffinity class. - /// - /// - /// 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. - /// - /// - /// 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. - /// - public V1NodeAffinity(IList preferredDuringSchedulingIgnoredDuringExecution = null, V1NodeSelector requiredDuringSchedulingIgnoredDuringExecution = null) - { - PreferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; - RequiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "preferredDuringSchedulingIgnoredDuringExecution")] - public IList PreferredDuringSchedulingIgnoredDuringExecution { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "requiredDuringSchedulingIgnoredDuringExecution")] - public V1NodeSelector RequiredDuringSchedulingIgnoredDuringExecution { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (PreferredDuringSchedulingIgnoredDuringExecution != null){ - foreach(var obj in PreferredDuringSchedulingIgnoredDuringExecution) - { - obj.Validate(); - } - } - RequiredDuringSchedulingIgnoredDuringExecution?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NodeCondition.cs b/src/KubernetesClient/generated/Models/V1NodeCondition.cs deleted file mode 100644 index 5cbcf1cf4..000000000 --- a/src/KubernetesClient/generated/Models/V1NodeCondition.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// NodeCondition contains condition information for a node. - /// - public partial class V1NodeCondition - { - /// - /// Initializes a new instance of the V1NodeCondition class. - /// - public V1NodeCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NodeCondition class. - /// - /// - /// Status of the condition, one of True, False, Unknown. - /// - /// - /// Type of node condition. - /// - /// - /// Last time we got an update on a given condition. - /// - /// - /// Last time the condition transit from one status to another. - /// - /// - /// Human readable message indicating details about last transition. - /// - /// - /// (brief) reason for the condition's last transition. - /// - public V1NodeCondition(string status, string type, System.DateTime? lastHeartbeatTime = null, System.DateTime? lastTransitionTime = null, string message = null, string reason = null) - { - LastHeartbeatTime = lastHeartbeatTime; - LastTransitionTime = lastTransitionTime; - Message = message; - Reason = reason; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Last time we got an update on a given condition. - /// - [JsonProperty(PropertyName = "lastHeartbeatTime")] - public System.DateTime? LastHeartbeatTime { get; set; } - - /// - /// Last time the condition transit from one status to another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// Human readable message indicating details about last transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// (brief) reason for the condition's last transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Status of the condition, one of True, False, Unknown. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Type of node condition. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NodeConfigSource.cs b/src/KubernetesClient/generated/Models/V1NodeConfigSource.cs deleted file mode 100644 index 171231283..000000000 --- a/src/KubernetesClient/generated/Models/V1NodeConfigSource.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// NodeConfigSource specifies a source of node configuration. Exactly one subfield - /// (excluding metadata) must be non-nil. This API is deprecated since 1.22 - /// - public partial class V1NodeConfigSource - { - /// - /// Initializes a new instance of the V1NodeConfigSource class. - /// - public V1NodeConfigSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NodeConfigSource class. - /// - /// - /// ConfigMap is a reference to a Node's ConfigMap - /// - public V1NodeConfigSource(V1ConfigMapNodeConfigSource configMap = null) - { - ConfigMap = configMap; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// ConfigMap is a reference to a Node's ConfigMap - /// - [JsonProperty(PropertyName = "configMap")] - public V1ConfigMapNodeConfigSource ConfigMap { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - ConfigMap?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NodeConfigStatus.cs b/src/KubernetesClient/generated/Models/V1NodeConfigStatus.cs deleted file mode 100644 index 4793eed7a..000000000 --- a/src/KubernetesClient/generated/Models/V1NodeConfigStatus.cs +++ /dev/null @@ -1,161 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// NodeConfigStatus describes the status of the config assigned by - /// Node.Spec.ConfigSource. - /// - public partial class V1NodeConfigStatus - { - /// - /// Initializes a new instance of the V1NodeConfigStatus class. - /// - public V1NodeConfigStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NodeConfigStatus class. - /// - /// - /// Active reports the checkpointed config the node is actively using. Active will - /// represent either the current version of the Assigned config, or the current - /// LastKnownGood config, depending on whether attempting to use the Assigned config - /// results in an error. - /// - /// - /// Assigned reports the checkpointed config the node will try to use. When - /// Node.Spec.ConfigSource is updated, the node checkpoints the associated config - /// payload to local disk, along with a record indicating intended config. The node - /// refers to this record to choose its config checkpoint, and reports this record - /// in Assigned. Assigned only updates in the status after the record has been - /// checkpointed to disk. When the Kubelet is restarted, it tries to make the - /// Assigned config the Active config by loading and validating the checkpointed - /// payload identified by Assigned. - /// - /// - /// Error describes any problems reconciling the Spec.ConfigSource to the Active - /// config. Errors may occur, for example, attempting to checkpoint - /// Spec.ConfigSource to the local Assigned record, attempting to checkpoint the - /// payload associated with Spec.ConfigSource, attempting to load or validate the - /// Assigned config, etc. Errors may occur at different points while syncing config. - /// Earlier errors (e.g. download or checkpointing errors) will not result in a - /// rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors - /// (e.g. loading or validating a checkpointed config) will result in a rollback to - /// LastKnownGood. In the latter case, it is usually possible to resolve the error - /// by fixing the config assigned in Spec.ConfigSource. You can find additional - /// information for debugging by searching the error message in the Kubelet log. - /// Error is a human-readable description of the error state; machines can check - /// whether or not Error is empty, but should not rely on the stability of the Error - /// text across Kubelet versions. - /// - /// - /// LastKnownGood reports the checkpointed config the node will fall back to when it - /// encounters an error attempting to use the Assigned config. The Assigned config - /// becomes the LastKnownGood config when the node determines that the Assigned - /// config is stable and correct. This is currently implemented as a 10-minute soak - /// period starting when the local record of Assigned config is updated. If the - /// Assigned config is Active at the end of this period, it becomes the - /// LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local - /// defaults), the LastKnownGood is also immediately reset to nil, because the local - /// default config is always assumed good. You should not make assumptions about the - /// node's method of determining config stability and correctness, as this may - /// change or become configurable in the future. - /// - public V1NodeConfigStatus(V1NodeConfigSource active = null, V1NodeConfigSource assigned = null, string error = null, V1NodeConfigSource lastKnownGood = null) - { - Active = active; - Assigned = assigned; - Error = error; - LastKnownGood = lastKnownGood; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Active reports the checkpointed config the node is actively using. Active will - /// represent either the current version of the Assigned config, or the current - /// LastKnownGood config, depending on whether attempting to use the Assigned config - /// results in an error. - /// - [JsonProperty(PropertyName = "active")] - public V1NodeConfigSource Active { get; set; } - - /// - /// Assigned reports the checkpointed config the node will try to use. When - /// Node.Spec.ConfigSource is updated, the node checkpoints the associated config - /// payload to local disk, along with a record indicating intended config. The node - /// refers to this record to choose its config checkpoint, and reports this record - /// in Assigned. Assigned only updates in the status after the record has been - /// checkpointed to disk. When the Kubelet is restarted, it tries to make the - /// Assigned config the Active config by loading and validating the checkpointed - /// payload identified by Assigned. - /// - [JsonProperty(PropertyName = "assigned")] - public V1NodeConfigSource Assigned { get; set; } - - /// - /// Error describes any problems reconciling the Spec.ConfigSource to the Active - /// config. Errors may occur, for example, attempting to checkpoint - /// Spec.ConfigSource to the local Assigned record, attempting to checkpoint the - /// payload associated with Spec.ConfigSource, attempting to load or validate the - /// Assigned config, etc. Errors may occur at different points while syncing config. - /// Earlier errors (e.g. download or checkpointing errors) will not result in a - /// rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors - /// (e.g. loading or validating a checkpointed config) will result in a rollback to - /// LastKnownGood. In the latter case, it is usually possible to resolve the error - /// by fixing the config assigned in Spec.ConfigSource. You can find additional - /// information for debugging by searching the error message in the Kubelet log. - /// Error is a human-readable description of the error state; machines can check - /// whether or not Error is empty, but should not rely on the stability of the Error - /// text across Kubelet versions. - /// - [JsonProperty(PropertyName = "error")] - public string Error { get; set; } - - /// - /// LastKnownGood reports the checkpointed config the node will fall back to when it - /// encounters an error attempting to use the Assigned config. The Assigned config - /// becomes the LastKnownGood config when the node determines that the Assigned - /// config is stable and correct. This is currently implemented as a 10-minute soak - /// period starting when the local record of Assigned config is updated. If the - /// Assigned config is Active at the end of this period, it becomes the - /// LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local - /// defaults), the LastKnownGood is also immediately reset to nil, because the local - /// default config is always assumed good. You should not make assumptions about the - /// node's method of determining config stability and correctness, as this may - /// change or become configurable in the future. - /// - [JsonProperty(PropertyName = "lastKnownGood")] - public V1NodeConfigSource LastKnownGood { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Active?.Validate(); - Assigned?.Validate(); - LastKnownGood?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NodeDaemonEndpoints.cs b/src/KubernetesClient/generated/Models/V1NodeDaemonEndpoints.cs deleted file mode 100644 index 0212809bc..000000000 --- a/src/KubernetesClient/generated/Models/V1NodeDaemonEndpoints.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// NodeDaemonEndpoints lists ports opened by daemons running on the Node. - /// - public partial class V1NodeDaemonEndpoints - { - /// - /// Initializes a new instance of the V1NodeDaemonEndpoints class. - /// - public V1NodeDaemonEndpoints() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NodeDaemonEndpoints class. - /// - /// - /// Endpoint on which Kubelet is listening. - /// - public V1NodeDaemonEndpoints(V1DaemonEndpoint kubeletEndpoint = null) - { - KubeletEndpoint = kubeletEndpoint; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Endpoint on which Kubelet is listening. - /// - [JsonProperty(PropertyName = "kubeletEndpoint")] - public V1DaemonEndpoint KubeletEndpoint { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - KubeletEndpoint?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NodeList.cs b/src/KubernetesClient/generated/Models/V1NodeList.cs deleted file mode 100644 index fb16062fd..000000000 --- a/src/KubernetesClient/generated/Models/V1NodeList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// NodeList is the whole list of all Nodes which have been registered with master. - /// - public partial class V1NodeList - { - /// - /// Initializes a new instance of the V1NodeList class. - /// - public V1NodeList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NodeList class. - /// - /// - /// List of nodes - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - public V1NodeList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// List of nodes - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NodeSelector.cs b/src/KubernetesClient/generated/Models/V1NodeSelector.cs deleted file mode 100644 index 2b6bb4c86..000000000 --- a/src/KubernetesClient/generated/Models/V1NodeSelector.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// A node selector represents the union of the results of one or more label queries - /// over a set of nodes; that is, it represents the OR of the selectors represented - /// by the node selector terms. - /// - public partial class V1NodeSelector - { - /// - /// Initializes a new instance of the V1NodeSelector class. - /// - public V1NodeSelector() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NodeSelector class. - /// - /// - /// Required. A list of node selector terms. The terms are ORed. - /// - public V1NodeSelector(IList nodeSelectorTerms) - { - NodeSelectorTerms = nodeSelectorTerms; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Required. A list of node selector terms. The terms are ORed. - /// - [JsonProperty(PropertyName = "nodeSelectorTerms")] - public IList NodeSelectorTerms { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (NodeSelectorTerms != null){ - foreach(var obj in NodeSelectorTerms) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NodeSelectorRequirement.cs b/src/KubernetesClient/generated/Models/V1NodeSelectorRequirement.cs deleted file mode 100644 index 4dea65967..000000000 --- a/src/KubernetesClient/generated/Models/V1NodeSelectorRequirement.cs +++ /dev/null @@ -1,92 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// A node selector requirement is a selector that contains values, a key, and an - /// operator that relates the key and values. - /// - public partial class V1NodeSelectorRequirement - { - /// - /// Initializes a new instance of the V1NodeSelectorRequirement class. - /// - public V1NodeSelectorRequirement() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NodeSelectorRequirement class. - /// - /// - /// The label key that the selector applies to. - /// - /// - /// Represents a key's relationship to a set of values. Valid operators are In, - /// NotIn, Exists, DoesNotExist. Gt, and Lt. - /// - /// - /// An array of string values. If the operator is In or NotIn, the values array must - /// be non-empty. If the operator is Exists or DoesNotExist, the values array must - /// be empty. If the operator is Gt or Lt, the values array must have a single - /// element, which will be interpreted as an integer. This array is replaced during - /// a strategic merge patch. - /// - public V1NodeSelectorRequirement(string key, string operatorProperty, IList values = null) - { - Key = key; - OperatorProperty = operatorProperty; - Values = values; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The label key that the selector applies to. - /// - [JsonProperty(PropertyName = "key")] - public string Key { get; set; } - - /// - /// Represents a key's relationship to a set of values. Valid operators are In, - /// NotIn, Exists, DoesNotExist. Gt, and Lt. - /// - [JsonProperty(PropertyName = "operator")] - public string OperatorProperty { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "values")] - public IList Values { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NodeSelectorTerm.cs b/src/KubernetesClient/generated/Models/V1NodeSelectorTerm.cs deleted file mode 100644 index 45de6bab2..000000000 --- a/src/KubernetesClient/generated/Models/V1NodeSelectorTerm.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1NodeSelectorTerm - { - /// - /// Initializes a new instance of the V1NodeSelectorTerm class. - /// - public V1NodeSelectorTerm() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NodeSelectorTerm class. - /// - /// - /// A list of node selector requirements by node's labels. - /// - /// - /// A list of node selector requirements by node's fields. - /// - public V1NodeSelectorTerm(IList matchExpressions = null, IList matchFields = null) - { - MatchExpressions = matchExpressions; - MatchFields = matchFields; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// A list of node selector requirements by node's labels. - /// - [JsonProperty(PropertyName = "matchExpressions")] - public IList MatchExpressions { get; set; } - - /// - /// A list of node selector requirements by node's fields. - /// - [JsonProperty(PropertyName = "matchFields")] - public IList MatchFields { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (MatchExpressions != null){ - foreach(var obj in MatchExpressions) - { - obj.Validate(); - } - } - if (MatchFields != null){ - foreach(var obj in MatchFields) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NodeSpec.cs b/src/KubernetesClient/generated/Models/V1NodeSpec.cs deleted file mode 100644 index 89a16d1e5..000000000 --- a/src/KubernetesClient/generated/Models/V1NodeSpec.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// NodeSpec describes the attributes that a node is created with. - /// - public partial class V1NodeSpec - { - /// - /// Initializes a new instance of the V1NodeSpec class. - /// - public V1NodeSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NodeSpec class. - /// - /// - /// Deprecated. If specified, the source of the node's configuration. The - /// DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this - /// field. This field is deprecated as of 1.22: - /// https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration - /// - /// - /// Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: - /// https://issues.k8s.io/61966 - /// - /// - /// PodCIDR represents the pod IP range assigned to the node. - /// - /// - /// podCIDRs represents the IP ranges assigned to the node for usage by Pods on that - /// node. If this field is specified, the 0th entry must match the podCIDR field. It - /// may contain at most 1 value for each of IPv4 and IPv6. - /// - /// - /// ID of the node assigned by the cloud provider in the format: - /// <ProviderName>://<ProviderSpecificNodeID> - /// - /// - /// If specified, the node's taints. - /// - /// - /// Unschedulable controls node schedulability of new pods. By default, node is - /// schedulable. More info: - /// https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration - /// - public V1NodeSpec(V1NodeConfigSource configSource = null, string externalID = null, string podCIDR = null, IList podCIDRs = null, string providerID = null, IList taints = null, bool? unschedulable = null) - { - ConfigSource = configSource; - ExternalID = externalID; - PodCIDR = podCIDR; - PodCIDRs = podCIDRs; - ProviderID = providerID; - Taints = taints; - Unschedulable = unschedulable; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Deprecated. If specified, the source of the node's configuration. The - /// DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this - /// field. This field is deprecated as of 1.22: - /// https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration - /// - [JsonProperty(PropertyName = "configSource")] - public V1NodeConfigSource ConfigSource { get; set; } - - /// - /// Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: - /// https://issues.k8s.io/61966 - /// - [JsonProperty(PropertyName = "externalID")] - public string ExternalID { get; set; } - - /// - /// PodCIDR represents the pod IP range assigned to the node. - /// - [JsonProperty(PropertyName = "podCIDR")] - public string PodCIDR { get; set; } - - /// - /// podCIDRs represents the IP ranges assigned to the node for usage by Pods on that - /// node. If this field is specified, the 0th entry must match the podCIDR field. It - /// may contain at most 1 value for each of IPv4 and IPv6. - /// - [JsonProperty(PropertyName = "podCIDRs")] - public IList PodCIDRs { get; set; } - - /// - /// ID of the node assigned by the cloud provider in the format: - /// <ProviderName>://<ProviderSpecificNodeID> - /// - [JsonProperty(PropertyName = "providerID")] - public string ProviderID { get; set; } - - /// - /// If specified, the node's taints. - /// - [JsonProperty(PropertyName = "taints")] - public IList Taints { get; set; } - - /// - /// Unschedulable controls node schedulability of new pods. By default, node is - /// schedulable. More info: - /// https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration - /// - [JsonProperty(PropertyName = "unschedulable")] - public bool? Unschedulable { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - ConfigSource?.Validate(); - if (Taints != null){ - foreach(var obj in Taints) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NodeStatus.cs b/src/KubernetesClient/generated/Models/V1NodeStatus.cs deleted file mode 100644 index 1f5432f33..000000000 --- a/src/KubernetesClient/generated/Models/V1NodeStatus.cs +++ /dev/null @@ -1,210 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// NodeStatus is information about the current status of a node. - /// - public partial class V1NodeStatus - { - /// - /// Initializes a new instance of the V1NodeStatus class. - /// - public V1NodeStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NodeStatus class. - /// - /// - /// 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 http://pr.k8s.io/79391 for an example. - /// - /// - /// Allocatable represents the resources of a node that are available for - /// scheduling. Defaults to Capacity. - /// - /// - /// Capacity represents the total resources of a node. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - /// - /// - /// Conditions is an array of current observed node conditions. More info: - /// https://kubernetes.io/docs/concepts/nodes/node/#condition - /// - /// - /// Status of the config assigned to the node via the dynamic Kubelet config - /// feature. - /// - /// - /// Endpoints of daemons running on the Node. - /// - /// - /// List of container images on this node - /// - /// - /// Set of ids/uuids to uniquely identify the node. More info: - /// https://kubernetes.io/docs/concepts/nodes/node/#info - /// - /// - /// 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. - /// - /// - /// List of volumes that are attached to the node. - /// - /// - /// List of attachable volumes in use (mounted) by the node. - /// - public V1NodeStatus(IList addresses = null, IDictionary allocatable = null, IDictionary capacity = null, IList conditions = null, V1NodeConfigStatus config = null, V1NodeDaemonEndpoints daemonEndpoints = null, IList images = null, V1NodeSystemInfo nodeInfo = null, string phase = null, IList volumesAttached = null, IList volumesInUse = null) - { - Addresses = addresses; - Allocatable = allocatable; - Capacity = capacity; - Conditions = conditions; - Config = config; - DaemonEndpoints = daemonEndpoints; - Images = images; - NodeInfo = nodeInfo; - Phase = phase; - VolumesAttached = volumesAttached; - VolumesInUse = volumesInUse; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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 http://pr.k8s.io/79391 for an example. - /// - [JsonProperty(PropertyName = "addresses")] - public IList Addresses { get; set; } - - /// - /// Allocatable represents the resources of a node that are available for - /// scheduling. Defaults to Capacity. - /// - [JsonProperty(PropertyName = "allocatable")] - public IDictionary Allocatable { get; set; } - - /// - /// Capacity represents the total resources of a node. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - /// - [JsonProperty(PropertyName = "capacity")] - public IDictionary Capacity { get; set; } - - /// - /// Conditions is an array of current observed node conditions. More info: - /// https://kubernetes.io/docs/concepts/nodes/node/#condition - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// Status of the config assigned to the node via the dynamic Kubelet config - /// feature. - /// - [JsonProperty(PropertyName = "config")] - public V1NodeConfigStatus Config { get; set; } - - /// - /// Endpoints of daemons running on the Node. - /// - [JsonProperty(PropertyName = "daemonEndpoints")] - public V1NodeDaemonEndpoints DaemonEndpoints { get; set; } - - /// - /// List of container images on this node - /// - [JsonProperty(PropertyName = "images")] - public IList Images { get; set; } - - /// - /// Set of ids/uuids to uniquely identify the node. More info: - /// https://kubernetes.io/docs/concepts/nodes/node/#info - /// - [JsonProperty(PropertyName = "nodeInfo")] - public V1NodeSystemInfo NodeInfo { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "phase")] - public string Phase { get; set; } - - /// - /// List of volumes that are attached to the node. - /// - [JsonProperty(PropertyName = "volumesAttached")] - public IList VolumesAttached { get; set; } - - /// - /// List of attachable volumes in use (mounted) by the node. - /// - [JsonProperty(PropertyName = "volumesInUse")] - public IList VolumesInUse { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Addresses != null){ - foreach(var obj in Addresses) - { - obj.Validate(); - } - } - if (Conditions != null){ - foreach(var obj in Conditions) - { - obj.Validate(); - } - } - Config?.Validate(); - DaemonEndpoints?.Validate(); - if (Images != null){ - foreach(var obj in Images) - { - obj.Validate(); - } - } - NodeInfo?.Validate(); - if (VolumesAttached != null){ - foreach(var obj in VolumesAttached) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NodeSystemInfo.cs b/src/KubernetesClient/generated/Models/V1NodeSystemInfo.cs deleted file mode 100644 index 1d4d00175..000000000 --- a/src/KubernetesClient/generated/Models/V1NodeSystemInfo.cs +++ /dev/null @@ -1,163 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// NodeSystemInfo is a set of ids/uuids to uniquely identify the node. - /// - public partial class V1NodeSystemInfo - { - /// - /// Initializes a new instance of the V1NodeSystemInfo class. - /// - public V1NodeSystemInfo() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NodeSystemInfo class. - /// - /// - /// The Architecture reported by the node - /// - /// - /// Boot ID reported by the node. - /// - /// - /// ContainerRuntime Version reported by the node through runtime remote API (e.g. - /// docker://1.5.0). - /// - /// - /// Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). - /// - /// - /// KubeProxy Version reported by the node. - /// - /// - /// Kubelet Version reported by the node. - /// - /// - /// 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 - /// - /// - /// The Operating System reported by the node - /// - /// - /// OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 - /// (wheezy)). - /// - /// - /// SystemUUID reported by the node. For unique machine identification MachineID is - /// preferred. This field is specific to Red Hat hosts - /// https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid - /// - public V1NodeSystemInfo(string architecture, string bootID, string containerRuntimeVersion, string kernelVersion, string kubeProxyVersion, string kubeletVersion, string machineID, string operatingSystem, string osImage, string systemUUID) - { - Architecture = architecture; - BootID = bootID; - ContainerRuntimeVersion = containerRuntimeVersion; - KernelVersion = kernelVersion; - KubeProxyVersion = kubeProxyVersion; - KubeletVersion = kubeletVersion; - MachineID = machineID; - OperatingSystem = operatingSystem; - OsImage = osImage; - SystemUUID = systemUUID; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The Architecture reported by the node - /// - [JsonProperty(PropertyName = "architecture")] - public string Architecture { get; set; } - - /// - /// Boot ID reported by the node. - /// - [JsonProperty(PropertyName = "bootID")] - public string BootID { get; set; } - - /// - /// ContainerRuntime Version reported by the node through runtime remote API (e.g. - /// docker://1.5.0). - /// - [JsonProperty(PropertyName = "containerRuntimeVersion")] - public string ContainerRuntimeVersion { get; set; } - - /// - /// Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). - /// - [JsonProperty(PropertyName = "kernelVersion")] - public string KernelVersion { get; set; } - - /// - /// KubeProxy Version reported by the node. - /// - [JsonProperty(PropertyName = "kubeProxyVersion")] - public string KubeProxyVersion { get; set; } - - /// - /// Kubelet Version reported by the node. - /// - [JsonProperty(PropertyName = "kubeletVersion")] - public string KubeletVersion { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "machineID")] - public string MachineID { get; set; } - - /// - /// The Operating System reported by the node - /// - [JsonProperty(PropertyName = "operatingSystem")] - public string OperatingSystem { get; set; } - - /// - /// OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 - /// (wheezy)). - /// - [JsonProperty(PropertyName = "osImage")] - public string OsImage { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "systemUUID")] - public string SystemUUID { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NonResourceAttributes.cs b/src/KubernetesClient/generated/Models/V1NonResourceAttributes.cs deleted file mode 100644 index 318209fbf..000000000 --- a/src/KubernetesClient/generated/Models/V1NonResourceAttributes.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// NonResourceAttributes includes the authorization attributes available for - /// non-resource requests to the Authorizer interface - /// - public partial class V1NonResourceAttributes - { - /// - /// Initializes a new instance of the V1NonResourceAttributes class. - /// - public V1NonResourceAttributes() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NonResourceAttributes class. - /// - /// - /// Path is the URL path of the request - /// - /// - /// Verb is the standard HTTP verb - /// - public V1NonResourceAttributes(string path = null, string verb = null) - { - Path = path; - Verb = verb; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Path is the URL path of the request - /// - [JsonProperty(PropertyName = "path")] - public string Path { get; set; } - - /// - /// Verb is the standard HTTP verb - /// - [JsonProperty(PropertyName = "verb")] - public string Verb { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1NonResourceRule.cs b/src/KubernetesClient/generated/Models/V1NonResourceRule.cs deleted file mode 100644 index 0f360446d..000000000 --- a/src/KubernetesClient/generated/Models/V1NonResourceRule.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// NonResourceRule holds information that describes a rule for the non-resource - /// - public partial class V1NonResourceRule - { - /// - /// Initializes a new instance of the V1NonResourceRule class. - /// - public V1NonResourceRule() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NonResourceRule class. - /// - /// - /// Verb is a list of kubernetes non-resource API verbs, like: get, post, put, - /// delete, patch, head, options. "*" means all. - /// - /// - /// NonResourceURLs is a set of partial urls that a user should have access to. *s - /// are allowed, but only as the full, final step in the path. "*" means all. - /// - public V1NonResourceRule(IList verbs, IList nonResourceURLs = null) - { - NonResourceURLs = nonResourceURLs; - Verbs = verbs; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// NonResourceURLs is a set of partial urls that a user should have access to. *s - /// are allowed, but only as the full, final step in the path. "*" means all. - /// - [JsonProperty(PropertyName = "nonResourceURLs")] - public IList NonResourceURLs { get; set; } - - /// - /// Verb is a list of kubernetes non-resource API verbs, like: get, post, put, - /// delete, patch, head, options. "*" means all. - /// - [JsonProperty(PropertyName = "verbs")] - public IList Verbs { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ObjectFieldSelector.cs b/src/KubernetesClient/generated/Models/V1ObjectFieldSelector.cs deleted file mode 100644 index 5b0d3fad3..000000000 --- a/src/KubernetesClient/generated/Models/V1ObjectFieldSelector.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ObjectFieldSelector selects an APIVersioned field of an object. - /// - public partial class V1ObjectFieldSelector - { - /// - /// Initializes a new instance of the V1ObjectFieldSelector class. - /// - public V1ObjectFieldSelector() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ObjectFieldSelector class. - /// - /// - /// Path of the field to select in the specified API version. - /// - /// - /// Version of the schema the FieldPath is written in terms of, defaults to "v1". - /// - public V1ObjectFieldSelector(string fieldPath, string apiVersion = null) - { - ApiVersion = apiVersion; - FieldPath = fieldPath; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Version of the schema the FieldPath is written in terms of, defaults to "v1". - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Path of the field to select in the specified API version. - /// - [JsonProperty(PropertyName = "fieldPath")] - public string FieldPath { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ObjectMeta.cs b/src/KubernetesClient/generated/Models/V1ObjectMeta.cs deleted file mode 100644 index 719fb8f42..000000000 --- a/src/KubernetesClient/generated/Models/V1ObjectMeta.cs +++ /dev/null @@ -1,416 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ObjectMeta is metadata that all persisted resources must have, which includes - /// all objects users must create. - /// - public partial class V1ObjectMeta - { - /// - /// Initializes a new instance of the V1ObjectMeta class. - /// - public V1ObjectMeta() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ObjectMeta class. - /// - /// - /// 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 - /// - /// - /// The name of the cluster which the object belongs to. This is used to distinguish - /// resources with same name and namespace in different clusters. This field is not - /// set anywhere right now and apiserver is going to ignore it if set in create or - /// update request. - /// - /// - /// CreationTimestamp is a timestamp representing the server time when this object - /// was created. It is not guaranteed to be set in happens-before order across - /// separate operations. Clients may not set this value. It is represented in - /// RFC3339 form and is in UTC. - /// - /// Populated by the system. Read-only. Null for lists. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Number of seconds allowed for this object to gracefully terminate before it will - /// be removed from the system. Only set when deletionTimestamp is also set. May - /// only be shortened. Read-only. - /// - /// - /// DeletionTimestamp is RFC 3339 date and time at which this resource will be - /// deleted. This field is set by the server when a graceful deletion is requested - /// by the user, and is not directly settable by a client. The resource is expected - /// to be deleted (no longer visible from resource lists, and not reachable by name) - /// after the time in this field, once the finalizers list is empty. As long as the - /// finalizers list contains items, deletion is blocked. Once the deletionTimestamp - /// is set, this value may not be unset or be set further into the future, although - /// it may be shortened or the resource may be deleted prior to this time. For - /// example, a user may request that a pod is deleted in 30 seconds. The Kubelet - /// will react by sending a graceful termination signal to the containers in the - /// pod. After that 30 seconds, the Kubelet will send a hard termination signal - /// (SIGKILL) to the container and after cleanup, remove the pod from the API. In - /// the presence of network partitions, this object may still exist after this - /// timestamp, until an administrator or automated process can determine the - /// resource is fully terminated. If not set, graceful deletion of the object has - /// not been requested. - /// - /// Populated by the system when a graceful deletion is requested. Read-only. More - /// info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Must be empty before the object is deleted from the registry. Each entry is an - /// identifier for the responsible component that will remove the entry from the - /// list. If the deletionTimestamp of the object is non-nil, entries in this list - /// can only be removed. Finalizers may be processed and removed in any order. - /// Order is NOT enforced because it introduces significant risk of stuck - /// finalizers. finalizers is a shared field, any actor with permission can reorder - /// it. If the finalizer list is processed in order, then this can lead to a - /// situation in which the component responsible for the first finalizer in the list - /// is waiting for a signal (field value, external system, or other) produced by a - /// component responsible for a finalizer later in the list, resulting in a - /// deadlock. Without enforced ordering finalizers are free to order amongst - /// themselves and are not vulnerable to ordering changes in the list. - /// - /// - /// GenerateName is an optional prefix, used by the server, to generate a unique - /// name ONLY IF the Name field has not been provided. If this field is used, the - /// name returned to the client will be different than the name passed. This value - /// will also be combined with a unique suffix. The provided value has the same - /// validation rules as the Name field, and may be truncated by the length of the - /// suffix required to make the value unique on the server. - /// - /// If this field is specified and the generated name exists, the server will NOT - /// return a 409 - instead, it will either return 201 Created or 500 with Reason - /// ServerTimeout indicating a unique name could not be found in the time allotted, - /// and the client should retry (optionally after the time indicated in the - /// Retry-After header). - /// - /// Applied only if Name is not specified. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - /// - /// - /// A sequence number representing a specific generation of the desired state. - /// Populated by the system. Read-only. - /// - /// - /// 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 - /// - /// - /// ManagedFields maps workflow-id and version to the set of fields that are managed - /// by that workflow. This is mostly for internal housekeeping, and users typically - /// shouldn't need to set or understand this field. A workflow can be the user's - /// name, a controller's name, or the name of a specific apply path like "ci-cd". - /// The set of fields is always in the version that the workflow used when modifying - /// the object. - /// - /// - /// Name must be unique within a namespace. Is required when creating resources, - /// although some resources may allow a client to request the generation of an - /// appropriate name automatically. Name is primarily intended for creation - /// idempotence and configuration definition. Cannot be updated. More info: - /// http://kubernetes.io/docs/user-guide/identifiers#names - /// - /// - /// Namespace defines the space within which each name must be unique. An empty - /// namespace is equivalent to the "default" namespace, but "default" is the - /// canonical representation. Not all objects are required to be scoped to a - /// namespace - the value of this field for those objects will be empty. - /// - /// Must be a DNS_LABEL. Cannot be updated. More info: - /// http://kubernetes.io/docs/user-guide/namespaces - /// - /// - /// List of objects depended by this object. If ALL objects in the list have been - /// deleted, this object will be garbage collected. If this object is managed by a - /// controller, then an entry in this list will point to this controller, with the - /// controller field set to true. There cannot be more than one managing controller. - /// - /// - /// An opaque value that represents the internal version of this object that can be - /// used by clients to determine when objects have changed. May be used for - /// optimistic concurrency, change detection, and the watch operation on a resource - /// or set of resources. Clients must treat these values as opaque and passed - /// unmodified back to the server. They may only be valid for a particular resource - /// or set of resources. - /// - /// Populated by the system. Read-only. Value must be treated as opaque by clients - /// and . More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - /// - /// - /// 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. - /// - /// - /// UID is the unique in time and space value for this object. It is typically - /// generated by the server on successful creation of a resource and is not allowed - /// to change on PUT operations. - /// - /// Populated by the system. Read-only. More info: - /// http://kubernetes.io/docs/user-guide/identifiers#uids - /// - public V1ObjectMeta(IDictionary annotations = null, string clusterName = null, System.DateTime? creationTimestamp = null, long? deletionGracePeriodSeconds = null, System.DateTime? deletionTimestamp = null, IList finalizers = null, string generateName = null, long? generation = null, IDictionary labels = null, IList managedFields = null, string name = null, string namespaceProperty = null, IList ownerReferences = null, string resourceVersion = null, string selfLink = null, string uid = null) - { - Annotations = annotations; - ClusterName = clusterName; - CreationTimestamp = creationTimestamp; - DeletionGracePeriodSeconds = deletionGracePeriodSeconds; - DeletionTimestamp = deletionTimestamp; - Finalizers = finalizers; - GenerateName = generateName; - Generation = generation; - Labels = labels; - ManagedFields = managedFields; - Name = name; - NamespaceProperty = namespaceProperty; - OwnerReferences = ownerReferences; - ResourceVersion = resourceVersion; - SelfLink = selfLink; - Uid = uid; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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 - /// - [JsonProperty(PropertyName = "annotations")] - public IDictionary Annotations { get; set; } - - /// - /// The name of the cluster which the object belongs to. This is used to distinguish - /// resources with same name and namespace in different clusters. This field is not - /// set anywhere right now and apiserver is going to ignore it if set in create or - /// update request. - /// - [JsonProperty(PropertyName = "clusterName")] - public string ClusterName { get; set; } - - /// - /// CreationTimestamp is a timestamp representing the server time when this object - /// was created. It is not guaranteed to be set in happens-before order across - /// separate operations. Clients may not set this value. It is represented in - /// RFC3339 form and is in UTC. - /// - /// Populated by the system. Read-only. Null for lists. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "creationTimestamp")] - public System.DateTime? CreationTimestamp { get; set; } - - /// - /// Number of seconds allowed for this object to gracefully terminate before it will - /// be removed from the system. Only set when deletionTimestamp is also set. May - /// only be shortened. Read-only. - /// - [JsonProperty(PropertyName = "deletionGracePeriodSeconds")] - public long? DeletionGracePeriodSeconds { get; set; } - - /// - /// DeletionTimestamp is RFC 3339 date and time at which this resource will be - /// deleted. This field is set by the server when a graceful deletion is requested - /// by the user, and is not directly settable by a client. The resource is expected - /// to be deleted (no longer visible from resource lists, and not reachable by name) - /// after the time in this field, once the finalizers list is empty. As long as the - /// finalizers list contains items, deletion is blocked. Once the deletionTimestamp - /// is set, this value may not be unset or be set further into the future, although - /// it may be shortened or the resource may be deleted prior to this time. For - /// example, a user may request that a pod is deleted in 30 seconds. The Kubelet - /// will react by sending a graceful termination signal to the containers in the - /// pod. After that 30 seconds, the Kubelet will send a hard termination signal - /// (SIGKILL) to the container and after cleanup, remove the pod from the API. In - /// the presence of network partitions, this object may still exist after this - /// timestamp, until an administrator or automated process can determine the - /// resource is fully terminated. If not set, graceful deletion of the object has - /// not been requested. - /// - /// Populated by the system when a graceful deletion is requested. Read-only. More - /// info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "deletionTimestamp")] - public System.DateTime? DeletionTimestamp { get; set; } - - /// - /// Must be empty before the object is deleted from the registry. Each entry is an - /// identifier for the responsible component that will remove the entry from the - /// list. If the deletionTimestamp of the object is non-nil, entries in this list - /// can only be removed. Finalizers may be processed and removed in any order. - /// Order is NOT enforced because it introduces significant risk of stuck - /// finalizers. finalizers is a shared field, any actor with permission can reorder - /// it. If the finalizer list is processed in order, then this can lead to a - /// situation in which the component responsible for the first finalizer in the list - /// is waiting for a signal (field value, external system, or other) produced by a - /// component responsible for a finalizer later in the list, resulting in a - /// deadlock. Without enforced ordering finalizers are free to order amongst - /// themselves and are not vulnerable to ordering changes in the list. - /// - [JsonProperty(PropertyName = "finalizers")] - public IList Finalizers { get; set; } - - /// - /// GenerateName is an optional prefix, used by the server, to generate a unique - /// name ONLY IF the Name field has not been provided. If this field is used, the - /// name returned to the client will be different than the name passed. This value - /// will also be combined with a unique suffix. The provided value has the same - /// validation rules as the Name field, and may be truncated by the length of the - /// suffix required to make the value unique on the server. - /// - /// If this field is specified and the generated name exists, the server will NOT - /// return a 409 - instead, it will either return 201 Created or 500 with Reason - /// ServerTimeout indicating a unique name could not be found in the time allotted, - /// and the client should retry (optionally after the time indicated in the - /// Retry-After header). - /// - /// Applied only if Name is not specified. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - /// - [JsonProperty(PropertyName = "generateName")] - public string GenerateName { get; set; } - - /// - /// A sequence number representing a specific generation of the desired state. - /// Populated by the system. Read-only. - /// - [JsonProperty(PropertyName = "generation")] - public long? Generation { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "labels")] - public IDictionary Labels { get; set; } - - /// - /// ManagedFields maps workflow-id and version to the set of fields that are managed - /// by that workflow. This is mostly for internal housekeeping, and users typically - /// shouldn't need to set or understand this field. A workflow can be the user's - /// name, a controller's name, or the name of a specific apply path like "ci-cd". - /// The set of fields is always in the version that the workflow used when modifying - /// the object. - /// - [JsonProperty(PropertyName = "managedFields")] - public IList ManagedFields { get; set; } - - /// - /// Name must be unique within a namespace. Is required when creating resources, - /// although some resources may allow a client to request the generation of an - /// appropriate name automatically. Name is primarily intended for creation - /// idempotence and configuration definition. Cannot be updated. More info: - /// http://kubernetes.io/docs/user-guide/identifiers#names - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Namespace defines the space within which each name must be unique. An empty - /// namespace is equivalent to the "default" namespace, but "default" is the - /// canonical representation. Not all objects are required to be scoped to a - /// namespace - the value of this field for those objects will be empty. - /// - /// Must be a DNS_LABEL. Cannot be updated. More info: - /// http://kubernetes.io/docs/user-guide/namespaces - /// - [JsonProperty(PropertyName = "namespace")] - public string NamespaceProperty { get; set; } - - /// - /// List of objects depended by this object. If ALL objects in the list have been - /// deleted, this object will be garbage collected. If this object is managed by a - /// controller, then an entry in this list will point to this controller, with the - /// controller field set to true. There cannot be more than one managing controller. - /// - [JsonProperty(PropertyName = "ownerReferences")] - public IList OwnerReferences { get; set; } - - /// - /// An opaque value that represents the internal version of this object that can be - /// used by clients to determine when objects have changed. May be used for - /// optimistic concurrency, change detection, and the watch operation on a resource - /// or set of resources. Clients must treat these values as opaque and passed - /// unmodified back to the server. They may only be valid for a particular resource - /// or set of resources. - /// - /// Populated by the system. Read-only. Value must be treated as opaque by clients - /// and . More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - /// - [JsonProperty(PropertyName = "resourceVersion")] - public string ResourceVersion { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "selfLink")] - public string SelfLink { get; set; } - - /// - /// UID is the unique in time and space value for this object. It is typically - /// generated by the server on successful creation of a resource and is not allowed - /// to change on PUT operations. - /// - /// Populated by the system. Read-only. More info: - /// http://kubernetes.io/docs/user-guide/identifiers#uids - /// - [JsonProperty(PropertyName = "uid")] - public string Uid { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (ManagedFields != null){ - foreach(var obj in ManagedFields) - { - obj.Validate(); - } - } - if (OwnerReferences != null){ - foreach(var obj in OwnerReferences) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ObjectReference.cs b/src/KubernetesClient/generated/Models/V1ObjectReference.cs deleted file mode 100644 index d4a043dde..000000000 --- a/src/KubernetesClient/generated/Models/V1ObjectReference.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ObjectReference contains enough information to let you inspect or modify the - /// referred object. - /// - public partial class V1ObjectReference - { - /// - /// Initializes a new instance of the V1ObjectReference class. - /// - public V1ObjectReference() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ObjectReference class. - /// - /// - /// API version of the referent. - /// - /// - /// If referring to a piece of an object instead of an entire object, this string - /// should contain a valid JSON/Go field access statement, such as - /// desiredState.manifest.containers[2]. For example, if the object reference is to - /// a container within a pod, this would take on a value like: - /// "spec.containers{name}" (where "name" refers to the name of the container that - /// triggered the event) or if no container name is specified "spec.containers[2]" - /// (container with index 2 in this pod). This syntax is chosen only to have some - /// well-defined way of referencing a part of an object. - /// - /// - /// Kind of the referent. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Name of the referent. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - /// - /// - /// Namespace of the referent. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - /// - /// - /// Specific resourceVersion to which this reference is made, if any. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - /// - /// - /// UID of the referent. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - /// - public V1ObjectReference(string apiVersion = null, string fieldPath = null, string kind = null, string name = null, string namespaceProperty = null, string resourceVersion = null, string uid = null) - { - ApiVersion = apiVersion; - FieldPath = fieldPath; - Kind = kind; - Name = name; - NamespaceProperty = namespaceProperty; - ResourceVersion = resourceVersion; - Uid = uid; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// API version of the referent. - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// If referring to a piece of an object instead of an entire object, this string - /// should contain a valid JSON/Go field access statement, such as - /// desiredState.manifest.containers[2]. For example, if the object reference is to - /// a container within a pod, this would take on a value like: - /// "spec.containers{name}" (where "name" refers to the name of the container that - /// triggered the event) or if no container name is specified "spec.containers[2]" - /// (container with index 2 in this pod). This syntax is chosen only to have some - /// well-defined way of referencing a part of an object. - /// - [JsonProperty(PropertyName = "fieldPath")] - public string FieldPath { get; set; } - - /// - /// Kind of the referent. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Name of the referent. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Namespace of the referent. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - /// - [JsonProperty(PropertyName = "namespace")] - public string NamespaceProperty { get; set; } - - /// - /// Specific resourceVersion to which this reference is made, if any. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - /// - [JsonProperty(PropertyName = "resourceVersion")] - public string ResourceVersion { get; set; } - - /// - /// UID of the referent. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - /// - [JsonProperty(PropertyName = "uid")] - public string Uid { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Overhead.cs b/src/KubernetesClient/generated/Models/V1Overhead.cs deleted file mode 100644 index 596b1cbf4..000000000 --- a/src/KubernetesClient/generated/Models/V1Overhead.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Overhead structure represents the resource overhead associated with running a - /// pod. - /// - public partial class V1Overhead - { - /// - /// Initializes a new instance of the V1Overhead class. - /// - public V1Overhead() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Overhead class. - /// - /// - /// PodFixed represents the fixed resource overhead associated with running a pod. - /// - public V1Overhead(IDictionary podFixed = null) - { - PodFixed = podFixed; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// PodFixed represents the fixed resource overhead associated with running a pod. - /// - [JsonProperty(PropertyName = "podFixed")] - public IDictionary PodFixed { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1OwnerReference.cs b/src/KubernetesClient/generated/Models/V1OwnerReference.cs deleted file mode 100644 index fcb1eba07..000000000 --- a/src/KubernetesClient/generated/Models/V1OwnerReference.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// OwnerReference contains enough information to let you identify an owning object. - /// An owning object must be in the same namespace as the dependent, or be - /// cluster-scoped, so there is no namespace field. - /// - public partial class V1OwnerReference - { - /// - /// Initializes a new instance of the V1OwnerReference class. - /// - public V1OwnerReference() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1OwnerReference class. - /// - /// - /// API version of the referent. - /// - /// - /// Kind of the referent. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Name of the referent. More info: - /// http://kubernetes.io/docs/user-guide/identifiers#names - /// - /// - /// UID of the referent. More info: - /// http://kubernetes.io/docs/user-guide/identifiers#uids - /// - /// - /// If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner - /// cannot be deleted from the key-value store until this reference is removed. - /// Defaults to false. To set this field, a user needs "delete" permission of the - /// owner, otherwise 422 (Unprocessable Entity) will be returned. - /// - /// - /// If true, this reference points to the managing controller. - /// - public V1OwnerReference(string apiVersion, string kind, string name, string uid, bool? blockOwnerDeletion = null, bool? controller = null) - { - ApiVersion = apiVersion; - BlockOwnerDeletion = blockOwnerDeletion; - Controller = controller; - Kind = kind; - Name = name; - Uid = uid; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// API version of the referent. - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner - /// cannot be deleted from the key-value store until this reference is removed. - /// Defaults to false. To set this field, a user needs "delete" permission of the - /// owner, otherwise 422 (Unprocessable Entity) will be returned. - /// - [JsonProperty(PropertyName = "blockOwnerDeletion")] - public bool? BlockOwnerDeletion { get; set; } - - /// - /// If true, this reference points to the managing controller. - /// - [JsonProperty(PropertyName = "controller")] - public bool? Controller { get; set; } - - /// - /// Kind of the referent. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Name of the referent. More info: - /// http://kubernetes.io/docs/user-guide/identifiers#names - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// UID of the referent. More info: - /// http://kubernetes.io/docs/user-guide/identifiers#uids - /// - [JsonProperty(PropertyName = "uid")] - public string Uid { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Patch.cs b/src/KubernetesClient/generated/Models/V1Patch.cs deleted file mode 100644 index 1a76a281c..000000000 --- a/src/KubernetesClient/generated/Models/V1Patch.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Patch is provided to give a concrete name and type to the Kubernetes PATCH - /// request body. - /// - public partial class V1Patch - { - /// - /// Initializes a new instance of the V1Patch class. - /// - public V1Patch() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Patch class. - /// - /// - /// - /// - public V1Patch(object content = null) - { - Content = content; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// - /// - [JsonProperty(PropertyName = "content")] - public object Content { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PersistentVolume.cs b/src/KubernetesClient/generated/Models/V1PersistentVolume.cs deleted file mode 100644 index 2186d28c9..000000000 --- a/src/KubernetesClient/generated/Models/V1PersistentVolume.cs +++ /dev/null @@ -1,128 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PersistentVolume (PV) is a storage resource provisioned by an administrator. It - /// is analogous to a node. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes - /// - public partial class V1PersistentVolume - { - /// - /// Initializes a new instance of the V1PersistentVolume class. - /// - public V1PersistentVolume() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PersistentVolume class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Spec defines a specification of a persistent volume owned by the cluster. - /// Provisioned by an administrator. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes - /// - /// - /// Status represents the current information/status for the persistent volume. - /// Populated by the system. Read-only. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes - /// - public V1PersistentVolume(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1PersistentVolumeSpec spec = null, V1PersistentVolumeStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Spec defines a specification of a persistent volume owned by the cluster. - /// Provisioned by an administrator. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes - /// - [JsonProperty(PropertyName = "spec")] - public V1PersistentVolumeSpec Spec { get; set; } - - /// - /// Status represents the current information/status for the persistent volume. - /// Populated by the system. Read-only. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes - /// - [JsonProperty(PropertyName = "status")] - public V1PersistentVolumeStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PersistentVolumeClaim.cs b/src/KubernetesClient/generated/Models/V1PersistentVolumeClaim.cs deleted file mode 100644 index e94123ebb..000000000 --- a/src/KubernetesClient/generated/Models/V1PersistentVolumeClaim.cs +++ /dev/null @@ -1,126 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PersistentVolumeClaim is a user's request for and claim to a persistent volume - /// - public partial class V1PersistentVolumeClaim - { - /// - /// Initializes a new instance of the V1PersistentVolumeClaim class. - /// - public V1PersistentVolumeClaim() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PersistentVolumeClaim class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Spec defines the desired characteristics of a volume requested by a pod author. - /// More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - /// - /// - /// Status represents the current information/status of a persistent volume claim. - /// Read-only. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - /// - public V1PersistentVolumeClaim(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1PersistentVolumeClaimSpec spec = null, V1PersistentVolumeClaimStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Spec defines the desired characteristics of a volume requested by a pod author. - /// More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - /// - [JsonProperty(PropertyName = "spec")] - public V1PersistentVolumeClaimSpec Spec { get; set; } - - /// - /// Status represents the current information/status of a persistent volume claim. - /// Read-only. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - /// - [JsonProperty(PropertyName = "status")] - public V1PersistentVolumeClaimStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PersistentVolumeClaimCondition.cs b/src/KubernetesClient/generated/Models/V1PersistentVolumeClaimCondition.cs deleted file mode 100644 index 5c6bac5bd..000000000 --- a/src/KubernetesClient/generated/Models/V1PersistentVolumeClaimCondition.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PersistentVolumeClaimCondition contails details about state of pvc - /// - public partial class V1PersistentVolumeClaimCondition - { - /// - /// Initializes a new instance of the V1PersistentVolumeClaimCondition class. - /// - public V1PersistentVolumeClaimCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PersistentVolumeClaimCondition class. - /// - /// - /// - /// - /// - /// - /// - /// - /// Last time we probed the condition. - /// - /// - /// Last time the condition transitioned from one status to another. - /// - /// - /// Human-readable message indicating details about last transition. - /// - /// - /// 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. - /// - public V1PersistentVolumeClaimCondition(string status, string type, System.DateTime? lastProbeTime = null, System.DateTime? lastTransitionTime = null, string message = null, string reason = null) - { - LastProbeTime = lastProbeTime; - LastTransitionTime = lastTransitionTime; - Message = message; - Reason = reason; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Last time we probed the condition. - /// - [JsonProperty(PropertyName = "lastProbeTime")] - public System.DateTime? LastProbeTime { get; set; } - - /// - /// Last time the condition transitioned from one status to another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// Human-readable message indicating details about last transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PersistentVolumeClaimList.cs b/src/KubernetesClient/generated/Models/V1PersistentVolumeClaimList.cs deleted file mode 100644 index 55ad388d6..000000000 --- a/src/KubernetesClient/generated/Models/V1PersistentVolumeClaimList.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PersistentVolumeClaimList is a list of PersistentVolumeClaim items. - /// - public partial class V1PersistentVolumeClaimList - { - /// - /// Initializes a new instance of the V1PersistentVolumeClaimList class. - /// - public V1PersistentVolumeClaimList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PersistentVolumeClaimList class. - /// - /// - /// A list of persistent volume claims. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - public V1PersistentVolumeClaimList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// A list of persistent volume claims. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PersistentVolumeClaimSpec.cs b/src/KubernetesClient/generated/Models/V1PersistentVolumeClaimSpec.cs deleted file mode 100644 index 8385fa8fe..000000000 --- a/src/KubernetesClient/generated/Models/V1PersistentVolumeClaimSpec.cs +++ /dev/null @@ -1,186 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PersistentVolumeClaimSpec describes the common attributes of storage devices and - /// allows a Source for provider-specific attributes - /// - public partial class V1PersistentVolumeClaimSpec - { - /// - /// Initializes a new instance of the V1PersistentVolumeClaimSpec class. - /// - public V1PersistentVolumeClaimSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PersistentVolumeClaimSpec class. - /// - /// - /// AccessModes contains the desired access modes the volume should have. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - /// - /// - /// This field can be used to specify either: * An existing VolumeSnapshot object - /// (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC - /// (PersistentVolumeClaim) If the provisioner or an external controller can support - /// the specified data source, it will create a new volume based on the contents of - /// the specified data source. If the AnyVolumeDataSource feature gate is enabled, - /// this field will always have the same contents as the DataSourceRef field. - /// - /// - /// Specifies the object from which to populate the volume with data, if a non-empty - /// volume is desired. This may be any local object from a non-empty API group (non - /// core object) or a PersistentVolumeClaim object. When this field is specified, - /// volume binding will only succeed if the type of the specified object matches - /// some installed volume populator or dynamic provisioner. This field will replace - /// the functionality of the DataSource field and as such if both fields are - /// non-empty, they must have the same value. For backwards compatibility, both - /// fields (DataSource and DataSourceRef) will be set to the same value - /// automatically if one of them is empty and the other is non-empty. There are two - /// important differences between DataSource and DataSourceRef: * While DataSource - /// only allows two specific types of objects, DataSourceRef - /// allows any non-core object, as well as PersistentVolumeClaim objects. - /// * While DataSource ignores disallowed values (dropping them), DataSourceRef - /// preserves all values, and generates an error if a disallowed value is - /// specified. - /// (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be - /// enabled. - /// - /// - /// Resources represents the minimum resources the volume should have. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - /// - /// - /// A label query over volumes to consider for binding. - /// - /// - /// Name of the StorageClass required by the claim. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - /// - /// - /// volumeMode defines what type of volume is required by the claim. Value of - /// Filesystem is implied when not included in claim spec. - /// - /// - /// VolumeName is the binding reference to the PersistentVolume backing this claim. - /// - public V1PersistentVolumeClaimSpec(IList accessModes = null, V1TypedLocalObjectReference dataSource = null, V1TypedLocalObjectReference dataSourceRef = null, V1ResourceRequirements resources = null, V1LabelSelector selector = null, string storageClassName = null, string volumeMode = null, string volumeName = null) - { - AccessModes = accessModes; - DataSource = dataSource; - DataSourceRef = dataSourceRef; - Resources = resources; - Selector = selector; - StorageClassName = storageClassName; - VolumeMode = volumeMode; - VolumeName = volumeName; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// AccessModes contains the desired access modes the volume should have. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - /// - [JsonProperty(PropertyName = "accessModes")] - public IList AccessModes { get; set; } - - /// - /// This field can be used to specify either: * An existing VolumeSnapshot object - /// (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC - /// (PersistentVolumeClaim) If the provisioner or an external controller can support - /// the specified data source, it will create a new volume based on the contents of - /// the specified data source. If the AnyVolumeDataSource feature gate is enabled, - /// this field will always have the same contents as the DataSourceRef field. - /// - [JsonProperty(PropertyName = "dataSource")] - public V1TypedLocalObjectReference DataSource { get; set; } - - /// - /// Specifies the object from which to populate the volume with data, if a non-empty - /// volume is desired. This may be any local object from a non-empty API group (non - /// core object) or a PersistentVolumeClaim object. When this field is specified, - /// volume binding will only succeed if the type of the specified object matches - /// some installed volume populator or dynamic provisioner. This field will replace - /// the functionality of the DataSource field and as such if both fields are - /// non-empty, they must have the same value. For backwards compatibility, both - /// fields (DataSource and DataSourceRef) will be set to the same value - /// automatically if one of them is empty and the other is non-empty. There are two - /// important differences between DataSource and DataSourceRef: * While DataSource - /// only allows two specific types of objects, DataSourceRef - /// allows any non-core object, as well as PersistentVolumeClaim objects. - /// * While DataSource ignores disallowed values (dropping them), DataSourceRef - /// preserves all values, and generates an error if a disallowed value is - /// specified. - /// (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be - /// enabled. - /// - [JsonProperty(PropertyName = "dataSourceRef")] - public V1TypedLocalObjectReference DataSourceRef { get; set; } - - /// - /// Resources represents the minimum resources the volume should have. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - /// - [JsonProperty(PropertyName = "resources")] - public V1ResourceRequirements Resources { get; set; } - - /// - /// A label query over volumes to consider for binding. - /// - [JsonProperty(PropertyName = "selector")] - public V1LabelSelector Selector { get; set; } - - /// - /// Name of the StorageClass required by the claim. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - /// - [JsonProperty(PropertyName = "storageClassName")] - public string StorageClassName { get; set; } - - /// - /// volumeMode defines what type of volume is required by the claim. Value of - /// Filesystem is implied when not included in claim spec. - /// - [JsonProperty(PropertyName = "volumeMode")] - public string VolumeMode { get; set; } - - /// - /// VolumeName is the binding reference to the PersistentVolume backing this claim. - /// - [JsonProperty(PropertyName = "volumeName")] - public string VolumeName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - DataSource?.Validate(); - DataSourceRef?.Validate(); - Resources?.Validate(); - Selector?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PersistentVolumeClaimStatus.cs b/src/KubernetesClient/generated/Models/V1PersistentVolumeClaimStatus.cs deleted file mode 100644 index 3c3351095..000000000 --- a/src/KubernetesClient/generated/Models/V1PersistentVolumeClaimStatus.cs +++ /dev/null @@ -1,103 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PersistentVolumeClaimStatus is the current status of a persistent volume claim. - /// - public partial class V1PersistentVolumeClaimStatus - { - /// - /// Initializes a new instance of the V1PersistentVolumeClaimStatus class. - /// - public V1PersistentVolumeClaimStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PersistentVolumeClaimStatus class. - /// - /// - /// 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 - /// - /// - /// Represents the actual resources of the underlying volume. - /// - /// - /// Current Condition of persistent volume claim. If underlying persistent volume is - /// being resized then the Condition will be set to 'ResizeStarted'. - /// - /// - /// Phase represents the current phase of PersistentVolumeClaim. - /// - public V1PersistentVolumeClaimStatus(IList accessModes = null, IDictionary capacity = null, IList conditions = null, string phase = null) - { - AccessModes = accessModes; - Capacity = capacity; - Conditions = conditions; - Phase = phase; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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 - /// - [JsonProperty(PropertyName = "accessModes")] - public IList AccessModes { get; set; } - - /// - /// Represents the actual resources of the underlying volume. - /// - [JsonProperty(PropertyName = "capacity")] - public IDictionary Capacity { get; set; } - - /// - /// Current Condition of persistent volume claim. If underlying persistent volume is - /// being resized then the Condition will be set to 'ResizeStarted'. - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// Phase represents the current phase of PersistentVolumeClaim. - /// - [JsonProperty(PropertyName = "phase")] - public string Phase { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Conditions != null){ - foreach(var obj in Conditions) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PersistentVolumeClaimTemplate.cs b/src/KubernetesClient/generated/Models/V1PersistentVolumeClaimTemplate.cs deleted file mode 100644 index 6b492f013..000000000 --- a/src/KubernetesClient/generated/Models/V1PersistentVolumeClaimTemplate.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects - /// as part of an EphemeralVolumeSource. - /// - public partial class V1PersistentVolumeClaimTemplate - { - /// - /// Initializes a new instance of the V1PersistentVolumeClaimTemplate class. - /// - public V1PersistentVolumeClaimTemplate() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PersistentVolumeClaimTemplate class. - /// - /// - /// The specification for the PersistentVolumeClaim. The entire content is copied - /// unchanged into the PVC that gets created from this template. The same fields as - /// in a PersistentVolumeClaim are also valid here. - /// - /// - /// May contain labels and annotations that will be copied into the PVC when - /// creating it. No other fields are allowed and will be rejected during validation. - /// - public V1PersistentVolumeClaimTemplate(V1PersistentVolumeClaimSpec spec, V1ObjectMeta metadata = null) - { - Metadata = metadata; - Spec = spec; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// May contain labels and annotations that will be copied into the PVC when - /// creating it. No other fields are allowed and will be rejected during validation. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// The specification for the PersistentVolumeClaim. The entire content is copied - /// unchanged into the PVC that gets created from this template. The same fields as - /// in a PersistentVolumeClaim are also valid here. - /// - [JsonProperty(PropertyName = "spec")] - public V1PersistentVolumeClaimSpec Spec { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Spec == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Spec"); - } - Metadata?.Validate(); - Spec?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PersistentVolumeClaimVolumeSource.cs b/src/KubernetesClient/generated/Models/V1PersistentVolumeClaimVolumeSource.cs deleted file mode 100644 index e2c123e70..000000000 --- a/src/KubernetesClient/generated/Models/V1PersistentVolumeClaimVolumeSource.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PersistentVolumeClaimVolumeSource references the user's PVC in the same - /// namespace. This volume finds the bound PV and mounts that volume for the pod. A - /// PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type - /// of volume that is owned by someone else (the system). - /// - public partial class V1PersistentVolumeClaimVolumeSource - { - /// - /// Initializes a new instance of the V1PersistentVolumeClaimVolumeSource class. - /// - public V1PersistentVolumeClaimVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PersistentVolumeClaimVolumeSource class. - /// - /// - /// ClaimName is the name of a PersistentVolumeClaim in the same namespace as the - /// pod using this volume. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - /// - /// - /// Will force the ReadOnly setting in VolumeMounts. Default false. - /// - public V1PersistentVolumeClaimVolumeSource(string claimName, bool? readOnlyProperty = null) - { - ClaimName = claimName; - ReadOnlyProperty = readOnlyProperty; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// ClaimName is the name of a PersistentVolumeClaim in the same namespace as the - /// pod using this volume. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - /// - [JsonProperty(PropertyName = "claimName")] - public string ClaimName { get; set; } - - /// - /// Will force the ReadOnly setting in VolumeMounts. Default false. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PersistentVolumeList.cs b/src/KubernetesClient/generated/Models/V1PersistentVolumeList.cs deleted file mode 100644 index 9233161d8..000000000 --- a/src/KubernetesClient/generated/Models/V1PersistentVolumeList.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PersistentVolumeList is a list of PersistentVolume items. - /// - public partial class V1PersistentVolumeList - { - /// - /// Initializes a new instance of the V1PersistentVolumeList class. - /// - public V1PersistentVolumeList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PersistentVolumeList class. - /// - /// - /// List of persistent volumes. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - public V1PersistentVolumeList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// List of persistent volumes. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PersistentVolumeSpec.cs b/src/KubernetesClient/generated/Models/V1PersistentVolumeSpec.cs deleted file mode 100644 index 683ac714f..000000000 --- a/src/KubernetesClient/generated/Models/V1PersistentVolumeSpec.cs +++ /dev/null @@ -1,457 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PersistentVolumeSpec is the specification of a persistent volume. - /// - public partial class V1PersistentVolumeSpec - { - /// - /// Initializes a new instance of the V1PersistentVolumeSpec class. - /// - public V1PersistentVolumeSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PersistentVolumeSpec class. - /// - /// - /// AccessModes contains all ways the volume can be mounted. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes - /// - /// - /// 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 - /// - /// - /// AzureDisk represents an Azure Data Disk mount on the host and bind mount to the - /// pod. - /// - /// - /// AzureFile represents an Azure File Service mount on the host and bind mount to - /// the pod. - /// - /// - /// A description of the persistent volume's resources and capacity. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - /// - /// - /// CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - /// - /// - /// Cinder represents a cinder volume attached and mounted on kubelets host machine. - /// More info: https://examples.k8s.io/mysql-cinder-pd/README.md - /// - /// - /// ClaimRef is part of a bi-directional binding between PersistentVolume and - /// PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is - /// the authoritative bind between PV and PVC. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding - /// - /// - /// CSI represents storage that is handled by an external CSI driver (Beta feature). - /// - /// - /// FC represents a Fibre Channel resource that is attached to a kubelet's host - /// machine and then exposed to the pod. - /// - /// - /// FlexVolume represents a generic volume resource that is provisioned/attached - /// using an exec based plugin. - /// - /// - /// Flocker represents a Flocker volume attached to a kubelet's host machine and - /// exposed to the pod for its usage. This depends on the Flocker control service - /// being running - /// - /// - /// GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's - /// host machine and then exposed to the pod. Provisioned by an admin. More info: - /// https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - /// - /// - /// Glusterfs represents a Glusterfs volume that is attached to a host and exposed - /// to the pod. Provisioned by an admin. More info: - /// https://examples.k8s.io/volumes/glusterfs/README.md - /// - /// - /// HostPath represents a directory on the host. Provisioned by a developer or - /// tester. This is useful for single-node development and testing only! On-host - /// storage is not supported in any way and WILL NOT WORK in a multi-node cluster. - /// More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - /// - /// - /// ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host - /// machine and then exposed to the pod. Provisioned by an admin. - /// - /// - /// Local represents directly-attached storage with node affinity - /// - /// - /// A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply - /// fail if one is invalid. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options - /// - /// - /// NFS represents an NFS mount on the host. Provisioned by an admin. More info: - /// https://kubernetes.io/docs/concepts/storage/volumes#nfs - /// - /// - /// NodeAffinity defines constraints that limit what nodes this volume can be - /// accessed from. This field influences the scheduling of pods that use this - /// volume. - /// - /// - /// What happens to a persistent volume when released from its claim. Valid options - /// are Retain (default for manually created PersistentVolumes), Delete (default for - /// dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle - /// must be supported by the volume plugin underlying this PersistentVolume. More - /// info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming - /// - /// - /// PhotonPersistentDisk represents a PhotonController persistent disk attached and - /// mounted on kubelets host machine - /// - /// - /// PortworxVolume represents a portworx volume attached and mounted on kubelets - /// host machine - /// - /// - /// Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - /// - /// - /// 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 - /// - /// - /// ScaleIO represents a ScaleIO persistent volume attached and mounted on - /// Kubernetes nodes. - /// - /// - /// Name of StorageClass to which this persistent volume belongs. Empty value means - /// that this volume does not belong to any StorageClass. - /// - /// - /// StorageOS represents a StorageOS volume that is attached to the kubelet's host - /// machine and mounted into the pod More info: - /// https://examples.k8s.io/volumes/storageos/README.md - /// - /// - /// 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. - /// - /// - /// VsphereVolume represents a vSphere volume attached and mounted on kubelets host - /// machine - /// - public V1PersistentVolumeSpec(IList accessModes = null, V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore = null, V1AzureDiskVolumeSource azureDisk = null, V1AzureFilePersistentVolumeSource azureFile = null, IDictionary capacity = null, V1CephFSPersistentVolumeSource cephfs = null, V1CinderPersistentVolumeSource cinder = null, V1ObjectReference claimRef = null, V1CSIPersistentVolumeSource csi = null, V1FCVolumeSource fc = null, V1FlexPersistentVolumeSource flexVolume = null, V1FlockerVolumeSource flocker = null, V1GCEPersistentDiskVolumeSource gcePersistentDisk = null, V1GlusterfsPersistentVolumeSource glusterfs = null, V1HostPathVolumeSource hostPath = null, V1ISCSIPersistentVolumeSource iscsi = null, V1LocalVolumeSource local = null, IList mountOptions = null, V1NFSVolumeSource nfs = null, V1VolumeNodeAffinity nodeAffinity = null, string persistentVolumeReclaimPolicy = null, V1PhotonPersistentDiskVolumeSource photonPersistentDisk = null, V1PortworxVolumeSource portworxVolume = null, V1QuobyteVolumeSource quobyte = null, V1RBDPersistentVolumeSource rbd = null, V1ScaleIOPersistentVolumeSource scaleIO = null, string storageClassName = null, V1StorageOSPersistentVolumeSource storageos = null, string volumeMode = null, V1VsphereVirtualDiskVolumeSource vsphereVolume = null) - { - AccessModes = accessModes; - AwsElasticBlockStore = awsElasticBlockStore; - AzureDisk = azureDisk; - AzureFile = azureFile; - Capacity = capacity; - Cephfs = cephfs; - Cinder = cinder; - ClaimRef = claimRef; - Csi = csi; - Fc = fc; - FlexVolume = flexVolume; - Flocker = flocker; - GcePersistentDisk = gcePersistentDisk; - Glusterfs = glusterfs; - HostPath = hostPath; - Iscsi = iscsi; - Local = local; - MountOptions = mountOptions; - Nfs = nfs; - NodeAffinity = nodeAffinity; - PersistentVolumeReclaimPolicy = persistentVolumeReclaimPolicy; - PhotonPersistentDisk = photonPersistentDisk; - PortworxVolume = portworxVolume; - Quobyte = quobyte; - Rbd = rbd; - ScaleIO = scaleIO; - StorageClassName = storageClassName; - Storageos = storageos; - VolumeMode = volumeMode; - VsphereVolume = vsphereVolume; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// AccessModes contains all ways the volume can be mounted. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes - /// - [JsonProperty(PropertyName = "accessModes")] - public IList AccessModes { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "awsElasticBlockStore")] - public V1AWSElasticBlockStoreVolumeSource AwsElasticBlockStore { get; set; } - - /// - /// AzureDisk represents an Azure Data Disk mount on the host and bind mount to the - /// pod. - /// - [JsonProperty(PropertyName = "azureDisk")] - public V1AzureDiskVolumeSource AzureDisk { get; set; } - - /// - /// AzureFile represents an Azure File Service mount on the host and bind mount to - /// the pod. - /// - [JsonProperty(PropertyName = "azureFile")] - public V1AzureFilePersistentVolumeSource AzureFile { get; set; } - - /// - /// A description of the persistent volume's resources and capacity. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - /// - [JsonProperty(PropertyName = "capacity")] - public IDictionary Capacity { get; set; } - - /// - /// CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - /// - [JsonProperty(PropertyName = "cephfs")] - public V1CephFSPersistentVolumeSource Cephfs { get; set; } - - /// - /// Cinder represents a cinder volume attached and mounted on kubelets host machine. - /// More info: https://examples.k8s.io/mysql-cinder-pd/README.md - /// - [JsonProperty(PropertyName = "cinder")] - public V1CinderPersistentVolumeSource Cinder { get; set; } - - /// - /// ClaimRef is part of a bi-directional binding between PersistentVolume and - /// PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is - /// the authoritative bind between PV and PVC. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding - /// - [JsonProperty(PropertyName = "claimRef")] - public V1ObjectReference ClaimRef { get; set; } - - /// - /// CSI represents storage that is handled by an external CSI driver (Beta feature). - /// - [JsonProperty(PropertyName = "csi")] - public V1CSIPersistentVolumeSource Csi { get; set; } - - /// - /// FC represents a Fibre Channel resource that is attached to a kubelet's host - /// machine and then exposed to the pod. - /// - [JsonProperty(PropertyName = "fc")] - public V1FCVolumeSource Fc { get; set; } - - /// - /// FlexVolume represents a generic volume resource that is provisioned/attached - /// using an exec based plugin. - /// - [JsonProperty(PropertyName = "flexVolume")] - public V1FlexPersistentVolumeSource FlexVolume { get; set; } - - /// - /// Flocker represents a Flocker volume attached to a kubelet's host machine and - /// exposed to the pod for its usage. This depends on the Flocker control service - /// being running - /// - [JsonProperty(PropertyName = "flocker")] - public V1FlockerVolumeSource Flocker { get; set; } - - /// - /// GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's - /// host machine and then exposed to the pod. Provisioned by an admin. More info: - /// https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - /// - [JsonProperty(PropertyName = "gcePersistentDisk")] - public V1GCEPersistentDiskVolumeSource GcePersistentDisk { get; set; } - - /// - /// Glusterfs represents a Glusterfs volume that is attached to a host and exposed - /// to the pod. Provisioned by an admin. More info: - /// https://examples.k8s.io/volumes/glusterfs/README.md - /// - [JsonProperty(PropertyName = "glusterfs")] - public V1GlusterfsPersistentVolumeSource Glusterfs { get; set; } - - /// - /// HostPath represents a directory on the host. Provisioned by a developer or - /// tester. This is useful for single-node development and testing only! On-host - /// storage is not supported in any way and WILL NOT WORK in a multi-node cluster. - /// More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - /// - [JsonProperty(PropertyName = "hostPath")] - public V1HostPathVolumeSource HostPath { get; set; } - - /// - /// ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host - /// machine and then exposed to the pod. Provisioned by an admin. - /// - [JsonProperty(PropertyName = "iscsi")] - public V1ISCSIPersistentVolumeSource Iscsi { get; set; } - - /// - /// Local represents directly-attached storage with node affinity - /// - [JsonProperty(PropertyName = "local")] - public V1LocalVolumeSource Local { get; set; } - - /// - /// A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply - /// fail if one is invalid. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options - /// - [JsonProperty(PropertyName = "mountOptions")] - public IList MountOptions { get; set; } - - /// - /// NFS represents an NFS mount on the host. Provisioned by an admin. More info: - /// https://kubernetes.io/docs/concepts/storage/volumes#nfs - /// - [JsonProperty(PropertyName = "nfs")] - public V1NFSVolumeSource Nfs { get; set; } - - /// - /// NodeAffinity defines constraints that limit what nodes this volume can be - /// accessed from. This field influences the scheduling of pods that use this - /// volume. - /// - [JsonProperty(PropertyName = "nodeAffinity")] - public V1VolumeNodeAffinity NodeAffinity { get; set; } - - /// - /// What happens to a persistent volume when released from its claim. Valid options - /// are Retain (default for manually created PersistentVolumes), Delete (default for - /// dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle - /// must be supported by the volume plugin underlying this PersistentVolume. More - /// info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming - /// - [JsonProperty(PropertyName = "persistentVolumeReclaimPolicy")] - public string PersistentVolumeReclaimPolicy { get; set; } - - /// - /// PhotonPersistentDisk represents a PhotonController persistent disk attached and - /// mounted on kubelets host machine - /// - [JsonProperty(PropertyName = "photonPersistentDisk")] - public V1PhotonPersistentDiskVolumeSource PhotonPersistentDisk { get; set; } - - /// - /// PortworxVolume represents a portworx volume attached and mounted on kubelets - /// host machine - /// - [JsonProperty(PropertyName = "portworxVolume")] - public V1PortworxVolumeSource PortworxVolume { get; set; } - - /// - /// Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - /// - [JsonProperty(PropertyName = "quobyte")] - public V1QuobyteVolumeSource Quobyte { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "rbd")] - public V1RBDPersistentVolumeSource Rbd { get; set; } - - /// - /// ScaleIO represents a ScaleIO persistent volume attached and mounted on - /// Kubernetes nodes. - /// - [JsonProperty(PropertyName = "scaleIO")] - public V1ScaleIOPersistentVolumeSource ScaleIO { get; set; } - - /// - /// Name of StorageClass to which this persistent volume belongs. Empty value means - /// that this volume does not belong to any StorageClass. - /// - [JsonProperty(PropertyName = "storageClassName")] - public string StorageClassName { get; set; } - - /// - /// StorageOS represents a StorageOS volume that is attached to the kubelet's host - /// machine and mounted into the pod More info: - /// https://examples.k8s.io/volumes/storageos/README.md - /// - [JsonProperty(PropertyName = "storageos")] - public V1StorageOSPersistentVolumeSource Storageos { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "volumeMode")] - public string VolumeMode { get; set; } - - /// - /// VsphereVolume represents a vSphere volume attached and mounted on kubelets host - /// machine - /// - [JsonProperty(PropertyName = "vsphereVolume")] - public V1VsphereVirtualDiskVolumeSource VsphereVolume { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - AwsElasticBlockStore?.Validate(); - AzureDisk?.Validate(); - AzureFile?.Validate(); - Cephfs?.Validate(); - Cinder?.Validate(); - ClaimRef?.Validate(); - Csi?.Validate(); - Fc?.Validate(); - FlexVolume?.Validate(); - Flocker?.Validate(); - GcePersistentDisk?.Validate(); - Glusterfs?.Validate(); - HostPath?.Validate(); - Iscsi?.Validate(); - Local?.Validate(); - Nfs?.Validate(); - NodeAffinity?.Validate(); - PhotonPersistentDisk?.Validate(); - PortworxVolume?.Validate(); - Quobyte?.Validate(); - Rbd?.Validate(); - ScaleIO?.Validate(); - Storageos?.Validate(); - VsphereVolume?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PersistentVolumeStatus.cs b/src/KubernetesClient/generated/Models/V1PersistentVolumeStatus.cs deleted file mode 100644 index 787690a95..000000000 --- a/src/KubernetesClient/generated/Models/V1PersistentVolumeStatus.cs +++ /dev/null @@ -1,89 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PersistentVolumeStatus is the current status of a persistent volume. - /// - public partial class V1PersistentVolumeStatus - { - /// - /// Initializes a new instance of the V1PersistentVolumeStatus class. - /// - public V1PersistentVolumeStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PersistentVolumeStatus class. - /// - /// - /// A human-readable message indicating details about why the volume is in this - /// state. - /// - /// - /// 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 - /// - /// - /// Reason is a brief CamelCase string that describes any failure and is meant for - /// machine parsing and tidy display in the CLI. - /// - public V1PersistentVolumeStatus(string message = null, string phase = null, string reason = null) - { - Message = message; - Phase = phase; - Reason = reason; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// A human-readable message indicating details about why the volume is in this - /// state. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "phase")] - public string Phase { get; set; } - - /// - /// Reason is a brief CamelCase string that describes any failure and is meant for - /// machine parsing and tidy display in the CLI. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PhotonPersistentDiskVolumeSource.cs b/src/KubernetesClient/generated/Models/V1PhotonPersistentDiskVolumeSource.cs deleted file mode 100644 index cbe79e61a..000000000 --- a/src/KubernetesClient/generated/Models/V1PhotonPersistentDiskVolumeSource.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents a Photon Controller persistent disk resource. - /// - public partial class V1PhotonPersistentDiskVolumeSource - { - /// - /// Initializes a new instance of the V1PhotonPersistentDiskVolumeSource class. - /// - public V1PhotonPersistentDiskVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PhotonPersistentDiskVolumeSource class. - /// - /// - /// ID that identifies Photon Controller persistent disk - /// - /// - /// Filesystem type to mount. Must be a filesystem type supported by the host - /// operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if - /// unspecified. - /// - public V1PhotonPersistentDiskVolumeSource(string pdID, string fsType = null) - { - FsType = fsType; - PdID = pdID; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "fsType")] - public string FsType { get; set; } - - /// - /// ID that identifies Photon Controller persistent disk - /// - [JsonProperty(PropertyName = "pdID")] - public string PdID { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Pod.cs b/src/KubernetesClient/generated/Models/V1Pod.cs deleted file mode 100644 index 572582b26..000000000 --- a/src/KubernetesClient/generated/Models/V1Pod.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Pod is a collection of containers that can run on a host. This resource is - /// created by clients and scheduled onto hosts. - /// - public partial class V1Pod - { - /// - /// Initializes a new instance of the V1Pod class. - /// - public V1Pod() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Pod class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Specification of the desired behavior of the pod. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - /// - /// Most recently observed status of the pod. This data may not be up to date. - /// Populated by the system. Read-only. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - public V1Pod(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1PodSpec spec = null, V1PodStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Specification of the desired behavior of the pod. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1PodSpec Spec { get; set; } - - /// - /// Most recently observed status of the pod. This data may not be up to date. - /// Populated by the system. Read-only. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "status")] - public V1PodStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PodAffinity.cs b/src/KubernetesClient/generated/Models/V1PodAffinity.cs deleted file mode 100644 index fec32f7a5..000000000 --- a/src/KubernetesClient/generated/Models/V1PodAffinity.cs +++ /dev/null @@ -1,109 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Pod affinity is a group of inter pod affinity scheduling rules. - /// - public partial class V1PodAffinity - { - /// - /// Initializes a new instance of the V1PodAffinity class. - /// - public V1PodAffinity() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PodAffinity class. - /// - /// - /// 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. - /// - /// - /// If the affinity requirements specified by this field are not met at scheduling - /// time, the pod will not be scheduled onto the node. If the affinity requirements - /// specified by this field cease to be met at some point during pod execution (e.g. - /// due to a pod label update), the system may or may not try to eventually evict - /// the pod from its node. When there are multiple elements, the lists of nodes - /// corresponding to each podAffinityTerm are intersected, i.e. all terms must be - /// satisfied. - /// - public V1PodAffinity(IList preferredDuringSchedulingIgnoredDuringExecution = null, IList requiredDuringSchedulingIgnoredDuringExecution = null) - { - PreferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; - RequiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "preferredDuringSchedulingIgnoredDuringExecution")] - public IList PreferredDuringSchedulingIgnoredDuringExecution { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "requiredDuringSchedulingIgnoredDuringExecution")] - public IList RequiredDuringSchedulingIgnoredDuringExecution { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (PreferredDuringSchedulingIgnoredDuringExecution != null){ - foreach(var obj in PreferredDuringSchedulingIgnoredDuringExecution) - { - obj.Validate(); - } - } - if (RequiredDuringSchedulingIgnoredDuringExecution != null){ - foreach(var obj in RequiredDuringSchedulingIgnoredDuringExecution) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PodAffinityTerm.cs b/src/KubernetesClient/generated/Models/V1PodAffinityTerm.cs deleted file mode 100644 index 36eeb5588..000000000 --- a/src/KubernetesClient/generated/Models/V1PodAffinityTerm.cs +++ /dev/null @@ -1,121 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Defines a set of pods (namely those matching the labelSelector relative to the - /// given namespace(s)) that this pod should be co-located (affinity) or not - /// co-located (anti-affinity) with, where co-located is defined as running on a - /// node whose value of the label with key <topologyKey> matches that of any node on - /// which a pod of the set of pods is running - /// - public partial class V1PodAffinityTerm - { - /// - /// Initializes a new instance of the V1PodAffinityTerm class. - /// - public V1PodAffinityTerm() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PodAffinityTerm class. - /// - /// - /// 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. - /// - /// - /// A label query over a set of resources, in this case pods. - /// - /// - /// A label query over the set of namespaces that the term applies to. The term is - /// applied to the union of the namespaces selected by this field and the ones - /// listed in the namespaces field. null selector and null or empty namespaces list - /// means "this pod's namespace". An empty selector ({}) matches all namespaces. - /// This field is beta-level and is only honored when PodAffinityNamespaceSelector - /// feature is enabled. - /// - /// - /// namespaces specifies a static list of namespace names that the term applies to. - /// The term is applied to the union of the namespaces listed in this field and the - /// ones selected by namespaceSelector. null or empty namespaces list and null - /// namespaceSelector means "this pod's namespace" - /// - public V1PodAffinityTerm(string topologyKey, V1LabelSelector labelSelector = null, V1LabelSelector namespaceSelector = null, IList namespaces = null) - { - LabelSelector = labelSelector; - NamespaceSelector = namespaceSelector; - Namespaces = namespaces; - TopologyKey = topologyKey; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// A label query over a set of resources, in this case pods. - /// - [JsonProperty(PropertyName = "labelSelector")] - public V1LabelSelector LabelSelector { get; set; } - - /// - /// A label query over the set of namespaces that the term applies to. The term is - /// applied to the union of the namespaces selected by this field and the ones - /// listed in the namespaces field. null selector and null or empty namespaces list - /// means "this pod's namespace". An empty selector ({}) matches all namespaces. - /// This field is beta-level and is only honored when PodAffinityNamespaceSelector - /// feature is enabled. - /// - [JsonProperty(PropertyName = "namespaceSelector")] - public V1LabelSelector NamespaceSelector { get; set; } - - /// - /// 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" - /// - [JsonProperty(PropertyName = "namespaces")] - public IList Namespaces { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "topologyKey")] - public string TopologyKey { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - LabelSelector?.Validate(); - NamespaceSelector?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PodAntiAffinity.cs b/src/KubernetesClient/generated/Models/V1PodAntiAffinity.cs deleted file mode 100644 index 8e406941e..000000000 --- a/src/KubernetesClient/generated/Models/V1PodAntiAffinity.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Pod anti affinity is a group of inter pod anti affinity scheduling rules. - /// - public partial class V1PodAntiAffinity - { - /// - /// Initializes a new instance of the V1PodAntiAffinity class. - /// - public V1PodAntiAffinity() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PodAntiAffinity class. - /// - /// - /// 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. - /// - /// - /// If the anti-affinity requirements specified by this field are not met at - /// scheduling time, the pod will not be scheduled onto the node. If the - /// anti-affinity requirements specified by this field cease to be met at some point - /// during pod execution (e.g. due to a pod label update), the system may or may not - /// try to eventually evict the pod from its node. When there are multiple elements, - /// the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. - /// all terms must be satisfied. - /// - public V1PodAntiAffinity(IList preferredDuringSchedulingIgnoredDuringExecution = null, IList requiredDuringSchedulingIgnoredDuringExecution = null) - { - PreferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; - RequiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "preferredDuringSchedulingIgnoredDuringExecution")] - public IList PreferredDuringSchedulingIgnoredDuringExecution { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "requiredDuringSchedulingIgnoredDuringExecution")] - public IList RequiredDuringSchedulingIgnoredDuringExecution { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (PreferredDuringSchedulingIgnoredDuringExecution != null){ - foreach(var obj in PreferredDuringSchedulingIgnoredDuringExecution) - { - obj.Validate(); - } - } - if (RequiredDuringSchedulingIgnoredDuringExecution != null){ - foreach(var obj in RequiredDuringSchedulingIgnoredDuringExecution) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PodCondition.cs b/src/KubernetesClient/generated/Models/V1PodCondition.cs deleted file mode 100644 index dafd426a6..000000000 --- a/src/KubernetesClient/generated/Models/V1PodCondition.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodCondition contains details for the current condition of this pod. - /// - public partial class V1PodCondition - { - /// - /// Initializes a new instance of the V1PodCondition class. - /// - public V1PodCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PodCondition class. - /// - /// - /// 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 is the type of the condition. More info: - /// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions - /// - /// - /// Last time we probed the condition. - /// - /// - /// Last time the condition transitioned from one status to another. - /// - /// - /// Human-readable message indicating details about last transition. - /// - /// - /// Unique, one-word, CamelCase reason for the condition's last transition. - /// - public V1PodCondition(string status, string type, System.DateTime? lastProbeTime = null, System.DateTime? lastTransitionTime = null, string message = null, string reason = null) - { - LastProbeTime = lastProbeTime; - LastTransitionTime = lastTransitionTime; - Message = message; - Reason = reason; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Last time we probed the condition. - /// - [JsonProperty(PropertyName = "lastProbeTime")] - public System.DateTime? LastProbeTime { get; set; } - - /// - /// Last time the condition transitioned from one status to another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// Human-readable message indicating details about last transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Unique, one-word, CamelCase reason for the condition's last transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Type is the type of the condition. More info: - /// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PodDNSConfig.cs b/src/KubernetesClient/generated/Models/V1PodDNSConfig.cs deleted file mode 100644 index ce42e0485..000000000 --- a/src/KubernetesClient/generated/Models/V1PodDNSConfig.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodDNSConfig defines the DNS parameters of a pod in addition to those generated - /// from DNSPolicy. - /// - public partial class V1PodDNSConfig - { - /// - /// Initializes a new instance of the V1PodDNSConfig class. - /// - public V1PodDNSConfig() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PodDNSConfig class. - /// - /// - /// A list of DNS name server IP addresses. This will be appended to the base - /// nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - /// - /// - /// A list of DNS resolver options. This will be merged with the base options - /// generated from DNSPolicy. Duplicated entries will be removed. Resolution options - /// given in Options will override those that appear in the base DNSPolicy. - /// - /// - /// A list of DNS search domains for host-name lookup. This will be appended to the - /// base search paths generated from DNSPolicy. Duplicated search paths will be - /// removed. - /// - public V1PodDNSConfig(IList nameservers = null, IList options = null, IList searches = null) - { - Nameservers = nameservers; - Options = options; - Searches = searches; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// A list of DNS name server IP addresses. This will be appended to the base - /// nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - /// - [JsonProperty(PropertyName = "nameservers")] - public IList Nameservers { get; set; } - - /// - /// A list of DNS resolver options. This will be merged with the base options - /// generated from DNSPolicy. Duplicated entries will be removed. Resolution options - /// given in Options will override those that appear in the base DNSPolicy. - /// - [JsonProperty(PropertyName = "options")] - public IList Options { get; set; } - - /// - /// A list of DNS search domains for host-name lookup. This will be appended to the - /// base search paths generated from DNSPolicy. Duplicated search paths will be - /// removed. - /// - [JsonProperty(PropertyName = "searches")] - public IList Searches { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Options != null){ - foreach(var obj in Options) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PodDNSConfigOption.cs b/src/KubernetesClient/generated/Models/V1PodDNSConfigOption.cs deleted file mode 100644 index a6cb54cee..000000000 --- a/src/KubernetesClient/generated/Models/V1PodDNSConfigOption.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodDNSConfigOption defines DNS resolver options of a pod. - /// - public partial class V1PodDNSConfigOption - { - /// - /// Initializes a new instance of the V1PodDNSConfigOption class. - /// - public V1PodDNSConfigOption() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PodDNSConfigOption class. - /// - /// - /// Required. - /// - /// - /// - /// - public V1PodDNSConfigOption(string name = null, string value = null) - { - Name = name; - Value = value; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Required. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "value")] - public string Value { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PodDisruptionBudget.cs b/src/KubernetesClient/generated/Models/V1PodDisruptionBudget.cs deleted file mode 100644 index ddf18eacc..000000000 --- a/src/KubernetesClient/generated/Models/V1PodDisruptionBudget.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodDisruptionBudget is an object to define the max disruption that can be caused - /// to a collection of pods - /// - public partial class V1PodDisruptionBudget - { - /// - /// Initializes a new instance of the V1PodDisruptionBudget class. - /// - public V1PodDisruptionBudget() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PodDisruptionBudget class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Specification of the desired behavior of the PodDisruptionBudget. - /// - /// - /// Most recently observed status of the PodDisruptionBudget. - /// - public V1PodDisruptionBudget(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1PodDisruptionBudgetSpec spec = null, V1PodDisruptionBudgetStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Specification of the desired behavior of the PodDisruptionBudget. - /// - [JsonProperty(PropertyName = "spec")] - public V1PodDisruptionBudgetSpec Spec { get; set; } - - /// - /// Most recently observed status of the PodDisruptionBudget. - /// - [JsonProperty(PropertyName = "status")] - public V1PodDisruptionBudgetStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PodDisruptionBudgetList.cs b/src/KubernetesClient/generated/Models/V1PodDisruptionBudgetList.cs deleted file mode 100644 index ed319308c..000000000 --- a/src/KubernetesClient/generated/Models/V1PodDisruptionBudgetList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodDisruptionBudgetList is a collection of PodDisruptionBudgets. - /// - public partial class V1PodDisruptionBudgetList - { - /// - /// Initializes a new instance of the V1PodDisruptionBudgetList class. - /// - public V1PodDisruptionBudgetList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PodDisruptionBudgetList class. - /// - /// - /// Items is a list of PodDisruptionBudgets - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1PodDisruptionBudgetList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is a list of PodDisruptionBudgets - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PodDisruptionBudgetSpec.cs b/src/KubernetesClient/generated/Models/V1PodDisruptionBudgetSpec.cs deleted file mode 100644 index 205991283..000000000 --- a/src/KubernetesClient/generated/Models/V1PodDisruptionBudgetSpec.cs +++ /dev/null @@ -1,100 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. - /// - public partial class V1PodDisruptionBudgetSpec - { - /// - /// Initializes a new instance of the V1PodDisruptionBudgetSpec class. - /// - public V1PodDisruptionBudgetSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PodDisruptionBudgetSpec class. - /// - /// - /// An eviction is allowed if at most "maxUnavailable" pods selected by "selector" - /// are unavailable after the eviction, i.e. even in absence of the evicted pod. For - /// example, one can prevent all voluntary evictions by specifying 0. This is a - /// mutually exclusive setting with "minAvailable". - /// - /// - /// An eviction is allowed if at least "minAvailable" pods selected by "selector" - /// will still be available after the eviction, i.e. even in the absence of the - /// evicted pod. So for example you can prevent all voluntary evictions by - /// specifying "100%". - /// - /// - /// Label query over pods whose evictions are managed by the disruption budget. A - /// null selector will match no pods, while an empty ({}) selector will select all - /// pods within the namespace. - /// - public V1PodDisruptionBudgetSpec(IntstrIntOrString maxUnavailable = null, IntstrIntOrString minAvailable = null, V1LabelSelector selector = null) - { - MaxUnavailable = maxUnavailable; - MinAvailable = minAvailable; - Selector = selector; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// An eviction is allowed if at most "maxUnavailable" pods selected by "selector" - /// are unavailable after the eviction, i.e. even in absence of the evicted pod. For - /// example, one can prevent all voluntary evictions by specifying 0. This is a - /// mutually exclusive setting with "minAvailable". - /// - [JsonProperty(PropertyName = "maxUnavailable")] - public IntstrIntOrString MaxUnavailable { get; set; } - - /// - /// An eviction is allowed if at least "minAvailable" pods selected by "selector" - /// will still be available after the eviction, i.e. even in the absence of the - /// evicted pod. So for example you can prevent all voluntary evictions by - /// specifying "100%". - /// - [JsonProperty(PropertyName = "minAvailable")] - public IntstrIntOrString MinAvailable { get; set; } - - /// - /// Label query over pods whose evictions are managed by the disruption budget. A - /// null selector will match no pods, while an empty ({}) selector will select all - /// pods within the namespace. - /// - [JsonProperty(PropertyName = "selector")] - public V1LabelSelector Selector { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - MaxUnavailable?.Validate(); - MinAvailable?.Validate(); - Selector?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PodDisruptionBudgetStatus.cs b/src/KubernetesClient/generated/Models/V1PodDisruptionBudgetStatus.cs deleted file mode 100644 index d9bdc1a44..000000000 --- a/src/KubernetesClient/generated/Models/V1PodDisruptionBudgetStatus.cs +++ /dev/null @@ -1,174 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodDisruptionBudgetStatus represents information about the status of a - /// PodDisruptionBudget. Status may trail the actual state of a system. - /// - public partial class V1PodDisruptionBudgetStatus - { - /// - /// Initializes a new instance of the V1PodDisruptionBudgetStatus class. - /// - public V1PodDisruptionBudgetStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PodDisruptionBudgetStatus class. - /// - /// - /// current number of healthy pods - /// - /// - /// minimum desired number of healthy pods - /// - /// - /// Number of pod disruptions that are currently allowed. - /// - /// - /// total number of pods counted by this disruption budget - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// Most recent generation observed when updating this PDB status. - /// DisruptionsAllowed and other status information is valid only if - /// observedGeneration equals to PDB's object generation. - /// - public V1PodDisruptionBudgetStatus(int currentHealthy, int desiredHealthy, int disruptionsAllowed, int expectedPods, IList conditions = null, IDictionary disruptedPods = null, long? observedGeneration = null) - { - Conditions = conditions; - CurrentHealthy = currentHealthy; - DesiredHealthy = desiredHealthy; - DisruptedPods = disruptedPods; - DisruptionsAllowed = disruptionsAllowed; - ExpectedPods = expectedPods; - ObservedGeneration = observedGeneration; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// current number of healthy pods - /// - [JsonProperty(PropertyName = "currentHealthy")] - public int CurrentHealthy { get; set; } - - /// - /// minimum desired number of healthy pods - /// - [JsonProperty(PropertyName = "desiredHealthy")] - public int DesiredHealthy { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "disruptedPods")] - public IDictionary DisruptedPods { get; set; } - - /// - /// Number of pod disruptions that are currently allowed. - /// - [JsonProperty(PropertyName = "disruptionsAllowed")] - public int DisruptionsAllowed { get; set; } - - /// - /// total number of pods counted by this disruption budget - /// - [JsonProperty(PropertyName = "expectedPods")] - public int ExpectedPods { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "observedGeneration")] - public long? ObservedGeneration { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Conditions != null){ - foreach(var obj in Conditions) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PodIP.cs b/src/KubernetesClient/generated/Models/V1PodIP.cs deleted file mode 100644 index ca3726750..000000000 --- a/src/KubernetesClient/generated/Models/V1PodIP.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// IP address information for entries in the (plural) PodIPs field. Each entry - /// includes: - /// IP: An IP address allocated to the pod. Routable at least within the cluster. - /// - public partial class V1PodIP - { - /// - /// Initializes a new instance of the V1PodIP class. - /// - public V1PodIP() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PodIP class. - /// - /// - /// ip is an IP address (IPv4 or IPv6) assigned to the pod - /// - public V1PodIP(string ip = null) - { - Ip = ip; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// ip is an IP address (IPv4 or IPv6) assigned to the pod - /// - [JsonProperty(PropertyName = "ip")] - public string Ip { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PodList.cs b/src/KubernetesClient/generated/Models/V1PodList.cs deleted file mode 100644 index 7e24eb6d1..000000000 --- a/src/KubernetesClient/generated/Models/V1PodList.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodList is a list of Pods. - /// - public partial class V1PodList - { - /// - /// Initializes a new instance of the V1PodList class. - /// - public V1PodList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PodList class. - /// - /// - /// List of pods. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - public V1PodList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// List of pods. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PodReadinessGate.cs b/src/KubernetesClient/generated/Models/V1PodReadinessGate.cs deleted file mode 100644 index 7fcf322cb..000000000 --- a/src/KubernetesClient/generated/Models/V1PodReadinessGate.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodReadinessGate contains the reference to a pod condition - /// - public partial class V1PodReadinessGate - { - /// - /// Initializes a new instance of the V1PodReadinessGate class. - /// - public V1PodReadinessGate() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PodReadinessGate class. - /// - /// - /// ConditionType refers to a condition in the pod's condition list with matching - /// type. - /// - public V1PodReadinessGate(string conditionType) - { - ConditionType = conditionType; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// ConditionType refers to a condition in the pod's condition list with matching - /// type. - /// - [JsonProperty(PropertyName = "conditionType")] - public string ConditionType { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PodSecurityContext.cs b/src/KubernetesClient/generated/Models/V1PodSecurityContext.cs deleted file mode 100644 index e95fae972..000000000 --- a/src/KubernetesClient/generated/Models/V1PodSecurityContext.cs +++ /dev/null @@ -1,231 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodSecurityContext holds pod-level security attributes and common container - /// settings. Some fields are also present in container.securityContext. Field - /// values of container.securityContext take precedence over field values of - /// PodSecurityContext. - /// - public partial class V1PodSecurityContext - { - /// - /// Initializes a new instance of the V1PodSecurityContext class. - /// - public V1PodSecurityContext() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PodSecurityContext class. - /// - /// - /// 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. - /// - /// - /// fsGroupChangePolicy defines behavior of changing ownership and permission of the - /// volume before being exposed inside Pod. This field will only apply to volume - /// types which support fsGroup based ownership(and permissions). It will have no - /// effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid - /// values are "OnRootMismatch" and "Always". If not specified, "Always" is used. - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// The seccomp options to use by the containers in this pod. - /// - /// - /// 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. - /// - /// - /// Sysctls hold a list of namespaced sysctls used for the pod. Pods with - /// unsupported sysctls (by the container runtime) might fail to launch. - /// - /// - /// 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. - /// - public V1PodSecurityContext(long? fsGroup = null, string fsGroupChangePolicy = null, long? runAsGroup = null, bool? runAsNonRoot = null, long? runAsUser = null, V1SELinuxOptions seLinuxOptions = null, V1SeccompProfile seccompProfile = null, IList supplementalGroups = null, IList sysctls = null, V1WindowsSecurityContextOptions windowsOptions = null) - { - FsGroup = fsGroup; - FsGroupChangePolicy = fsGroupChangePolicy; - RunAsGroup = runAsGroup; - RunAsNonRoot = runAsNonRoot; - RunAsUser = runAsUser; - SeLinuxOptions = seLinuxOptions; - SeccompProfile = seccompProfile; - SupplementalGroups = supplementalGroups; - Sysctls = sysctls; - WindowsOptions = windowsOptions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "fsGroup")] - public long? FsGroup { get; set; } - - /// - /// fsGroupChangePolicy defines behavior of changing ownership and permission of the - /// volume before being exposed inside Pod. This field will only apply to volume - /// types which support fsGroup based ownership(and permissions). It will have no - /// effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid - /// values are "OnRootMismatch" and "Always". If not specified, "Always" is used. - /// - [JsonProperty(PropertyName = "fsGroupChangePolicy")] - public string FsGroupChangePolicy { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "runAsGroup")] - public long? RunAsGroup { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "runAsNonRoot")] - public bool? RunAsNonRoot { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "runAsUser")] - public long? RunAsUser { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "seLinuxOptions")] - public V1SELinuxOptions SeLinuxOptions { get; set; } - - /// - /// The seccomp options to use by the containers in this pod. - /// - [JsonProperty(PropertyName = "seccompProfile")] - public V1SeccompProfile SeccompProfile { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "supplementalGroups")] - public IList SupplementalGroups { get; set; } - - /// - /// Sysctls hold a list of namespaced sysctls used for the pod. Pods with - /// unsupported sysctls (by the container runtime) might fail to launch. - /// - [JsonProperty(PropertyName = "sysctls")] - public IList Sysctls { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "windowsOptions")] - public V1WindowsSecurityContextOptions WindowsOptions { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - SeLinuxOptions?.Validate(); - SeccompProfile?.Validate(); - if (Sysctls != null){ - foreach(var obj in Sysctls) - { - obj.Validate(); - } - } - WindowsOptions?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PodSpec.cs b/src/KubernetesClient/generated/Models/V1PodSpec.cs deleted file mode 100644 index 024d5747a..000000000 --- a/src/KubernetesClient/generated/Models/V1PodSpec.cs +++ /dev/null @@ -1,654 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodSpec is a description of a pod. - /// - public partial class V1PodSpec - { - /// - /// Initializes a new instance of the V1PodSpec class. - /// - public V1PodSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PodSpec class. - /// - /// - /// List of containers belonging to the pod. Containers cannot currently be added or - /// removed. There must be at least one container in a Pod. Cannot be updated. - /// - /// - /// Optional duration in seconds the pod may be active on the node relative to - /// StartTime before the system will actively try to mark it failed and kill - /// associated containers. Value must be a positive integer. - /// - /// - /// If specified, the pod's scheduling constraints - /// - /// - /// AutomountServiceAccountToken indicates whether a service account token should be - /// automatically mounted. - /// - /// - /// Specifies the DNS parameters of a pod. Parameters specified here will be merged - /// to the generated DNS configuration based on DNSPolicy. - /// - /// - /// Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are - /// 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters - /// given in DNSConfig will be merged with the policy selected with DNSPolicy. To - /// have DNS options set along with hostNetwork, you have to specify DNS policy - /// explicitly to 'ClusterFirstWithHostNet'. - /// - /// - /// EnableServiceLinks indicates whether information about services should be - /// injected into pod's environment variables, matching the syntax of Docker links. - /// Optional: Defaults to true. - /// - /// - /// 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. This field is alpha-level and is only - /// honored by servers that enable the EphemeralContainers feature. - /// - /// - /// HostAliases is an optional list of hosts and IPs that will be injected into the - /// pod's hosts file if specified. This is only valid for non-hostNetwork pods. - /// - /// - /// Use the host's ipc namespace. Optional: Default to false. - /// - /// - /// 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. - /// - /// - /// Use the host's pid namespace. Optional: Default to false. - /// - /// - /// Specifies the hostname of the Pod If not specified, the pod's hostname will be - /// set to a system-defined value. - /// - /// - /// ImagePullSecrets is an optional list of references to secrets in the same - /// namespace to use for pulling any of the images used by this PodSpec. If - /// specified, these secrets will be passed to individual puller implementations for - /// them to use. For example, in the case of docker, only DockerConfig type secrets - /// are honored. More info: - /// https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - /// - /// - /// 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/ - /// - /// - /// 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. - /// - /// - /// 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/ - /// - /// - /// 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 This - /// field is beta-level as of Kubernetes v1.18, and is only honored by servers that - /// enable the PodOverhead feature. - /// - /// - /// PreemptionPolicy is the Policy for preempting pods with lower priority. One of - /// Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This - /// field is beta-level, gated by the NonPreemptingPriority feature-gate. - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// 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 - /// - /// - /// Restart policy for all containers within the pod. One of Always, OnFailure, - /// Never. Default to Always. More info: - /// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - /// - /// - /// 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 This is a beta - /// feature as of Kubernetes v1.14. - /// - /// - /// If specified, the pod will be dispatched by specified scheduler. If not - /// specified, the pod will be dispatched by default scheduler. - /// - /// - /// SecurityContext holds pod-level security attributes and common container - /// settings. Optional: Defaults to empty. See type description for default values - /// of each field. - /// - /// - /// DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. - /// Deprecated: Use serviceAccountName instead. - /// - /// - /// 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/ - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// 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 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. - /// - /// - /// If specified, the pod's tolerations. - /// - /// - /// 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. - /// - /// - /// List of volumes that can be mounted by containers belonging to the pod. More - /// info: https://kubernetes.io/docs/concepts/storage/volumes - /// - public V1PodSpec(IList containers, long? activeDeadlineSeconds = null, V1Affinity affinity = null, bool? automountServiceAccountToken = null, V1PodDNSConfig dnsConfig = null, string dnsPolicy = null, bool? enableServiceLinks = null, IList ephemeralContainers = null, IList hostAliases = null, bool? hostIPC = null, bool? hostNetwork = null, bool? hostPID = null, string hostname = null, IList imagePullSecrets = null, IList initContainers = null, string nodeName = null, IDictionary nodeSelector = null, IDictionary overhead = null, string preemptionPolicy = null, int? priority = null, string priorityClassName = null, IList readinessGates = null, string restartPolicy = null, string runtimeClassName = null, string schedulerName = null, V1PodSecurityContext securityContext = null, string serviceAccount = null, string serviceAccountName = null, bool? setHostnameAsFQDN = null, bool? shareProcessNamespace = null, string subdomain = null, long? terminationGracePeriodSeconds = null, IList tolerations = null, IList topologySpreadConstraints = null, IList volumes = null) - { - ActiveDeadlineSeconds = activeDeadlineSeconds; - Affinity = affinity; - AutomountServiceAccountToken = automountServiceAccountToken; - Containers = containers; - DnsConfig = dnsConfig; - DnsPolicy = dnsPolicy; - EnableServiceLinks = enableServiceLinks; - EphemeralContainers = ephemeralContainers; - HostAliases = hostAliases; - HostIPC = hostIPC; - HostNetwork = hostNetwork; - HostPID = hostPID; - Hostname = hostname; - ImagePullSecrets = imagePullSecrets; - InitContainers = initContainers; - NodeName = nodeName; - NodeSelector = nodeSelector; - Overhead = overhead; - PreemptionPolicy = preemptionPolicy; - Priority = priority; - PriorityClassName = priorityClassName; - ReadinessGates = readinessGates; - RestartPolicy = restartPolicy; - RuntimeClassName = runtimeClassName; - SchedulerName = schedulerName; - SecurityContext = securityContext; - ServiceAccount = serviceAccount; - ServiceAccountName = serviceAccountName; - SetHostnameAsFQDN = setHostnameAsFQDN; - ShareProcessNamespace = shareProcessNamespace; - Subdomain = subdomain; - TerminationGracePeriodSeconds = terminationGracePeriodSeconds; - Tolerations = tolerations; - TopologySpreadConstraints = topologySpreadConstraints; - Volumes = volumes; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Optional duration in seconds the pod may be active on the node relative to - /// StartTime before the system will actively try to mark it failed and kill - /// associated containers. Value must be a positive integer. - /// - [JsonProperty(PropertyName = "activeDeadlineSeconds")] - public long? ActiveDeadlineSeconds { get; set; } - - /// - /// If specified, the pod's scheduling constraints - /// - [JsonProperty(PropertyName = "affinity")] - public V1Affinity Affinity { get; set; } - - /// - /// AutomountServiceAccountToken indicates whether a service account token should be - /// automatically mounted. - /// - [JsonProperty(PropertyName = "automountServiceAccountToken")] - public bool? AutomountServiceAccountToken { get; set; } - - /// - /// List of containers belonging to the pod. Containers cannot currently be added or - /// removed. There must be at least one container in a Pod. Cannot be updated. - /// - [JsonProperty(PropertyName = "containers")] - public IList Containers { get; set; } - - /// - /// Specifies the DNS parameters of a pod. Parameters specified here will be merged - /// to the generated DNS configuration based on DNSPolicy. - /// - [JsonProperty(PropertyName = "dnsConfig")] - public V1PodDNSConfig DnsConfig { get; set; } - - /// - /// Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are - /// 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters - /// given in DNSConfig will be merged with the policy selected with DNSPolicy. To - /// have DNS options set along with hostNetwork, you have to specify DNS policy - /// explicitly to 'ClusterFirstWithHostNet'. - /// - [JsonProperty(PropertyName = "dnsPolicy")] - public string DnsPolicy { get; set; } - - /// - /// EnableServiceLinks indicates whether information about services should be - /// injected into pod's environment variables, matching the syntax of Docker links. - /// Optional: Defaults to true. - /// - [JsonProperty(PropertyName = "enableServiceLinks")] - public bool? EnableServiceLinks { get; set; } - - /// - /// 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. This field is alpha-level and is only - /// honored by servers that enable the EphemeralContainers feature. - /// - [JsonProperty(PropertyName = "ephemeralContainers")] - public IList EphemeralContainers { get; set; } - - /// - /// HostAliases is an optional list of hosts and IPs that will be injected into the - /// pod's hosts file if specified. This is only valid for non-hostNetwork pods. - /// - [JsonProperty(PropertyName = "hostAliases")] - public IList HostAliases { get; set; } - - /// - /// Use the host's ipc namespace. Optional: Default to false. - /// - [JsonProperty(PropertyName = "hostIPC")] - public bool? HostIPC { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "hostNetwork")] - public bool? HostNetwork { get; set; } - - /// - /// Use the host's pid namespace. Optional: Default to false. - /// - [JsonProperty(PropertyName = "hostPID")] - public bool? HostPID { get; set; } - - /// - /// Specifies the hostname of the Pod If not specified, the pod's hostname will be - /// set to a system-defined value. - /// - [JsonProperty(PropertyName = "hostname")] - public string Hostname { get; set; } - - /// - /// 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. For example, in the case of docker, only DockerConfig type secrets - /// are honored. More info: - /// https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - /// - [JsonProperty(PropertyName = "imagePullSecrets")] - public IList ImagePullSecrets { get; set; } - - /// - /// 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/ - /// - [JsonProperty(PropertyName = "initContainers")] - public IList InitContainers { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "nodeName")] - public string NodeName { get; set; } - - /// - /// 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/ - /// - [JsonProperty(PropertyName = "nodeSelector")] - public IDictionary NodeSelector { get; set; } - - /// - /// 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 This - /// field is beta-level as of Kubernetes v1.18, and is only honored by servers that - /// enable the PodOverhead feature. - /// - [JsonProperty(PropertyName = "overhead")] - public IDictionary Overhead { get; set; } - - /// - /// PreemptionPolicy is the Policy for preempting pods with lower priority. One of - /// Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This - /// field is beta-level, gated by the NonPreemptingPriority feature-gate. - /// - [JsonProperty(PropertyName = "preemptionPolicy")] - public string PreemptionPolicy { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "priority")] - public int? Priority { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "priorityClassName")] - public string PriorityClassName { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "readinessGates")] - public IList ReadinessGates { get; set; } - - /// - /// Restart policy for all containers within the pod. One of Always, OnFailure, - /// Never. Default to Always. More info: - /// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - /// - [JsonProperty(PropertyName = "restartPolicy")] - public string RestartPolicy { get; set; } - - /// - /// 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 This is a beta - /// feature as of Kubernetes v1.14. - /// - [JsonProperty(PropertyName = "runtimeClassName")] - public string RuntimeClassName { get; set; } - - /// - /// If specified, the pod will be dispatched by specified scheduler. If not - /// specified, the pod will be dispatched by default scheduler. - /// - [JsonProperty(PropertyName = "schedulerName")] - public string SchedulerName { get; set; } - - /// - /// SecurityContext holds pod-level security attributes and common container - /// settings. Optional: Defaults to empty. See type description for default values - /// of each field. - /// - [JsonProperty(PropertyName = "securityContext")] - public V1PodSecurityContext SecurityContext { get; set; } - - /// - /// DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. - /// Deprecated: Use serviceAccountName instead. - /// - [JsonProperty(PropertyName = "serviceAccount")] - public string ServiceAccount { get; set; } - - /// - /// 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/ - /// - [JsonProperty(PropertyName = "serviceAccountName")] - public string ServiceAccountName { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "setHostnameAsFQDN")] - public bool? SetHostnameAsFQDN { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "shareProcessNamespace")] - public bool? ShareProcessNamespace { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "subdomain")] - public string Subdomain { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "terminationGracePeriodSeconds")] - public long? TerminationGracePeriodSeconds { get; set; } - - /// - /// If specified, the pod's tolerations. - /// - [JsonProperty(PropertyName = "tolerations")] - public IList Tolerations { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "topologySpreadConstraints")] - public IList TopologySpreadConstraints { get; set; } - - /// - /// List of volumes that can be mounted by containers belonging to the pod. More - /// info: https://kubernetes.io/docs/concepts/storage/volumes - /// - [JsonProperty(PropertyName = "volumes")] - public IList Volumes { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Affinity?.Validate(); - if (Containers != null){ - foreach(var obj in Containers) - { - obj.Validate(); - } - } - DnsConfig?.Validate(); - if (EphemeralContainers != null){ - foreach(var obj in EphemeralContainers) - { - obj.Validate(); - } - } - if (HostAliases != null){ - foreach(var obj in HostAliases) - { - obj.Validate(); - } - } - if (ImagePullSecrets != null){ - foreach(var obj in ImagePullSecrets) - { - obj.Validate(); - } - } - if (InitContainers != null){ - foreach(var obj in InitContainers) - { - obj.Validate(); - } - } - if (ReadinessGates != null){ - foreach(var obj in ReadinessGates) - { - obj.Validate(); - } - } - SecurityContext?.Validate(); - if (Tolerations != null){ - foreach(var obj in Tolerations) - { - obj.Validate(); - } - } - if (TopologySpreadConstraints != null){ - foreach(var obj in TopologySpreadConstraints) - { - obj.Validate(); - } - } - if (Volumes != null){ - foreach(var obj in Volumes) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PodStatus.cs b/src/KubernetesClient/generated/Models/V1PodStatus.cs deleted file mode 100644 index 25c3d9ae2..000000000 --- a/src/KubernetesClient/generated/Models/V1PodStatus.cs +++ /dev/null @@ -1,295 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodStatus represents information about the status of a pod. Status may trail the - /// actual state of a system, especially if the node that hosts the pod cannot - /// contact the control plane. - /// - public partial class V1PodStatus - { - /// - /// Initializes a new instance of the V1PodStatus class. - /// - public V1PodStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PodStatus class. - /// - /// - /// Current service state of pod. More info: - /// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions - /// - /// - /// The list has one entry per container in the manifest. Each entry is currently - /// the output of `docker inspect`. More info: - /// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status - /// - /// - /// Status for any ephemeral containers that have run in this pod. This field is - /// alpha-level and is only populated by servers that enable the EphemeralContainers - /// feature. - /// - /// - /// IP address of the host to which the pod is assigned. Empty if not yet scheduled. - /// - /// - /// 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 - /// - /// - /// A human readable message indicating details about why the pod is in this - /// condition. - /// - /// - /// 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. - /// - /// - /// 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 - /// - /// - /// IP address allocated to the pod. Routable at least within the cluster. Empty if - /// not yet allocated. - /// - /// - /// 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. - /// - /// - /// The Quality of Service (QOS) classification assigned to the pod based on - /// resource requirements See PodQOSClass type for available QOS classes More info: - /// https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md - /// - /// - /// A brief CamelCase message indicating details about why the pod is in this state. - /// e.g. 'Evicted' - /// - /// - /// RFC 3339 date and time at which the object was acknowledged by the Kubelet. This - /// is before the Kubelet pulled the container image(s) for the pod. - /// - public V1PodStatus(IList conditions = null, IList containerStatuses = null, IList ephemeralContainerStatuses = null, string hostIP = null, IList initContainerStatuses = null, string message = null, string nominatedNodeName = null, string phase = null, string podIP = null, IList podIPs = null, string qosClass = null, string reason = null, System.DateTime? startTime = null) - { - Conditions = conditions; - ContainerStatuses = containerStatuses; - EphemeralContainerStatuses = ephemeralContainerStatuses; - HostIP = hostIP; - InitContainerStatuses = initContainerStatuses; - Message = message; - NominatedNodeName = nominatedNodeName; - Phase = phase; - PodIP = podIP; - PodIPs = podIPs; - QosClass = qosClass; - Reason = reason; - StartTime = startTime; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Current service state of pod. More info: - /// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// The list has one entry per container in the manifest. Each entry is currently - /// the output of `docker inspect`. More info: - /// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status - /// - [JsonProperty(PropertyName = "containerStatuses")] - public IList ContainerStatuses { get; set; } - - /// - /// Status for any ephemeral containers that have run in this pod. This field is - /// alpha-level and is only populated by servers that enable the EphemeralContainers - /// feature. - /// - [JsonProperty(PropertyName = "ephemeralContainerStatuses")] - public IList EphemeralContainerStatuses { get; set; } - - /// - /// IP address of the host to which the pod is assigned. Empty if not yet scheduled. - /// - [JsonProperty(PropertyName = "hostIP")] - public string HostIP { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "initContainerStatuses")] - public IList InitContainerStatuses { get; set; } - - /// - /// A human readable message indicating details about why the pod is in this - /// condition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "nominatedNodeName")] - public string NominatedNodeName { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "phase")] - public string Phase { get; set; } - - /// - /// IP address allocated to the pod. Routable at least within the cluster. Empty if - /// not yet allocated. - /// - [JsonProperty(PropertyName = "podIP")] - public string PodIP { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "podIPs")] - public IList PodIPs { get; set; } - - /// - /// The Quality of Service (QOS) classification assigned to the pod based on - /// resource requirements See PodQOSClass type for available QOS classes More info: - /// https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md - /// - [JsonProperty(PropertyName = "qosClass")] - public string QosClass { get; set; } - - /// - /// A brief CamelCase message indicating details about why the pod is in this state. - /// e.g. 'Evicted' - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "startTime")] - public System.DateTime? StartTime { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Conditions != null){ - foreach(var obj in Conditions) - { - obj.Validate(); - } - } - if (ContainerStatuses != null){ - foreach(var obj in ContainerStatuses) - { - obj.Validate(); - } - } - if (EphemeralContainerStatuses != null){ - foreach(var obj in EphemeralContainerStatuses) - { - obj.Validate(); - } - } - if (InitContainerStatuses != null){ - foreach(var obj in InitContainerStatuses) - { - obj.Validate(); - } - } - if (PodIPs != null){ - foreach(var obj in PodIPs) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PodTemplate.cs b/src/KubernetesClient/generated/Models/V1PodTemplate.cs deleted file mode 100644 index 72f725793..000000000 --- a/src/KubernetesClient/generated/Models/V1PodTemplate.cs +++ /dev/null @@ -1,109 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodTemplate describes a template for creating copies of a predefined pod. - /// - public partial class V1PodTemplate - { - /// - /// Initializes a new instance of the V1PodTemplate class. - /// - public V1PodTemplate() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PodTemplate class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Template defines the pods that will be created from this pod template. - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - public V1PodTemplate(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1PodTemplateSpec template = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Template = template; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Template defines the pods that will be created from this pod template. - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "template")] - public V1PodTemplateSpec Template { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Template?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PodTemplateList.cs b/src/KubernetesClient/generated/Models/V1PodTemplateList.cs deleted file mode 100644 index d816f1121..000000000 --- a/src/KubernetesClient/generated/Models/V1PodTemplateList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodTemplateList is a list of PodTemplates. - /// - public partial class V1PodTemplateList - { - /// - /// Initializes a new instance of the V1PodTemplateList class. - /// - public V1PodTemplateList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PodTemplateList class. - /// - /// - /// List of pod templates - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - public V1PodTemplateList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// List of pod templates - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PodTemplateSpec.cs b/src/KubernetesClient/generated/Models/V1PodTemplateSpec.cs deleted file mode 100644 index bf1151043..000000000 --- a/src/KubernetesClient/generated/Models/V1PodTemplateSpec.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodTemplateSpec describes the data a pod should have when created from a - /// template - /// - public partial class V1PodTemplateSpec - { - /// - /// Initializes a new instance of the V1PodTemplateSpec class. - /// - public V1PodTemplateSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PodTemplateSpec class. - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Specification of the desired behavior of the pod. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - public V1PodTemplateSpec(V1ObjectMeta metadata = null, V1PodSpec spec = null) - { - Metadata = metadata; - Spec = spec; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Specification of the desired behavior of the pod. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1PodSpec Spec { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PolicyRule.cs b/src/KubernetesClient/generated/Models/V1PolicyRule.cs deleted file mode 100644 index dd9607f59..000000000 --- a/src/KubernetesClient/generated/Models/V1PolicyRule.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1PolicyRule - { - /// - /// Initializes a new instance of the V1PolicyRule class. - /// - public V1PolicyRule() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PolicyRule class. - /// - /// - /// Verbs is a list of Verbs that apply to ALL the ResourceKinds and - /// AttributeRestrictions contained in this rule. '*' represents all verbs. - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// ResourceNames is an optional white list of names that the rule applies to. An - /// empty set means that everything is allowed. - /// - /// - /// Resources is a list of resources this rule applies to. '*' represents all - /// resources. - /// - public V1PolicyRule(IList verbs, IList apiGroups = null, IList nonResourceURLs = null, IList resourceNames = null, IList resources = null) - { - ApiGroups = apiGroups; - NonResourceURLs = nonResourceURLs; - ResourceNames = resourceNames; - Resources = resources; - Verbs = verbs; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "apiGroups")] - public IList ApiGroups { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "nonResourceURLs")] - public IList NonResourceURLs { get; set; } - - /// - /// ResourceNames is an optional white list of names that the rule applies to. An - /// empty set means that everything is allowed. - /// - [JsonProperty(PropertyName = "resourceNames")] - public IList ResourceNames { get; set; } - - /// - /// Resources is a list of resources this rule applies to. '*' represents all - /// resources. - /// - [JsonProperty(PropertyName = "resources")] - public IList Resources { get; set; } - - /// - /// Verbs is a list of Verbs that apply to ALL the ResourceKinds and - /// AttributeRestrictions contained in this rule. '*' represents all verbs. - /// - [JsonProperty(PropertyName = "verbs")] - public IList Verbs { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PortStatus.cs b/src/KubernetesClient/generated/Models/V1PortStatus.cs deleted file mode 100644 index fbda7426c..000000000 --- a/src/KubernetesClient/generated/Models/V1PortStatus.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// - /// - public partial class V1PortStatus - { - /// - /// Initializes a new instance of the V1PortStatus class. - /// - public V1PortStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PortStatus class. - /// - /// - /// Port is the port number of the service port of which status is recorded here - /// - /// - /// Protocol is the protocol of the service port of which status is recorded here - /// The supported values are: "TCP", "UDP", "SCTP" - /// - /// - /// Error is to record the problem with the service port The format of the error - /// shall comply with the following rules: - built-in error values shall be - /// specified in this file and those shall use - /// CamelCase names - /// - cloud provider specific error values must have names that comply with the - /// format foo.example.com/CamelCase. - /// - public V1PortStatus(int port, string protocol, string error = null) - { - Error = error; - Port = port; - Protocol = protocol; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "error")] - public string Error { get; set; } - - /// - /// Port is the port number of the service port of which status is recorded here - /// - [JsonProperty(PropertyName = "port")] - public int Port { get; set; } - - /// - /// Protocol is the protocol of the service port of which status is recorded here - /// The supported values are: "TCP", "UDP", "SCTP" - /// - [JsonProperty(PropertyName = "protocol")] - public string Protocol { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PortworxVolumeSource.cs b/src/KubernetesClient/generated/Models/V1PortworxVolumeSource.cs deleted file mode 100644 index 79c63dc9b..000000000 --- a/src/KubernetesClient/generated/Models/V1PortworxVolumeSource.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PortworxVolumeSource represents a Portworx volume resource. - /// - public partial class V1PortworxVolumeSource - { - /// - /// Initializes a new instance of the V1PortworxVolumeSource class. - /// - public V1PortworxVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PortworxVolumeSource class. - /// - /// - /// VolumeID uniquely identifies a Portworx volume - /// - /// - /// 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. - /// - /// - /// Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in - /// VolumeMounts. - /// - public V1PortworxVolumeSource(string volumeID, string fsType = null, bool? readOnlyProperty = null) - { - FsType = fsType; - ReadOnlyProperty = readOnlyProperty; - VolumeID = volumeID; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "fsType")] - public string FsType { get; set; } - - /// - /// Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in - /// VolumeMounts. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// VolumeID uniquely identifies a Portworx volume - /// - [JsonProperty(PropertyName = "volumeID")] - public string VolumeID { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Preconditions.cs b/src/KubernetesClient/generated/Models/V1Preconditions.cs deleted file mode 100644 index eb71e8e51..000000000 --- a/src/KubernetesClient/generated/Models/V1Preconditions.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Preconditions must be fulfilled before an operation (update, delete, etc.) is - /// carried out. - /// - public partial class V1Preconditions - { - /// - /// Initializes a new instance of the V1Preconditions class. - /// - public V1Preconditions() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Preconditions class. - /// - /// - /// Specifies the target ResourceVersion - /// - /// - /// Specifies the target UID. - /// - public V1Preconditions(string resourceVersion = null, string uid = null) - { - ResourceVersion = resourceVersion; - Uid = uid; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Specifies the target ResourceVersion - /// - [JsonProperty(PropertyName = "resourceVersion")] - public string ResourceVersion { get; set; } - - /// - /// Specifies the target UID. - /// - [JsonProperty(PropertyName = "uid")] - public string Uid { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PreferredSchedulingTerm.cs b/src/KubernetesClient/generated/Models/V1PreferredSchedulingTerm.cs deleted file mode 100644 index 322b3af20..000000000 --- a/src/KubernetesClient/generated/Models/V1PreferredSchedulingTerm.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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). - /// - public partial class V1PreferredSchedulingTerm - { - /// - /// Initializes a new instance of the V1PreferredSchedulingTerm class. - /// - public V1PreferredSchedulingTerm() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PreferredSchedulingTerm class. - /// - /// - /// A node selector term, associated with the corresponding weight. - /// - /// - /// Weight associated with matching the corresponding nodeSelectorTerm, in the range - /// 1-100. - /// - public V1PreferredSchedulingTerm(V1NodeSelectorTerm preference, int weight) - { - Preference = preference; - Weight = weight; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// A node selector term, associated with the corresponding weight. - /// - [JsonProperty(PropertyName = "preference")] - public V1NodeSelectorTerm Preference { get; set; } - - /// - /// Weight associated with matching the corresponding nodeSelectorTerm, in the range - /// 1-100. - /// - [JsonProperty(PropertyName = "weight")] - public int Weight { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Preference == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Preference"); - } - Preference?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PriorityClass.cs b/src/KubernetesClient/generated/Models/V1PriorityClass.cs deleted file mode 100644 index 8e8457a58..000000000 --- a/src/KubernetesClient/generated/Models/V1PriorityClass.cs +++ /dev/null @@ -1,155 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PriorityClass defines mapping from a priority class name to the priority integer - /// value. The value can be any valid integer. - /// - public partial class V1PriorityClass - { - /// - /// Initializes a new instance of the V1PriorityClass class. - /// - public V1PriorityClass() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PriorityClass class. - /// - /// - /// The value of this priority class. This is the actual priority that pods receive - /// when they have the name of this class in their pod spec. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to 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 is an arbitrary string that usually provides guidelines on when this - /// priority class should be used. - /// - /// - /// globalDefault specifies whether this PriorityClass should be considered as the - /// default priority for pods that do not have any priority class. Only one - /// PriorityClass can be marked as `globalDefault`. However, if more than one - /// PriorityClasses exists with their `globalDefault` field set to true, the - /// smallest value of such global default PriorityClasses will be used as the - /// default priority. - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// PreemptionPolicy is the Policy for preempting pods with lower priority. One of - /// Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This - /// field is beta-level, gated by the NonPreemptingPriority feature-gate. - /// - public V1PriorityClass(int value, string apiVersion = null, string description = null, bool? globalDefault = null, string kind = null, V1ObjectMeta metadata = null, string preemptionPolicy = null) - { - ApiVersion = apiVersion; - Description = description; - GlobalDefault = globalDefault; - Kind = kind; - Metadata = metadata; - PreemptionPolicy = preemptionPolicy; - Value = value; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// description is an arbitrary string that usually provides guidelines on when this - /// priority class should be used. - /// - [JsonProperty(PropertyName = "description")] - public string Description { get; set; } - - /// - /// globalDefault specifies whether this PriorityClass should be considered as the - /// default priority for pods that do not have any priority class. Only one - /// PriorityClass can be marked as `globalDefault`. However, if more than one - /// PriorityClasses exists with their `globalDefault` field set to true, the - /// smallest value of such global default PriorityClasses will be used as the - /// default priority. - /// - [JsonProperty(PropertyName = "globalDefault")] - public bool? GlobalDefault { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// PreemptionPolicy is the Policy for preempting pods with lower priority. One of - /// Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This - /// field is beta-level, gated by the NonPreemptingPriority feature-gate. - /// - [JsonProperty(PropertyName = "preemptionPolicy")] - public string PreemptionPolicy { get; set; } - - /// - /// The value of this priority class. This is the actual priority that pods receive - /// when they have the name of this class in their pod spec. - /// - [JsonProperty(PropertyName = "value")] - public int Value { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1PriorityClassList.cs b/src/KubernetesClient/generated/Models/V1PriorityClassList.cs deleted file mode 100644 index 771311cec..000000000 --- a/src/KubernetesClient/generated/Models/V1PriorityClassList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PriorityClassList is a collection of priority classes. - /// - public partial class V1PriorityClassList - { - /// - /// Initializes a new instance of the V1PriorityClassList class. - /// - public V1PriorityClassList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1PriorityClassList class. - /// - /// - /// items is the list of PriorityClasses - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1PriorityClassList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// items is the list of PriorityClasses - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Probe.cs b/src/KubernetesClient/generated/Models/V1Probe.cs deleted file mode 100644 index 4533aebcc..000000000 --- a/src/KubernetesClient/generated/Models/V1Probe.cs +++ /dev/null @@ -1,183 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Probe describes a health check to be performed against a container to determine - /// whether it is alive or ready to receive traffic. - /// - public partial class V1Probe - { - /// - /// Initializes a new instance of the V1Probe class. - /// - public V1Probe() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Probe class. - /// - /// - /// One and only one of the following should be specified. Exec specifies the action - /// to take. - /// - /// - /// Minimum consecutive failures for the probe to be considered failed after having - /// succeeded. Defaults to 3. Minimum value is 1. - /// - /// - /// HTTPGet specifies the http request to perform. - /// - /// - /// 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 - /// - /// - /// How often (in seconds) to perform the probe. Default to 10 seconds. Minimum - /// value is 1. - /// - /// - /// 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. - /// - /// - /// TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - /// - /// - /// 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. - /// - /// - /// Number of seconds after which the probe times out. Defaults to 1 second. Minimum - /// value is 1. More info: - /// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - /// - public V1Probe(V1ExecAction exec = null, int? failureThreshold = null, V1HTTPGetAction httpGet = null, int? initialDelaySeconds = null, int? periodSeconds = null, int? successThreshold = null, V1TCPSocketAction tcpSocket = null, long? terminationGracePeriodSeconds = null, int? timeoutSeconds = null) - { - Exec = exec; - FailureThreshold = failureThreshold; - HttpGet = httpGet; - InitialDelaySeconds = initialDelaySeconds; - PeriodSeconds = periodSeconds; - SuccessThreshold = successThreshold; - TcpSocket = tcpSocket; - TerminationGracePeriodSeconds = terminationGracePeriodSeconds; - TimeoutSeconds = timeoutSeconds; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// One and only one of the following should be specified. Exec specifies the action - /// to take. - /// - [JsonProperty(PropertyName = "exec")] - public V1ExecAction Exec { get; set; } - - /// - /// Minimum consecutive failures for the probe to be considered failed after having - /// succeeded. Defaults to 3. Minimum value is 1. - /// - [JsonProperty(PropertyName = "failureThreshold")] - public int? FailureThreshold { get; set; } - - /// - /// HTTPGet specifies the http request to perform. - /// - [JsonProperty(PropertyName = "httpGet")] - public V1HTTPGetAction HttpGet { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "initialDelaySeconds")] - public int? InitialDelaySeconds { get; set; } - - /// - /// How often (in seconds) to perform the probe. Default to 10 seconds. Minimum - /// value is 1. - /// - [JsonProperty(PropertyName = "periodSeconds")] - public int? PeriodSeconds { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "successThreshold")] - public int? SuccessThreshold { get; set; } - - /// - /// TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - /// - [JsonProperty(PropertyName = "tcpSocket")] - public V1TCPSocketAction TcpSocket { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "terminationGracePeriodSeconds")] - public long? TerminationGracePeriodSeconds { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "timeoutSeconds")] - public int? TimeoutSeconds { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Exec?.Validate(); - HttpGet?.Validate(); - TcpSocket?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ProjectedVolumeSource.cs b/src/KubernetesClient/generated/Models/V1ProjectedVolumeSource.cs deleted file mode 100644 index c7a2c69af..000000000 --- a/src/KubernetesClient/generated/Models/V1ProjectedVolumeSource.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents a projected volume source - /// - public partial class V1ProjectedVolumeSource - { - /// - /// Initializes a new instance of the V1ProjectedVolumeSource class. - /// - public V1ProjectedVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ProjectedVolumeSource class. - /// - /// - /// 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. - /// - /// - /// list of volume projections - /// - public V1ProjectedVolumeSource(int? defaultMode = null, IList sources = null) - { - DefaultMode = defaultMode; - Sources = sources; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "defaultMode")] - public int? DefaultMode { get; set; } - - /// - /// list of volume projections - /// - [JsonProperty(PropertyName = "sources")] - public IList Sources { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Sources != null){ - foreach(var obj in Sources) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1QuobyteVolumeSource.cs b/src/KubernetesClient/generated/Models/V1QuobyteVolumeSource.cs deleted file mode 100644 index ada5c50ad..000000000 --- a/src/KubernetesClient/generated/Models/V1QuobyteVolumeSource.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do - /// not support ownership management or SELinux relabeling. - /// - public partial class V1QuobyteVolumeSource - { - /// - /// Initializes a new instance of the V1QuobyteVolumeSource class. - /// - public V1QuobyteVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1QuobyteVolumeSource class. - /// - /// - /// 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 - /// - /// - /// Volume is a string that references an already created Quobyte volume by name. - /// - /// - /// Group to map volume access to Default is no group - /// - /// - /// ReadOnly here will force the Quobyte volume to be mounted with read-only - /// permissions. Defaults to false. - /// - /// - /// Tenant owning the given Quobyte volume in the Backend Used with dynamically - /// provisioned Quobyte volumes, value is set by the plugin - /// - /// - /// User to map volume access to Defaults to serivceaccount user - /// - public V1QuobyteVolumeSource(string registry, string volume, string group = null, bool? readOnlyProperty = null, string tenant = null, string user = null) - { - Group = group; - ReadOnlyProperty = readOnlyProperty; - Registry = registry; - Tenant = tenant; - User = user; - Volume = volume; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Group to map volume access to Default is no group - /// - [JsonProperty(PropertyName = "group")] - public string Group { get; set; } - - /// - /// ReadOnly here will force the Quobyte volume to be mounted with read-only - /// permissions. Defaults to false. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "registry")] - public string Registry { get; set; } - - /// - /// Tenant owning the given Quobyte volume in the Backend Used with dynamically - /// provisioned Quobyte volumes, value is set by the plugin - /// - [JsonProperty(PropertyName = "tenant")] - public string Tenant { get; set; } - - /// - /// User to map volume access to Defaults to serivceaccount user - /// - [JsonProperty(PropertyName = "user")] - public string User { get; set; } - - /// - /// Volume is a string that references an already created Quobyte volume by name. - /// - [JsonProperty(PropertyName = "volume")] - public string Volume { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1RBDPersistentVolumeSource.cs b/src/KubernetesClient/generated/Models/V1RBDPersistentVolumeSource.cs deleted file mode 100644 index 86f511f90..000000000 --- a/src/KubernetesClient/generated/Models/V1RBDPersistentVolumeSource.cs +++ /dev/null @@ -1,155 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD - /// volumes support ownership management and SELinux relabeling. - /// - public partial class V1RBDPersistentVolumeSource - { - /// - /// Initializes a new instance of the V1RBDPersistentVolumeSource class. - /// - public V1RBDPersistentVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1RBDPersistentVolumeSource class. - /// - /// - /// The rados image name. More info: - /// https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - /// - /// - /// A collection of Ceph monitors. More info: - /// https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - /// - /// - /// 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 - /// - /// - /// 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 - /// - /// - /// The rados pool name. Default is rbd. More info: - /// https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - /// - /// - /// 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 - /// - /// - /// 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 - /// - /// - /// The rados user name. Default is admin. More info: - /// https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - /// - public V1RBDPersistentVolumeSource(string image, IList monitors, string fsType = null, string keyring = null, string pool = null, bool? readOnlyProperty = null, V1SecretReference secretRef = null, string user = null) - { - FsType = fsType; - Image = image; - Keyring = keyring; - Monitors = monitors; - Pool = pool; - ReadOnlyProperty = readOnlyProperty; - SecretRef = secretRef; - User = user; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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 - /// - [JsonProperty(PropertyName = "fsType")] - public string FsType { get; set; } - - /// - /// The rados image name. More info: - /// https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "image")] - public string Image { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "keyring")] - public string Keyring { get; set; } - - /// - /// A collection of Ceph monitors. More info: - /// https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "monitors")] - public IList Monitors { get; set; } - - /// - /// The rados pool name. Default is rbd. More info: - /// https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "pool")] - public string Pool { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "secretRef")] - public V1SecretReference SecretRef { get; set; } - - /// - /// The rados user name. Default is admin. More info: - /// https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "user")] - public string User { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - SecretRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1RBDVolumeSource.cs b/src/KubernetesClient/generated/Models/V1RBDVolumeSource.cs deleted file mode 100644 index bedcdeff9..000000000 --- a/src/KubernetesClient/generated/Models/V1RBDVolumeSource.cs +++ /dev/null @@ -1,155 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD - /// volumes support ownership management and SELinux relabeling. - /// - public partial class V1RBDVolumeSource - { - /// - /// Initializes a new instance of the V1RBDVolumeSource class. - /// - public V1RBDVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1RBDVolumeSource class. - /// - /// - /// The rados image name. More info: - /// https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - /// - /// - /// A collection of Ceph monitors. More info: - /// https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - /// - /// - /// 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 - /// - /// - /// 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 - /// - /// - /// The rados pool name. Default is rbd. More info: - /// https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - /// - /// - /// 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 - /// - /// - /// 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 - /// - /// - /// The rados user name. Default is admin. More info: - /// https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - /// - public V1RBDVolumeSource(string image, IList monitors, string fsType = null, string keyring = null, string pool = null, bool? readOnlyProperty = null, V1LocalObjectReference secretRef = null, string user = null) - { - FsType = fsType; - Image = image; - Keyring = keyring; - Monitors = monitors; - Pool = pool; - ReadOnlyProperty = readOnlyProperty; - SecretRef = secretRef; - User = user; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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 - /// - [JsonProperty(PropertyName = "fsType")] - public string FsType { get; set; } - - /// - /// The rados image name. More info: - /// https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "image")] - public string Image { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "keyring")] - public string Keyring { get; set; } - - /// - /// A collection of Ceph monitors. More info: - /// https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "monitors")] - public IList Monitors { get; set; } - - /// - /// The rados pool name. Default is rbd. More info: - /// https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "pool")] - public string Pool { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "secretRef")] - public V1LocalObjectReference SecretRef { get; set; } - - /// - /// The rados user name. Default is admin. More info: - /// https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "user")] - public string User { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - SecretRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ReplicaSet.cs b/src/KubernetesClient/generated/Models/V1ReplicaSet.cs deleted file mode 100644 index 4b382bef3..000000000 --- a/src/KubernetesClient/generated/Models/V1ReplicaSet.cs +++ /dev/null @@ -1,131 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ReplicaSet ensures that a specified number of pod replicas are running at any - /// given time. - /// - public partial class V1ReplicaSet - { - /// - /// Initializes a new instance of the V1ReplicaSet class. - /// - public V1ReplicaSet() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ReplicaSet class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// If the Labels of a ReplicaSet are empty, they are defaulted to be the same as - /// the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Spec defines the specification of the desired behavior of the ReplicaSet. More - /// info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - /// - /// Status is the most recently observed status of the ReplicaSet. This data may be - /// out of date by some window of time. Populated by the system. Read-only. More - /// info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - public V1ReplicaSet(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1ReplicaSetSpec spec = null, V1ReplicaSetStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// If the Labels of a ReplicaSet are empty, they are defaulted to be the same as - /// the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Spec defines the specification of the desired behavior of the ReplicaSet. More - /// info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1ReplicaSetSpec Spec { get; set; } - - /// - /// Status is the most recently observed status of the ReplicaSet. This data may be - /// out of date by some window of time. Populated by the system. Read-only. More - /// info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "status")] - public V1ReplicaSetStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ReplicaSetCondition.cs b/src/KubernetesClient/generated/Models/V1ReplicaSetCondition.cs deleted file mode 100644 index 57557e758..000000000 --- a/src/KubernetesClient/generated/Models/V1ReplicaSetCondition.cs +++ /dev/null @@ -1,101 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ReplicaSetCondition describes the state of a replica set at a certain point. - /// - public partial class V1ReplicaSetCondition - { - /// - /// Initializes a new instance of the V1ReplicaSetCondition class. - /// - public V1ReplicaSetCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ReplicaSetCondition class. - /// - /// - /// Status of the condition, one of True, False, Unknown. - /// - /// - /// Type of replica set condition. - /// - /// - /// The last time the condition transitioned from one status to another. - /// - /// - /// A human readable message indicating details about the transition. - /// - /// - /// The reason for the condition's last transition. - /// - public V1ReplicaSetCondition(string status, string type, System.DateTime? lastTransitionTime = null, string message = null, string reason = null) - { - LastTransitionTime = lastTransitionTime; - Message = message; - Reason = reason; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The last time the condition transitioned from one status to another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// A human readable message indicating details about the transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// The reason for the condition's last transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Status of the condition, one of True, False, Unknown. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Type of replica set condition. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ReplicaSetList.cs b/src/KubernetesClient/generated/Models/V1ReplicaSetList.cs deleted file mode 100644 index 711f68044..000000000 --- a/src/KubernetesClient/generated/Models/V1ReplicaSetList.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ReplicaSetList is a collection of ReplicaSets. - /// - public partial class V1ReplicaSetList - { - /// - /// Initializes a new instance of the V1ReplicaSetList class. - /// - public V1ReplicaSetList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ReplicaSetList class. - /// - /// - /// List of ReplicaSets. More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - public V1ReplicaSetList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// List of ReplicaSets. More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ReplicaSetSpec.cs b/src/KubernetesClient/generated/Models/V1ReplicaSetSpec.cs deleted file mode 100644 index 041de166e..000000000 --- a/src/KubernetesClient/generated/Models/V1ReplicaSetSpec.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ReplicaSetSpec is the specification of a ReplicaSet. - /// - public partial class V1ReplicaSetSpec - { - /// - /// Initializes a new instance of the V1ReplicaSetSpec class. - /// - public V1ReplicaSetSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ReplicaSetSpec class. - /// - /// - /// Selector is a label query over pods that should match the replica count. Label - /// keys and values that must match in order to be controlled by this replica set. - /// It must match the pod template's labels. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - /// - /// - /// 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) - /// - /// - /// 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 - /// - /// - /// Template is the object that describes the pod that will be created if - /// insufficient replicas are detected. More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - /// - public V1ReplicaSetSpec(V1LabelSelector selector, int? minReadySeconds = null, int? replicas = null, V1PodTemplateSpec template = null) - { - MinReadySeconds = minReadySeconds; - Replicas = replicas; - Selector = selector; - Template = template; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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) - /// - [JsonProperty(PropertyName = "minReadySeconds")] - public int? MinReadySeconds { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "replicas")] - public int? Replicas { get; set; } - - /// - /// Selector is a label query over pods that should match the replica count. Label - /// keys and values that must match in order to be controlled by this replica set. - /// It must match the pod template's labels. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - /// - [JsonProperty(PropertyName = "selector")] - public V1LabelSelector Selector { get; set; } - - /// - /// Template is the object that describes the pod that will be created if - /// insufficient replicas are detected. More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - /// - [JsonProperty(PropertyName = "template")] - public V1PodTemplateSpec Template { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Selector == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Selector"); - } - Selector?.Validate(); - Template?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ReplicaSetStatus.cs b/src/KubernetesClient/generated/Models/V1ReplicaSetStatus.cs deleted file mode 100644 index d99cc94f9..000000000 --- a/src/KubernetesClient/generated/Models/V1ReplicaSetStatus.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ReplicaSetStatus represents the current status of a ReplicaSet. - /// - public partial class V1ReplicaSetStatus - { - /// - /// Initializes a new instance of the V1ReplicaSetStatus class. - /// - public V1ReplicaSetStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ReplicaSetStatus class. - /// - /// - /// Replicas is the most recently oberved number of replicas. More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - /// - /// - /// The number of available replicas (ready for at least minReadySeconds) for this - /// replica set. - /// - /// - /// Represents the latest available observations of a replica set's current state. - /// - /// - /// The number of pods that have labels matching the labels of the pod template of - /// the replicaset. - /// - /// - /// ObservedGeneration reflects the generation of the most recently observed - /// ReplicaSet. - /// - /// - /// The number of ready replicas for this replica set. - /// - public V1ReplicaSetStatus(int replicas, int? availableReplicas = null, IList conditions = null, int? fullyLabeledReplicas = null, long? observedGeneration = null, int? readyReplicas = null) - { - AvailableReplicas = availableReplicas; - Conditions = conditions; - FullyLabeledReplicas = fullyLabeledReplicas; - ObservedGeneration = observedGeneration; - ReadyReplicas = readyReplicas; - Replicas = replicas; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The number of available replicas (ready for at least minReadySeconds) for this - /// replica set. - /// - [JsonProperty(PropertyName = "availableReplicas")] - public int? AvailableReplicas { get; set; } - - /// - /// Represents the latest available observations of a replica set's current state. - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// The number of pods that have labels matching the labels of the pod template of - /// the replicaset. - /// - [JsonProperty(PropertyName = "fullyLabeledReplicas")] - public int? FullyLabeledReplicas { get; set; } - - /// - /// ObservedGeneration reflects the generation of the most recently observed - /// ReplicaSet. - /// - [JsonProperty(PropertyName = "observedGeneration")] - public long? ObservedGeneration { get; set; } - - /// - /// The number of ready replicas for this replica set. - /// - [JsonProperty(PropertyName = "readyReplicas")] - public int? ReadyReplicas { get; set; } - - /// - /// Replicas is the most recently oberved number of replicas. More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - /// - [JsonProperty(PropertyName = "replicas")] - public int Replicas { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Conditions != null){ - foreach(var obj in Conditions) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ReplicationController.cs b/src/KubernetesClient/generated/Models/V1ReplicationController.cs deleted file mode 100644 index c3566cb3b..000000000 --- a/src/KubernetesClient/generated/Models/V1ReplicationController.cs +++ /dev/null @@ -1,132 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ReplicationController represents the configuration of a replication controller. - /// - public partial class V1ReplicationController - { - /// - /// Initializes a new instance of the V1ReplicationController class. - /// - public V1ReplicationController() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ReplicationController class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// If the Labels of a ReplicationController are empty, they are defaulted to be the - /// same as the Pod(s) that the replication controller manages. Standard object's - /// metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Spec defines the specification of the desired behavior of the replication - /// controller. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - /// - /// Status is the most recently observed status of the replication controller. This - /// data may be out of date by some window of time. Populated by the system. - /// Read-only. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - public V1ReplicationController(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1ReplicationControllerSpec spec = null, V1ReplicationControllerStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// If the Labels of a ReplicationController are empty, they are defaulted to be the - /// same as the Pod(s) that the replication controller manages. Standard object's - /// metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Spec defines the specification of the desired behavior of the replication - /// controller. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1ReplicationControllerSpec Spec { get; set; } - - /// - /// Status is the most recently observed status of the replication controller. This - /// data may be out of date by some window of time. Populated by the system. - /// Read-only. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "status")] - public V1ReplicationControllerStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ReplicationControllerCondition.cs b/src/KubernetesClient/generated/Models/V1ReplicationControllerCondition.cs deleted file mode 100644 index cf977ec55..000000000 --- a/src/KubernetesClient/generated/Models/V1ReplicationControllerCondition.cs +++ /dev/null @@ -1,102 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ReplicationControllerCondition describes the state of a replication controller - /// at a certain point. - /// - public partial class V1ReplicationControllerCondition - { - /// - /// Initializes a new instance of the V1ReplicationControllerCondition class. - /// - public V1ReplicationControllerCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ReplicationControllerCondition class. - /// - /// - /// Status of the condition, one of True, False, Unknown. - /// - /// - /// Type of replication controller condition. - /// - /// - /// The last time the condition transitioned from one status to another. - /// - /// - /// A human readable message indicating details about the transition. - /// - /// - /// The reason for the condition's last transition. - /// - public V1ReplicationControllerCondition(string status, string type, System.DateTime? lastTransitionTime = null, string message = null, string reason = null) - { - LastTransitionTime = lastTransitionTime; - Message = message; - Reason = reason; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The last time the condition transitioned from one status to another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// A human readable message indicating details about the transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// The reason for the condition's last transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Status of the condition, one of True, False, Unknown. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Type of replication controller condition. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ReplicationControllerList.cs b/src/KubernetesClient/generated/Models/V1ReplicationControllerList.cs deleted file mode 100644 index 0ff02897a..000000000 --- a/src/KubernetesClient/generated/Models/V1ReplicationControllerList.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ReplicationControllerList is a collection of replication controllers. - /// - public partial class V1ReplicationControllerList - { - /// - /// Initializes a new instance of the V1ReplicationControllerList class. - /// - public V1ReplicationControllerList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ReplicationControllerList class. - /// - /// - /// List of replication controllers. More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - public V1ReplicationControllerList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// List of replication controllers. More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ReplicationControllerSpec.cs b/src/KubernetesClient/generated/Models/V1ReplicationControllerSpec.cs deleted file mode 100644 index 3555a2a3c..000000000 --- a/src/KubernetesClient/generated/Models/V1ReplicationControllerSpec.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ReplicationControllerSpec is the specification of a replication controller. - /// - public partial class V1ReplicationControllerSpec - { - /// - /// Initializes a new instance of the V1ReplicationControllerSpec class. - /// - public V1ReplicationControllerSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ReplicationControllerSpec class. - /// - /// - /// 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) - /// - /// - /// 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 - /// - /// - /// 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 - /// - /// - /// Template is the object that describes the pod that will be created if - /// insufficient replicas are detected. This takes precedence over a TemplateRef. - /// More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - /// - public V1ReplicationControllerSpec(int? minReadySeconds = null, int? replicas = null, IDictionary selector = null, V1PodTemplateSpec template = null) - { - MinReadySeconds = minReadySeconds; - Replicas = replicas; - Selector = selector; - Template = template; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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) - /// - [JsonProperty(PropertyName = "minReadySeconds")] - public int? MinReadySeconds { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "replicas")] - public int? Replicas { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "selector")] - public IDictionary Selector { get; set; } - - /// - /// Template is the object that describes the pod that will be created if - /// insufficient replicas are detected. This takes precedence over a TemplateRef. - /// More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - /// - [JsonProperty(PropertyName = "template")] - public V1PodTemplateSpec Template { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Template?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ReplicationControllerStatus.cs b/src/KubernetesClient/generated/Models/V1ReplicationControllerStatus.cs deleted file mode 100644 index c91c11017..000000000 --- a/src/KubernetesClient/generated/Models/V1ReplicationControllerStatus.cs +++ /dev/null @@ -1,128 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ReplicationControllerStatus represents the current status of a replication - /// controller. - /// - public partial class V1ReplicationControllerStatus - { - /// - /// Initializes a new instance of the V1ReplicationControllerStatus class. - /// - public V1ReplicationControllerStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ReplicationControllerStatus class. - /// - /// - /// Replicas is the most recently oberved number of replicas. More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller - /// - /// - /// The number of available replicas (ready for at least minReadySeconds) for this - /// replication controller. - /// - /// - /// Represents the latest available observations of a replication controller's - /// current state. - /// - /// - /// The number of pods that have labels matching the labels of the pod template of - /// the replication controller. - /// - /// - /// ObservedGeneration reflects the generation of the most recently observed - /// replication controller. - /// - /// - /// The number of ready replicas for this replication controller. - /// - public V1ReplicationControllerStatus(int replicas, int? availableReplicas = null, IList conditions = null, int? fullyLabeledReplicas = null, long? observedGeneration = null, int? readyReplicas = null) - { - AvailableReplicas = availableReplicas; - Conditions = conditions; - FullyLabeledReplicas = fullyLabeledReplicas; - ObservedGeneration = observedGeneration; - ReadyReplicas = readyReplicas; - Replicas = replicas; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The number of available replicas (ready for at least minReadySeconds) for this - /// replication controller. - /// - [JsonProperty(PropertyName = "availableReplicas")] - public int? AvailableReplicas { get; set; } - - /// - /// Represents the latest available observations of a replication controller's - /// current state. - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// The number of pods that have labels matching the labels of the pod template of - /// the replication controller. - /// - [JsonProperty(PropertyName = "fullyLabeledReplicas")] - public int? FullyLabeledReplicas { get; set; } - - /// - /// ObservedGeneration reflects the generation of the most recently observed - /// replication controller. - /// - [JsonProperty(PropertyName = "observedGeneration")] - public long? ObservedGeneration { get; set; } - - /// - /// The number of ready replicas for this replication controller. - /// - [JsonProperty(PropertyName = "readyReplicas")] - public int? ReadyReplicas { get; set; } - - /// - /// Replicas is the most recently oberved number of replicas. More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller - /// - [JsonProperty(PropertyName = "replicas")] - public int Replicas { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Conditions != null){ - foreach(var obj in Conditions) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ResourceAttributes.cs b/src/KubernetesClient/generated/Models/V1ResourceAttributes.cs deleted file mode 100644 index 90dc22484..000000000 --- a/src/KubernetesClient/generated/Models/V1ResourceAttributes.cs +++ /dev/null @@ -1,134 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ResourceAttributes includes the authorization attributes available for resource - /// requests to the Authorizer interface - /// - public partial class V1ResourceAttributes - { - /// - /// Initializes a new instance of the V1ResourceAttributes class. - /// - public V1ResourceAttributes() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ResourceAttributes class. - /// - /// - /// Group is the API Group of the Resource. "*" means all. - /// - /// - /// Name is the name of the resource being requested for a "get" or deleted for a - /// "delete". "" (empty) means all. - /// - /// - /// 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 - /// - /// - /// Resource is one of the existing resource types. "*" means all. - /// - /// - /// Subresource is one of the existing resource types. "" means none. - /// - /// - /// Verb is a kubernetes resource API verb, like: get, list, watch, create, update, - /// delete, proxy. "*" means all. - /// - /// - /// Version is the API Version of the Resource. "*" means all. - /// - public V1ResourceAttributes(string group = null, string name = null, string namespaceProperty = null, string resource = null, string subresource = null, string verb = null, string version = null) - { - Group = group; - Name = name; - NamespaceProperty = namespaceProperty; - Resource = resource; - Subresource = subresource; - Verb = verb; - Version = version; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Group is the API Group of the Resource. "*" means all. - /// - [JsonProperty(PropertyName = "group")] - public string Group { get; set; } - - /// - /// Name is the name of the resource being requested for a "get" or deleted for a - /// "delete". "" (empty) means all. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "namespace")] - public string NamespaceProperty { get; set; } - - /// - /// Resource is one of the existing resource types. "*" means all. - /// - [JsonProperty(PropertyName = "resource")] - public string Resource { get; set; } - - /// - /// Subresource is one of the existing resource types. "" means none. - /// - [JsonProperty(PropertyName = "subresource")] - public string Subresource { get; set; } - - /// - /// Verb is a kubernetes resource API verb, like: get, list, watch, create, update, - /// delete, proxy. "*" means all. - /// - [JsonProperty(PropertyName = "verb")] - public string Verb { get; set; } - - /// - /// Version is the API Version of the Resource. "*" means all. - /// - [JsonProperty(PropertyName = "version")] - public string Version { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ResourceFieldSelector.cs b/src/KubernetesClient/generated/Models/V1ResourceFieldSelector.cs deleted file mode 100644 index 30c98dc2a..000000000 --- a/src/KubernetesClient/generated/Models/V1ResourceFieldSelector.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ResourceFieldSelector represents container resources (cpu, memory) and their - /// output format - /// - public partial class V1ResourceFieldSelector - { - /// - /// Initializes a new instance of the V1ResourceFieldSelector class. - /// - public V1ResourceFieldSelector() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ResourceFieldSelector class. - /// - /// - /// Required: resource to select - /// - /// - /// Container name: required for volumes, optional for env vars - /// - /// - /// Specifies the output format of the exposed resources, defaults to "1" - /// - public V1ResourceFieldSelector(string resource, string containerName = null, ResourceQuantity divisor = null) - { - ContainerName = containerName; - Divisor = divisor; - Resource = resource; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Container name: required for volumes, optional for env vars - /// - [JsonProperty(PropertyName = "containerName")] - public string ContainerName { get; set; } - - /// - /// Specifies the output format of the exposed resources, defaults to "1" - /// - [JsonProperty(PropertyName = "divisor")] - public ResourceQuantity Divisor { get; set; } - - /// - /// Required: resource to select - /// - [JsonProperty(PropertyName = "resource")] - public string Resource { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Divisor?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ResourceQuota.cs b/src/KubernetesClient/generated/Models/V1ResourceQuota.cs deleted file mode 100644 index 48e1d735a..000000000 --- a/src/KubernetesClient/generated/Models/V1ResourceQuota.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ResourceQuota sets aggregate quota restrictions enforced per namespace - /// - public partial class V1ResourceQuota - { - /// - /// Initializes a new instance of the V1ResourceQuota class. - /// - public V1ResourceQuota() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ResourceQuota class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Spec defines the desired quota. - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - /// - /// Status defines the actual enforced quota and its current usage. - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - public V1ResourceQuota(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1ResourceQuotaSpec spec = null, V1ResourceQuotaStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Spec defines the desired quota. - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1ResourceQuotaSpec Spec { get; set; } - - /// - /// Status defines the actual enforced quota and its current usage. - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "status")] - public V1ResourceQuotaStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ResourceQuotaList.cs b/src/KubernetesClient/generated/Models/V1ResourceQuotaList.cs deleted file mode 100644 index cf7c80764..000000000 --- a/src/KubernetesClient/generated/Models/V1ResourceQuotaList.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ResourceQuotaList is a list of ResourceQuota items. - /// - public partial class V1ResourceQuotaList - { - /// - /// Initializes a new instance of the V1ResourceQuotaList class. - /// - public V1ResourceQuotaList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ResourceQuotaList class. - /// - /// - /// Items is a list of ResourceQuota objects. More info: - /// https://kubernetes.io/docs/concepts/policy/resource-quotas/ - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - public V1ResourceQuotaList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is a list of ResourceQuota objects. More info: - /// https://kubernetes.io/docs/concepts/policy/resource-quotas/ - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ResourceQuotaSpec.cs b/src/KubernetesClient/generated/Models/V1ResourceQuotaSpec.cs deleted file mode 100644 index def08225c..000000000 --- a/src/KubernetesClient/generated/Models/V1ResourceQuotaSpec.cs +++ /dev/null @@ -1,92 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ResourceQuotaSpec defines the desired hard limits to enforce for Quota. - /// - public partial class V1ResourceQuotaSpec - { - /// - /// Initializes a new instance of the V1ResourceQuotaSpec class. - /// - public V1ResourceQuotaSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ResourceQuotaSpec class. - /// - /// - /// hard is the set of desired hard limits for each named resource. More info: - /// https://kubernetes.io/docs/concepts/policy/resource-quotas/ - /// - /// - /// scopeSelector is also a collection of filters like scopes that must match each - /// object tracked by a quota but expressed using ScopeSelectorOperator in - /// combination with possible values. For a resource to match, both scopes AND - /// scopeSelector (if specified in spec), must be matched. - /// - /// - /// A collection of filters that must match each object tracked by a quota. If not - /// specified, the quota matches all objects. - /// - public V1ResourceQuotaSpec(IDictionary hard = null, V1ScopeSelector scopeSelector = null, IList scopes = null) - { - Hard = hard; - ScopeSelector = scopeSelector; - Scopes = scopes; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// hard is the set of desired hard limits for each named resource. More info: - /// https://kubernetes.io/docs/concepts/policy/resource-quotas/ - /// - [JsonProperty(PropertyName = "hard")] - public IDictionary Hard { get; set; } - - /// - /// scopeSelector is also a collection of filters like scopes that must match each - /// object tracked by a quota but expressed using ScopeSelectorOperator in - /// combination with possible values. For a resource to match, both scopes AND - /// scopeSelector (if specified in spec), must be matched. - /// - [JsonProperty(PropertyName = "scopeSelector")] - public V1ScopeSelector ScopeSelector { get; set; } - - /// - /// A collection of filters that must match each object tracked by a quota. If not - /// specified, the quota matches all objects. - /// - [JsonProperty(PropertyName = "scopes")] - public IList Scopes { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - ScopeSelector?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ResourceQuotaStatus.cs b/src/KubernetesClient/generated/Models/V1ResourceQuotaStatus.cs deleted file mode 100644 index d234e0803..000000000 --- a/src/KubernetesClient/generated/Models/V1ResourceQuotaStatus.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ResourceQuotaStatus defines the enforced hard limits and observed use. - /// - public partial class V1ResourceQuotaStatus - { - /// - /// Initializes a new instance of the V1ResourceQuotaStatus class. - /// - public V1ResourceQuotaStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ResourceQuotaStatus class. - /// - /// - /// Hard is the set of enforced hard limits for each named resource. More info: - /// https://kubernetes.io/docs/concepts/policy/resource-quotas/ - /// - /// - /// Used is the current observed total usage of the resource in the namespace. - /// - public V1ResourceQuotaStatus(IDictionary hard = null, IDictionary used = null) - { - Hard = hard; - Used = used; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Hard is the set of enforced hard limits for each named resource. More info: - /// https://kubernetes.io/docs/concepts/policy/resource-quotas/ - /// - [JsonProperty(PropertyName = "hard")] - public IDictionary Hard { get; set; } - - /// - /// Used is the current observed total usage of the resource in the namespace. - /// - [JsonProperty(PropertyName = "used")] - public IDictionary Used { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ResourceRequirements.cs b/src/KubernetesClient/generated/Models/V1ResourceRequirements.cs deleted file mode 100644 index 45667fc8b..000000000 --- a/src/KubernetesClient/generated/Models/V1ResourceRequirements.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ResourceRequirements describes the compute resource requirements. - /// - public partial class V1ResourceRequirements - { - /// - /// Initializes a new instance of the V1ResourceRequirements class. - /// - public V1ResourceRequirements() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ResourceRequirements class. - /// - /// - /// Limits describes the maximum amount of compute resources allowed. More info: - /// https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - /// - /// - /// 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-resources-containers/ - /// - public V1ResourceRequirements(IDictionary limits = null, IDictionary requests = null) - { - Limits = limits; - Requests = requests; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Limits describes the maximum amount of compute resources allowed. More info: - /// https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - /// - [JsonProperty(PropertyName = "limits")] - public IDictionary Limits { get; set; } - - /// - /// 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-resources-containers/ - /// - [JsonProperty(PropertyName = "requests")] - public IDictionary Requests { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ResourceRule.cs b/src/KubernetesClient/generated/Models/V1ResourceRule.cs deleted file mode 100644 index 8ede6e6bd..000000000 --- a/src/KubernetesClient/generated/Models/V1ResourceRule.cs +++ /dev/null @@ -1,107 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ResourceRule is the list of actions the subject is allowed to perform on - /// resources. The list ordering isn't significant, may contain duplicates, and - /// possibly be incomplete. - /// - public partial class V1ResourceRule - { - /// - /// Initializes a new instance of the V1ResourceRule class. - /// - public V1ResourceRule() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ResourceRule class. - /// - /// - /// Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, - /// update, delete, proxy. "*" means all. - /// - /// - /// APIGroups is the name of the APIGroup that contains the resources. If multiple - /// API groups are specified, any action requested against one of the enumerated - /// resources in any API group will be allowed. "*" means all. - /// - /// - /// ResourceNames is an optional white list of names that the rule applies to. An - /// empty set means that everything is allowed. "*" means all. - /// - /// - /// Resources is a list of resources this rule applies to. "*" means all in the - /// specified apiGroups. - /// "*/foo" represents the subresource 'foo' for all resources in the specified - /// apiGroups. - /// - public V1ResourceRule(IList verbs, IList apiGroups = null, IList resourceNames = null, IList resources = null) - { - ApiGroups = apiGroups; - ResourceNames = resourceNames; - Resources = resources; - Verbs = verbs; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIGroups is the name of the APIGroup that contains the resources. If multiple - /// API groups are specified, any action requested against one of the enumerated - /// resources in any API group will be allowed. "*" means all. - /// - [JsonProperty(PropertyName = "apiGroups")] - public IList ApiGroups { get; set; } - - /// - /// ResourceNames is an optional white list of names that the rule applies to. An - /// empty set means that everything is allowed. "*" means all. - /// - [JsonProperty(PropertyName = "resourceNames")] - public IList ResourceNames { get; set; } - - /// - /// Resources is a list of resources this rule applies to. "*" means all in the - /// specified apiGroups. - /// "*/foo" represents the subresource 'foo' for all resources in the specified - /// apiGroups. - /// - [JsonProperty(PropertyName = "resources")] - public IList Resources { get; set; } - - /// - /// Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, - /// update, delete, proxy. "*" means all. - /// - [JsonProperty(PropertyName = "verbs")] - public IList Verbs { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Role.cs b/src/KubernetesClient/generated/Models/V1Role.cs deleted file mode 100644 index 53aeba3c5..000000000 --- a/src/KubernetesClient/generated/Models/V1Role.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Role is a namespaced, logical grouping of PolicyRules that can be referenced as - /// a unit by a RoleBinding. - /// - public partial class V1Role - { - /// - /// Initializes a new instance of the V1Role class. - /// - public V1Role() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Role class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. - /// - /// - /// Rules holds all the PolicyRules for this Role - /// - public V1Role(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, IList rules = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Rules = rules; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Rules holds all the PolicyRules for this Role - /// - [JsonProperty(PropertyName = "rules")] - public IList Rules { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - if (Rules != null){ - foreach(var obj in Rules) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1RoleBinding.cs b/src/KubernetesClient/generated/Models/V1RoleBinding.cs deleted file mode 100644 index f404f7077..000000000 --- a/src/KubernetesClient/generated/Models/V1RoleBinding.cs +++ /dev/null @@ -1,132 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1RoleBinding - { - /// - /// Initializes a new instance of the V1RoleBinding class. - /// - public V1RoleBinding() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1RoleBinding class. - /// - /// - /// RoleRef can reference a Role in the current namespace or a ClusterRole in the - /// global namespace. If the RoleRef cannot be resolved, the Authorizer must return - /// an error. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. - /// - /// - /// Subjects holds references to the objects the role applies to. - /// - public V1RoleBinding(V1RoleRef roleRef, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, IList subjects = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - RoleRef = roleRef; - Subjects = subjects; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// RoleRef can reference a Role in the current namespace or a ClusterRole in the - /// global namespace. If the RoleRef cannot be resolved, the Authorizer must return - /// an error. - /// - [JsonProperty(PropertyName = "roleRef")] - public V1RoleRef RoleRef { get; set; } - - /// - /// Subjects holds references to the objects the role applies to. - /// - [JsonProperty(PropertyName = "subjects")] - public IList Subjects { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (RoleRef == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "RoleRef"); - } - Metadata?.Validate(); - RoleRef?.Validate(); - if (Subjects != null){ - foreach(var obj in Subjects) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1RoleBindingList.cs b/src/KubernetesClient/generated/Models/V1RoleBindingList.cs deleted file mode 100644 index 1bca18a56..000000000 --- a/src/KubernetesClient/generated/Models/V1RoleBindingList.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// RoleBindingList is a collection of RoleBindings - /// - public partial class V1RoleBindingList - { - /// - /// Initializes a new instance of the V1RoleBindingList class. - /// - public V1RoleBindingList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1RoleBindingList class. - /// - /// - /// Items is a list of RoleBindings - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. - /// - public V1RoleBindingList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is a list of RoleBindings - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1RoleList.cs b/src/KubernetesClient/generated/Models/V1RoleList.cs deleted file mode 100644 index c78b0f697..000000000 --- a/src/KubernetesClient/generated/Models/V1RoleList.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// RoleList is a collection of Roles - /// - public partial class V1RoleList - { - /// - /// Initializes a new instance of the V1RoleList class. - /// - public V1RoleList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1RoleList class. - /// - /// - /// Items is a list of Roles - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. - /// - public V1RoleList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is a list of Roles - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1RoleRef.cs b/src/KubernetesClient/generated/Models/V1RoleRef.cs deleted file mode 100644 index a9e41b461..000000000 --- a/src/KubernetesClient/generated/Models/V1RoleRef.cs +++ /dev/null @@ -1,81 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// RoleRef contains information that points to the role being used - /// - public partial class V1RoleRef - { - /// - /// Initializes a new instance of the V1RoleRef class. - /// - public V1RoleRef() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1RoleRef class. - /// - /// - /// APIGroup is the group for the resource being referenced - /// - /// - /// Kind is the type of resource being referenced - /// - /// - /// Name is the name of resource being referenced - /// - public V1RoleRef(string apiGroup, string kind, string name) - { - ApiGroup = apiGroup; - Kind = kind; - Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIGroup is the group for the resource being referenced - /// - [JsonProperty(PropertyName = "apiGroup")] - public string ApiGroup { get; set; } - - /// - /// Kind is the type of resource being referenced - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Name is the name of resource being referenced - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1RollingUpdateDaemonSet.cs b/src/KubernetesClient/generated/Models/V1RollingUpdateDaemonSet.cs deleted file mode 100644 index 1f00d327c..000000000 --- a/src/KubernetesClient/generated/Models/V1RollingUpdateDaemonSet.cs +++ /dev/null @@ -1,127 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Spec to control the desired behavior of daemon set rolling update. - /// - public partial class V1RollingUpdateDaemonSet - { - /// - /// Initializes a new instance of the V1RollingUpdateDaemonSet class. - /// - public V1RollingUpdateDaemonSet() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1RollingUpdateDaemonSet class. - /// - /// - /// The maximum number of nodes with an existing available DaemonSet pod that can - /// have an updated DaemonSet pod during during an update. Value can be an absolute - /// number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if - /// MaxUnavailable is 0. Absolute number is calculated from percentage by rounding - /// up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at - /// most 30% of the total number of nodes that should be running the daemon pod - /// (i.e. status.desiredNumberScheduled) can have their a new pod created before the - /// old pod is marked as deleted. The update starts by launching new pods on 30% of - /// nodes. Once an updated pod is available (Ready for at least minReadySeconds) the - /// old DaemonSet pod on that node is marked deleted. If the old pod becomes - /// unavailable for any reason (Ready transitions to false, is evicted, or is - /// drained) an updated pod is immediatedly created on that node without considering - /// surge limits. Allowing surge implies the possibility that the resources consumed - /// by the daemonset on any given node can double if the readiness check fails, and - /// so resource intensive daemonsets should take into account that they may cause - /// evictions during disruption. This is beta field and enabled/disabled by - /// DaemonSetUpdateSurge feature gate. - /// - /// - /// The maximum number of DaemonSet pods that can be unavailable during the update. - /// Value can be an absolute number (ex: 5) or a percentage of total number of - /// DaemonSet pods at the start of the update (ex: 10%). Absolute number is - /// calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 - /// Default value is 1. Example: when this is set to 30%, at most 30% of the total - /// number of nodes that should be running the daemon pod (i.e. - /// status.desiredNumberScheduled) can have their pods stopped for an update at any - /// given time. The update starts by stopping at most 30% of those DaemonSet pods - /// and then brings up new DaemonSet pods in their place. Once the new pods are - /// available, it then proceeds onto other DaemonSet pods, thus ensuring that at - /// least 70% of original number of DaemonSet pods are available at all times during - /// the update. - /// - public V1RollingUpdateDaemonSet(IntstrIntOrString maxSurge = null, IntstrIntOrString maxUnavailable = null) - { - MaxSurge = maxSurge; - MaxUnavailable = maxUnavailable; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The maximum number of nodes with an existing available DaemonSet pod that can - /// have an updated DaemonSet pod during during an update. Value can be an absolute - /// number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if - /// MaxUnavailable is 0. Absolute number is calculated from percentage by rounding - /// up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at - /// most 30% of the total number of nodes that should be running the daemon pod - /// (i.e. status.desiredNumberScheduled) can have their a new pod created before the - /// old pod is marked as deleted. The update starts by launching new pods on 30% of - /// nodes. Once an updated pod is available (Ready for at least minReadySeconds) the - /// old DaemonSet pod on that node is marked deleted. If the old pod becomes - /// unavailable for any reason (Ready transitions to false, is evicted, or is - /// drained) an updated pod is immediatedly created on that node without considering - /// surge limits. Allowing surge implies the possibility that the resources consumed - /// by the daemonset on any given node can double if the readiness check fails, and - /// so resource intensive daemonsets should take into account that they may cause - /// evictions during disruption. This is beta field and enabled/disabled by - /// DaemonSetUpdateSurge feature gate. - /// - [JsonProperty(PropertyName = "maxSurge")] - public IntstrIntOrString MaxSurge { get; set; } - - /// - /// The maximum number of DaemonSet pods that can be unavailable during the update. - /// Value can be an absolute number (ex: 5) or a percentage of total number of - /// DaemonSet pods at the start of the update (ex: 10%). Absolute number is - /// calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 - /// Default value is 1. Example: when this is set to 30%, at most 30% of the total - /// number of nodes that should be running the daemon pod (i.e. - /// status.desiredNumberScheduled) can have their pods stopped for an update at any - /// given time. The update starts by stopping at most 30% of those DaemonSet pods - /// and then brings up new DaemonSet pods in their place. Once the new pods are - /// available, it then proceeds onto other DaemonSet pods, thus ensuring that at - /// least 70% of original number of DaemonSet pods are available at all times during - /// the update. - /// - [JsonProperty(PropertyName = "maxUnavailable")] - public IntstrIntOrString MaxUnavailable { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - MaxSurge?.Validate(); - MaxUnavailable?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1RollingUpdateDeployment.cs b/src/KubernetesClient/generated/Models/V1RollingUpdateDeployment.cs deleted file mode 100644 index 95f9b09c5..000000000 --- a/src/KubernetesClient/generated/Models/V1RollingUpdateDeployment.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Spec to control the desired behavior of rolling update. - /// - public partial class V1RollingUpdateDeployment - { - /// - /// Initializes a new instance of the V1RollingUpdateDeployment class. - /// - public V1RollingUpdateDeployment() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1RollingUpdateDeployment class. - /// - /// - /// The maximum number of pods that can be scheduled above the desired number of - /// pods. Value can be an absolute number (ex: 5) or a percentage of desired pods - /// (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is - /// calculated from percentage by rounding up. Defaults to 25%. Example: when this - /// is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling - /// update starts, such that the total number of old and new pods do not exceed 130% - /// of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up - /// further, ensuring that total number of pods running at any time during the - /// update is at most 130% of desired pods. - /// - /// - /// The maximum number of pods that can be unavailable during the update. Value can - /// be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - /// Absolute number is calculated from percentage by rounding down. This can not be - /// 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old - /// ReplicaSet can be scaled down to 70% of desired pods immediately when the - /// rolling update starts. Once new pods are ready, old ReplicaSet can be scaled - /// down further, followed by scaling up the new ReplicaSet, ensuring that the total - /// number of pods available at all times during the update is at least 70% of - /// desired pods. - /// - public V1RollingUpdateDeployment(IntstrIntOrString maxSurge = null, IntstrIntOrString maxUnavailable = null) - { - MaxSurge = maxSurge; - MaxUnavailable = maxUnavailable; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The maximum number of pods that can be scheduled above the desired number of - /// pods. Value can be an absolute number (ex: 5) or a percentage of desired pods - /// (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is - /// calculated from percentage by rounding up. Defaults to 25%. Example: when this - /// is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling - /// update starts, such that the total number of old and new pods do not exceed 130% - /// of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up - /// further, ensuring that total number of pods running at any time during the - /// update is at most 130% of desired pods. - /// - [JsonProperty(PropertyName = "maxSurge")] - public IntstrIntOrString MaxSurge { get; set; } - - /// - /// The maximum number of pods that can be unavailable during the update. Value can - /// be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - /// Absolute number is calculated from percentage by rounding down. This can not be - /// 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old - /// ReplicaSet can be scaled down to 70% of desired pods immediately when the - /// rolling update starts. Once new pods are ready, old ReplicaSet can be scaled - /// down further, followed by scaling up the new ReplicaSet, ensuring that the total - /// number of pods available at all times during the update is at least 70% of - /// desired pods. - /// - [JsonProperty(PropertyName = "maxUnavailable")] - public IntstrIntOrString MaxUnavailable { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - MaxSurge?.Validate(); - MaxUnavailable?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1RollingUpdateStatefulSetStrategy.cs b/src/KubernetesClient/generated/Models/V1RollingUpdateStatefulSetStrategy.cs deleted file mode 100644 index 757ec7008..000000000 --- a/src/KubernetesClient/generated/Models/V1RollingUpdateStatefulSetStrategy.cs +++ /dev/null @@ -1,64 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// RollingUpdateStatefulSetStrategy is used to communicate parameter for - /// RollingUpdateStatefulSetStrategyType. - /// - public partial class V1RollingUpdateStatefulSetStrategy - { - /// - /// Initializes a new instance of the V1RollingUpdateStatefulSetStrategy class. - /// - public V1RollingUpdateStatefulSetStrategy() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1RollingUpdateStatefulSetStrategy class. - /// - /// - /// Partition indicates the ordinal at which the StatefulSet should be partitioned. - /// Default value is 0. - /// - public V1RollingUpdateStatefulSetStrategy(int? partition = null) - { - Partition = partition; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Partition indicates the ordinal at which the StatefulSet should be partitioned. - /// Default value is 0. - /// - [JsonProperty(PropertyName = "partition")] - public int? Partition { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1RuleWithOperations.cs b/src/KubernetesClient/generated/Models/V1RuleWithOperations.cs deleted file mode 100644 index c6aa19a66..000000000 --- a/src/KubernetesClient/generated/Models/V1RuleWithOperations.cs +++ /dev/null @@ -1,142 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// RuleWithOperations is a tuple of Operations and Resources. It is recommended to - /// make sure that all the tuple expansions are valid. - /// - public partial class V1RuleWithOperations - { - /// - /// Initializes a new instance of the V1RuleWithOperations class. - /// - public V1RuleWithOperations() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1RuleWithOperations class. - /// - /// - /// APIGroups is the API groups the resources belong to. '*' is all groups. If '*' - /// is present, the length of the slice must be one. Required. - /// - /// - /// APIVersions is the API versions the resources belong to. '*' is all versions. If - /// '*' is present, the length of the slice must be one. Required. - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// scope specifies the scope of this rule. Valid values are "Cluster", - /// "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will - /// match this rule. Namespace API objects are cluster-scoped. "Namespaced" means - /// that only namespaced resources will match this rule. "*" means that there are no - /// scope restrictions. Subresources match the scope of their parent resource. - /// Default is "*". - /// - public V1RuleWithOperations(IList apiGroups = null, IList apiVersions = null, IList operations = null, IList resources = null, string scope = null) - { - ApiGroups = apiGroups; - ApiVersions = apiVersions; - Operations = operations; - Resources = resources; - Scope = scope; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIGroups is the API groups the resources belong to. '*' is all groups. If '*' - /// is present, the length of the slice must be one. Required. - /// - [JsonProperty(PropertyName = "apiGroups")] - public IList ApiGroups { get; set; } - - /// - /// APIVersions is the API versions the resources belong to. '*' is all versions. If - /// '*' is present, the length of the slice must be one. Required. - /// - [JsonProperty(PropertyName = "apiVersions")] - public IList ApiVersions { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "operations")] - public IList Operations { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "resources")] - public IList Resources { get; set; } - - /// - /// 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 "*". - /// - [JsonProperty(PropertyName = "scope")] - public string Scope { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1RuntimeClass.cs b/src/KubernetesClient/generated/Models/V1RuntimeClass.cs deleted file mode 100644 index be28b30ef..000000000 --- a/src/KubernetesClient/generated/Models/V1RuntimeClass.cs +++ /dev/null @@ -1,159 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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/ - /// - public partial class V1RuntimeClass - { - /// - /// Initializes a new instance of the V1RuntimeClass class. - /// - public V1RuntimeClass() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1RuntimeClass class. - /// - /// - /// 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. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Overhead represents the resource overhead associated with running a pod for a - /// given RuntimeClass. For more details, see - /// https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/ - /// This field is in beta starting v1.18 and is only honored by servers that enable - /// the PodOverhead feature. - /// - /// - /// Scheduling holds the scheduling constraints to ensure that pods running with - /// this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, - /// this RuntimeClass is assumed to be supported by all nodes. - /// - public V1RuntimeClass(string handler, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1Overhead overhead = null, V1Scheduling scheduling = null) - { - ApiVersion = apiVersion; - Handler = handler; - Kind = kind; - Metadata = metadata; - Overhead = overhead; - Scheduling = scheduling; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "handler")] - public string Handler { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Overhead represents the resource overhead associated with running a pod for a - /// given RuntimeClass. For more details, see - /// https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/ - /// This field is in beta starting v1.18 and is only honored by servers that enable - /// the PodOverhead feature. - /// - [JsonProperty(PropertyName = "overhead")] - public V1Overhead Overhead { get; set; } - - /// - /// Scheduling holds the scheduling constraints to ensure that pods running with - /// this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, - /// this RuntimeClass is assumed to be supported by all nodes. - /// - [JsonProperty(PropertyName = "scheduling")] - public V1Scheduling Scheduling { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Overhead?.Validate(); - Scheduling?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1RuntimeClassList.cs b/src/KubernetesClient/generated/Models/V1RuntimeClassList.cs deleted file mode 100644 index a20af178e..000000000 --- a/src/KubernetesClient/generated/Models/V1RuntimeClassList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// RuntimeClassList is a list of RuntimeClass objects. - /// - public partial class V1RuntimeClassList - { - /// - /// Initializes a new instance of the V1RuntimeClassList class. - /// - public V1RuntimeClassList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1RuntimeClassList class. - /// - /// - /// Items is a list of schema objects. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1RuntimeClassList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is a list of schema objects. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1SELinuxOptions.cs b/src/KubernetesClient/generated/Models/V1SELinuxOptions.cs deleted file mode 100644 index 1853bcec3..000000000 --- a/src/KubernetesClient/generated/Models/V1SELinuxOptions.cs +++ /dev/null @@ -1,91 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// SELinuxOptions are the labels to be applied to the container - /// - public partial class V1SELinuxOptions - { - /// - /// Initializes a new instance of the V1SELinuxOptions class. - /// - public V1SELinuxOptions() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1SELinuxOptions class. - /// - /// - /// Level is SELinux level label that applies to the container. - /// - /// - /// Role is a SELinux role label that applies to the container. - /// - /// - /// Type is a SELinux type label that applies to the container. - /// - /// - /// User is a SELinux user label that applies to the container. - /// - public V1SELinuxOptions(string level = null, string role = null, string type = null, string user = null) - { - Level = level; - Role = role; - Type = type; - User = user; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Level is SELinux level label that applies to the container. - /// - [JsonProperty(PropertyName = "level")] - public string Level { get; set; } - - /// - /// Role is a SELinux role label that applies to the container. - /// - [JsonProperty(PropertyName = "role")] - public string Role { get; set; } - - /// - /// Type is a SELinux type label that applies to the container. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// User is a SELinux user label that applies to the container. - /// - [JsonProperty(PropertyName = "user")] - public string User { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Scale.cs b/src/KubernetesClient/generated/Models/V1Scale.cs deleted file mode 100644 index a65dd2545..000000000 --- a/src/KubernetesClient/generated/Models/V1Scale.cs +++ /dev/null @@ -1,124 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Scale represents a scaling request for a resource. - /// - public partial class V1Scale - { - /// - /// Initializes a new instance of the V1Scale class. - /// - public V1Scale() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Scale class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object metadata; More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - /// - /// - /// defines the behavior of the scale. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - /// - /// - /// current status of the scale. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - /// Read-only. - /// - public V1Scale(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1ScaleSpec spec = null, V1ScaleStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object metadata; More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// defines the behavior of the scale. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - /// - [JsonProperty(PropertyName = "spec")] - public V1ScaleSpec Spec { get; set; } - - /// - /// current status of the scale. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - /// Read-only. - /// - [JsonProperty(PropertyName = "status")] - public V1ScaleStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ScaleIOPersistentVolumeSource.cs b/src/KubernetesClient/generated/Models/V1ScaleIOPersistentVolumeSource.cs deleted file mode 100644 index 44fc91d15..000000000 --- a/src/KubernetesClient/generated/Models/V1ScaleIOPersistentVolumeSource.cs +++ /dev/null @@ -1,166 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume - /// - public partial class V1ScaleIOPersistentVolumeSource - { - /// - /// Initializes a new instance of the V1ScaleIOPersistentVolumeSource class. - /// - public V1ScaleIOPersistentVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ScaleIOPersistentVolumeSource class. - /// - /// - /// The host address of the ScaleIO API Gateway. - /// - /// - /// SecretRef references to the secret for ScaleIO user and other sensitive - /// information. If this is not provided, Login operation will fail. - /// - /// - /// The name of the storage system as configured in ScaleIO. - /// - /// - /// Filesystem type to mount. Must be a filesystem type supported by the host - /// operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" - /// - /// - /// The name of the ScaleIO Protection Domain for the configured storage. - /// - /// - /// Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in - /// VolumeMounts. - /// - /// - /// Flag to enable/disable SSL communication with Gateway, default false - /// - /// - /// Indicates whether the storage for a volume should be ThickProvisioned or - /// ThinProvisioned. Default is ThinProvisioned. - /// - /// - /// The ScaleIO Storage Pool associated with the protection domain. - /// - /// - /// The name of a volume already created in the ScaleIO system that is associated - /// with this volume source. - /// - public V1ScaleIOPersistentVolumeSource(string gateway, V1SecretReference secretRef, string system, string fsType = null, string protectionDomain = null, bool? readOnlyProperty = null, bool? sslEnabled = null, string storageMode = null, string storagePool = null, string volumeName = null) - { - FsType = fsType; - Gateway = gateway; - ProtectionDomain = protectionDomain; - ReadOnlyProperty = readOnlyProperty; - SecretRef = secretRef; - SslEnabled = sslEnabled; - StorageMode = storageMode; - StoragePool = storagePool; - System = system; - VolumeName = volumeName; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Filesystem type to mount. Must be a filesystem type supported by the host - /// operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" - /// - [JsonProperty(PropertyName = "fsType")] - public string FsType { get; set; } - - /// - /// The host address of the ScaleIO API Gateway. - /// - [JsonProperty(PropertyName = "gateway")] - public string Gateway { get; set; } - - /// - /// The name of the ScaleIO Protection Domain for the configured storage. - /// - [JsonProperty(PropertyName = "protectionDomain")] - public string ProtectionDomain { get; set; } - - /// - /// Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in - /// VolumeMounts. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// SecretRef references to the secret for ScaleIO user and other sensitive - /// information. If this is not provided, Login operation will fail. - /// - [JsonProperty(PropertyName = "secretRef")] - public V1SecretReference SecretRef { get; set; } - - /// - /// Flag to enable/disable SSL communication with Gateway, default false - /// - [JsonProperty(PropertyName = "sslEnabled")] - public bool? SslEnabled { get; set; } - - /// - /// Indicates whether the storage for a volume should be ThickProvisioned or - /// ThinProvisioned. Default is ThinProvisioned. - /// - [JsonProperty(PropertyName = "storageMode")] - public string StorageMode { get; set; } - - /// - /// The ScaleIO Storage Pool associated with the protection domain. - /// - [JsonProperty(PropertyName = "storagePool")] - public string StoragePool { get; set; } - - /// - /// The name of the storage system as configured in ScaleIO. - /// - [JsonProperty(PropertyName = "system")] - public string System { get; set; } - - /// - /// The name of a volume already created in the ScaleIO system that is associated - /// with this volume source. - /// - [JsonProperty(PropertyName = "volumeName")] - public string VolumeName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (SecretRef == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "SecretRef"); - } - SecretRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ScaleIOVolumeSource.cs b/src/KubernetesClient/generated/Models/V1ScaleIOVolumeSource.cs deleted file mode 100644 index b085d6382..000000000 --- a/src/KubernetesClient/generated/Models/V1ScaleIOVolumeSource.cs +++ /dev/null @@ -1,166 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ScaleIOVolumeSource represents a persistent ScaleIO volume - /// - public partial class V1ScaleIOVolumeSource - { - /// - /// Initializes a new instance of the V1ScaleIOVolumeSource class. - /// - public V1ScaleIOVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ScaleIOVolumeSource class. - /// - /// - /// The host address of the ScaleIO API Gateway. - /// - /// - /// SecretRef references to the secret for ScaleIO user and other sensitive - /// information. If this is not provided, Login operation will fail. - /// - /// - /// The name of the storage system as configured in ScaleIO. - /// - /// - /// Filesystem type to mount. Must be a filesystem type supported by the host - /// operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - /// - /// - /// The name of the ScaleIO Protection Domain for the configured storage. - /// - /// - /// Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in - /// VolumeMounts. - /// - /// - /// Flag to enable/disable SSL communication with Gateway, default false - /// - /// - /// Indicates whether the storage for a volume should be ThickProvisioned or - /// ThinProvisioned. Default is ThinProvisioned. - /// - /// - /// The ScaleIO Storage Pool associated with the protection domain. - /// - /// - /// The name of a volume already created in the ScaleIO system that is associated - /// with this volume source. - /// - public V1ScaleIOVolumeSource(string gateway, V1LocalObjectReference secretRef, string system, string fsType = null, string protectionDomain = null, bool? readOnlyProperty = null, bool? sslEnabled = null, string storageMode = null, string storagePool = null, string volumeName = null) - { - FsType = fsType; - Gateway = gateway; - ProtectionDomain = protectionDomain; - ReadOnlyProperty = readOnlyProperty; - SecretRef = secretRef; - SslEnabled = sslEnabled; - StorageMode = storageMode; - StoragePool = storagePool; - System = system; - VolumeName = volumeName; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Filesystem type to mount. Must be a filesystem type supported by the host - /// operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - /// - [JsonProperty(PropertyName = "fsType")] - public string FsType { get; set; } - - /// - /// The host address of the ScaleIO API Gateway. - /// - [JsonProperty(PropertyName = "gateway")] - public string Gateway { get; set; } - - /// - /// The name of the ScaleIO Protection Domain for the configured storage. - /// - [JsonProperty(PropertyName = "protectionDomain")] - public string ProtectionDomain { get; set; } - - /// - /// Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in - /// VolumeMounts. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// SecretRef references to the secret for ScaleIO user and other sensitive - /// information. If this is not provided, Login operation will fail. - /// - [JsonProperty(PropertyName = "secretRef")] - public V1LocalObjectReference SecretRef { get; set; } - - /// - /// Flag to enable/disable SSL communication with Gateway, default false - /// - [JsonProperty(PropertyName = "sslEnabled")] - public bool? SslEnabled { get; set; } - - /// - /// Indicates whether the storage for a volume should be ThickProvisioned or - /// ThinProvisioned. Default is ThinProvisioned. - /// - [JsonProperty(PropertyName = "storageMode")] - public string StorageMode { get; set; } - - /// - /// The ScaleIO Storage Pool associated with the protection domain. - /// - [JsonProperty(PropertyName = "storagePool")] - public string StoragePool { get; set; } - - /// - /// The name of the storage system as configured in ScaleIO. - /// - [JsonProperty(PropertyName = "system")] - public string System { get; set; } - - /// - /// The name of a volume already created in the ScaleIO system that is associated - /// with this volume source. - /// - [JsonProperty(PropertyName = "volumeName")] - public string VolumeName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (SecretRef == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "SecretRef"); - } - SecretRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ScaleSpec.cs b/src/KubernetesClient/generated/Models/V1ScaleSpec.cs deleted file mode 100644 index 50217804b..000000000 --- a/src/KubernetesClient/generated/Models/V1ScaleSpec.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ScaleSpec describes the attributes of a scale subresource. - /// - public partial class V1ScaleSpec - { - /// - /// Initializes a new instance of the V1ScaleSpec class. - /// - public V1ScaleSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ScaleSpec class. - /// - /// - /// desired number of instances for the scaled object. - /// - public V1ScaleSpec(int? replicas = null) - { - Replicas = replicas; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// desired number of instances for the scaled object. - /// - [JsonProperty(PropertyName = "replicas")] - public int? Replicas { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ScaleStatus.cs b/src/KubernetesClient/generated/Models/V1ScaleStatus.cs deleted file mode 100644 index 16ee4ffed..000000000 --- a/src/KubernetesClient/generated/Models/V1ScaleStatus.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ScaleStatus represents the current status of a scale subresource. - /// - public partial class V1ScaleStatus - { - /// - /// Initializes a new instance of the V1ScaleStatus class. - /// - public V1ScaleStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ScaleStatus class. - /// - /// - /// actual number of observed instances of the scaled object. - /// - /// - /// label query over pods that should match the replicas count. This is same as the - /// label selector but in the string format to avoid introspection by clients. The - /// string will be in the same format as the query-param syntax. More info about - /// label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors - /// - public V1ScaleStatus(int replicas, string selector = null) - { - Replicas = replicas; - Selector = selector; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// actual number of observed instances of the scaled object. - /// - [JsonProperty(PropertyName = "replicas")] - public int Replicas { get; set; } - - /// - /// label query over pods that should match the replicas count. This is same as the - /// label selector but in the string format to avoid introspection by clients. The - /// string will be in the same format as the query-param syntax. More info about - /// label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors - /// - [JsonProperty(PropertyName = "selector")] - public string Selector { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Scheduling.cs b/src/KubernetesClient/generated/Models/V1Scheduling.cs deleted file mode 100644 index 63ec170bf..000000000 --- a/src/KubernetesClient/generated/Models/V1Scheduling.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Scheduling specifies the scheduling constraints for nodes supporting a - /// RuntimeClass. - /// - public partial class V1Scheduling - { - /// - /// Initializes a new instance of the V1Scheduling class. - /// - public V1Scheduling() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Scheduling class. - /// - /// - /// 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. - /// - /// - /// tolerations are appended (excluding duplicates) to pods running with this - /// RuntimeClass during admission, effectively unioning the set of nodes tolerated - /// by the pod and the RuntimeClass. - /// - public V1Scheduling(IDictionary nodeSelector = null, IList tolerations = null) - { - NodeSelector = nodeSelector; - Tolerations = tolerations; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "nodeSelector")] - public IDictionary NodeSelector { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "tolerations")] - public IList Tolerations { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Tolerations != null){ - foreach(var obj in Tolerations) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ScopeSelector.cs b/src/KubernetesClient/generated/Models/V1ScopeSelector.cs deleted file mode 100644 index 232b8cb59..000000000 --- a/src/KubernetesClient/generated/Models/V1ScopeSelector.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// A scope selector represents the AND of the selectors represented by the - /// scoped-resource selector requirements. - /// - public partial class V1ScopeSelector - { - /// - /// Initializes a new instance of the V1ScopeSelector class. - /// - public V1ScopeSelector() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ScopeSelector class. - /// - /// - /// A list of scope selector requirements by scope of the resources. - /// - public V1ScopeSelector(IList matchExpressions = null) - { - MatchExpressions = matchExpressions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// A list of scope selector requirements by scope of the resources. - /// - [JsonProperty(PropertyName = "matchExpressions")] - public IList MatchExpressions { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (MatchExpressions != null){ - foreach(var obj in MatchExpressions) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ScopedResourceSelectorRequirement.cs b/src/KubernetesClient/generated/Models/V1ScopedResourceSelectorRequirement.cs deleted file mode 100644 index e38c6f6db..000000000 --- a/src/KubernetesClient/generated/Models/V1ScopedResourceSelectorRequirement.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// A scoped-resource selector requirement is a selector that contains values, a - /// scope name, and an operator that relates the scope name and values. - /// - public partial class V1ScopedResourceSelectorRequirement - { - /// - /// Initializes a new instance of the V1ScopedResourceSelectorRequirement class. - /// - public V1ScopedResourceSelectorRequirement() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ScopedResourceSelectorRequirement class. - /// - /// - /// Represents a scope's relationship to a set of values. Valid operators are In, - /// NotIn, Exists, DoesNotExist. - /// - /// - /// The name of the scope that the selector applies to. - /// - /// - /// An array of string values. If the operator is In or NotIn, the values array must - /// be non-empty. If the operator is Exists or DoesNotExist, the values array must - /// be empty. This array is replaced during a strategic merge patch. - /// - public V1ScopedResourceSelectorRequirement(string operatorProperty, string scopeName, IList values = null) - { - OperatorProperty = operatorProperty; - ScopeName = scopeName; - Values = values; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Represents a scope's relationship to a set of values. Valid operators are In, - /// NotIn, Exists, DoesNotExist. - /// - [JsonProperty(PropertyName = "operator")] - public string OperatorProperty { get; set; } - - /// - /// The name of the scope that the selector applies to. - /// - [JsonProperty(PropertyName = "scopeName")] - public string ScopeName { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "values")] - public IList Values { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1SeccompProfile.cs b/src/KubernetesClient/generated/Models/V1SeccompProfile.cs deleted file mode 100644 index ef6e8f4df..000000000 --- a/src/KubernetesClient/generated/Models/V1SeccompProfile.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// SeccompProfile defines a pod/container's seccomp profile settings. Only one - /// profile source may be set. - /// - public partial class V1SeccompProfile - { - /// - /// Initializes a new instance of the V1SeccompProfile class. - /// - public V1SeccompProfile() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1SeccompProfile class. - /// - /// - /// 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. - /// - /// - /// 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 only be set if type is "Localhost". - /// - public V1SeccompProfile(string type, string localhostProfile = null) - { - LocalhostProfile = localhostProfile; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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 only be set if type is "Localhost". - /// - [JsonProperty(PropertyName = "localhostProfile")] - public string LocalhostProfile { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Secret.cs b/src/KubernetesClient/generated/Models/V1Secret.cs deleted file mode 100644 index ceede6c25..000000000 --- a/src/KubernetesClient/generated/Models/V1Secret.cs +++ /dev/null @@ -1,153 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Secret holds secret data of a certain type. The total bytes of the values in the - /// Data field must be less than MaxSecretSize bytes. - /// - public partial class V1Secret - { - /// - /// Initializes a new instance of the V1Secret class. - /// - public V1Secret() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Secret class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// 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 - /// - /// - /// 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. - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// 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. - /// - /// - /// Used to facilitate programmatic handling of secret data. - /// - public V1Secret(string apiVersion = null, IDictionary data = null, bool? immutable = null, string kind = null, V1ObjectMeta metadata = null, IDictionary stringData = null, string type = null) - { - ApiVersion = apiVersion; - Data = data; - Immutable = immutable; - Kind = kind; - Metadata = metadata; - StringData = stringData; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "data")] - public IDictionary Data { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "immutable")] - public bool? Immutable { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "stringData")] - public IDictionary StringData { get; set; } - - /// - /// Used to facilitate programmatic handling of secret data. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1SecretEnvSource.cs b/src/KubernetesClient/generated/Models/V1SecretEnvSource.cs deleted file mode 100644 index c8c6c74ee..000000000 --- a/src/KubernetesClient/generated/Models/V1SecretEnvSource.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1SecretEnvSource - { - /// - /// Initializes a new instance of the V1SecretEnvSource class. - /// - public V1SecretEnvSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1SecretEnvSource class. - /// - /// - /// Name of the referent. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - /// - /// - /// Specify whether the Secret must be defined - /// - public V1SecretEnvSource(string name = null, bool? optional = null) - { - Name = name; - Optional = optional; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Name of the referent. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Specify whether the Secret must be defined - /// - [JsonProperty(PropertyName = "optional")] - public bool? Optional { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1SecretKeySelector.cs b/src/KubernetesClient/generated/Models/V1SecretKeySelector.cs deleted file mode 100644 index e2d4276b4..000000000 --- a/src/KubernetesClient/generated/Models/V1SecretKeySelector.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// SecretKeySelector selects a key of a Secret. - /// - public partial class V1SecretKeySelector - { - /// - /// Initializes a new instance of the V1SecretKeySelector class. - /// - public V1SecretKeySelector() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1SecretKeySelector class. - /// - /// - /// The key of the secret to select from. Must be a valid secret key. - /// - /// - /// Name of the referent. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - /// - /// - /// Specify whether the Secret or its key must be defined - /// - public V1SecretKeySelector(string key, string name = null, bool? optional = null) - { - Key = key; - Name = name; - Optional = optional; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The key of the secret to select from. Must be a valid secret key. - /// - [JsonProperty(PropertyName = "key")] - public string Key { get; set; } - - /// - /// Name of the referent. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Specify whether the Secret or its key must be defined - /// - [JsonProperty(PropertyName = "optional")] - public bool? Optional { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1SecretList.cs b/src/KubernetesClient/generated/Models/V1SecretList.cs deleted file mode 100644 index 5caee2812..000000000 --- a/src/KubernetesClient/generated/Models/V1SecretList.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// SecretList is a list of Secret. - /// - public partial class V1SecretList - { - /// - /// Initializes a new instance of the V1SecretList class. - /// - public V1SecretList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1SecretList class. - /// - /// - /// Items is a list of secret objects. More info: - /// https://kubernetes.io/docs/concepts/configuration/secret - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - public V1SecretList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is a list of secret objects. More info: - /// https://kubernetes.io/docs/concepts/configuration/secret - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1SecretProjection.cs b/src/KubernetesClient/generated/Models/V1SecretProjection.cs deleted file mode 100644 index 8de6a631f..000000000 --- a/src/KubernetesClient/generated/Models/V1SecretProjection.cs +++ /dev/null @@ -1,103 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1SecretProjection - { - /// - /// Initializes a new instance of the V1SecretProjection class. - /// - public V1SecretProjection() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1SecretProjection class. - /// - /// - /// 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 '..'. - /// - /// - /// Name of the referent. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - /// - /// - /// Specify whether the Secret or its key must be defined - /// - public V1SecretProjection(IList items = null, string name = null, bool? optional = null) - { - Items = items; - Name = name; - Optional = optional; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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 '..'. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Name of the referent. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Specify whether the Secret or its key must be defined - /// - [JsonProperty(PropertyName = "optional")] - public bool? Optional { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1SecretReference.cs b/src/KubernetesClient/generated/Models/V1SecretReference.cs deleted file mode 100644 index dda6560f3..000000000 --- a/src/KubernetesClient/generated/Models/V1SecretReference.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// SecretReference represents a Secret Reference. It has enough information to - /// retrieve secret in any namespace - /// - public partial class V1SecretReference - { - /// - /// Initializes a new instance of the V1SecretReference class. - /// - public V1SecretReference() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1SecretReference class. - /// - /// - /// Name is unique within a namespace to reference a secret resource. - /// - /// - /// Namespace defines the space within which the secret name must be unique. - /// - public V1SecretReference(string name = null, string namespaceProperty = null) - { - Name = name; - NamespaceProperty = namespaceProperty; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Name is unique within a namespace to reference a secret resource. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Namespace defines the space within which the secret name must be unique. - /// - [JsonProperty(PropertyName = "namespace")] - public string NamespaceProperty { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1SecretVolumeSource.cs b/src/KubernetesClient/generated/Models/V1SecretVolumeSource.cs deleted file mode 100644 index eca38f0fa..000000000 --- a/src/KubernetesClient/generated/Models/V1SecretVolumeSource.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1SecretVolumeSource - { - /// - /// Initializes a new instance of the V1SecretVolumeSource class. - /// - public V1SecretVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1SecretVolumeSource class. - /// - /// - /// 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. - /// - /// - /// 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 '..'. - /// - /// - /// Specify whether the Secret or its keys must be defined - /// - /// - /// Name of the secret in the pod's namespace to use. More info: - /// https://kubernetes.io/docs/concepts/storage/volumes#secret - /// - public V1SecretVolumeSource(int? defaultMode = null, IList items = null, bool? optional = null, string secretName = null) - { - DefaultMode = defaultMode; - Items = items; - Optional = optional; - SecretName = secretName; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "defaultMode")] - public int? DefaultMode { get; set; } - - /// - /// 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 '..'. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Specify whether the Secret or its keys must be defined - /// - [JsonProperty(PropertyName = "optional")] - public bool? Optional { get; set; } - - /// - /// Name of the secret in the pod's namespace to use. More info: - /// https://kubernetes.io/docs/concepts/storage/volumes#secret - /// - [JsonProperty(PropertyName = "secretName")] - public string SecretName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1SecurityContext.cs b/src/KubernetesClient/generated/Models/V1SecurityContext.cs deleted file mode 100644 index 0502bad87..000000000 --- a/src/KubernetesClient/generated/Models/V1SecurityContext.cs +++ /dev/null @@ -1,214 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1SecurityContext - { - /// - /// Initializes a new instance of the V1SecurityContext class. - /// - public V1SecurityContext() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1SecurityContext class. - /// - /// - /// 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 - /// - /// - /// The capabilities to add/drop when running containers. Defaults to the default - /// set of capabilities granted by the container runtime. - /// - /// - /// Run container in privileged mode. Processes in privileged containers are - /// essentially equivalent to root on the host. Defaults to false. - /// - /// - /// 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. - /// - /// - /// Whether this container has a read-only root filesystem. Default is false. - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// The seccomp options to use by this container. If seccomp options are provided at - /// both the pod & container level, the container options override the pod options. - /// - /// - /// 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. - /// - public V1SecurityContext(bool? allowPrivilegeEscalation = null, V1Capabilities capabilities = null, bool? privileged = null, string procMount = null, bool? readOnlyRootFilesystem = null, long? runAsGroup = null, bool? runAsNonRoot = null, long? runAsUser = null, V1SELinuxOptions seLinuxOptions = null, V1SeccompProfile seccompProfile = null, V1WindowsSecurityContextOptions windowsOptions = null) - { - AllowPrivilegeEscalation = allowPrivilegeEscalation; - Capabilities = capabilities; - Privileged = privileged; - ProcMount = procMount; - ReadOnlyRootFilesystem = readOnlyRootFilesystem; - RunAsGroup = runAsGroup; - RunAsNonRoot = runAsNonRoot; - RunAsUser = runAsUser; - SeLinuxOptions = seLinuxOptions; - SeccompProfile = seccompProfile; - WindowsOptions = windowsOptions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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 - /// - [JsonProperty(PropertyName = "allowPrivilegeEscalation")] - public bool? AllowPrivilegeEscalation { get; set; } - - /// - /// The capabilities to add/drop when running containers. Defaults to the default - /// set of capabilities granted by the container runtime. - /// - [JsonProperty(PropertyName = "capabilities")] - public V1Capabilities Capabilities { get; set; } - - /// - /// Run container in privileged mode. Processes in privileged containers are - /// essentially equivalent to root on the host. Defaults to false. - /// - [JsonProperty(PropertyName = "privileged")] - public bool? Privileged { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "procMount")] - public string ProcMount { get; set; } - - /// - /// Whether this container has a read-only root filesystem. Default is false. - /// - [JsonProperty(PropertyName = "readOnlyRootFilesystem")] - public bool? ReadOnlyRootFilesystem { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "runAsGroup")] - public long? RunAsGroup { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "runAsNonRoot")] - public bool? RunAsNonRoot { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "runAsUser")] - public long? RunAsUser { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "seLinuxOptions")] - public V1SELinuxOptions SeLinuxOptions { get; set; } - - /// - /// The seccomp options to use by this container. If seccomp options are provided at - /// both the pod & container level, the container options override the pod options. - /// - [JsonProperty(PropertyName = "seccompProfile")] - public V1SeccompProfile SeccompProfile { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "windowsOptions")] - public V1WindowsSecurityContextOptions WindowsOptions { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Capabilities?.Validate(); - SeLinuxOptions?.Validate(); - SeccompProfile?.Validate(); - WindowsOptions?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1SelfSubjectAccessReview.cs b/src/KubernetesClient/generated/Models/V1SelfSubjectAccessReview.cs deleted file mode 100644 index b8a3f6545..000000000 --- a/src/KubernetesClient/generated/Models/V1SelfSubjectAccessReview.cs +++ /dev/null @@ -1,129 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// SelfSubjectAccessReview checks whether or the current user can perform an - /// action. Not filling in a spec.namespace means "in all namespaces". Self is a - /// special case, because users should always be able to check whether they can - /// perform an action - /// - public partial class V1SelfSubjectAccessReview - { - /// - /// Initializes a new instance of the V1SelfSubjectAccessReview class. - /// - public V1SelfSubjectAccessReview() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1SelfSubjectAccessReview class. - /// - /// - /// Spec holds information about the request being evaluated. user and groups must - /// be empty - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Status is filled in by the server and indicates whether the request is allowed - /// or not - /// - public V1SelfSubjectAccessReview(V1SelfSubjectAccessReviewSpec spec, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1SubjectAccessReviewStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Spec holds information about the request being evaluated. user and groups must - /// be empty - /// - [JsonProperty(PropertyName = "spec")] - public V1SelfSubjectAccessReviewSpec Spec { get; set; } - - /// - /// Status is filled in by the server and indicates whether the request is allowed - /// or not - /// - [JsonProperty(PropertyName = "status")] - public V1SubjectAccessReviewStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Spec == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Spec"); - } - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1SelfSubjectAccessReviewSpec.cs b/src/KubernetesClient/generated/Models/V1SelfSubjectAccessReviewSpec.cs deleted file mode 100644 index e928b561f..000000000 --- a/src/KubernetesClient/generated/Models/V1SelfSubjectAccessReviewSpec.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// SelfSubjectAccessReviewSpec is a description of the access request. Exactly one - /// of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must - /// be set - /// - public partial class V1SelfSubjectAccessReviewSpec - { - /// - /// Initializes a new instance of the V1SelfSubjectAccessReviewSpec class. - /// - public V1SelfSubjectAccessReviewSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1SelfSubjectAccessReviewSpec class. - /// - /// - /// NonResourceAttributes describes information for a non-resource access request - /// - /// - /// ResourceAuthorizationAttributes describes information for a resource access - /// request - /// - public V1SelfSubjectAccessReviewSpec(V1NonResourceAttributes nonResourceAttributes = null, V1ResourceAttributes resourceAttributes = null) - { - NonResourceAttributes = nonResourceAttributes; - ResourceAttributes = resourceAttributes; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// NonResourceAttributes describes information for a non-resource access request - /// - [JsonProperty(PropertyName = "nonResourceAttributes")] - public V1NonResourceAttributes NonResourceAttributes { get; set; } - - /// - /// ResourceAuthorizationAttributes describes information for a resource access - /// request - /// - [JsonProperty(PropertyName = "resourceAttributes")] - public V1ResourceAttributes ResourceAttributes { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - NonResourceAttributes?.Validate(); - ResourceAttributes?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1SelfSubjectRulesReview.cs b/src/KubernetesClient/generated/Models/V1SelfSubjectRulesReview.cs deleted file mode 100644 index 32f9d2dff..000000000 --- a/src/KubernetesClient/generated/Models/V1SelfSubjectRulesReview.cs +++ /dev/null @@ -1,132 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// SelfSubjectRulesReview enumerates the set of actions the current user can - /// perform within a namespace. The returned list of actions may be incomplete - /// depending on the server's authorization mode, and any errors experienced during - /// the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide - /// actions, or to quickly let an end user reason about their permissions. It should - /// NOT Be used by external systems to drive authorization decisions as this raises - /// confused deputy, cache lifetime/revocation, and correctness concerns. - /// SubjectAccessReview, and LocalAccessReview are the correct way to defer - /// authorization decisions to the API server. - /// - public partial class V1SelfSubjectRulesReview - { - /// - /// Initializes a new instance of the V1SelfSubjectRulesReview class. - /// - public V1SelfSubjectRulesReview() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1SelfSubjectRulesReview class. - /// - /// - /// Spec holds information about the request being evaluated. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Status is filled in by the server and indicates the set of actions a user can - /// perform. - /// - public V1SelfSubjectRulesReview(V1SelfSubjectRulesReviewSpec spec, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1SubjectRulesReviewStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Spec holds information about the request being evaluated. - /// - [JsonProperty(PropertyName = "spec")] - public V1SelfSubjectRulesReviewSpec Spec { get; set; } - - /// - /// Status is filled in by the server and indicates the set of actions a user can - /// perform. - /// - [JsonProperty(PropertyName = "status")] - public V1SubjectRulesReviewStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Spec == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Spec"); - } - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1SelfSubjectRulesReviewSpec.cs b/src/KubernetesClient/generated/Models/V1SelfSubjectRulesReviewSpec.cs deleted file mode 100644 index 7806a4db0..000000000 --- a/src/KubernetesClient/generated/Models/V1SelfSubjectRulesReviewSpec.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. - /// - public partial class V1SelfSubjectRulesReviewSpec - { - /// - /// Initializes a new instance of the V1SelfSubjectRulesReviewSpec class. - /// - public V1SelfSubjectRulesReviewSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1SelfSubjectRulesReviewSpec class. - /// - /// - /// Namespace to evaluate rules for. Required. - /// - public V1SelfSubjectRulesReviewSpec(string namespaceProperty = null) - { - NamespaceProperty = namespaceProperty; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Namespace to evaluate rules for. Required. - /// - [JsonProperty(PropertyName = "namespace")] - public string NamespaceProperty { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ServerAddressByClientCIDR.cs b/src/KubernetesClient/generated/Models/V1ServerAddressByClientCIDR.cs deleted file mode 100644 index 35be39f76..000000000 --- a/src/KubernetesClient/generated/Models/V1ServerAddressByClientCIDR.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ServerAddressByClientCIDR helps the client to determine the server address that - /// they should use, depending on the clientCIDR that they match. - /// - public partial class V1ServerAddressByClientCIDR - { - /// - /// Initializes a new instance of the V1ServerAddressByClientCIDR class. - /// - public V1ServerAddressByClientCIDR() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ServerAddressByClientCIDR class. - /// - /// - /// The CIDR with which clients can match their IP to figure out the server address - /// that they should use. - /// - /// - /// Address of this server, suitable for a client that matches the above CIDR. This - /// can be a hostname, hostname:port, IP or IP:port. - /// - public V1ServerAddressByClientCIDR(string clientCIDR, string serverAddress) - { - ClientCIDR = clientCIDR; - ServerAddress = serverAddress; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The CIDR with which clients can match their IP to figure out the server address - /// that they should use. - /// - [JsonProperty(PropertyName = "clientCIDR")] - public string ClientCIDR { get; set; } - - /// - /// Address of this server, suitable for a client that matches the above CIDR. This - /// can be a hostname, hostname:port, IP or IP:port. - /// - [JsonProperty(PropertyName = "serverAddress")] - public string ServerAddress { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Service.cs b/src/KubernetesClient/generated/Models/V1Service.cs deleted file mode 100644 index 50de7eb40..000000000 --- a/src/KubernetesClient/generated/Models/V1Service.cs +++ /dev/null @@ -1,126 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1Service - { - /// - /// Initializes a new instance of the V1Service class. - /// - public V1Service() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Service class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Spec defines the behavior of a service. - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - /// - /// Most recently observed status of the service. Populated by the system. - /// Read-only. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - public V1Service(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1ServiceSpec spec = null, V1ServiceStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Spec defines the behavior of a service. - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1ServiceSpec Spec { get; set; } - - /// - /// Most recently observed status of the service. Populated by the system. - /// Read-only. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "status")] - public V1ServiceStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ServiceAccount.cs b/src/KubernetesClient/generated/Models/V1ServiceAccount.cs deleted file mode 100644 index 2871bf94c..000000000 --- a/src/KubernetesClient/generated/Models/V1ServiceAccount.cs +++ /dev/null @@ -1,156 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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 - /// - public partial class V1ServiceAccount - { - /// - /// Initializes a new instance of the V1ServiceAccount class. - /// - public V1ServiceAccount() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ServiceAccount class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// AutomountServiceAccountToken indicates whether pods running as this service - /// account should have an API token automatically mounted. Can be overridden at the - /// pod level. - /// - /// - /// 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 - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Secrets is the list of secrets allowed to be used by pods running using this - /// ServiceAccount. More info: - /// https://kubernetes.io/docs/concepts/configuration/secret - /// - public V1ServiceAccount(string apiVersion = null, bool? automountServiceAccountToken = null, IList imagePullSecrets = null, string kind = null, V1ObjectMeta metadata = null, IList secrets = null) - { - ApiVersion = apiVersion; - AutomountServiceAccountToken = automountServiceAccountToken; - ImagePullSecrets = imagePullSecrets; - Kind = kind; - Metadata = metadata; - Secrets = secrets; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// AutomountServiceAccountToken indicates whether pods running as this service - /// account should have an API token automatically mounted. Can be overridden at the - /// pod level. - /// - [JsonProperty(PropertyName = "automountServiceAccountToken")] - public bool? AutomountServiceAccountToken { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "imagePullSecrets")] - public IList ImagePullSecrets { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Secrets is the list of secrets allowed to be used by pods running using this - /// ServiceAccount. More info: - /// https://kubernetes.io/docs/concepts/configuration/secret - /// - [JsonProperty(PropertyName = "secrets")] - public IList Secrets { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (ImagePullSecrets != null){ - foreach(var obj in ImagePullSecrets) - { - obj.Validate(); - } - } - Metadata?.Validate(); - if (Secrets != null){ - foreach(var obj in Secrets) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ServiceAccountList.cs b/src/KubernetesClient/generated/Models/V1ServiceAccountList.cs deleted file mode 100644 index 764d7b6d2..000000000 --- a/src/KubernetesClient/generated/Models/V1ServiceAccountList.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ServiceAccountList is a list of ServiceAccount objects - /// - public partial class V1ServiceAccountList - { - /// - /// Initializes a new instance of the V1ServiceAccountList class. - /// - public V1ServiceAccountList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ServiceAccountList class. - /// - /// - /// List of ServiceAccounts. More info: - /// https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - public V1ServiceAccountList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// List of ServiceAccounts. More info: - /// https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ServiceAccountTokenProjection.cs b/src/KubernetesClient/generated/Models/V1ServiceAccountTokenProjection.cs deleted file mode 100644 index 88c6cb598..000000000 --- a/src/KubernetesClient/generated/Models/V1ServiceAccountTokenProjection.cs +++ /dev/null @@ -1,102 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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). - /// - public partial class V1ServiceAccountTokenProjection - { - /// - /// Initializes a new instance of the V1ServiceAccountTokenProjection class. - /// - public V1ServiceAccountTokenProjection() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ServiceAccountTokenProjection class. - /// - /// - /// Path is the path relative to the mount point of the file to project the token - /// into. - /// - /// - /// 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. - /// - /// - /// ExpirationSeconds is the requested duration of validity of the service account - /// token. As the token approaches expiration, the kubelet volume plugin will - /// proactively rotate the service account token. The kubelet will start trying to - /// rotate the token if the token is older than 80 percent of its time to live or if - /// the token is older than 24 hours.Defaults to 1 hour and must be at least 10 - /// minutes. - /// - public V1ServiceAccountTokenProjection(string path, string audience = null, long? expirationSeconds = null) - { - Audience = audience; - ExpirationSeconds = expirationSeconds; - Path = path; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "audience")] - public string Audience { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "expirationSeconds")] - public long? ExpirationSeconds { get; set; } - - /// - /// Path is the path relative to the mount point of the file to project the token - /// into. - /// - [JsonProperty(PropertyName = "path")] - public string Path { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ServiceBackendPort.cs b/src/KubernetesClient/generated/Models/V1ServiceBackendPort.cs deleted file mode 100644 index 2690141e0..000000000 --- a/src/KubernetesClient/generated/Models/V1ServiceBackendPort.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ServiceBackendPort is the service port being referenced. - /// - public partial class V1ServiceBackendPort - { - /// - /// Initializes a new instance of the V1ServiceBackendPort class. - /// - public V1ServiceBackendPort() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ServiceBackendPort class. - /// - /// - /// Name is the name of the port on the Service. This is a mutually exclusive - /// setting with "Number". - /// - /// - /// Number is the numerical port number (e.g. 80) on the Service. This is a mutually - /// exclusive setting with "Name". - /// - public V1ServiceBackendPort(string name = null, int? number = null) - { - Name = name; - Number = number; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Name is the name of the port on the Service. This is a mutually exclusive - /// setting with "Number". - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Number is the numerical port number (e.g. 80) on the Service. This is a mutually - /// exclusive setting with "Name". - /// - [JsonProperty(PropertyName = "number")] - public int? Number { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ServiceList.cs b/src/KubernetesClient/generated/Models/V1ServiceList.cs deleted file mode 100644 index 68d9c7691..000000000 --- a/src/KubernetesClient/generated/Models/V1ServiceList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ServiceList holds a list of services. - /// - public partial class V1ServiceList - { - /// - /// Initializes a new instance of the V1ServiceList class. - /// - public V1ServiceList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ServiceList class. - /// - /// - /// List of services - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - public V1ServiceList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// List of services - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ServicePort.cs b/src/KubernetesClient/generated/Models/V1ServicePort.cs deleted file mode 100644 index b1a604bad..000000000 --- a/src/KubernetesClient/generated/Models/V1ServicePort.cs +++ /dev/null @@ -1,152 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ServicePort contains information on service's port. - /// - public partial class V1ServicePort - { - /// - /// Initializes a new instance of the V1ServicePort class. - /// - public V1ServicePort() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ServicePort class. - /// - /// - /// The port that will be exposed by this service. - /// - /// - /// The application protocol for this port. This field follows standard Kubernetes - /// label syntax. Un-prefixed names are reserved for IANA standard service names (as - /// per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard - /// protocols should use prefixed names such as mycompany.com/my-custom-protocol. - /// - /// - /// 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. - /// - /// - /// 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 - /// - /// - /// The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is - /// TCP. - /// - /// - /// Number or name of the port to access on the pods targeted by the service. Number - /// must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a - /// string, it will be looked up as a named port in the target Pod's container - /// ports. If this is not specified, the value of the 'port' field is used (an - /// identity map). This field is ignored for services with clusterIP=None, and - /// should be omitted or set equal to the 'port' field. More info: - /// https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service - /// - public V1ServicePort(int port, string appProtocol = null, string name = null, int? nodePort = null, string protocol = null, IntstrIntOrString targetPort = null) - { - AppProtocol = appProtocol; - Name = name; - NodePort = nodePort; - Port = port; - Protocol = protocol; - TargetPort = targetPort; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The application protocol for this port. This field follows standard Kubernetes - /// label syntax. Un-prefixed names are reserved for IANA standard service names (as - /// per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard - /// protocols should use prefixed names such as mycompany.com/my-custom-protocol. - /// - [JsonProperty(PropertyName = "appProtocol")] - public string AppProtocol { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "nodePort")] - public int? NodePort { get; set; } - - /// - /// The port that will be exposed by this service. - /// - [JsonProperty(PropertyName = "port")] - public int Port { get; set; } - - /// - /// The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is - /// TCP. - /// - [JsonProperty(PropertyName = "protocol")] - public string Protocol { get; set; } - - /// - /// Number or name of the port to access on the pods targeted by the service. Number - /// must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a - /// string, it will be looked up as a named port in the target Pod's container - /// ports. If this is not specified, the value of the 'port' field is used (an - /// identity map). This field is ignored for services with clusterIP=None, and - /// should be omitted or set equal to the 'port' field. More info: - /// https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service - /// - [JsonProperty(PropertyName = "targetPort")] - public IntstrIntOrString TargetPort { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - TargetPort?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ServiceSpec.cs b/src/KubernetesClient/generated/Models/V1ServiceSpec.cs deleted file mode 100644 index 3ae4a0f8b..000000000 --- a/src/KubernetesClient/generated/Models/V1ServiceSpec.cs +++ /dev/null @@ -1,520 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ServiceSpec describes the attributes that a user creates on a service. - /// - public partial class V1ServiceSpec - { - /// - /// Initializes a new instance of the V1ServiceSpec class. - /// - public V1ServiceSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ServiceSpec class. - /// - /// - /// 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. This field is beta-level and is only honored by servers that enable the - /// ServiceLBNodePortControl feature. - /// - /// - /// 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 - /// - /// - /// 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. - /// - /// Unless the "IPv6DualStack" feature gate is enabled, this field is limited to one - /// value, which must be the same as the clusterIP field. If the feature gate is - /// enabled, 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 - /// - /// - /// 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. - /// - /// - /// 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". - /// - /// - /// externalTrafficPolicy denotes if this Service desires to route external traffic - /// to node-local or cluster-wide endpoints. "Local" preserves the client source IP - /// and avoids a second hop for LoadBalancer and Nodeport type services, but risks - /// potentially imbalanced traffic spreading. "Cluster" obscures the client source - /// IP and may cause a second hop to another node, but should have good overall - /// load-spreading. - /// - /// - /// 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). - /// - /// - /// InternalTrafficPolicy specifies if the cluster internal traffic should be routed - /// to all endpoints or node-local endpoints only. "Cluster" routes internal traffic - /// to a Service to all endpoints. "Local" routes traffic to node-local endpoints - /// only, traffic is dropped if no node-local endpoints are ready. The default value - /// is "Cluster". - /// - /// - /// IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service, - /// and is gated by the "IPv6DualStack" feature gate. 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. - /// - /// - /// IPFamilyPolicy represents the dual-stack-ness requested or required by this - /// Service, and is gated by the "IPv6DualStack" feature gate. 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. - /// - /// - /// 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. - /// - /// - /// Only applies to Service Type: LoadBalancer LoadBalancer will get created with - /// the IP specified in this field. 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. - /// - /// - /// 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/ - /// - /// - /// 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 - /// - /// - /// 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. - /// - /// - /// 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/ - /// - /// - /// 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 - /// - /// - /// sessionAffinityConfig contains the configurations of session affinity. - /// - /// - /// type determines how the Service is exposed. Defaults to ClusterIP. Valid options - /// are ExternalName, ClusterIP, NodePort, and LoadBalancer. "ClusterIP" allocates a - /// cluster-internal IP address for load-balancing to endpoints. Endpoints are - /// determined by the selector or if that is not specified, by manual construction - /// of an Endpoints object or EndpointSlice objects. If clusterIP is "None", no - /// virtual IP is allocated and the endpoints are published as a set of endpoints - /// rather than a virtual IP. "NodePort" builds on ClusterIP and allocates a port on - /// every node which routes to the same endpoints as the clusterIP. "LoadBalancer" - /// builds on NodePort and creates an external load-balancer (if supported in the - /// current cloud) which routes to the same endpoints as the clusterIP. - /// "ExternalName" aliases this service to the specified externalName. Several other - /// fields do not apply to ExternalName services. More info: - /// https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types - /// - public V1ServiceSpec(bool? allocateLoadBalancerNodePorts = null, string clusterIP = null, IList clusterIPs = null, IList externalIPs = null, string externalName = null, string externalTrafficPolicy = null, int? healthCheckNodePort = null, string internalTrafficPolicy = null, IList ipFamilies = null, string ipFamilyPolicy = null, string loadBalancerClass = null, string loadBalancerIP = null, IList loadBalancerSourceRanges = null, IList ports = null, bool? publishNotReadyAddresses = null, IDictionary selector = null, string sessionAffinity = null, V1SessionAffinityConfig sessionAffinityConfig = null, string type = null) - { - AllocateLoadBalancerNodePorts = allocateLoadBalancerNodePorts; - ClusterIP = clusterIP; - ClusterIPs = clusterIPs; - ExternalIPs = externalIPs; - ExternalName = externalName; - ExternalTrafficPolicy = externalTrafficPolicy; - HealthCheckNodePort = healthCheckNodePort; - InternalTrafficPolicy = internalTrafficPolicy; - IpFamilies = ipFamilies; - IpFamilyPolicy = ipFamilyPolicy; - LoadBalancerClass = loadBalancerClass; - LoadBalancerIP = loadBalancerIP; - LoadBalancerSourceRanges = loadBalancerSourceRanges; - Ports = ports; - PublishNotReadyAddresses = publishNotReadyAddresses; - Selector = selector; - SessionAffinity = sessionAffinity; - SessionAffinityConfig = sessionAffinityConfig; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. This field is beta-level and is only honored by servers that enable the - /// ServiceLBNodePortControl feature. - /// - [JsonProperty(PropertyName = "allocateLoadBalancerNodePorts")] - public bool? AllocateLoadBalancerNodePorts { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "clusterIP")] - public string ClusterIP { get; set; } - - /// - /// 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. - /// - /// Unless the "IPv6DualStack" feature gate is enabled, this field is limited to one - /// value, which must be the same as the clusterIP field. If the feature gate is - /// enabled, 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 - /// - [JsonProperty(PropertyName = "clusterIPs")] - public IList ClusterIPs { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "externalIPs")] - public IList ExternalIPs { get; set; } - - /// - /// 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". - /// - [JsonProperty(PropertyName = "externalName")] - public string ExternalName { get; set; } - - /// - /// externalTrafficPolicy denotes if this Service desires to route external traffic - /// to node-local or cluster-wide endpoints. "Local" preserves the client source IP - /// and avoids a second hop for LoadBalancer and Nodeport type services, but risks - /// potentially imbalanced traffic spreading. "Cluster" obscures the client source - /// IP and may cause a second hop to another node, but should have good overall - /// load-spreading. - /// - [JsonProperty(PropertyName = "externalTrafficPolicy")] - public string ExternalTrafficPolicy { get; set; } - - /// - /// 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). - /// - [JsonProperty(PropertyName = "healthCheckNodePort")] - public int? HealthCheckNodePort { get; set; } - - /// - /// InternalTrafficPolicy specifies if the cluster internal traffic should be routed - /// to all endpoints or node-local endpoints only. "Cluster" routes internal traffic - /// to a Service to all endpoints. "Local" routes traffic to node-local endpoints - /// only, traffic is dropped if no node-local endpoints are ready. The default value - /// is "Cluster". - /// - [JsonProperty(PropertyName = "internalTrafficPolicy")] - public string InternalTrafficPolicy { get; set; } - - /// - /// IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service, - /// and is gated by the "IPv6DualStack" feature gate. 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. - /// - [JsonProperty(PropertyName = "ipFamilies")] - public IList IpFamilies { get; set; } - - /// - /// IPFamilyPolicy represents the dual-stack-ness requested or required by this - /// Service, and is gated by the "IPv6DualStack" feature gate. 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. - /// - [JsonProperty(PropertyName = "ipFamilyPolicy")] - public string IpFamilyPolicy { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "loadBalancerClass")] - public string LoadBalancerClass { get; set; } - - /// - /// Only applies to Service Type: LoadBalancer LoadBalancer will get created with - /// the IP specified in this field. 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. - /// - [JsonProperty(PropertyName = "loadBalancerIP")] - public string LoadBalancerIP { get; set; } - - /// - /// 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/ - /// - [JsonProperty(PropertyName = "loadBalancerSourceRanges")] - public IList LoadBalancerSourceRanges { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "ports")] - public IList Ports { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "publishNotReadyAddresses")] - public bool? PublishNotReadyAddresses { get; set; } - - /// - /// 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/ - /// - [JsonProperty(PropertyName = "selector")] - public IDictionary Selector { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "sessionAffinity")] - public string SessionAffinity { get; set; } - - /// - /// sessionAffinityConfig contains the configurations of session affinity. - /// - [JsonProperty(PropertyName = "sessionAffinityConfig")] - public V1SessionAffinityConfig SessionAffinityConfig { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Ports != null){ - foreach(var obj in Ports) - { - obj.Validate(); - } - } - SessionAffinityConfig?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ServiceStatus.cs b/src/KubernetesClient/generated/Models/V1ServiceStatus.cs deleted file mode 100644 index 874b5b820..000000000 --- a/src/KubernetesClient/generated/Models/V1ServiceStatus.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ServiceStatus represents the current status of a service. - /// - public partial class V1ServiceStatus - { - /// - /// Initializes a new instance of the V1ServiceStatus class. - /// - public V1ServiceStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ServiceStatus class. - /// - /// - /// Current service state - /// - /// - /// LoadBalancer contains the current status of the load-balancer, if one is - /// present. - /// - public V1ServiceStatus(IList conditions = null, V1LoadBalancerStatus loadBalancer = null) - { - Conditions = conditions; - LoadBalancer = loadBalancer; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Current service state - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// LoadBalancer contains the current status of the load-balancer, if one is - /// present. - /// - [JsonProperty(PropertyName = "loadBalancer")] - public V1LoadBalancerStatus LoadBalancer { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Conditions != null){ - foreach(var obj in Conditions) - { - obj.Validate(); - } - } - LoadBalancer?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1SessionAffinityConfig.cs b/src/KubernetesClient/generated/Models/V1SessionAffinityConfig.cs deleted file mode 100644 index deebca982..000000000 --- a/src/KubernetesClient/generated/Models/V1SessionAffinityConfig.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// SessionAffinityConfig represents the configurations of session affinity. - /// - public partial class V1SessionAffinityConfig - { - /// - /// Initializes a new instance of the V1SessionAffinityConfig class. - /// - public V1SessionAffinityConfig() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1SessionAffinityConfig class. - /// - /// - /// clientIP contains the configurations of Client IP based session affinity. - /// - public V1SessionAffinityConfig(V1ClientIPConfig clientIP = null) - { - ClientIP = clientIP; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// clientIP contains the configurations of Client IP based session affinity. - /// - [JsonProperty(PropertyName = "clientIP")] - public V1ClientIPConfig ClientIP { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - ClientIP?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1StatefulSet.cs b/src/KubernetesClient/generated/Models/V1StatefulSet.cs deleted file mode 100644 index 54affded6..000000000 --- a/src/KubernetesClient/generated/Models/V1StatefulSet.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// StatefulSet represents a set of pods with consistent identities. Identities are - /// defined as: - /// - Network: A single stable DNS and hostname. - /// - Storage: As many VolumeClaims as requested. - /// The StatefulSet guarantees that a given network identity will always map to the - /// same storage identity. - /// - public partial class V1StatefulSet - { - /// - /// Initializes a new instance of the V1StatefulSet class. - /// - public V1StatefulSet() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1StatefulSet class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Spec defines the desired identities of pods in this set. - /// - /// - /// Status is the current status of Pods in this StatefulSet. This data may be out - /// of date by some window of time. - /// - public V1StatefulSet(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1StatefulSetSpec spec = null, V1StatefulSetStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Spec defines the desired identities of pods in this set. - /// - [JsonProperty(PropertyName = "spec")] - public V1StatefulSetSpec Spec { get; set; } - - /// - /// Status is the current status of Pods in this StatefulSet. This data may be out - /// of date by some window of time. - /// - [JsonProperty(PropertyName = "status")] - public V1StatefulSetStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1StatefulSetCondition.cs b/src/KubernetesClient/generated/Models/V1StatefulSetCondition.cs deleted file mode 100644 index 444921014..000000000 --- a/src/KubernetesClient/generated/Models/V1StatefulSetCondition.cs +++ /dev/null @@ -1,101 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// StatefulSetCondition describes the state of a statefulset at a certain point. - /// - public partial class V1StatefulSetCondition - { - /// - /// Initializes a new instance of the V1StatefulSetCondition class. - /// - public V1StatefulSetCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1StatefulSetCondition class. - /// - /// - /// Status of the condition, one of True, False, Unknown. - /// - /// - /// Type of statefulset condition. - /// - /// - /// Last time the condition transitioned from one status to another. - /// - /// - /// A human readable message indicating details about the transition. - /// - /// - /// The reason for the condition's last transition. - /// - public V1StatefulSetCondition(string status, string type, System.DateTime? lastTransitionTime = null, string message = null, string reason = null) - { - LastTransitionTime = lastTransitionTime; - Message = message; - Reason = reason; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Last time the condition transitioned from one status to another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// A human readable message indicating details about the transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// The reason for the condition's last transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Status of the condition, one of True, False, Unknown. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Type of statefulset condition. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1StatefulSetList.cs b/src/KubernetesClient/generated/Models/V1StatefulSetList.cs deleted file mode 100644 index 27c91c423..000000000 --- a/src/KubernetesClient/generated/Models/V1StatefulSetList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// StatefulSetList is a collection of StatefulSets. - /// - public partial class V1StatefulSetList - { - /// - /// Initializes a new instance of the V1StatefulSetList class. - /// - public V1StatefulSetList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1StatefulSetList class. - /// - /// - /// Items is the list of stateful sets. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1StatefulSetList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is the list of stateful sets. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1StatefulSetSpec.cs b/src/KubernetesClient/generated/Models/V1StatefulSetSpec.cs deleted file mode 100644 index a01442ea3..000000000 --- a/src/KubernetesClient/generated/Models/V1StatefulSetSpec.cs +++ /dev/null @@ -1,218 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// A StatefulSetSpec is the specification of a StatefulSet. - /// - public partial class V1StatefulSetSpec - { - /// - /// Initializes a new instance of the V1StatefulSetSpec class. - /// - public V1StatefulSetSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1StatefulSetSpec class. - /// - /// - /// selector is a label query over pods that should match the replica count. It must - /// match the pod template's labels. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - /// - /// - /// 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. - /// - /// - /// template is the object that describes the pod that will be created if - /// insufficient replicas are detected. Each pod stamped out by the StatefulSet will - /// fulfill this Template, but have a unique identity from the rest of the - /// StatefulSet. - /// - /// - /// 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) This is an alpha field - /// and requires enabling StatefulSetMinReadySeconds feature gate. - /// - /// - /// podManagementPolicy controls how pods are created during initial scale up, when - /// replacing pods on nodes, or when scaling down. The default policy is - /// `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, - /// etc) and the controller will wait until each pod is ready before continuing. - /// When scaling down, the pods are removed in the opposite order. The alternative - /// policy is `Parallel` which will create pods in parallel to match the desired - /// scale without waiting, and on scale down will delete all pods at once. - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to - /// update Pods in the StatefulSet when a revision is made to Template. - /// - /// - /// volumeClaimTemplates is a list of claims that pods are allowed to reference. The - /// StatefulSet controller is responsible for mapping network identities to claims - /// in a way that maintains the identity of a pod. Every claim in this list must - /// have at least one matching (by name) volumeMount in one container in the - /// template. A claim in this list takes precedence over any volumes in the - /// template, with the same name. - /// - public V1StatefulSetSpec(V1LabelSelector selector, string serviceName, V1PodTemplateSpec template, int? minReadySeconds = null, string podManagementPolicy = null, int? replicas = null, int? revisionHistoryLimit = null, V1StatefulSetUpdateStrategy updateStrategy = null, IList volumeClaimTemplates = null) - { - MinReadySeconds = minReadySeconds; - PodManagementPolicy = podManagementPolicy; - Replicas = replicas; - RevisionHistoryLimit = revisionHistoryLimit; - Selector = selector; - ServiceName = serviceName; - Template = template; - UpdateStrategy = updateStrategy; - VolumeClaimTemplates = volumeClaimTemplates; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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) This is an alpha field - /// and requires enabling StatefulSetMinReadySeconds feature gate. - /// - [JsonProperty(PropertyName = "minReadySeconds")] - public int? MinReadySeconds { get; set; } - - /// - /// podManagementPolicy controls how pods are created during initial scale up, when - /// replacing pods on nodes, or when scaling down. The default policy is - /// `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, - /// etc) and the controller will wait until each pod is ready before continuing. - /// When scaling down, the pods are removed in the opposite order. The alternative - /// policy is `Parallel` which will create pods in parallel to match the desired - /// scale without waiting, and on scale down will delete all pods at once. - /// - [JsonProperty(PropertyName = "podManagementPolicy")] - public string PodManagementPolicy { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "replicas")] - public int? Replicas { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "revisionHistoryLimit")] - public int? RevisionHistoryLimit { get; set; } - - /// - /// selector is a label query over pods that should match the replica count. It must - /// match the pod template's labels. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - /// - [JsonProperty(PropertyName = "selector")] - public V1LabelSelector Selector { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "serviceName")] - public string ServiceName { get; set; } - - /// - /// template is the object that describes the pod that will be created if - /// insufficient replicas are detected. Each pod stamped out by the StatefulSet will - /// fulfill this Template, but have a unique identity from the rest of the - /// StatefulSet. - /// - [JsonProperty(PropertyName = "template")] - public V1PodTemplateSpec Template { get; set; } - - /// - /// updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to - /// update Pods in the StatefulSet when a revision is made to Template. - /// - [JsonProperty(PropertyName = "updateStrategy")] - public V1StatefulSetUpdateStrategy UpdateStrategy { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "volumeClaimTemplates")] - public IList VolumeClaimTemplates { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Selector == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Selector"); - } - if (Template == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Template"); - } - Selector?.Validate(); - Template?.Validate(); - UpdateStrategy?.Validate(); - if (VolumeClaimTemplates != null){ - foreach(var obj in VolumeClaimTemplates) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1StatefulSetStatus.cs b/src/KubernetesClient/generated/Models/V1StatefulSetStatus.cs deleted file mode 100644 index c6bb9c48f..000000000 --- a/src/KubernetesClient/generated/Models/V1StatefulSetStatus.cs +++ /dev/null @@ -1,181 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// StatefulSetStatus represents the current state of a StatefulSet. - /// - public partial class V1StatefulSetStatus - { - /// - /// Initializes a new instance of the V1StatefulSetStatus class. - /// - public V1StatefulSetStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1StatefulSetStatus class. - /// - /// - /// replicas is the number of Pods created by the StatefulSet controller. - /// - /// - /// Total number of available pods (ready for at least minReadySeconds) targeted by - /// this statefulset. This is an alpha field and requires enabling - /// StatefulSetMinReadySeconds feature gate. Remove omitempty when graduating to - /// beta - /// - /// - /// collisionCount is the count of hash collisions for the StatefulSet. The - /// StatefulSet controller uses this field as a collision avoidance mechanism when - /// it needs to create the name for the newest ControllerRevision. - /// - /// - /// Represents the latest available observations of a statefulset's current state. - /// - /// - /// currentReplicas is the number of Pods created by the StatefulSet controller from - /// the StatefulSet version indicated by currentRevision. - /// - /// - /// currentRevision, if not empty, indicates the version of the StatefulSet used to - /// generate Pods in the sequence [0,currentReplicas). - /// - /// - /// observedGeneration is the most recent generation observed for this StatefulSet. - /// It corresponds to the StatefulSet's generation, which is updated on mutation by - /// the API Server. - /// - /// - /// readyReplicas is the number of Pods created by the StatefulSet controller that - /// have a Ready Condition. - /// - /// - /// updateRevision, if not empty, indicates the version of the StatefulSet used to - /// generate Pods in the sequence [replicas-updatedReplicas,replicas) - /// - /// - /// updatedReplicas is the number of Pods created by the StatefulSet controller from - /// the StatefulSet version indicated by updateRevision. - /// - public V1StatefulSetStatus(int replicas, int? availableReplicas = null, int? collisionCount = null, IList conditions = null, int? currentReplicas = null, string currentRevision = null, long? observedGeneration = null, int? readyReplicas = null, string updateRevision = null, int? updatedReplicas = null) - { - AvailableReplicas = availableReplicas; - CollisionCount = collisionCount; - Conditions = conditions; - CurrentReplicas = currentReplicas; - CurrentRevision = currentRevision; - ObservedGeneration = observedGeneration; - ReadyReplicas = readyReplicas; - Replicas = replicas; - UpdateRevision = updateRevision; - UpdatedReplicas = updatedReplicas; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Total number of available pods (ready for at least minReadySeconds) targeted by - /// this statefulset. This is an alpha field and requires enabling - /// StatefulSetMinReadySeconds feature gate. Remove omitempty when graduating to - /// beta - /// - [JsonProperty(PropertyName = "availableReplicas")] - public int? AvailableReplicas { get; set; } - - /// - /// collisionCount is the count of hash collisions for the StatefulSet. The - /// StatefulSet controller uses this field as a collision avoidance mechanism when - /// it needs to create the name for the newest ControllerRevision. - /// - [JsonProperty(PropertyName = "collisionCount")] - public int? CollisionCount { get; set; } - - /// - /// Represents the latest available observations of a statefulset's current state. - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// currentReplicas is the number of Pods created by the StatefulSet controller from - /// the StatefulSet version indicated by currentRevision. - /// - [JsonProperty(PropertyName = "currentReplicas")] - public int? CurrentReplicas { get; set; } - - /// - /// currentRevision, if not empty, indicates the version of the StatefulSet used to - /// generate Pods in the sequence [0,currentReplicas). - /// - [JsonProperty(PropertyName = "currentRevision")] - public string CurrentRevision { get; set; } - - /// - /// observedGeneration is the most recent generation observed for this StatefulSet. - /// It corresponds to the StatefulSet's generation, which is updated on mutation by - /// the API Server. - /// - [JsonProperty(PropertyName = "observedGeneration")] - public long? ObservedGeneration { get; set; } - - /// - /// readyReplicas is the number of Pods created by the StatefulSet controller that - /// have a Ready Condition. - /// - [JsonProperty(PropertyName = "readyReplicas")] - public int? ReadyReplicas { get; set; } - - /// - /// replicas is the number of Pods created by the StatefulSet controller. - /// - [JsonProperty(PropertyName = "replicas")] - public int Replicas { get; set; } - - /// - /// updateRevision, if not empty, indicates the version of the StatefulSet used to - /// generate Pods in the sequence [replicas-updatedReplicas,replicas) - /// - [JsonProperty(PropertyName = "updateRevision")] - public string UpdateRevision { get; set; } - - /// - /// updatedReplicas is the number of Pods created by the StatefulSet controller from - /// the StatefulSet version indicated by updateRevision. - /// - [JsonProperty(PropertyName = "updatedReplicas")] - public int? UpdatedReplicas { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Conditions != null){ - foreach(var obj in Conditions) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1StatefulSetUpdateStrategy.cs b/src/KubernetesClient/generated/Models/V1StatefulSetUpdateStrategy.cs deleted file mode 100644 index af662eba8..000000000 --- a/src/KubernetesClient/generated/Models/V1StatefulSetUpdateStrategy.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller - /// will use to perform updates. It includes any additional parameters necessary to - /// perform the update for the indicated strategy. - /// - public partial class V1StatefulSetUpdateStrategy - { - /// - /// Initializes a new instance of the V1StatefulSetUpdateStrategy class. - /// - public V1StatefulSetUpdateStrategy() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1StatefulSetUpdateStrategy class. - /// - /// - /// RollingUpdate is used to communicate parameters when Type is - /// RollingUpdateStatefulSetStrategyType. - /// - /// - /// Type indicates the type of the StatefulSetUpdateStrategy. Default is - /// RollingUpdate. - /// - public V1StatefulSetUpdateStrategy(V1RollingUpdateStatefulSetStrategy rollingUpdate = null, string type = null) - { - RollingUpdate = rollingUpdate; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// RollingUpdate is used to communicate parameters when Type is - /// RollingUpdateStatefulSetStrategyType. - /// - [JsonProperty(PropertyName = "rollingUpdate")] - public V1RollingUpdateStatefulSetStrategy RollingUpdate { get; set; } - - /// - /// Type indicates the type of the StatefulSetUpdateStrategy. Default is - /// RollingUpdate. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - RollingUpdate?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Status.cs b/src/KubernetesClient/generated/Models/V1Status.cs deleted file mode 100644 index 4a5d670d9..000000000 --- a/src/KubernetesClient/generated/Models/V1Status.cs +++ /dev/null @@ -1,157 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Status is a return value for calls that don't return other objects. - /// - public partial class V1Status - { - /// - /// Initializes a new instance of the V1Status class. - /// - public V1Status() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Status class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Suggested HTTP return code for this status, 0 if not set. - /// - /// - /// Extended data associated with the reason. Each reason may define its own - /// extended details. This field is optional and the data returned is not guaranteed - /// to conform to any schema except that defined by the reason type. - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// A human-readable description of the status of this operation. - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// 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. - /// - /// - /// Status of the operation. One of: "Success" or "Failure". More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - public V1Status(string apiVersion = null, int? code = null, V1StatusDetails details = null, string kind = null, string message = null, V1ListMeta metadata = null, string reason = null, string status = null) - { - ApiVersion = apiVersion; - Code = code; - Details = details; - Kind = kind; - Message = message; - Metadata = metadata; - Reason = reason; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Suggested HTTP return code for this status, 0 if not set. - /// - [JsonProperty(PropertyName = "code")] - public int? Code { get; set; } - - /// - /// Extended data associated with the reason. Each reason may define its own - /// extended details. This field is optional and the data returned is not guaranteed - /// to conform to any schema except that defined by the reason type. - /// - [JsonProperty(PropertyName = "details")] - public V1StatusDetails Details { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// A human-readable description of the status of this operation. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Details?.Validate(); - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1StatusCause.cs b/src/KubernetesClient/generated/Models/V1StatusCause.cs deleted file mode 100644 index cd2318d28..000000000 --- a/src/KubernetesClient/generated/Models/V1StatusCause.cs +++ /dev/null @@ -1,100 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// StatusCause provides more information about an api.Status failure, including - /// cases when multiple errors are encountered. - /// - public partial class V1StatusCause - { - /// - /// Initializes a new instance of the V1StatusCause class. - /// - public V1StatusCause() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1StatusCause class. - /// - /// - /// 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" - /// - /// - /// A human-readable description of the cause of the error. This field may be - /// presented as-is to a reader. - /// - /// - /// A machine-readable description of the cause of the error. If this value is empty - /// there is no information available. - /// - public V1StatusCause(string field = null, string message = null, string reason = null) - { - Field = field; - Message = message; - Reason = reason; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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" - /// - [JsonProperty(PropertyName = "field")] - public string Field { get; set; } - - /// - /// A human-readable description of the cause of the error. This field may be - /// presented as-is to a reader. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// A machine-readable description of the cause of the error. If this value is empty - /// there is no information available. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1StatusDetails.cs b/src/KubernetesClient/generated/Models/V1StatusDetails.cs deleted file mode 100644 index 2f9b253c4..000000000 --- a/src/KubernetesClient/generated/Models/V1StatusDetails.cs +++ /dev/null @@ -1,135 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1StatusDetails - { - /// - /// Initializes a new instance of the V1StatusDetails class. - /// - public V1StatusDetails() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1StatusDetails class. - /// - /// - /// The Causes array includes more details associated with the StatusReason failure. - /// Not all StatusReasons may provide detailed causes. - /// - /// - /// The group attribute of the resource associated with the status StatusReason. - /// - /// - /// 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 - /// - /// - /// The name attribute of the resource associated with the status StatusReason (when - /// there is a single name which can be described). - /// - /// - /// 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. - /// - /// - /// UID of the resource. (when there is a single resource which can be described). - /// More info: http://kubernetes.io/docs/user-guide/identifiers#uids - /// - public V1StatusDetails(IList causes = null, string group = null, string kind = null, string name = null, int? retryAfterSeconds = null, string uid = null) - { - Causes = causes; - Group = group; - Kind = kind; - Name = name; - RetryAfterSeconds = retryAfterSeconds; - Uid = uid; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The Causes array includes more details associated with the StatusReason failure. - /// Not all StatusReasons may provide detailed causes. - /// - [JsonProperty(PropertyName = "causes")] - public IList Causes { get; set; } - - /// - /// The group attribute of the resource associated with the status StatusReason. - /// - [JsonProperty(PropertyName = "group")] - public string Group { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// The name attribute of the resource associated with the status StatusReason (when - /// there is a single name which can be described). - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "retryAfterSeconds")] - public int? RetryAfterSeconds { get; set; } - - /// - /// UID of the resource. (when there is a single resource which can be described). - /// More info: http://kubernetes.io/docs/user-guide/identifiers#uids - /// - [JsonProperty(PropertyName = "uid")] - public string Uid { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Causes != null){ - foreach(var obj in Causes) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1StorageClass.cs b/src/KubernetesClient/generated/Models/V1StorageClass.cs deleted file mode 100644 index b2c72a90b..000000000 --- a/src/KubernetesClient/generated/Models/V1StorageClass.cs +++ /dev/null @@ -1,194 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// StorageClass describes the parameters for a class of storage for which - /// PersistentVolumes can be dynamically provisioned. - /// - /// StorageClasses are non-namespaced; the name of the storage class according to - /// etcd is in ObjectMeta.Name. - /// - public partial class V1StorageClass - { - /// - /// Initializes a new instance of the V1StorageClass class. - /// - public V1StorageClass() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1StorageClass class. - /// - /// - /// Provisioner indicates the type of the provisioner. - /// - /// - /// AllowVolumeExpansion shows whether the storage class allow volume expand - /// - /// - /// Restrict the node topologies where volumes can be dynamically provisioned. Each - /// volume plugin defines its own supported topology specifications. An empty - /// TopologySelectorTerm list means there is no topology restriction. This field is - /// only honored by servers that enable the VolumeScheduling feature. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Dynamically provisioned PersistentVolumes of this storage class are created with - /// these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will - /// simply fail if one is invalid. - /// - /// - /// Parameters holds the parameters for the provisioner that should create volumes - /// of this storage class. - /// - /// - /// Dynamically provisioned PersistentVolumes of this storage class are created with - /// this reclaimPolicy. Defaults to Delete. - /// - /// - /// VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and - /// bound. When unset, VolumeBindingImmediate is used. This field is only honored - /// by servers that enable the VolumeScheduling feature. - /// - public V1StorageClass(string provisioner, bool? allowVolumeExpansion = null, IList allowedTopologies = null, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, IList mountOptions = null, IDictionary parameters = null, string reclaimPolicy = null, string volumeBindingMode = null) - { - AllowVolumeExpansion = allowVolumeExpansion; - AllowedTopologies = allowedTopologies; - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - MountOptions = mountOptions; - Parameters = parameters; - Provisioner = provisioner; - ReclaimPolicy = reclaimPolicy; - VolumeBindingMode = volumeBindingMode; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// AllowVolumeExpansion shows whether the storage class allow volume expand - /// - [JsonProperty(PropertyName = "allowVolumeExpansion")] - public bool? AllowVolumeExpansion { get; set; } - - /// - /// Restrict the node topologies where volumes can be dynamically provisioned. Each - /// volume plugin defines its own supported topology specifications. An empty - /// TopologySelectorTerm list means there is no topology restriction. This field is - /// only honored by servers that enable the VolumeScheduling feature. - /// - [JsonProperty(PropertyName = "allowedTopologies")] - public IList AllowedTopologies { get; set; } - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Dynamically provisioned PersistentVolumes of this storage class are created with - /// these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will - /// simply fail if one is invalid. - /// - [JsonProperty(PropertyName = "mountOptions")] - public IList MountOptions { get; set; } - - /// - /// Parameters holds the parameters for the provisioner that should create volumes - /// of this storage class. - /// - [JsonProperty(PropertyName = "parameters")] - public IDictionary Parameters { get; set; } - - /// - /// Provisioner indicates the type of the provisioner. - /// - [JsonProperty(PropertyName = "provisioner")] - public string Provisioner { get; set; } - - /// - /// Dynamically provisioned PersistentVolumes of this storage class are created with - /// this reclaimPolicy. Defaults to Delete. - /// - [JsonProperty(PropertyName = "reclaimPolicy")] - public string ReclaimPolicy { get; set; } - - /// - /// VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and - /// bound. When unset, VolumeBindingImmediate is used. This field is only honored - /// by servers that enable the VolumeScheduling feature. - /// - [JsonProperty(PropertyName = "volumeBindingMode")] - public string VolumeBindingMode { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (AllowedTopologies != null){ - foreach(var obj in AllowedTopologies) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1StorageClassList.cs b/src/KubernetesClient/generated/Models/V1StorageClassList.cs deleted file mode 100644 index 45cbdf748..000000000 --- a/src/KubernetesClient/generated/Models/V1StorageClassList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// StorageClassList is a collection of storage classes. - /// - public partial class V1StorageClassList - { - /// - /// Initializes a new instance of the V1StorageClassList class. - /// - public V1StorageClassList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1StorageClassList class. - /// - /// - /// Items is the list of StorageClasses - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1StorageClassList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is the list of StorageClasses - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1StorageOSPersistentVolumeSource.cs b/src/KubernetesClient/generated/Models/V1StorageOSPersistentVolumeSource.cs deleted file mode 100644 index e79ba1a86..000000000 --- a/src/KubernetesClient/generated/Models/V1StorageOSPersistentVolumeSource.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents a StorageOS persistent volume resource. - /// - public partial class V1StorageOSPersistentVolumeSource - { - /// - /// Initializes a new instance of the V1StorageOSPersistentVolumeSource class. - /// - public V1StorageOSPersistentVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1StorageOSPersistentVolumeSource class. - /// - /// - /// 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. - /// - /// - /// Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in - /// VolumeMounts. - /// - /// - /// SecretRef specifies the secret to use for obtaining the StorageOS API - /// credentials. If not specified, default values will be attempted. - /// - /// - /// VolumeName is the human-readable name of the StorageOS volume. Volume names are - /// only unique within a namespace. - /// - /// - /// VolumeNamespace specifies the scope of the volume within StorageOS. If no - /// namespace is specified then the Pod's namespace will be used. This allows the - /// Kubernetes name scoping to be mirrored within StorageOS for tighter integration. - /// Set VolumeName to any name to override the default behaviour. Set to "default" - /// if you are not using namespaces within StorageOS. Namespaces that do not - /// pre-exist within StorageOS will be created. - /// - public V1StorageOSPersistentVolumeSource(string fsType = null, bool? readOnlyProperty = null, V1ObjectReference secretRef = null, string volumeName = null, string volumeNamespace = null) - { - FsType = fsType; - ReadOnlyProperty = readOnlyProperty; - SecretRef = secretRef; - VolumeName = volumeName; - VolumeNamespace = volumeNamespace; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "fsType")] - public string FsType { get; set; } - - /// - /// Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in - /// VolumeMounts. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// SecretRef specifies the secret to use for obtaining the StorageOS API - /// credentials. If not specified, default values will be attempted. - /// - [JsonProperty(PropertyName = "secretRef")] - public V1ObjectReference SecretRef { get; set; } - - /// - /// VolumeName is the human-readable name of the StorageOS volume. Volume names are - /// only unique within a namespace. - /// - [JsonProperty(PropertyName = "volumeName")] - public string VolumeName { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "volumeNamespace")] - public string VolumeNamespace { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - SecretRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1StorageOSVolumeSource.cs b/src/KubernetesClient/generated/Models/V1StorageOSVolumeSource.cs deleted file mode 100644 index fed68c749..000000000 --- a/src/KubernetesClient/generated/Models/V1StorageOSVolumeSource.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents a StorageOS persistent volume resource. - /// - public partial class V1StorageOSVolumeSource - { - /// - /// Initializes a new instance of the V1StorageOSVolumeSource class. - /// - public V1StorageOSVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1StorageOSVolumeSource class. - /// - /// - /// 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. - /// - /// - /// Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in - /// VolumeMounts. - /// - /// - /// SecretRef specifies the secret to use for obtaining the StorageOS API - /// credentials. If not specified, default values will be attempted. - /// - /// - /// VolumeName is the human-readable name of the StorageOS volume. Volume names are - /// only unique within a namespace. - /// - /// - /// VolumeNamespace specifies the scope of the volume within StorageOS. If no - /// namespace is specified then the Pod's namespace will be used. This allows the - /// Kubernetes name scoping to be mirrored within StorageOS for tighter integration. - /// Set VolumeName to any name to override the default behaviour. Set to "default" - /// if you are not using namespaces within StorageOS. Namespaces that do not - /// pre-exist within StorageOS will be created. - /// - public V1StorageOSVolumeSource(string fsType = null, bool? readOnlyProperty = null, V1LocalObjectReference secretRef = null, string volumeName = null, string volumeNamespace = null) - { - FsType = fsType; - ReadOnlyProperty = readOnlyProperty; - SecretRef = secretRef; - VolumeName = volumeName; - VolumeNamespace = volumeNamespace; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "fsType")] - public string FsType { get; set; } - - /// - /// Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in - /// VolumeMounts. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// SecretRef specifies the secret to use for obtaining the StorageOS API - /// credentials. If not specified, default values will be attempted. - /// - [JsonProperty(PropertyName = "secretRef")] - public V1LocalObjectReference SecretRef { get; set; } - - /// - /// VolumeName is the human-readable name of the StorageOS volume. Volume names are - /// only unique within a namespace. - /// - [JsonProperty(PropertyName = "volumeName")] - public string VolumeName { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "volumeNamespace")] - public string VolumeNamespace { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - SecretRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Subject.cs b/src/KubernetesClient/generated/Models/V1Subject.cs deleted file mode 100644 index 8fcfc2a91..000000000 --- a/src/KubernetesClient/generated/Models/V1Subject.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1Subject - { - /// - /// Initializes a new instance of the V1Subject class. - /// - public V1Subject() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Subject class. - /// - /// - /// Kind of object being referenced. Values defined by this API group are "User", - /// "Group", and "ServiceAccount". If the Authorizer does not recognized the kind - /// value, the Authorizer should report an error. - /// - /// - /// Name of the object being referenced. - /// - /// - /// 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. - /// - /// - /// Namespace of the referenced object. If the object kind is non-namespace, such - /// as "User" or "Group", and this value is not empty the Authorizer should report - /// an error. - /// - public V1Subject(string kind, string name, string apiGroup = null, string namespaceProperty = null) - { - ApiGroup = apiGroup; - Kind = kind; - Name = name; - NamespaceProperty = namespaceProperty; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "apiGroup")] - public string ApiGroup { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Name of the object being referenced. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "namespace")] - public string NamespaceProperty { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1SubjectAccessReview.cs b/src/KubernetesClient/generated/Models/V1SubjectAccessReview.cs deleted file mode 100644 index bd768f957..000000000 --- a/src/KubernetesClient/generated/Models/V1SubjectAccessReview.cs +++ /dev/null @@ -1,124 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// SubjectAccessReview checks whether or not a user or group can perform an action. - /// - public partial class V1SubjectAccessReview - { - /// - /// Initializes a new instance of the V1SubjectAccessReview class. - /// - public V1SubjectAccessReview() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1SubjectAccessReview class. - /// - /// - /// Spec holds information about the request being evaluated - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Status is filled in by the server and indicates whether the request is allowed - /// or not - /// - public V1SubjectAccessReview(V1SubjectAccessReviewSpec spec, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1SubjectAccessReviewStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Spec holds information about the request being evaluated - /// - [JsonProperty(PropertyName = "spec")] - public V1SubjectAccessReviewSpec Spec { get; set; } - - /// - /// Status is filled in by the server and indicates whether the request is allowed - /// or not - /// - [JsonProperty(PropertyName = "status")] - public V1SubjectAccessReviewStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Spec == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Spec"); - } - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1SubjectAccessReviewSpec.cs b/src/KubernetesClient/generated/Models/V1SubjectAccessReviewSpec.cs deleted file mode 100644 index 7cdbe7127..000000000 --- a/src/KubernetesClient/generated/Models/V1SubjectAccessReviewSpec.cs +++ /dev/null @@ -1,121 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// SubjectAccessReviewSpec is a description of the access request. Exactly one of - /// ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be - /// set - /// - public partial class V1SubjectAccessReviewSpec - { - /// - /// Initializes a new instance of the V1SubjectAccessReviewSpec class. - /// - public V1SubjectAccessReviewSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1SubjectAccessReviewSpec class. - /// - /// - /// Extra corresponds to the user.Info.GetExtra() method from the authenticator. - /// Since that is input to the authorizer it needs a reflection here. - /// - /// - /// Groups is the groups you're testing for. - /// - /// - /// NonResourceAttributes describes information for a non-resource access request - /// - /// - /// ResourceAuthorizationAttributes describes information for a resource access - /// request - /// - /// - /// UID information about the requesting user. - /// - /// - /// User is the user you're testing for. If you specify "User" but not "Groups", - /// then is it interpreted as "What if User were not a member of any groups - /// - public V1SubjectAccessReviewSpec(IDictionary> extra = null, IList groups = null, V1NonResourceAttributes nonResourceAttributes = null, V1ResourceAttributes resourceAttributes = null, string uid = null, string user = null) - { - Extra = extra; - Groups = groups; - NonResourceAttributes = nonResourceAttributes; - ResourceAttributes = resourceAttributes; - Uid = uid; - User = user; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Extra corresponds to the user.Info.GetExtra() method from the authenticator. - /// Since that is input to the authorizer it needs a reflection here. - /// - [JsonProperty(PropertyName = "extra")] - public IDictionary> Extra { get; set; } - - /// - /// Groups is the groups you're testing for. - /// - [JsonProperty(PropertyName = "groups")] - public IList Groups { get; set; } - - /// - /// NonResourceAttributes describes information for a non-resource access request - /// - [JsonProperty(PropertyName = "nonResourceAttributes")] - public V1NonResourceAttributes NonResourceAttributes { get; set; } - - /// - /// ResourceAuthorizationAttributes describes information for a resource access - /// request - /// - [JsonProperty(PropertyName = "resourceAttributes")] - public V1ResourceAttributes ResourceAttributes { get; set; } - - /// - /// UID information about the requesting user. - /// - [JsonProperty(PropertyName = "uid")] - public string Uid { get; set; } - - /// - /// User is the user you're testing for. If you specify "User" but not "Groups", - /// then is it interpreted as "What if User were not a member of any groups - /// - [JsonProperty(PropertyName = "user")] - public string User { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - NonResourceAttributes?.Validate(); - ResourceAttributes?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1SubjectAccessReviewStatus.cs b/src/KubernetesClient/generated/Models/V1SubjectAccessReviewStatus.cs deleted file mode 100644 index e4bbab5a1..000000000 --- a/src/KubernetesClient/generated/Models/V1SubjectAccessReviewStatus.cs +++ /dev/null @@ -1,103 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// SubjectAccessReviewStatus - /// - public partial class V1SubjectAccessReviewStatus - { - /// - /// Initializes a new instance of the V1SubjectAccessReviewStatus class. - /// - public V1SubjectAccessReviewStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1SubjectAccessReviewStatus class. - /// - /// - /// Allowed is required. True if the action would be allowed, false otherwise. - /// - /// - /// Denied is optional. True if the action would be denied, otherwise false. If both - /// allowed is false and denied is false, then the authorizer has no opinion on - /// whether to authorize the action. Denied may not be true if Allowed is true. - /// - /// - /// EvaluationError is an indication that some error occurred during the - /// authorization check. It is entirely possible to get an error and be able to - /// continue determine authorization status in spite of it. For instance, RBAC can - /// be missing a role, but enough roles are still present and bound to reason about - /// the request. - /// - /// - /// Reason is optional. It indicates why a request was allowed or denied. - /// - public V1SubjectAccessReviewStatus(bool allowed, bool? denied = null, string evaluationError = null, string reason = null) - { - Allowed = allowed; - Denied = denied; - EvaluationError = evaluationError; - Reason = reason; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Allowed is required. True if the action would be allowed, false otherwise. - /// - [JsonProperty(PropertyName = "allowed")] - public bool Allowed { get; set; } - - /// - /// Denied is optional. True if the action would be denied, otherwise false. If both - /// allowed is false and denied is false, then the authorizer has no opinion on - /// whether to authorize the action. Denied may not be true if Allowed is true. - /// - [JsonProperty(PropertyName = "denied")] - public bool? Denied { get; set; } - - /// - /// EvaluationError is an indication that some error occurred during the - /// authorization check. It is entirely possible to get an error and be able to - /// continue determine authorization status in spite of it. For instance, RBAC can - /// be missing a role, but enough roles are still present and bound to reason about - /// the request. - /// - [JsonProperty(PropertyName = "evaluationError")] - public string EvaluationError { get; set; } - - /// - /// Reason is optional. It indicates why a request was allowed or denied. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1SubjectRulesReviewStatus.cs b/src/KubernetesClient/generated/Models/V1SubjectRulesReviewStatus.cs deleted file mode 100644 index 1816d3c6b..000000000 --- a/src/KubernetesClient/generated/Models/V1SubjectRulesReviewStatus.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// SubjectRulesReviewStatus contains the result of a rules check. This check can be - /// incomplete depending on the set of authorizers the server is configured with and - /// any errors experienced during evaluation. Because authorization rules are - /// additive, if a rule appears in a list it's safe to assume the subject has that - /// permission, even if that list is incomplete. - /// - public partial class V1SubjectRulesReviewStatus - { - /// - /// Initializes a new instance of the V1SubjectRulesReviewStatus class. - /// - public V1SubjectRulesReviewStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1SubjectRulesReviewStatus class. - /// - /// - /// Incomplete is true when the rules returned by this call are incomplete. This is - /// most commonly encountered when an authorizer, such as an external authorizer, - /// doesn't support rules evaluation. - /// - /// - /// NonResourceRules is the list of actions the subject is allowed to perform on - /// non-resources. The list ordering isn't significant, may contain duplicates, and - /// possibly be incomplete. - /// - /// - /// ResourceRules is the list of actions the subject is allowed to perform on - /// resources. The list ordering isn't significant, may contain duplicates, and - /// possibly be incomplete. - /// - /// - /// EvaluationError can appear in combination with Rules. It indicates an error - /// occurred during rule evaluation, such as an authorizer that doesn't support rule - /// evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. - /// - public V1SubjectRulesReviewStatus(bool incomplete, IList nonResourceRules, IList resourceRules, string evaluationError = null) - { - EvaluationError = evaluationError; - Incomplete = incomplete; - NonResourceRules = nonResourceRules; - ResourceRules = resourceRules; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// EvaluationError can appear in combination with Rules. It indicates an error - /// occurred during rule evaluation, such as an authorizer that doesn't support rule - /// evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. - /// - [JsonProperty(PropertyName = "evaluationError")] - public string EvaluationError { get; set; } - - /// - /// Incomplete is true when the rules returned by this call are incomplete. This is - /// most commonly encountered when an authorizer, such as an external authorizer, - /// doesn't support rules evaluation. - /// - [JsonProperty(PropertyName = "incomplete")] - public bool Incomplete { get; set; } - - /// - /// NonResourceRules is the list of actions the subject is allowed to perform on - /// non-resources. The list ordering isn't significant, may contain duplicates, and - /// possibly be incomplete. - /// - [JsonProperty(PropertyName = "nonResourceRules")] - public IList NonResourceRules { get; set; } - - /// - /// ResourceRules is the list of actions the subject is allowed to perform on - /// resources. The list ordering isn't significant, may contain duplicates, and - /// possibly be incomplete. - /// - [JsonProperty(PropertyName = "resourceRules")] - public IList ResourceRules { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (NonResourceRules != null){ - foreach(var obj in NonResourceRules) - { - obj.Validate(); - } - } - if (ResourceRules != null){ - foreach(var obj in ResourceRules) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Sysctl.cs b/src/KubernetesClient/generated/Models/V1Sysctl.cs deleted file mode 100644 index 24afb3cbc..000000000 --- a/src/KubernetesClient/generated/Models/V1Sysctl.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Sysctl defines a kernel parameter to be set - /// - public partial class V1Sysctl - { - /// - /// Initializes a new instance of the V1Sysctl class. - /// - public V1Sysctl() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Sysctl class. - /// - /// - /// Name of a property to set - /// - /// - /// Value of a property to set - /// - public V1Sysctl(string name, string value) - { - Name = name; - Value = value; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Name of a property to set - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Value of a property to set - /// - [JsonProperty(PropertyName = "value")] - public string Value { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1TCPSocketAction.cs b/src/KubernetesClient/generated/Models/V1TCPSocketAction.cs deleted file mode 100644 index 19305350c..000000000 --- a/src/KubernetesClient/generated/Models/V1TCPSocketAction.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// TCPSocketAction describes an action based on opening a socket - /// - public partial class V1TCPSocketAction - { - /// - /// Initializes a new instance of the V1TCPSocketAction class. - /// - public V1TCPSocketAction() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1TCPSocketAction class. - /// - /// - /// Number or name of the port to access on the container. Number must be in the - /// range 1 to 65535. Name must be an IANA_SVC_NAME. - /// - /// - /// Optional: Host name to connect to, defaults to the pod IP. - /// - public V1TCPSocketAction(IntstrIntOrString port, string host = null) - { - Host = host; - Port = port; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Optional: Host name to connect to, defaults to the pod IP. - /// - [JsonProperty(PropertyName = "host")] - public string Host { get; set; } - - /// - /// Number or name of the port to access on the container. Number must be in the - /// range 1 to 65535. Name must be an IANA_SVC_NAME. - /// - [JsonProperty(PropertyName = "port")] - public IntstrIntOrString Port { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Port == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Port"); - } - Port?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Taint.cs b/src/KubernetesClient/generated/Models/V1Taint.cs deleted file mode 100644 index b2e355e00..000000000 --- a/src/KubernetesClient/generated/Models/V1Taint.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// The node this Taint is attached to has the "effect" on any pod that does not - /// tolerate the Taint. - /// - public partial class V1Taint - { - /// - /// Initializes a new instance of the V1Taint class. - /// - public V1Taint() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Taint class. - /// - /// - /// Required. The effect of the taint on pods that do not tolerate the taint. Valid - /// effects are NoSchedule, PreferNoSchedule and NoExecute. - /// - /// - /// Required. The taint key to be applied to a node. - /// - /// - /// TimeAdded represents the time at which the taint was added. It is only written - /// for NoExecute taints. - /// - /// - /// The taint value corresponding to the taint key. - /// - public V1Taint(string effect, string key, System.DateTime? timeAdded = null, string value = null) - { - Effect = effect; - Key = key; - TimeAdded = timeAdded; - Value = value; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Required. The effect of the taint on pods that do not tolerate the taint. Valid - /// effects are NoSchedule, PreferNoSchedule and NoExecute. - /// - [JsonProperty(PropertyName = "effect")] - public string Effect { get; set; } - - /// - /// Required. The taint key to be applied to a node. - /// - [JsonProperty(PropertyName = "key")] - public string Key { get; set; } - - /// - /// TimeAdded represents the time at which the taint was added. It is only written - /// for NoExecute taints. - /// - [JsonProperty(PropertyName = "timeAdded")] - public System.DateTime? TimeAdded { get; set; } - - /// - /// The taint value corresponding to the taint key. - /// - [JsonProperty(PropertyName = "value")] - public string Value { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1TokenRequestSpec.cs b/src/KubernetesClient/generated/Models/V1TokenRequestSpec.cs deleted file mode 100644 index 9bfccf0f4..000000000 --- a/src/KubernetesClient/generated/Models/V1TokenRequestSpec.cs +++ /dev/null @@ -1,100 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// TokenRequestSpec contains client provided parameters of a token request. - /// - public partial class V1TokenRequestSpec - { - /// - /// Initializes a new instance of the V1TokenRequestSpec class. - /// - public V1TokenRequestSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1TokenRequestSpec class. - /// - /// - /// Audiences are the intendend audiences of the token. A recipient of a token must - /// identitfy themself with an identifier in the list of audiences of the token, and - /// otherwise should reject the token. A token issued for multiple audiences may be - /// used to authenticate against any of the audiences listed but implies a high - /// degree of trust between the target audiences. - /// - /// - /// BoundObjectRef is a reference to an object that the token will be bound to. The - /// token will only be valid for as long as the bound object exists. NOTE: The API - /// server's TokenReview endpoint will validate the BoundObjectRef, but other - /// audiences may not. Keep ExpirationSeconds small if you want prompt revocation. - /// - /// - /// ExpirationSeconds is the requested duration of validity of the request. The - /// token issuer may return a token with a different validity duration so a client - /// needs to check the 'expiration' field in a response. - /// - public V1TokenRequestSpec(IList audiences, V1BoundObjectReference boundObjectRef = null, long? expirationSeconds = null) - { - Audiences = audiences; - BoundObjectRef = boundObjectRef; - ExpirationSeconds = expirationSeconds; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Audiences are the intendend audiences of the token. A recipient of a token must - /// identitfy themself with an identifier in the list of audiences of the token, and - /// otherwise should reject the token. A token issued for multiple audiences may be - /// used to authenticate against any of the audiences listed but implies a high - /// degree of trust between the target audiences. - /// - [JsonProperty(PropertyName = "audiences")] - public IList Audiences { get; set; } - - /// - /// BoundObjectRef is a reference to an object that the token will be bound to. The - /// token will only be valid for as long as the bound object exists. NOTE: The API - /// server's TokenReview endpoint will validate the BoundObjectRef, but other - /// audiences may not. Keep ExpirationSeconds small if you want prompt revocation. - /// - [JsonProperty(PropertyName = "boundObjectRef")] - public V1BoundObjectReference BoundObjectRef { get; set; } - - /// - /// ExpirationSeconds is the requested duration of validity of the request. The - /// token issuer may return a token with a different validity duration so a client - /// needs to check the 'expiration' field in a response. - /// - [JsonProperty(PropertyName = "expirationSeconds")] - public long? ExpirationSeconds { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - BoundObjectRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1TokenRequestStatus.cs b/src/KubernetesClient/generated/Models/V1TokenRequestStatus.cs deleted file mode 100644 index d97d3b908..000000000 --- a/src/KubernetesClient/generated/Models/V1TokenRequestStatus.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// TokenRequestStatus is the result of a token request. - /// - public partial class V1TokenRequestStatus - { - /// - /// Initializes a new instance of the V1TokenRequestStatus class. - /// - public V1TokenRequestStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1TokenRequestStatus class. - /// - /// - /// ExpirationTimestamp is the time of expiration of the returned token. - /// - /// - /// Token is the opaque bearer token. - /// - public V1TokenRequestStatus(System.DateTime expirationTimestamp, string token) - { - ExpirationTimestamp = expirationTimestamp; - Token = token; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// ExpirationTimestamp is the time of expiration of the returned token. - /// - [JsonProperty(PropertyName = "expirationTimestamp")] - public System.DateTime ExpirationTimestamp { get; set; } - - /// - /// Token is the opaque bearer token. - /// - [JsonProperty(PropertyName = "token")] - public string Token { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1TokenReview.cs b/src/KubernetesClient/generated/Models/V1TokenReview.cs deleted file mode 100644 index 7849a0811..000000000 --- a/src/KubernetesClient/generated/Models/V1TokenReview.cs +++ /dev/null @@ -1,126 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// TokenReview attempts to authenticate a token to a known user. Note: TokenReview - /// requests may be cached by the webhook token authenticator plugin in the - /// kube-apiserver. - /// - public partial class V1TokenReview - { - /// - /// Initializes a new instance of the V1TokenReview class. - /// - public V1TokenReview() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1TokenReview class. - /// - /// - /// Spec holds information about the request being evaluated - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Status is filled in by the server and indicates whether the request can be - /// authenticated. - /// - public V1TokenReview(V1TokenReviewSpec spec, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1TokenReviewStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Spec holds information about the request being evaluated - /// - [JsonProperty(PropertyName = "spec")] - public V1TokenReviewSpec Spec { get; set; } - - /// - /// Status is filled in by the server and indicates whether the request can be - /// authenticated. - /// - [JsonProperty(PropertyName = "status")] - public V1TokenReviewStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Spec == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Spec"); - } - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1TokenReviewSpec.cs b/src/KubernetesClient/generated/Models/V1TokenReviewSpec.cs deleted file mode 100644 index ca1cdba0d..000000000 --- a/src/KubernetesClient/generated/Models/V1TokenReviewSpec.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// TokenReviewSpec is a description of the token authentication request. - /// - public partial class V1TokenReviewSpec - { - /// - /// Initializes a new instance of the V1TokenReviewSpec class. - /// - public V1TokenReviewSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1TokenReviewSpec class. - /// - /// - /// 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. - /// - /// - /// Token is the opaque bearer token. - /// - public V1TokenReviewSpec(IList audiences = null, string token = null) - { - Audiences = audiences; - Token = token; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "audiences")] - public IList Audiences { get; set; } - - /// - /// Token is the opaque bearer token. - /// - [JsonProperty(PropertyName = "token")] - public string Token { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1TokenReviewStatus.cs b/src/KubernetesClient/generated/Models/V1TokenReviewStatus.cs deleted file mode 100644 index 8004c1379..000000000 --- a/src/KubernetesClient/generated/Models/V1TokenReviewStatus.cs +++ /dev/null @@ -1,108 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// TokenReviewStatus is the result of the token authentication request. - /// - public partial class V1TokenReviewStatus - { - /// - /// Initializes a new instance of the V1TokenReviewStatus class. - /// - public V1TokenReviewStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1TokenReviewStatus class. - /// - /// - /// 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. - /// - /// - /// Authenticated indicates that the token was associated with a known user. - /// - /// - /// Error indicates that the token couldn't be checked - /// - /// - /// User is the UserInfo associated with the provided token. - /// - public V1TokenReviewStatus(IList audiences = null, bool? authenticated = null, string error = null, V1UserInfo user = null) - { - Audiences = audiences; - Authenticated = authenticated; - Error = error; - User = user; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "audiences")] - public IList Audiences { get; set; } - - /// - /// Authenticated indicates that the token was associated with a known user. - /// - [JsonProperty(PropertyName = "authenticated")] - public bool? Authenticated { get; set; } - - /// - /// Error indicates that the token couldn't be checked - /// - [JsonProperty(PropertyName = "error")] - public string Error { get; set; } - - /// - /// User is the UserInfo associated with the provided token. - /// - [JsonProperty(PropertyName = "user")] - public V1UserInfo User { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - User?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Toleration.cs b/src/KubernetesClient/generated/Models/V1Toleration.cs deleted file mode 100644 index 4267f1957..000000000 --- a/src/KubernetesClient/generated/Models/V1Toleration.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// The pod this Toleration is attached to tolerates any taint that matches the - /// triple <key,value,effect> using the matching operator <operator>. - /// - public partial class V1Toleration - { - /// - /// Initializes a new instance of the V1Toleration class. - /// - public V1Toleration() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Toleration class. - /// - /// - /// Effect indicates the taint effect to match. Empty means match all taint effects. - /// When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// Value is the taint value the toleration matches to. If the operator is Exists, - /// the value should be empty, otherwise just a regular string. - /// - public V1Toleration(string effect = null, string key = null, string operatorProperty = null, long? tolerationSeconds = null, string value = null) - { - Effect = effect; - Key = key; - OperatorProperty = operatorProperty; - TolerationSeconds = tolerationSeconds; - Value = value; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Effect indicates the taint effect to match. Empty means match all taint effects. - /// When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - /// - [JsonProperty(PropertyName = "effect")] - public string Effect { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "key")] - public string Key { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "operator")] - public string OperatorProperty { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "tolerationSeconds")] - public long? TolerationSeconds { get; set; } - - /// - /// Value is the taint value the toleration matches to. If the operator is Exists, - /// the value should be empty, otherwise just a regular string. - /// - [JsonProperty(PropertyName = "value")] - public string Value { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1TopologySelectorLabelRequirement.cs b/src/KubernetesClient/generated/Models/V1TopologySelectorLabelRequirement.cs deleted file mode 100644 index 2d824d6a3..000000000 --- a/src/KubernetesClient/generated/Models/V1TopologySelectorLabelRequirement.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// A topology selector requirement is a selector that matches given label. This is - /// an alpha feature and may change in the future. - /// - public partial class V1TopologySelectorLabelRequirement - { - /// - /// Initializes a new instance of the V1TopologySelectorLabelRequirement class. - /// - public V1TopologySelectorLabelRequirement() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1TopologySelectorLabelRequirement class. - /// - /// - /// The label key that the selector applies to. - /// - /// - /// An array of string values. One value must match the label to be selected. Each - /// entry in Values is ORed. - /// - public V1TopologySelectorLabelRequirement(string key, IList values) - { - Key = key; - Values = values; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The label key that the selector applies to. - /// - [JsonProperty(PropertyName = "key")] - public string Key { get; set; } - - /// - /// An array of string values. One value must match the label to be selected. Each - /// entry in Values is ORed. - /// - [JsonProperty(PropertyName = "values")] - public IList Values { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1TopologySelectorTerm.cs b/src/KubernetesClient/generated/Models/V1TopologySelectorTerm.cs deleted file mode 100644 index 1ce0c4574..000000000 --- a/src/KubernetesClient/generated/Models/V1TopologySelectorTerm.cs +++ /dev/null @@ -1,70 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1TopologySelectorTerm - { - /// - /// Initializes a new instance of the V1TopologySelectorTerm class. - /// - public V1TopologySelectorTerm() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1TopologySelectorTerm class. - /// - /// - /// A list of topology selector requirements by labels. - /// - public V1TopologySelectorTerm(IList matchLabelExpressions = null) - { - MatchLabelExpressions = matchLabelExpressions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// A list of topology selector requirements by labels. - /// - [JsonProperty(PropertyName = "matchLabelExpressions")] - public IList MatchLabelExpressions { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (MatchLabelExpressions != null){ - foreach(var obj in MatchLabelExpressions) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1TopologySpreadConstraint.cs b/src/KubernetesClient/generated/Models/V1TopologySpreadConstraint.cs deleted file mode 100644 index 8083f68b8..000000000 --- a/src/KubernetesClient/generated/Models/V1TopologySpreadConstraint.cs +++ /dev/null @@ -1,149 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// TopologySpreadConstraint specifies how to spread matching pods among the given - /// topology. - /// - public partial class V1TopologySpreadConstraint - { - /// - /// Initializes a new instance of the V1TopologySpreadConstraint class. - /// - public V1TopologySpreadConstraint() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1TopologySpreadConstraint class. - /// - /// - /// 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. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with - /// the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P - /// | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to - /// become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) 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. - /// - /// - /// 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. It's a required field. - /// - /// - /// 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 assigment 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. - /// - /// - /// LabelSelector is used to find matching pods. Pods that match this label selector - /// are counted to determine the number of pods in their corresponding topology - /// domain. - /// - public V1TopologySpreadConstraint(int maxSkew, string topologyKey, string whenUnsatisfiable, V1LabelSelector labelSelector = null) - { - LabelSelector = labelSelector; - MaxSkew = maxSkew; - TopologyKey = topologyKey; - WhenUnsatisfiable = whenUnsatisfiable; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// LabelSelector is used to find matching pods. Pods that match this label selector - /// are counted to determine the number of pods in their corresponding topology - /// domain. - /// - [JsonProperty(PropertyName = "labelSelector")] - public V1LabelSelector LabelSelector { get; set; } - - /// - /// 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. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with - /// the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P - /// | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to - /// become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) 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. - /// - [JsonProperty(PropertyName = "maxSkew")] - public int MaxSkew { get; set; } - - /// - /// 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. It's a required field. - /// - [JsonProperty(PropertyName = "topologyKey")] - public string TopologyKey { get; set; } - - /// - /// 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 assigment 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. - /// - [JsonProperty(PropertyName = "whenUnsatisfiable")] - public string WhenUnsatisfiable { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - LabelSelector?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1TypedLocalObjectReference.cs b/src/KubernetesClient/generated/Models/V1TypedLocalObjectReference.cs deleted file mode 100644 index 7c32211be..000000000 --- a/src/KubernetesClient/generated/Models/V1TypedLocalObjectReference.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// TypedLocalObjectReference contains enough information to let you locate the - /// typed referenced object inside the same namespace. - /// - public partial class V1TypedLocalObjectReference - { - /// - /// Initializes a new instance of the V1TypedLocalObjectReference class. - /// - public V1TypedLocalObjectReference() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1TypedLocalObjectReference class. - /// - /// - /// Kind is the type of resource being referenced - /// - /// - /// Name is the name of resource being referenced - /// - /// - /// APIGroup is the group for the resource being referenced. If APIGroup is not - /// specified, the specified Kind must be in the core API group. For any other - /// third-party types, APIGroup is required. - /// - public V1TypedLocalObjectReference(string kind, string name, string apiGroup = null) - { - ApiGroup = apiGroup; - Kind = kind; - Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "apiGroup")] - public string ApiGroup { get; set; } - - /// - /// Kind is the type of resource being referenced - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Name is the name of resource being referenced - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1UncountedTerminatedPods.cs b/src/KubernetesClient/generated/Models/V1UncountedTerminatedPods.cs deleted file mode 100644 index 27ce11f7f..000000000 --- a/src/KubernetesClient/generated/Models/V1UncountedTerminatedPods.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been - /// accounted in Job status counters. - /// - public partial class V1UncountedTerminatedPods - { - /// - /// Initializes a new instance of the V1UncountedTerminatedPods class. - /// - public V1UncountedTerminatedPods() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1UncountedTerminatedPods class. - /// - /// - /// Failed holds UIDs of failed Pods. - /// - /// - /// Succeeded holds UIDs of succeeded Pods. - /// - public V1UncountedTerminatedPods(IList failed = null, IList succeeded = null) - { - Failed = failed; - Succeeded = succeeded; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Failed holds UIDs of failed Pods. - /// - [JsonProperty(PropertyName = "failed")] - public IList Failed { get; set; } - - /// - /// Succeeded holds UIDs of succeeded Pods. - /// - [JsonProperty(PropertyName = "succeeded")] - public IList Succeeded { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1UserInfo.cs b/src/KubernetesClient/generated/Models/V1UserInfo.cs deleted file mode 100644 index b5b8f17e6..000000000 --- a/src/KubernetesClient/generated/Models/V1UserInfo.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// UserInfo holds the information about the user needed to implement the user.Info - /// interface. - /// - public partial class V1UserInfo - { - /// - /// Initializes a new instance of the V1UserInfo class. - /// - public V1UserInfo() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1UserInfo class. - /// - /// - /// Any additional information provided by the authenticator. - /// - /// - /// The names of groups this user is a part of. - /// - /// - /// 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. - /// - /// - /// The name that uniquely identifies this user among all active users. - /// - public V1UserInfo(IDictionary> extra = null, IList groups = null, string uid = null, string username = null) - { - Extra = extra; - Groups = groups; - Uid = uid; - Username = username; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Any additional information provided by the authenticator. - /// - [JsonProperty(PropertyName = "extra")] - public IDictionary> Extra { get; set; } - - /// - /// The names of groups this user is a part of. - /// - [JsonProperty(PropertyName = "groups")] - public IList Groups { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "uid")] - public string Uid { get; set; } - - /// - /// The name that uniquely identifies this user among all active users. - /// - [JsonProperty(PropertyName = "username")] - public string Username { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ValidatingWebhook.cs b/src/KubernetesClient/generated/Models/V1ValidatingWebhook.cs deleted file mode 100644 index 1953a63e8..000000000 --- a/src/KubernetesClient/generated/Models/V1ValidatingWebhook.cs +++ /dev/null @@ -1,337 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ValidatingWebhook describes an admission webhook and the resources and - /// operations it applies to. - /// - public partial class V1ValidatingWebhook - { - /// - /// Initializes a new instance of the V1ValidatingWebhook class. - /// - public V1ValidatingWebhook() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ValidatingWebhook class. - /// - /// - /// AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` - /// versions the Webhook expects. API server will try to use first version in the - /// list which it supports. If none of the versions specified in this list supported - /// by API server, validation will fail for this object. If a persisted webhook - /// configuration specifies allowed versions and does not include any versions known - /// to the API Server, calls to the webhook will fail and be subject to the failure - /// policy. - /// - /// - /// ClientConfig defines how to communicate with the hook. Required - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// FailurePolicy defines how unrecognized errors from the admission endpoint are - /// handled - allowed values are Ignore or Fail. Defaults to Fail. - /// - /// - /// 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" - /// - /// - /// NamespaceSelector decides whether to run the webhook on an object based on - /// whether the namespace for that object matches the selector. If the object itself - /// is a namespace, the matching is performed on object.metadata.labels. If the - /// object is another cluster scoped resource, it never skips the webhook. - /// - /// For example, to run the webhook on any objects whose namespace is not associated - /// with "runlevel" of "0" or "1"; you will set the selector as follows: - /// "namespaceSelector": { - /// "matchExpressions": [ - /// { - /// "key": "runlevel", - /// "operator": "NotIn", - /// "values": [ - /// "0", - /// "1" - /// ] - /// } - /// ] - /// } - /// - /// If instead you want to only run the webhook on any objects whose namespace is - /// associated with the "environment" of "prod" or "staging"; you will set the - /// selector as follows: "namespaceSelector": { - /// "matchExpressions": [ - /// { - /// "key": "environment", - /// "operator": "In", - /// "values": [ - /// "prod", - /// "staging" - /// ] - /// } - /// ] - /// } - /// - /// See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for - /// more examples of label selectors. - /// - /// Default to the empty LabelSelector, which matches everything. - /// - /// - /// ObjectSelector decides whether to run the webhook based on if the object has - /// matching labels. objectSelector is evaluated against both the oldObject and - /// newObject that would be sent to the webhook, and is considered to match if - /// either object matches the selector. A null object (oldObject in the case of - /// create, or newObject in the case of delete) or an object that cannot have labels - /// (like a DeploymentRollback or a PodProxyOptions object) is not considered to - /// match. Use the object selector only if the webhook is opt-in, because end users - /// may skip the admission webhook by setting the labels. Default to the empty - /// LabelSelector, which matches everything. - /// - /// - /// 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. - /// - /// - /// TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, - /// the webhook call will be ignored or the API call will fail based on the failure - /// policy. The timeout value must be between 1 and 30 seconds. Default to 10 - /// seconds. - /// - public V1ValidatingWebhook(IList admissionReviewVersions, Admissionregistrationv1WebhookClientConfig clientConfig, string name, string sideEffects, string failurePolicy = null, string matchPolicy = null, V1LabelSelector namespaceSelector = null, V1LabelSelector objectSelector = null, IList rules = null, int? timeoutSeconds = null) - { - AdmissionReviewVersions = admissionReviewVersions; - ClientConfig = clientConfig; - FailurePolicy = failurePolicy; - MatchPolicy = matchPolicy; - Name = name; - NamespaceSelector = namespaceSelector; - ObjectSelector = objectSelector; - Rules = rules; - SideEffects = sideEffects; - TimeoutSeconds = timeoutSeconds; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "admissionReviewVersions")] - public IList AdmissionReviewVersions { get; set; } - - /// - /// ClientConfig defines how to communicate with the hook. Required - /// - [JsonProperty(PropertyName = "clientConfig")] - public Admissionregistrationv1WebhookClientConfig ClientConfig { get; set; } - - /// - /// FailurePolicy defines how unrecognized errors from the admission endpoint are - /// handled - allowed values are Ignore or Fail. Defaults to Fail. - /// - [JsonProperty(PropertyName = "failurePolicy")] - public string FailurePolicy { get; set; } - - /// - /// 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" - /// - [JsonProperty(PropertyName = "matchPolicy")] - public string MatchPolicy { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// NamespaceSelector decides whether to run the webhook on an object based on - /// whether the namespace for that object matches the selector. If the object itself - /// is a namespace, the matching is performed on object.metadata.labels. If the - /// object is another cluster scoped resource, it never skips the webhook. - /// - /// For example, to run the webhook on any objects whose namespace is not associated - /// with "runlevel" of "0" or "1"; you will set the selector as follows: - /// "namespaceSelector": { - /// "matchExpressions": [ - /// { - /// "key": "runlevel", - /// "operator": "NotIn", - /// "values": [ - /// "0", - /// "1" - /// ] - /// } - /// ] - /// } - /// - /// If instead you want to only run the webhook on any objects whose namespace is - /// associated with the "environment" of "prod" or "staging"; you will set the - /// selector as follows: "namespaceSelector": { - /// "matchExpressions": [ - /// { - /// "key": "environment", - /// "operator": "In", - /// "values": [ - /// "prod", - /// "staging" - /// ] - /// } - /// ] - /// } - /// - /// See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for - /// more examples of label selectors. - /// - /// Default to the empty LabelSelector, which matches everything. - /// - [JsonProperty(PropertyName = "namespaceSelector")] - public V1LabelSelector NamespaceSelector { get; set; } - - /// - /// ObjectSelector decides whether to run the webhook based on if the object has - /// matching labels. objectSelector is evaluated against both the oldObject and - /// newObject that would be sent to the webhook, and is considered to match if - /// either object matches the selector. A null object (oldObject in the case of - /// create, or newObject in the case of delete) or an object that cannot have labels - /// (like a DeploymentRollback or a PodProxyOptions object) is not considered to - /// match. Use the object selector only if the webhook is opt-in, because end users - /// may skip the admission webhook by setting the labels. Default to the empty - /// LabelSelector, which matches everything. - /// - [JsonProperty(PropertyName = "objectSelector")] - public V1LabelSelector ObjectSelector { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "rules")] - public IList Rules { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "sideEffects")] - public string SideEffects { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "timeoutSeconds")] - public int? TimeoutSeconds { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (ClientConfig == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ClientConfig"); - } - ClientConfig?.Validate(); - NamespaceSelector?.Validate(); - ObjectSelector?.Validate(); - if (Rules != null){ - foreach(var obj in Rules) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ValidatingWebhookConfiguration.cs b/src/KubernetesClient/generated/Models/V1ValidatingWebhookConfiguration.cs deleted file mode 100644 index e44316ca6..000000000 --- a/src/KubernetesClient/generated/Models/V1ValidatingWebhookConfiguration.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ValidatingWebhookConfiguration describes the configuration of and admission - /// webhook that accept or reject and object without changing it. - /// - public partial class V1ValidatingWebhookConfiguration - { - /// - /// Initializes a new instance of the V1ValidatingWebhookConfiguration class. - /// - public V1ValidatingWebhookConfiguration() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ValidatingWebhookConfiguration class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object metadata; More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - /// - /// - /// Webhooks is a list of webhooks and the affected resources and operations. - /// - public V1ValidatingWebhookConfiguration(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, IList webhooks = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Webhooks = webhooks; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object metadata; More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Webhooks is a list of webhooks and the affected resources and operations. - /// - [JsonProperty(PropertyName = "webhooks")] - public IList Webhooks { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - if (Webhooks != null){ - foreach(var obj in Webhooks) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1ValidatingWebhookConfigurationList.cs b/src/KubernetesClient/generated/Models/V1ValidatingWebhookConfigurationList.cs deleted file mode 100644 index ebd9e9dcb..000000000 --- a/src/KubernetesClient/generated/Models/V1ValidatingWebhookConfigurationList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. - /// - public partial class V1ValidatingWebhookConfigurationList - { - /// - /// Initializes a new instance of the V1ValidatingWebhookConfigurationList class. - /// - public V1ValidatingWebhookConfigurationList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1ValidatingWebhookConfigurationList class. - /// - /// - /// List of ValidatingWebhookConfiguration. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - public V1ValidatingWebhookConfigurationList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// List of ValidatingWebhookConfiguration. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1Volume.cs b/src/KubernetesClient/generated/Models/V1Volume.cs deleted file mode 100644 index 08f5c84c8..000000000 --- a/src/KubernetesClient/generated/Models/V1Volume.cs +++ /dev/null @@ -1,495 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Volume represents a named volume in a pod that may be accessed by any container - /// in the pod. - /// - public partial class V1Volume - { - /// - /// Initializes a new instance of the V1Volume class. - /// - public V1Volume() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Volume class. - /// - /// - /// Volume's name. Must be a DNS_LABEL and unique within the pod. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - /// - /// - /// 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 - /// - /// - /// AzureDisk represents an Azure Data Disk mount on the host and bind mount to the - /// pod. - /// - /// - /// AzureFile represents an Azure File Service mount on the host and bind mount to - /// the pod. - /// - /// - /// CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - /// - /// - /// Cinder represents a cinder volume attached and mounted on kubelets host machine. - /// More info: https://examples.k8s.io/mysql-cinder-pd/README.md - /// - /// - /// ConfigMap represents a configMap that should populate this volume - /// - /// - /// CSI (Container Storage Interface) represents ephemeral storage that is handled - /// by certain external CSI drivers (Beta feature). - /// - /// - /// DownwardAPI represents downward API about the pod that should populate this - /// volume - /// - /// - /// EmptyDir represents a temporary directory that shares a pod's lifetime. More - /// info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - /// - /// - /// Ephemeral represents a volume that is handled by a cluster storage driver. The - /// volume's lifecycle is tied to the pod that defines it - it will be created - /// before the pod starts, and deleted when the pod is removed. - /// - /// Use this if: a) the volume is only needed while the pod runs, b) features of - /// normal volumes like restoring from snapshot or capacity - /// tracking are needed, - /// c) the storage driver is specified through a storage class, and d) the storage - /// driver supports dynamic volume provisioning through - /// a PersistentVolumeClaim (see EphemeralVolumeSource for more - /// information on the connection between this volume type - /// and PersistentVolumeClaim). - /// - /// Use PersistentVolumeClaim or one of the vendor-specific APIs for volumes that - /// persist for longer than the lifecycle of an individual pod. - /// - /// Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to - /// be used that way - see the documentation of the driver for more information. - /// - /// A pod can use both types of ephemeral volumes and persistent volumes at the same - /// time. - /// - /// This is a beta feature and only available when the GenericEphemeralVolume - /// feature gate is enabled. - /// - /// - /// FC represents a Fibre Channel resource that is attached to a kubelet's host - /// machine and then exposed to the pod. - /// - /// - /// FlexVolume represents a generic volume resource that is provisioned/attached - /// using an exec based plugin. - /// - /// - /// Flocker represents a Flocker volume attached to a kubelet's host machine. This - /// depends on the Flocker control service being running - /// - /// - /// 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 - /// - /// - /// 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. - /// - /// - /// Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. - /// More info: https://examples.k8s.io/volumes/glusterfs/README.md - /// - /// - /// 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 - /// - /// - /// 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 - /// - /// - /// NFS represents an NFS mount on the host that shares a pod's lifetime More info: - /// https://kubernetes.io/docs/concepts/storage/volumes#nfs - /// - /// - /// PersistentVolumeClaimVolumeSource represents a reference to a - /// PersistentVolumeClaim in the same namespace. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - /// - /// - /// PhotonPersistentDisk represents a PhotonController persistent disk attached and - /// mounted on kubelets host machine - /// - /// - /// PortworxVolume represents a portworx volume attached and mounted on kubelets - /// host machine - /// - /// - /// Items for all in one resources secrets, configmaps, and downward API - /// - /// - /// Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - /// - /// - /// 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 - /// - /// - /// ScaleIO represents a ScaleIO persistent volume attached and mounted on - /// Kubernetes nodes. - /// - /// - /// Secret represents a secret that should populate this volume. More info: - /// https://kubernetes.io/docs/concepts/storage/volumes#secret - /// - /// - /// StorageOS represents a StorageOS volume attached and mounted on Kubernetes - /// nodes. - /// - /// - /// VsphereVolume represents a vSphere volume attached and mounted on kubelets host - /// machine - /// - public V1Volume(string name, V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore = null, V1AzureDiskVolumeSource azureDisk = null, V1AzureFileVolumeSource azureFile = null, V1CephFSVolumeSource cephfs = null, V1CinderVolumeSource cinder = null, V1ConfigMapVolumeSource configMap = null, V1CSIVolumeSource csi = null, V1DownwardAPIVolumeSource downwardAPI = null, V1EmptyDirVolumeSource emptyDir = null, V1EphemeralVolumeSource ephemeral = null, V1FCVolumeSource fc = null, V1FlexVolumeSource flexVolume = null, V1FlockerVolumeSource flocker = null, V1GCEPersistentDiskVolumeSource gcePersistentDisk = null, V1GitRepoVolumeSource gitRepo = null, V1GlusterfsVolumeSource glusterfs = null, V1HostPathVolumeSource hostPath = null, V1ISCSIVolumeSource iscsi = null, V1NFSVolumeSource nfs = null, V1PersistentVolumeClaimVolumeSource persistentVolumeClaim = null, V1PhotonPersistentDiskVolumeSource photonPersistentDisk = null, V1PortworxVolumeSource portworxVolume = null, V1ProjectedVolumeSource projected = null, V1QuobyteVolumeSource quobyte = null, V1RBDVolumeSource rbd = null, V1ScaleIOVolumeSource scaleIO = null, V1SecretVolumeSource secret = null, V1StorageOSVolumeSource storageos = null, V1VsphereVirtualDiskVolumeSource vsphereVolume = null) - { - AwsElasticBlockStore = awsElasticBlockStore; - AzureDisk = azureDisk; - AzureFile = azureFile; - Cephfs = cephfs; - Cinder = cinder; - ConfigMap = configMap; - Csi = csi; - DownwardAPI = downwardAPI; - EmptyDir = emptyDir; - Ephemeral = ephemeral; - Fc = fc; - FlexVolume = flexVolume; - Flocker = flocker; - GcePersistentDisk = gcePersistentDisk; - GitRepo = gitRepo; - Glusterfs = glusterfs; - HostPath = hostPath; - Iscsi = iscsi; - Name = name; - Nfs = nfs; - PersistentVolumeClaim = persistentVolumeClaim; - PhotonPersistentDisk = photonPersistentDisk; - PortworxVolume = portworxVolume; - Projected = projected; - Quobyte = quobyte; - Rbd = rbd; - ScaleIO = scaleIO; - Secret = secret; - Storageos = storageos; - VsphereVolume = vsphereVolume; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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 - /// - [JsonProperty(PropertyName = "awsElasticBlockStore")] - public V1AWSElasticBlockStoreVolumeSource AwsElasticBlockStore { get; set; } - - /// - /// AzureDisk represents an Azure Data Disk mount on the host and bind mount to the - /// pod. - /// - [JsonProperty(PropertyName = "azureDisk")] - public V1AzureDiskVolumeSource AzureDisk { get; set; } - - /// - /// AzureFile represents an Azure File Service mount on the host and bind mount to - /// the pod. - /// - [JsonProperty(PropertyName = "azureFile")] - public V1AzureFileVolumeSource AzureFile { get; set; } - - /// - /// CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - /// - [JsonProperty(PropertyName = "cephfs")] - public V1CephFSVolumeSource Cephfs { get; set; } - - /// - /// Cinder represents a cinder volume attached and mounted on kubelets host machine. - /// More info: https://examples.k8s.io/mysql-cinder-pd/README.md - /// - [JsonProperty(PropertyName = "cinder")] - public V1CinderVolumeSource Cinder { get; set; } - - /// - /// ConfigMap represents a configMap that should populate this volume - /// - [JsonProperty(PropertyName = "configMap")] - public V1ConfigMapVolumeSource ConfigMap { get; set; } - - /// - /// CSI (Container Storage Interface) represents ephemeral storage that is handled - /// by certain external CSI drivers (Beta feature). - /// - [JsonProperty(PropertyName = "csi")] - public V1CSIVolumeSource Csi { get; set; } - - /// - /// DownwardAPI represents downward API about the pod that should populate this - /// volume - /// - [JsonProperty(PropertyName = "downwardAPI")] - public V1DownwardAPIVolumeSource DownwardAPI { get; set; } - - /// - /// EmptyDir represents a temporary directory that shares a pod's lifetime. More - /// info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - /// - [JsonProperty(PropertyName = "emptyDir")] - public V1EmptyDirVolumeSource EmptyDir { get; set; } - - /// - /// Ephemeral represents a volume that is handled by a cluster storage driver. The - /// volume's lifecycle is tied to the pod that defines it - it will be created - /// before the pod starts, and deleted when the pod is removed. - /// - /// Use this if: a) the volume is only needed while the pod runs, b) features of - /// normal volumes like restoring from snapshot or capacity - /// tracking are needed, - /// c) the storage driver is specified through a storage class, and d) the storage - /// driver supports dynamic volume provisioning through - /// a PersistentVolumeClaim (see EphemeralVolumeSource for more - /// information on the connection between this volume type - /// and PersistentVolumeClaim). - /// - /// Use PersistentVolumeClaim or one of the vendor-specific APIs for volumes that - /// persist for longer than the lifecycle of an individual pod. - /// - /// Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to - /// be used that way - see the documentation of the driver for more information. - /// - /// A pod can use both types of ephemeral volumes and persistent volumes at the same - /// time. - /// - /// This is a beta feature and only available when the GenericEphemeralVolume - /// feature gate is enabled. - /// - [JsonProperty(PropertyName = "ephemeral")] - public V1EphemeralVolumeSource Ephemeral { get; set; } - - /// - /// FC represents a Fibre Channel resource that is attached to a kubelet's host - /// machine and then exposed to the pod. - /// - [JsonProperty(PropertyName = "fc")] - public V1FCVolumeSource Fc { get; set; } - - /// - /// FlexVolume represents a generic volume resource that is provisioned/attached - /// using an exec based plugin. - /// - [JsonProperty(PropertyName = "flexVolume")] - public V1FlexVolumeSource FlexVolume { get; set; } - - /// - /// Flocker represents a Flocker volume attached to a kubelet's host machine. This - /// depends on the Flocker control service being running - /// - [JsonProperty(PropertyName = "flocker")] - public V1FlockerVolumeSource Flocker { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "gcePersistentDisk")] - public V1GCEPersistentDiskVolumeSource GcePersistentDisk { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "gitRepo")] - public V1GitRepoVolumeSource GitRepo { get; set; } - - /// - /// Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. - /// More info: https://examples.k8s.io/volumes/glusterfs/README.md - /// - [JsonProperty(PropertyName = "glusterfs")] - public V1GlusterfsVolumeSource Glusterfs { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "hostPath")] - public V1HostPathVolumeSource HostPath { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "iscsi")] - public V1ISCSIVolumeSource Iscsi { get; set; } - - /// - /// Volume's name. Must be a DNS_LABEL and unique within the pod. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// NFS represents an NFS mount on the host that shares a pod's lifetime More info: - /// https://kubernetes.io/docs/concepts/storage/volumes#nfs - /// - [JsonProperty(PropertyName = "nfs")] - public V1NFSVolumeSource Nfs { get; set; } - - /// - /// PersistentVolumeClaimVolumeSource represents a reference to a - /// PersistentVolumeClaim in the same namespace. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - /// - [JsonProperty(PropertyName = "persistentVolumeClaim")] - public V1PersistentVolumeClaimVolumeSource PersistentVolumeClaim { get; set; } - - /// - /// PhotonPersistentDisk represents a PhotonController persistent disk attached and - /// mounted on kubelets host machine - /// - [JsonProperty(PropertyName = "photonPersistentDisk")] - public V1PhotonPersistentDiskVolumeSource PhotonPersistentDisk { get; set; } - - /// - /// PortworxVolume represents a portworx volume attached and mounted on kubelets - /// host machine - /// - [JsonProperty(PropertyName = "portworxVolume")] - public V1PortworxVolumeSource PortworxVolume { get; set; } - - /// - /// Items for all in one resources secrets, configmaps, and downward API - /// - [JsonProperty(PropertyName = "projected")] - public V1ProjectedVolumeSource Projected { get; set; } - - /// - /// Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - /// - [JsonProperty(PropertyName = "quobyte")] - public V1QuobyteVolumeSource Quobyte { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "rbd")] - public V1RBDVolumeSource Rbd { get; set; } - - /// - /// ScaleIO represents a ScaleIO persistent volume attached and mounted on - /// Kubernetes nodes. - /// - [JsonProperty(PropertyName = "scaleIO")] - public V1ScaleIOVolumeSource ScaleIO { get; set; } - - /// - /// Secret represents a secret that should populate this volume. More info: - /// https://kubernetes.io/docs/concepts/storage/volumes#secret - /// - [JsonProperty(PropertyName = "secret")] - public V1SecretVolumeSource Secret { get; set; } - - /// - /// StorageOS represents a StorageOS volume attached and mounted on Kubernetes - /// nodes. - /// - [JsonProperty(PropertyName = "storageos")] - public V1StorageOSVolumeSource Storageos { get; set; } - - /// - /// VsphereVolume represents a vSphere volume attached and mounted on kubelets host - /// machine - /// - [JsonProperty(PropertyName = "vsphereVolume")] - public V1VsphereVirtualDiskVolumeSource VsphereVolume { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - AwsElasticBlockStore?.Validate(); - AzureDisk?.Validate(); - AzureFile?.Validate(); - Cephfs?.Validate(); - Cinder?.Validate(); - ConfigMap?.Validate(); - Csi?.Validate(); - DownwardAPI?.Validate(); - EmptyDir?.Validate(); - Ephemeral?.Validate(); - Fc?.Validate(); - FlexVolume?.Validate(); - Flocker?.Validate(); - GcePersistentDisk?.Validate(); - GitRepo?.Validate(); - Glusterfs?.Validate(); - HostPath?.Validate(); - Iscsi?.Validate(); - Nfs?.Validate(); - PersistentVolumeClaim?.Validate(); - PhotonPersistentDisk?.Validate(); - PortworxVolume?.Validate(); - Projected?.Validate(); - Quobyte?.Validate(); - Rbd?.Validate(); - ScaleIO?.Validate(); - Secret?.Validate(); - Storageos?.Validate(); - VsphereVolume?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1VolumeAttachment.cs b/src/KubernetesClient/generated/Models/V1VolumeAttachment.cs deleted file mode 100644 index c5a963c13..000000000 --- a/src/KubernetesClient/generated/Models/V1VolumeAttachment.cs +++ /dev/null @@ -1,129 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// VolumeAttachment captures the intent to attach or detach the specified volume - /// to/from the specified node. - /// - /// VolumeAttachment objects are non-namespaced. - /// - public partial class V1VolumeAttachment - { - /// - /// Initializes a new instance of the V1VolumeAttachment class. - /// - public V1VolumeAttachment() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1VolumeAttachment class. - /// - /// - /// Specification of the desired attach/detach volume behavior. Populated by the - /// Kubernetes system. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Status of the VolumeAttachment request. Populated by the entity completing the - /// attach or detach operation, i.e. the external-attacher. - /// - public V1VolumeAttachment(V1VolumeAttachmentSpec spec, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1VolumeAttachmentStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Specification of the desired attach/detach volume behavior. Populated by the - /// Kubernetes system. - /// - [JsonProperty(PropertyName = "spec")] - public V1VolumeAttachmentSpec Spec { get; set; } - - /// - /// Status of the VolumeAttachment request. Populated by the entity completing the - /// attach or detach operation, i.e. the external-attacher. - /// - [JsonProperty(PropertyName = "status")] - public V1VolumeAttachmentStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Spec == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Spec"); - } - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1VolumeAttachmentList.cs b/src/KubernetesClient/generated/Models/V1VolumeAttachmentList.cs deleted file mode 100644 index 0a9ac05b4..000000000 --- a/src/KubernetesClient/generated/Models/V1VolumeAttachmentList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// VolumeAttachmentList is a collection of VolumeAttachment objects. - /// - public partial class V1VolumeAttachmentList - { - /// - /// Initializes a new instance of the V1VolumeAttachmentList class. - /// - public V1VolumeAttachmentList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1VolumeAttachmentList class. - /// - /// - /// Items is the list of VolumeAttachments - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1VolumeAttachmentList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is the list of VolumeAttachments - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1VolumeAttachmentSource.cs b/src/KubernetesClient/generated/Models/V1VolumeAttachmentSource.cs deleted file mode 100644 index b531f6aed..000000000 --- a/src/KubernetesClient/generated/Models/V1VolumeAttachmentSource.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1VolumeAttachmentSource - { - /// - /// Initializes a new instance of the V1VolumeAttachmentSource class. - /// - public V1VolumeAttachmentSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1VolumeAttachmentSource class. - /// - /// - /// inlineVolumeSpec contains all the information necessary to attach a persistent - /// volume defined by a pod's inline VolumeSource. This field is populated only for - /// the CSIMigration feature. It contains translated fields from a pod's inline - /// VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only - /// honored by servers that enabled the CSIMigration feature. - /// - /// - /// Name of the persistent volume to attach. - /// - public V1VolumeAttachmentSource(V1PersistentVolumeSpec inlineVolumeSpec = null, string persistentVolumeName = null) - { - InlineVolumeSpec = inlineVolumeSpec; - PersistentVolumeName = persistentVolumeName; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// inlineVolumeSpec contains all the information necessary to attach a persistent - /// volume defined by a pod's inline VolumeSource. This field is populated only for - /// the CSIMigration feature. It contains translated fields from a pod's inline - /// VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only - /// honored by servers that enabled the CSIMigration feature. - /// - [JsonProperty(PropertyName = "inlineVolumeSpec")] - public V1PersistentVolumeSpec InlineVolumeSpec { get; set; } - - /// - /// Name of the persistent volume to attach. - /// - [JsonProperty(PropertyName = "persistentVolumeName")] - public string PersistentVolumeName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - InlineVolumeSpec?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1VolumeAttachmentSpec.cs b/src/KubernetesClient/generated/Models/V1VolumeAttachmentSpec.cs deleted file mode 100644 index 1c7d60be5..000000000 --- a/src/KubernetesClient/generated/Models/V1VolumeAttachmentSpec.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// VolumeAttachmentSpec is the specification of a VolumeAttachment request. - /// - public partial class V1VolumeAttachmentSpec - { - /// - /// Initializes a new instance of the V1VolumeAttachmentSpec class. - /// - public V1VolumeAttachmentSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1VolumeAttachmentSpec class. - /// - /// - /// Attacher indicates the name of the volume driver that MUST handle this request. - /// This is the name returned by GetPluginName(). - /// - /// - /// The node that the volume should be attached to. - /// - /// - /// Source represents the volume that should be attached. - /// - public V1VolumeAttachmentSpec(string attacher, string nodeName, V1VolumeAttachmentSource source) - { - Attacher = attacher; - NodeName = nodeName; - Source = source; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Attacher indicates the name of the volume driver that MUST handle this request. - /// This is the name returned by GetPluginName(). - /// - [JsonProperty(PropertyName = "attacher")] - public string Attacher { get; set; } - - /// - /// The node that the volume should be attached to. - /// - [JsonProperty(PropertyName = "nodeName")] - public string NodeName { get; set; } - - /// - /// Source represents the volume that should be attached. - /// - [JsonProperty(PropertyName = "source")] - public V1VolumeAttachmentSource Source { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Source == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Source"); - } - Source?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1VolumeAttachmentStatus.cs b/src/KubernetesClient/generated/Models/V1VolumeAttachmentStatus.cs deleted file mode 100644 index ef397572e..000000000 --- a/src/KubernetesClient/generated/Models/V1VolumeAttachmentStatus.cs +++ /dev/null @@ -1,109 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// VolumeAttachmentStatus is the status of a VolumeAttachment request. - /// - public partial class V1VolumeAttachmentStatus - { - /// - /// Initializes a new instance of the V1VolumeAttachmentStatus class. - /// - public V1VolumeAttachmentStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1VolumeAttachmentStatus class. - /// - /// - /// Indicates the volume is successfully attached. This field must only be set by - /// the entity completing the attach operation, i.e. the external-attacher. - /// - /// - /// The last error encountered during attach operation, if any. This field must only - /// be set by the entity completing the attach operation, i.e. the - /// external-attacher. - /// - /// - /// Upon successful attach, this field is populated with any information returned by - /// the attach operation that must be passed into subsequent WaitForAttach or Mount - /// calls. This field must only be set by the entity completing the attach - /// operation, i.e. the external-attacher. - /// - /// - /// The last error encountered during detach operation, if any. This field must only - /// be set by the entity completing the detach operation, i.e. the - /// external-attacher. - /// - public V1VolumeAttachmentStatus(bool attached, V1VolumeError attachError = null, IDictionary attachmentMetadata = null, V1VolumeError detachError = null) - { - AttachError = attachError; - Attached = attached; - AttachmentMetadata = attachmentMetadata; - DetachError = detachError; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The last error encountered during attach operation, if any. This field must only - /// be set by the entity completing the attach operation, i.e. the - /// external-attacher. - /// - [JsonProperty(PropertyName = "attachError")] - public V1VolumeError AttachError { get; set; } - - /// - /// Indicates the volume is successfully attached. This field must only be set by - /// the entity completing the attach operation, i.e. the external-attacher. - /// - [JsonProperty(PropertyName = "attached")] - public bool Attached { get; set; } - - /// - /// Upon successful attach, this field is populated with any information returned by - /// the attach operation that must be passed into subsequent WaitForAttach or Mount - /// calls. This field must only be set by the entity completing the attach - /// operation, i.e. the external-attacher. - /// - [JsonProperty(PropertyName = "attachmentMetadata")] - public IDictionary AttachmentMetadata { get; set; } - - /// - /// The last error encountered during detach operation, if any. This field must only - /// be set by the entity completing the detach operation, i.e. the - /// external-attacher. - /// - [JsonProperty(PropertyName = "detachError")] - public V1VolumeError DetachError { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - AttachError?.Validate(); - DetachError?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1VolumeDevice.cs b/src/KubernetesClient/generated/Models/V1VolumeDevice.cs deleted file mode 100644 index af692d7e7..000000000 --- a/src/KubernetesClient/generated/Models/V1VolumeDevice.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// volumeDevice describes a mapping of a raw block device within a container. - /// - public partial class V1VolumeDevice - { - /// - /// Initializes a new instance of the V1VolumeDevice class. - /// - public V1VolumeDevice() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1VolumeDevice class. - /// - /// - /// devicePath is the path inside of the container that the device will be mapped - /// to. - /// - /// - /// name must match the name of a persistentVolumeClaim in the pod - /// - public V1VolumeDevice(string devicePath, string name) - { - DevicePath = devicePath; - Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// devicePath is the path inside of the container that the device will be mapped - /// to. - /// - [JsonProperty(PropertyName = "devicePath")] - public string DevicePath { get; set; } - - /// - /// name must match the name of a persistentVolumeClaim in the pod - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1VolumeError.cs b/src/KubernetesClient/generated/Models/V1VolumeError.cs deleted file mode 100644 index f3a64d58a..000000000 --- a/src/KubernetesClient/generated/Models/V1VolumeError.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// VolumeError captures an error encountered during a volume operation. - /// - public partial class V1VolumeError - { - /// - /// Initializes a new instance of the V1VolumeError class. - /// - public V1VolumeError() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1VolumeError class. - /// - /// - /// String detailing the error encountered during Attach or Detach operation. This - /// string may be logged, so it should not contain sensitive information. - /// - /// - /// Time the error was encountered. - /// - public V1VolumeError(string message = null, System.DateTime? time = null) - { - Message = message; - Time = time; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// String detailing the error encountered during Attach or Detach operation. This - /// string may be logged, so it should not contain sensitive information. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Time the error was encountered. - /// - [JsonProperty(PropertyName = "time")] - public System.DateTime? Time { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1VolumeMount.cs b/src/KubernetesClient/generated/Models/V1VolumeMount.cs deleted file mode 100644 index 8a21bf6e0..000000000 --- a/src/KubernetesClient/generated/Models/V1VolumeMount.cs +++ /dev/null @@ -1,127 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// VolumeMount describes a mounting of a Volume within a container. - /// - public partial class V1VolumeMount - { - /// - /// Initializes a new instance of the V1VolumeMount class. - /// - public V1VolumeMount() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1VolumeMount class. - /// - /// - /// Path within the container at which the volume should be mounted. Must not - /// contain ':'. - /// - /// - /// This must match the Name of a Volume. - /// - /// - /// 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. - /// - /// - /// Mounted read-only if true, read-write otherwise (false or unspecified). Defaults - /// to false. - /// - /// - /// Path within the volume from which the container's volume should be mounted. - /// Defaults to "" (volume's root). - /// - /// - /// Expanded path within the volume from which the container's volume should be - /// mounted. Behaves similarly to SubPath but environment variable references - /// $(VAR_NAME) are expanded using the container's environment. Defaults to "" - /// (volume's root). SubPathExpr and SubPath are mutually exclusive. - /// - public V1VolumeMount(string mountPath, string name, string mountPropagation = null, bool? readOnlyProperty = null, string subPath = null, string subPathExpr = null) - { - MountPath = mountPath; - MountPropagation = mountPropagation; - Name = name; - ReadOnlyProperty = readOnlyProperty; - SubPath = subPath; - SubPathExpr = subPathExpr; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Path within the container at which the volume should be mounted. Must not - /// contain ':'. - /// - [JsonProperty(PropertyName = "mountPath")] - public string MountPath { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "mountPropagation")] - public string MountPropagation { get; set; } - - /// - /// This must match the Name of a Volume. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Mounted read-only if true, read-write otherwise (false or unspecified). Defaults - /// to false. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Path within the volume from which the container's volume should be mounted. - /// Defaults to "" (volume's root). - /// - [JsonProperty(PropertyName = "subPath")] - public string SubPath { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "subPathExpr")] - public string SubPathExpr { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1VolumeNodeAffinity.cs b/src/KubernetesClient/generated/Models/V1VolumeNodeAffinity.cs deleted file mode 100644 index e55af310f..000000000 --- a/src/KubernetesClient/generated/Models/V1VolumeNodeAffinity.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// VolumeNodeAffinity defines constraints that limit what nodes this volume can be - /// accessed from. - /// - public partial class V1VolumeNodeAffinity - { - /// - /// Initializes a new instance of the V1VolumeNodeAffinity class. - /// - public V1VolumeNodeAffinity() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1VolumeNodeAffinity class. - /// - /// - /// Required specifies hard node constraints that must be met. - /// - public V1VolumeNodeAffinity(V1NodeSelector required = null) - { - Required = required; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Required specifies hard node constraints that must be met. - /// - [JsonProperty(PropertyName = "required")] - public V1NodeSelector Required { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Required?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1VolumeNodeResources.cs b/src/KubernetesClient/generated/Models/V1VolumeNodeResources.cs deleted file mode 100644 index e98063e20..000000000 --- a/src/KubernetesClient/generated/Models/V1VolumeNodeResources.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// VolumeNodeResources is a set of resource limits for scheduling of volumes. - /// - public partial class V1VolumeNodeResources - { - /// - /// Initializes a new instance of the V1VolumeNodeResources class. - /// - public V1VolumeNodeResources() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1VolumeNodeResources class. - /// - /// - /// Maximum number of unique volumes managed by the CSI driver that can be used on a - /// node. A volume that is both attached and mounted on a node is considered to be - /// used once, not twice. The same rule applies for a unique volume that is shared - /// among multiple pods on the same node. If this field is not specified, then the - /// supported number of volumes on this node is unbounded. - /// - public V1VolumeNodeResources(int? count = null) - { - Count = count; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Maximum number of unique volumes managed by the CSI driver that can be used on a - /// node. A volume that is both attached and mounted on a node is considered to be - /// used once, not twice. The same rule applies for a unique volume that is shared - /// among multiple pods on the same node. If this field is not specified, then the - /// supported number of volumes on this node is unbounded. - /// - [JsonProperty(PropertyName = "count")] - public int? Count { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1VolumeProjection.cs b/src/KubernetesClient/generated/Models/V1VolumeProjection.cs deleted file mode 100644 index 6d15ffcd0..000000000 --- a/src/KubernetesClient/generated/Models/V1VolumeProjection.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Projection that may be projected along with other supported volume types - /// - public partial class V1VolumeProjection - { - /// - /// Initializes a new instance of the V1VolumeProjection class. - /// - public V1VolumeProjection() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1VolumeProjection class. - /// - /// - /// information about the configMap data to project - /// - /// - /// information about the downwardAPI data to project - /// - /// - /// information about the secret data to project - /// - /// - /// information about the serviceAccountToken data to project - /// - public V1VolumeProjection(V1ConfigMapProjection configMap = null, V1DownwardAPIProjection downwardAPI = null, V1SecretProjection secret = null, V1ServiceAccountTokenProjection serviceAccountToken = null) - { - ConfigMap = configMap; - DownwardAPI = downwardAPI; - Secret = secret; - ServiceAccountToken = serviceAccountToken; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// information about the configMap data to project - /// - [JsonProperty(PropertyName = "configMap")] - public V1ConfigMapProjection ConfigMap { get; set; } - - /// - /// information about the downwardAPI data to project - /// - [JsonProperty(PropertyName = "downwardAPI")] - public V1DownwardAPIProjection DownwardAPI { get; set; } - - /// - /// information about the secret data to project - /// - [JsonProperty(PropertyName = "secret")] - public V1SecretProjection Secret { get; set; } - - /// - /// information about the serviceAccountToken data to project - /// - [JsonProperty(PropertyName = "serviceAccountToken")] - public V1ServiceAccountTokenProjection ServiceAccountToken { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - ConfigMap?.Validate(); - DownwardAPI?.Validate(); - Secret?.Validate(); - ServiceAccountToken?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1VsphereVirtualDiskVolumeSource.cs b/src/KubernetesClient/generated/Models/V1VsphereVirtualDiskVolumeSource.cs deleted file mode 100644 index e8808ada0..000000000 --- a/src/KubernetesClient/generated/Models/V1VsphereVirtualDiskVolumeSource.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Represents a vSphere volume resource. - /// - public partial class V1VsphereVirtualDiskVolumeSource - { - /// - /// Initializes a new instance of the V1VsphereVirtualDiskVolumeSource class. - /// - public V1VsphereVirtualDiskVolumeSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1VsphereVirtualDiskVolumeSource class. - /// - /// - /// Path that identifies vSphere volume vmdk - /// - /// - /// 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. - /// - /// - /// Storage Policy Based Management (SPBM) profile ID associated with the - /// StoragePolicyName. - /// - /// - /// Storage Policy Based Management (SPBM) profile name. - /// - public V1VsphereVirtualDiskVolumeSource(string volumePath, string fsType = null, string storagePolicyID = null, string storagePolicyName = null) - { - FsType = fsType; - StoragePolicyID = storagePolicyID; - StoragePolicyName = storagePolicyName; - VolumePath = volumePath; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "fsType")] - public string FsType { get; set; } - - /// - /// Storage Policy Based Management (SPBM) profile ID associated with the - /// StoragePolicyName. - /// - [JsonProperty(PropertyName = "storagePolicyID")] - public string StoragePolicyID { get; set; } - - /// - /// Storage Policy Based Management (SPBM) profile name. - /// - [JsonProperty(PropertyName = "storagePolicyName")] - public string StoragePolicyName { get; set; } - - /// - /// Path that identifies vSphere volume vmdk - /// - [JsonProperty(PropertyName = "volumePath")] - public string VolumePath { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1WatchEvent.cs b/src/KubernetesClient/generated/Models/V1WatchEvent.cs deleted file mode 100644 index 3f94e3dbd..000000000 --- a/src/KubernetesClient/generated/Models/V1WatchEvent.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Event represents a single event to a watched resource. - /// - public partial class V1WatchEvent - { - /// - /// Initializes a new instance of the V1WatchEvent class. - /// - public V1WatchEvent() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1WatchEvent class. - /// - /// - /// Object is: - /// * If Type is Added or Modified: the new state of the object. - /// * If Type is Deleted: the state of the object immediately before deletion. - /// * If Type is Error: *Status is recommended; other types may make sense - /// depending on context. - /// - /// - /// - /// - public V1WatchEvent(object objectProperty, string type) - { - ObjectProperty = objectProperty; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Object is: - /// * If Type is Added or Modified: the new state of the object. - /// * If Type is Deleted: the state of the object immediately before deletion. - /// * If Type is Error: *Status is recommended; other types may make sense - /// depending on context. - /// - [JsonProperty(PropertyName = "object")] - public object ObjectProperty { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1WebhookConversion.cs b/src/KubernetesClient/generated/Models/V1WebhookConversion.cs deleted file mode 100644 index 88c2cda08..000000000 --- a/src/KubernetesClient/generated/Models/V1WebhookConversion.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// WebhookConversion describes how to call a conversion webhook - /// - public partial class V1WebhookConversion - { - /// - /// Initializes a new instance of the V1WebhookConversion class. - /// - public V1WebhookConversion() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1WebhookConversion class. - /// - /// - /// conversionReviewVersions is an ordered list of preferred `ConversionReview` - /// versions the Webhook expects. The API server will use the first version in the - /// list which it supports. If none of the versions specified in this list are - /// supported by API server, conversion will fail for the custom resource. If a - /// persisted Webhook configuration specifies allowed versions and does not include - /// any versions known to the API Server, calls to the webhook will fail. - /// - /// - /// clientConfig is the instructions for how to call the webhook if strategy is - /// `Webhook`. - /// - public V1WebhookConversion(IList conversionReviewVersions, Apiextensionsv1WebhookClientConfig clientConfig = null) - { - ClientConfig = clientConfig; - ConversionReviewVersions = conversionReviewVersions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// clientConfig is the instructions for how to call the webhook if strategy is - /// `Webhook`. - /// - [JsonProperty(PropertyName = "clientConfig")] - public Apiextensionsv1WebhookClientConfig ClientConfig { get; set; } - - /// - /// conversionReviewVersions is an ordered list of preferred `ConversionReview` - /// versions the Webhook expects. The API server will use the first version in the - /// list which it supports. If none of the versions specified in this list are - /// supported by API server, conversion will fail for the custom resource. If a - /// persisted Webhook configuration specifies allowed versions and does not include - /// any versions known to the API Server, calls to the webhook will fail. - /// - [JsonProperty(PropertyName = "conversionReviewVersions")] - public IList ConversionReviewVersions { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - ClientConfig?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1WeightedPodAffinityTerm.cs b/src/KubernetesClient/generated/Models/V1WeightedPodAffinityTerm.cs deleted file mode 100644 index 8bec22ab6..000000000 --- a/src/KubernetesClient/generated/Models/V1WeightedPodAffinityTerm.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// The weights of all of the matched WeightedPodAffinityTerm fields are added - /// per-node to find the most preferred node(s) - /// - public partial class V1WeightedPodAffinityTerm - { - /// - /// Initializes a new instance of the V1WeightedPodAffinityTerm class. - /// - public V1WeightedPodAffinityTerm() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1WeightedPodAffinityTerm class. - /// - /// - /// Required. A pod affinity term, associated with the corresponding weight. - /// - /// - /// weight associated with matching the corresponding podAffinityTerm, in the range - /// 1-100. - /// - public V1WeightedPodAffinityTerm(V1PodAffinityTerm podAffinityTerm, int weight) - { - PodAffinityTerm = podAffinityTerm; - Weight = weight; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Required. A pod affinity term, associated with the corresponding weight. - /// - [JsonProperty(PropertyName = "podAffinityTerm")] - public V1PodAffinityTerm PodAffinityTerm { get; set; } - - /// - /// weight associated with matching the corresponding podAffinityTerm, in the range - /// 1-100. - /// - [JsonProperty(PropertyName = "weight")] - public int Weight { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (PodAffinityTerm == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "PodAffinityTerm"); - } - PodAffinityTerm?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1WindowsSecurityContextOptions.cs b/src/KubernetesClient/generated/Models/V1WindowsSecurityContextOptions.cs deleted file mode 100644 index ec2d3de4e..000000000 --- a/src/KubernetesClient/generated/Models/V1WindowsSecurityContextOptions.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// WindowsSecurityContextOptions contain Windows-specific options and credentials. - /// - public partial class V1WindowsSecurityContextOptions - { - /// - /// Initializes a new instance of the V1WindowsSecurityContextOptions class. - /// - public V1WindowsSecurityContextOptions() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1WindowsSecurityContextOptions class. - /// - /// - /// 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. - /// - /// - /// GMSACredentialSpecName is the name of the GMSA credential spec to use. - /// - /// - /// HostProcess determines if a container should be run as a 'Host Process' - /// container. This field is alpha-level and will only be honored by components that - /// enable the WindowsHostProcessContainers feature flag. Setting this field without - /// the feature flag will result in errors when validating the Pod. 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. - /// - /// - /// The UserName in Windows to run the entrypoint of the container process. Defaults - /// to the user specified in image metadata if unspecified. May also be set in - /// PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the - /// value specified in SecurityContext takes precedence. - /// - public V1WindowsSecurityContextOptions(string gmsaCredentialSpec = null, string gmsaCredentialSpecName = null, bool? hostProcess = null, string runAsUserName = null) - { - GmsaCredentialSpec = gmsaCredentialSpec; - GmsaCredentialSpecName = gmsaCredentialSpecName; - HostProcess = hostProcess; - RunAsUserName = runAsUserName; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "gmsaCredentialSpec")] - public string GmsaCredentialSpec { get; set; } - - /// - /// GMSACredentialSpecName is the name of the GMSA credential spec to use. - /// - [JsonProperty(PropertyName = "gmsaCredentialSpecName")] - public string GmsaCredentialSpecName { get; set; } - - /// - /// HostProcess determines if a container should be run as a 'Host Process' - /// container. This field is alpha-level and will only be honored by components that - /// enable the WindowsHostProcessContainers feature flag. Setting this field without - /// the feature flag will result in errors when validating the Pod. 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. - /// - [JsonProperty(PropertyName = "hostProcess")] - public bool? HostProcess { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "runAsUserName")] - public string RunAsUserName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1AggregationRule.cs b/src/KubernetesClient/generated/Models/V1alpha1AggregationRule.cs deleted file mode 100644 index 7a446b08e..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1AggregationRule.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// AggregationRule describes how to locate ClusterRoles to aggregate into the - /// ClusterRole - /// - public partial class V1alpha1AggregationRule - { - /// - /// Initializes a new instance of the V1alpha1AggregationRule class. - /// - public V1alpha1AggregationRule() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1AggregationRule class. - /// - /// - /// ClusterRoleSelectors holds a list of selectors which will be used to find - /// ClusterRoles and create the rules. If any of the selectors match, then the - /// ClusterRole's permissions will be added - /// - public V1alpha1AggregationRule(IList clusterRoleSelectors = null) - { - ClusterRoleSelectors = clusterRoleSelectors; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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 - /// - [JsonProperty(PropertyName = "clusterRoleSelectors")] - public IList ClusterRoleSelectors { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (ClusterRoleSelectors != null){ - foreach(var obj in ClusterRoleSelectors) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1CSIStorageCapacity.cs b/src/KubernetesClient/generated/Models/V1alpha1CSIStorageCapacity.cs deleted file mode 100644 index 5eaa7de93..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1CSIStorageCapacity.cs +++ /dev/null @@ -1,211 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given - /// StorageClass, this describes the available capacity in a particular topology - /// segment. This can be used when considering where to instantiate new - /// PersistentVolumes. - /// - /// For example this can express things like: - StorageClass "standard" has "1234 - /// GiB" available in "topology.kubernetes.io/zone=us-east1" - StorageClass - /// "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" - /// - /// The following three cases all imply that no capacity is available for a certain - /// combination: - no object exists with suitable topology and storage class name - - /// such an object exists, but the capacity is unset - such an object exists, but - /// the capacity is zero - /// - /// The producer of these objects can decide which approach is more suitable. - /// - /// They are consumed by the kube-scheduler if the CSIStorageCapacity beta feature - /// gate is enabled there and a CSI driver opts into capacity-aware scheduling with - /// CSIDriver.StorageCapacity. - /// - public partial class V1alpha1CSIStorageCapacity - { - /// - /// Initializes a new instance of the V1alpha1CSIStorageCapacity class. - /// - public V1alpha1CSIStorageCapacity() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1CSIStorageCapacity class. - /// - /// - /// The name of the StorageClass that the reported capacity applies to. It must meet - /// the same requirements as the name of a StorageClass object (non-empty, DNS - /// subdomain). If that object no longer exists, the CSIStorageCapacity object is - /// obsolete and should be removed by its creator. This field is immutable. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Capacity is the value reported by the CSI driver in its GetCapacityResponse for - /// a GetCapacityRequest with topology and parameters that match the previous - /// fields. - /// - /// The semantic is currently (CSI spec 1.2) defined as: The available capacity, in - /// bytes, of the storage that can be used to provision volumes. If not set, that - /// information is currently unavailable and treated like zero capacity. - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// MaximumVolumeSize is the value reported by the CSI driver in its - /// GetCapacityResponse for a GetCapacityRequest with topology and parameters that - /// match the previous fields. - /// - /// This is defined since CSI spec 1.4.0 as the largest size that may be used in a - /// CreateVolumeRequest.capacity_range.required_bytes field to create a volume with - /// the same parameters as those in GetCapacityRequest. The corresponding value in - /// the Kubernetes API is ResourceRequirements.Requests in a volume claim. - /// - /// - /// Standard object's metadata. The name has no particular meaning. It must be be a - /// DNS subdomain (dots allowed, 253 characters). To ensure that there are no - /// conflicts with other CSI drivers on the cluster, the recommendation is to use - /// csisc-<uuid>, a generated name, or a reverse-domain name which ends with the - /// unique CSI driver name. - /// - /// Objects are namespaced. - /// - /// More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// NodeTopology defines which nodes have access to the storage for which capacity - /// was reported. If not set, the storage is not accessible from any node in the - /// cluster. If empty, the storage is accessible from all nodes. This field is - /// immutable. - /// - public V1alpha1CSIStorageCapacity(string storageClassName, string apiVersion = null, ResourceQuantity capacity = null, string kind = null, ResourceQuantity maximumVolumeSize = null, V1ObjectMeta metadata = null, V1LabelSelector nodeTopology = null) - { - ApiVersion = apiVersion; - Capacity = capacity; - Kind = kind; - MaximumVolumeSize = maximumVolumeSize; - Metadata = metadata; - NodeTopology = nodeTopology; - StorageClassName = storageClassName; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Capacity is the value reported by the CSI driver in its GetCapacityResponse for - /// a GetCapacityRequest with topology and parameters that match the previous - /// fields. - /// - /// The semantic is currently (CSI spec 1.2) defined as: The available capacity, in - /// bytes, of the storage that can be used to provision volumes. If not set, that - /// information is currently unavailable and treated like zero capacity. - /// - [JsonProperty(PropertyName = "capacity")] - public ResourceQuantity Capacity { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// MaximumVolumeSize is the value reported by the CSI driver in its - /// GetCapacityResponse for a GetCapacityRequest with topology and parameters that - /// match the previous fields. - /// - /// This is defined since CSI spec 1.4.0 as the largest size that may be used in a - /// CreateVolumeRequest.capacity_range.required_bytes field to create a volume with - /// the same parameters as those in GetCapacityRequest. The corresponding value in - /// the Kubernetes API is ResourceRequirements.Requests in a volume claim. - /// - [JsonProperty(PropertyName = "maximumVolumeSize")] - public ResourceQuantity MaximumVolumeSize { get; set; } - - /// - /// Standard object's metadata. The name has no particular meaning. It must be be a - /// DNS subdomain (dots allowed, 253 characters). To ensure that there are no - /// conflicts with other CSI drivers on the cluster, the recommendation is to use - /// csisc-<uuid>, a generated name, or a reverse-domain name which ends with the - /// unique CSI driver name. - /// - /// Objects are namespaced. - /// - /// More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// NodeTopology defines which nodes have access to the storage for which capacity - /// was reported. If not set, the storage is not accessible from any node in the - /// cluster. If empty, the storage is accessible from all nodes. This field is - /// immutable. - /// - [JsonProperty(PropertyName = "nodeTopology")] - public V1LabelSelector NodeTopology { get; set; } - - /// - /// The name of the StorageClass that the reported capacity applies to. It must meet - /// the same requirements as the name of a StorageClass object (non-empty, DNS - /// subdomain). If that object no longer exists, the CSIStorageCapacity object is - /// obsolete and should be removed by its creator. This field is immutable. - /// - [JsonProperty(PropertyName = "storageClassName")] - public string StorageClassName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Capacity?.Validate(); - MaximumVolumeSize?.Validate(); - Metadata?.Validate(); - NodeTopology?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1CSIStorageCapacityList.cs b/src/KubernetesClient/generated/Models/V1alpha1CSIStorageCapacityList.cs deleted file mode 100644 index eeff843a2..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1CSIStorageCapacityList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CSIStorageCapacityList is a collection of CSIStorageCapacity objects. - /// - public partial class V1alpha1CSIStorageCapacityList - { - /// - /// Initializes a new instance of the V1alpha1CSIStorageCapacityList class. - /// - public V1alpha1CSIStorageCapacityList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1CSIStorageCapacityList class. - /// - /// - /// Items is the list of CSIStorageCapacity objects. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1alpha1CSIStorageCapacityList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is the list of CSIStorageCapacity objects. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1ClusterRole.cs b/src/KubernetesClient/generated/Models/V1alpha1ClusterRole.cs deleted file mode 100644 index 85205409e..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1ClusterRole.cs +++ /dev/null @@ -1,128 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ClusterRole is a cluster level, logical grouping of PolicyRules that can be - /// referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 - /// in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be - /// served in v1.22. - /// - public partial class V1alpha1ClusterRole - { - /// - /// Initializes a new instance of the V1alpha1ClusterRole class. - /// - public V1alpha1ClusterRole() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1ClusterRole class. - /// - /// - /// AggregationRule is an optional field that describes how to build the Rules for - /// this ClusterRole. If AggregationRule is set, then the Rules are controller - /// managed and direct changes to Rules will be stomped by the controller. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. - /// - /// - /// Rules holds all the PolicyRules for this ClusterRole - /// - public V1alpha1ClusterRole(V1alpha1AggregationRule aggregationRule = null, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, IList rules = null) - { - AggregationRule = aggregationRule; - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Rules = rules; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// AggregationRule is an optional field that describes how to build the Rules for - /// this ClusterRole. If AggregationRule is set, then the Rules are controller - /// managed and direct changes to Rules will be stomped by the controller. - /// - [JsonProperty(PropertyName = "aggregationRule")] - public V1alpha1AggregationRule AggregationRule { get; set; } - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Rules holds all the PolicyRules for this ClusterRole - /// - [JsonProperty(PropertyName = "rules")] - public IList Rules { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - AggregationRule?.Validate(); - Metadata?.Validate(); - if (Rules != null){ - foreach(var obj in Rules) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1ClusterRoleBinding.cs b/src/KubernetesClient/generated/Models/V1alpha1ClusterRoleBinding.cs deleted file mode 100644 index 6d6693233..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1ClusterRoleBinding.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ClusterRoleBinding references a ClusterRole, but not contain it. It can - /// reference a ClusterRole in the global namespace, and adds who information via - /// Subject. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 - /// ClusterRoleBinding, and will no longer be served in v1.22. - /// - public partial class V1alpha1ClusterRoleBinding - { - /// - /// Initializes a new instance of the V1alpha1ClusterRoleBinding class. - /// - public V1alpha1ClusterRoleBinding() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1ClusterRoleBinding class. - /// - /// - /// RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef - /// cannot be resolved, the Authorizer must return an error. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. - /// - /// - /// Subjects holds references to the objects the role applies to. - /// - public V1alpha1ClusterRoleBinding(V1alpha1RoleRef roleRef, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, IList subjects = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - RoleRef = roleRef; - Subjects = subjects; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef - /// cannot be resolved, the Authorizer must return an error. - /// - [JsonProperty(PropertyName = "roleRef")] - public V1alpha1RoleRef RoleRef { get; set; } - - /// - /// Subjects holds references to the objects the role applies to. - /// - [JsonProperty(PropertyName = "subjects")] - public IList Subjects { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (RoleRef == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "RoleRef"); - } - Metadata?.Validate(); - RoleRef?.Validate(); - if (Subjects != null){ - foreach(var obj in Subjects) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1ClusterRoleBindingList.cs b/src/KubernetesClient/generated/Models/V1alpha1ClusterRoleBindingList.cs deleted file mode 100644 index c40affa54..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1ClusterRoleBindingList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ClusterRoleBindingList is a collection of ClusterRoleBindings. Deprecated in - /// v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindings, and will no - /// longer be served in v1.22. - /// - public partial class V1alpha1ClusterRoleBindingList - { - /// - /// Initializes a new instance of the V1alpha1ClusterRoleBindingList class. - /// - public V1alpha1ClusterRoleBindingList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1ClusterRoleBindingList class. - /// - /// - /// Items is a list of ClusterRoleBindings - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. - /// - public V1alpha1ClusterRoleBindingList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is a list of ClusterRoleBindings - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1ClusterRoleList.cs b/src/KubernetesClient/generated/Models/V1alpha1ClusterRoleList.cs deleted file mode 100644 index 7b448c8ac..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1ClusterRoleList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ClusterRoleList is a collection of ClusterRoles. Deprecated in v1.17 in favor of - /// rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in - /// v1.22. - /// - public partial class V1alpha1ClusterRoleList - { - /// - /// Initializes a new instance of the V1alpha1ClusterRoleList class. - /// - public V1alpha1ClusterRoleList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1ClusterRoleList class. - /// - /// - /// Items is a list of ClusterRoles - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. - /// - public V1alpha1ClusterRoleList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is a list of ClusterRoles - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1Overhead.cs b/src/KubernetesClient/generated/Models/V1alpha1Overhead.cs deleted file mode 100644 index e8c901de6..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1Overhead.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Overhead structure represents the resource overhead associated with running a - /// pod. - /// - public partial class V1alpha1Overhead - { - /// - /// Initializes a new instance of the V1alpha1Overhead class. - /// - public V1alpha1Overhead() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1Overhead class. - /// - /// - /// PodFixed represents the fixed resource overhead associated with running a pod. - /// - public V1alpha1Overhead(IDictionary podFixed = null) - { - PodFixed = podFixed; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// PodFixed represents the fixed resource overhead associated with running a pod. - /// - [JsonProperty(PropertyName = "podFixed")] - public IDictionary PodFixed { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1PolicyRule.cs b/src/KubernetesClient/generated/Models/V1alpha1PolicyRule.cs deleted file mode 100644 index 7bacd14a2..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1PolicyRule.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1alpha1PolicyRule - { - /// - /// Initializes a new instance of the V1alpha1PolicyRule class. - /// - public V1alpha1PolicyRule() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1PolicyRule class. - /// - /// - /// Verbs is a list of Verbs that apply to ALL the ResourceKinds and - /// AttributeRestrictions contained in this rule. '*' represents all verbs. - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// ResourceNames is an optional white list of names that the rule applies to. An - /// empty set means that everything is allowed. - /// - /// - /// Resources is a list of resources this rule applies to. '*' represents all - /// resources. - /// - public V1alpha1PolicyRule(IList verbs, IList apiGroups = null, IList nonResourceURLs = null, IList resourceNames = null, IList resources = null) - { - ApiGroups = apiGroups; - NonResourceURLs = nonResourceURLs; - ResourceNames = resourceNames; - Resources = resources; - Verbs = verbs; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "apiGroups")] - public IList ApiGroups { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "nonResourceURLs")] - public IList NonResourceURLs { get; set; } - - /// - /// ResourceNames is an optional white list of names that the rule applies to. An - /// empty set means that everything is allowed. - /// - [JsonProperty(PropertyName = "resourceNames")] - public IList ResourceNames { get; set; } - - /// - /// Resources is a list of resources this rule applies to. '*' represents all - /// resources. - /// - [JsonProperty(PropertyName = "resources")] - public IList Resources { get; set; } - - /// - /// Verbs is a list of Verbs that apply to ALL the ResourceKinds and - /// AttributeRestrictions contained in this rule. '*' represents all verbs. - /// - [JsonProperty(PropertyName = "verbs")] - public IList Verbs { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1PriorityClass.cs b/src/KubernetesClient/generated/Models/V1alpha1PriorityClass.cs deleted file mode 100644 index 0ec5d09e2..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1PriorityClass.cs +++ /dev/null @@ -1,157 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// DEPRECATED - This group version of PriorityClass is deprecated by - /// scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a - /// priority class name to the priority integer value. The value can be any valid - /// integer. - /// - public partial class V1alpha1PriorityClass - { - /// - /// Initializes a new instance of the V1alpha1PriorityClass class. - /// - public V1alpha1PriorityClass() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1PriorityClass class. - /// - /// - /// The value of this priority class. This is the actual priority that pods receive - /// when they have the name of this class in their pod spec. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to 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 is an arbitrary string that usually provides guidelines on when this - /// priority class should be used. - /// - /// - /// globalDefault specifies whether this PriorityClass should be considered as the - /// default priority for pods that do not have any priority class. Only one - /// PriorityClass can be marked as `globalDefault`. However, if more than one - /// PriorityClasses exists with their `globalDefault` field set to true, the - /// smallest value of such global default PriorityClasses will be used as the - /// default priority. - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// PreemptionPolicy is the Policy for preempting pods with lower priority. One of - /// Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This - /// field is beta-level, gated by the NonPreemptingPriority feature-gate. - /// - public V1alpha1PriorityClass(int value, string apiVersion = null, string description = null, bool? globalDefault = null, string kind = null, V1ObjectMeta metadata = null, string preemptionPolicy = null) - { - ApiVersion = apiVersion; - Description = description; - GlobalDefault = globalDefault; - Kind = kind; - Metadata = metadata; - PreemptionPolicy = preemptionPolicy; - Value = value; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// description is an arbitrary string that usually provides guidelines on when this - /// priority class should be used. - /// - [JsonProperty(PropertyName = "description")] - public string Description { get; set; } - - /// - /// globalDefault specifies whether this PriorityClass should be considered as the - /// default priority for pods that do not have any priority class. Only one - /// PriorityClass can be marked as `globalDefault`. However, if more than one - /// PriorityClasses exists with their `globalDefault` field set to true, the - /// smallest value of such global default PriorityClasses will be used as the - /// default priority. - /// - [JsonProperty(PropertyName = "globalDefault")] - public bool? GlobalDefault { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// PreemptionPolicy is the Policy for preempting pods with lower priority. One of - /// Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This - /// field is beta-level, gated by the NonPreemptingPriority feature-gate. - /// - [JsonProperty(PropertyName = "preemptionPolicy")] - public string PreemptionPolicy { get; set; } - - /// - /// The value of this priority class. This is the actual priority that pods receive - /// when they have the name of this class in their pod spec. - /// - [JsonProperty(PropertyName = "value")] - public int Value { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1PriorityClassList.cs b/src/KubernetesClient/generated/Models/V1alpha1PriorityClassList.cs deleted file mode 100644 index e6239a169..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1PriorityClassList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PriorityClassList is a collection of priority classes. - /// - public partial class V1alpha1PriorityClassList - { - /// - /// Initializes a new instance of the V1alpha1PriorityClassList class. - /// - public V1alpha1PriorityClassList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1PriorityClassList class. - /// - /// - /// items is the list of PriorityClasses - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1alpha1PriorityClassList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// items is the list of PriorityClasses - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1Role.cs b/src/KubernetesClient/generated/Models/V1alpha1Role.cs deleted file mode 100644 index 8ad10af81..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1Role.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Role is a namespaced, logical grouping of PolicyRules that can be referenced as - /// a unit by a RoleBinding. Deprecated in v1.17 in favor of - /// rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.22. - /// - public partial class V1alpha1Role - { - /// - /// Initializes a new instance of the V1alpha1Role class. - /// - public V1alpha1Role() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1Role class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. - /// - /// - /// Rules holds all the PolicyRules for this Role - /// - public V1alpha1Role(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, IList rules = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Rules = rules; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Rules holds all the PolicyRules for this Role - /// - [JsonProperty(PropertyName = "rules")] - public IList Rules { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - if (Rules != null){ - foreach(var obj in Rules) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1RoleBinding.cs b/src/KubernetesClient/generated/Models/V1alpha1RoleBinding.cs deleted file mode 100644 index 479e9dbf3..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1RoleBinding.cs +++ /dev/null @@ -1,134 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// RoleBinding references a role, but does not contain it. It can reference a Role - /// in the same namespace or a ClusterRole in the global namespace. It adds who - /// information via Subjects and namespace information by which namespace it exists - /// in. RoleBindings in a given namespace only have effect in that namespace. - /// Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and - /// will no longer be served in v1.22. - /// - public partial class V1alpha1RoleBinding - { - /// - /// Initializes a new instance of the V1alpha1RoleBinding class. - /// - public V1alpha1RoleBinding() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1RoleBinding class. - /// - /// - /// RoleRef can reference a Role in the current namespace or a ClusterRole in the - /// global namespace. If the RoleRef cannot be resolved, the Authorizer must return - /// an error. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. - /// - /// - /// Subjects holds references to the objects the role applies to. - /// - public V1alpha1RoleBinding(V1alpha1RoleRef roleRef, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, IList subjects = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - RoleRef = roleRef; - Subjects = subjects; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// RoleRef can reference a Role in the current namespace or a ClusterRole in the - /// global namespace. If the RoleRef cannot be resolved, the Authorizer must return - /// an error. - /// - [JsonProperty(PropertyName = "roleRef")] - public V1alpha1RoleRef RoleRef { get; set; } - - /// - /// Subjects holds references to the objects the role applies to. - /// - [JsonProperty(PropertyName = "subjects")] - public IList Subjects { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (RoleRef == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "RoleRef"); - } - Metadata?.Validate(); - RoleRef?.Validate(); - if (Subjects != null){ - foreach(var obj in Subjects) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1RoleBindingList.cs b/src/KubernetesClient/generated/Models/V1alpha1RoleBindingList.cs deleted file mode 100644 index 4b68d5ae4..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1RoleBindingList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// RoleBindingList is a collection of RoleBindings Deprecated in v1.17 in favor of - /// rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in - /// v1.22. - /// - public partial class V1alpha1RoleBindingList - { - /// - /// Initializes a new instance of the V1alpha1RoleBindingList class. - /// - public V1alpha1RoleBindingList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1RoleBindingList class. - /// - /// - /// Items is a list of RoleBindings - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. - /// - public V1alpha1RoleBindingList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is a list of RoleBindings - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1RoleList.cs b/src/KubernetesClient/generated/Models/V1alpha1RoleList.cs deleted file mode 100644 index 000f010b3..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1RoleList.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// RoleList is a collection of Roles. Deprecated in v1.17 in favor of - /// rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.22. - /// - public partial class V1alpha1RoleList - { - /// - /// Initializes a new instance of the V1alpha1RoleList class. - /// - public V1alpha1RoleList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1RoleList class. - /// - /// - /// Items is a list of Roles - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. - /// - public V1alpha1RoleList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is a list of Roles - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1RoleRef.cs b/src/KubernetesClient/generated/Models/V1alpha1RoleRef.cs deleted file mode 100644 index a27693d31..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1RoleRef.cs +++ /dev/null @@ -1,81 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// RoleRef contains information that points to the role being used - /// - public partial class V1alpha1RoleRef - { - /// - /// Initializes a new instance of the V1alpha1RoleRef class. - /// - public V1alpha1RoleRef() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1RoleRef class. - /// - /// - /// APIGroup is the group for the resource being referenced - /// - /// - /// Kind is the type of resource being referenced - /// - /// - /// Name is the name of resource being referenced - /// - public V1alpha1RoleRef(string apiGroup, string kind, string name) - { - ApiGroup = apiGroup; - Kind = kind; - Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIGroup is the group for the resource being referenced - /// - [JsonProperty(PropertyName = "apiGroup")] - public string ApiGroup { get; set; } - - /// - /// Kind is the type of resource being referenced - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Name is the name of resource being referenced - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1RuntimeClass.cs b/src/KubernetesClient/generated/Models/V1alpha1RuntimeClass.cs deleted file mode 100644 index 4278beb81..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1RuntimeClass.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// RuntimeClass defines a class of container runtime supported in the cluster. The - /// RuntimeClass is used to determine which container runtime is used to run all - /// containers in a pod. RuntimeClasses are (currently) manually defined by a user - /// or cluster provisioner, and referenced in the PodSpec. The Kubelet is - /// responsible for resolving the RuntimeClassName reference before running the pod. - /// For more details, see - /// https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class - /// - public partial class V1alpha1RuntimeClass - { - /// - /// Initializes a new instance of the V1alpha1RuntimeClass class. - /// - public V1alpha1RuntimeClass() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1RuntimeClass class. - /// - /// - /// Specification of the RuntimeClass More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1alpha1RuntimeClass(V1alpha1RuntimeClassSpec spec, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Specification of the RuntimeClass More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1alpha1RuntimeClassSpec Spec { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Spec == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Spec"); - } - Metadata?.Validate(); - Spec?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1RuntimeClassList.cs b/src/KubernetesClient/generated/Models/V1alpha1RuntimeClassList.cs deleted file mode 100644 index e26c8ecb7..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1RuntimeClassList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// RuntimeClassList is a list of RuntimeClass objects. - /// - public partial class V1alpha1RuntimeClassList - { - /// - /// Initializes a new instance of the V1alpha1RuntimeClassList class. - /// - public V1alpha1RuntimeClassList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1RuntimeClassList class. - /// - /// - /// Items is a list of schema objects. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1alpha1RuntimeClassList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is a list of schema objects. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1RuntimeClassSpec.cs b/src/KubernetesClient/generated/Models/V1alpha1RuntimeClassSpec.cs deleted file mode 100644 index 15775f81d..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1RuntimeClassSpec.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// RuntimeClassSpec is a specification of a RuntimeClass. It contains parameters - /// that are required to describe the RuntimeClass to the Container Runtime - /// Interface (CRI) implementation, as well as any other components that need to - /// understand how the pod will be run. The RuntimeClassSpec is immutable. - /// - public partial class V1alpha1RuntimeClassSpec - { - /// - /// Initializes a new instance of the V1alpha1RuntimeClassSpec class. - /// - public V1alpha1RuntimeClassSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1RuntimeClassSpec class. - /// - /// - /// RuntimeHandler 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 RuntimeHandler must be lowercase, conform to the DNS Label (RFC 1123) - /// requirements, and is immutable. - /// - /// - /// Overhead represents the resource overhead associated with running a pod for a - /// given RuntimeClass. For more details, see - /// https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md This - /// field is beta-level as of Kubernetes v1.18, and is only honored by servers that - /// enable the PodOverhead feature. - /// - /// - /// Scheduling holds the scheduling constraints to ensure that pods running with - /// this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, - /// this RuntimeClass is assumed to be supported by all nodes. - /// - public V1alpha1RuntimeClassSpec(string runtimeHandler, V1alpha1Overhead overhead = null, V1alpha1Scheduling scheduling = null) - { - Overhead = overhead; - RuntimeHandler = runtimeHandler; - Scheduling = scheduling; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Overhead represents the resource overhead associated with running a pod for a - /// given RuntimeClass. For more details, see - /// https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md This - /// field is beta-level as of Kubernetes v1.18, and is only honored by servers that - /// enable the PodOverhead feature. - /// - [JsonProperty(PropertyName = "overhead")] - public V1alpha1Overhead Overhead { get; set; } - - /// - /// RuntimeHandler 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 RuntimeHandler must be lowercase, conform to the DNS Label (RFC 1123) - /// requirements, and is immutable. - /// - [JsonProperty(PropertyName = "runtimeHandler")] - public string RuntimeHandler { get; set; } - - /// - /// Scheduling holds the scheduling constraints to ensure that pods running with - /// this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, - /// this RuntimeClass is assumed to be supported by all nodes. - /// - [JsonProperty(PropertyName = "scheduling")] - public V1alpha1Scheduling Scheduling { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Overhead?.Validate(); - Scheduling?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1Scheduling.cs b/src/KubernetesClient/generated/Models/V1alpha1Scheduling.cs deleted file mode 100644 index 3909c20e4..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1Scheduling.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Scheduling specifies the scheduling constraints for nodes supporting a - /// RuntimeClass. - /// - public partial class V1alpha1Scheduling - { - /// - /// Initializes a new instance of the V1alpha1Scheduling class. - /// - public V1alpha1Scheduling() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1Scheduling class. - /// - /// - /// 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. - /// - /// - /// tolerations are appended (excluding duplicates) to pods running with this - /// RuntimeClass during admission, effectively unioning the set of nodes tolerated - /// by the pod and the RuntimeClass. - /// - public V1alpha1Scheduling(IDictionary nodeSelector = null, IList tolerations = null) - { - NodeSelector = nodeSelector; - Tolerations = tolerations; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "nodeSelector")] - public IDictionary NodeSelector { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "tolerations")] - public IList Tolerations { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Tolerations != null){ - foreach(var obj in Tolerations) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1ServerStorageVersion.cs b/src/KubernetesClient/generated/Models/V1alpha1ServerStorageVersion.cs deleted file mode 100644 index 3e022046e..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1ServerStorageVersion.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// An API server instance reports the version it can decode and the version it - /// encodes objects to when persisting objects in the backend. - /// - public partial class V1alpha1ServerStorageVersion - { - /// - /// Initializes a new instance of the V1alpha1ServerStorageVersion class. - /// - public V1alpha1ServerStorageVersion() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1ServerStorageVersion class. - /// - /// - /// The ID of the reporting API server. - /// - /// - /// The API server can decode objects encoded in these versions. The encodingVersion - /// must be included in the decodableVersions. - /// - /// - /// The API server encodes the object to this version when persisting it in the - /// backend (e.g., etcd). - /// - public V1alpha1ServerStorageVersion(string apiServerID = null, IList decodableVersions = null, string encodingVersion = null) - { - ApiServerID = apiServerID; - DecodableVersions = decodableVersions; - EncodingVersion = encodingVersion; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The ID of the reporting API server. - /// - [JsonProperty(PropertyName = "apiServerID")] - public string ApiServerID { get; set; } - - /// - /// The API server can decode objects encoded in these versions. The encodingVersion - /// must be included in the decodableVersions. - /// - [JsonProperty(PropertyName = "decodableVersions")] - public IList DecodableVersions { get; set; } - - /// - /// The API server encodes the object to this version when persisting it in the - /// backend (e.g., etcd). - /// - [JsonProperty(PropertyName = "encodingVersion")] - public string EncodingVersion { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1StorageVersion.cs b/src/KubernetesClient/generated/Models/V1alpha1StorageVersion.cs deleted file mode 100644 index 44dc9da25..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1StorageVersion.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// - /// Storage version of a specific resource. - /// - public partial class V1alpha1StorageVersion - { - /// - /// Initializes a new instance of the V1alpha1StorageVersion class. - /// - public V1alpha1StorageVersion() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1StorageVersion class. - /// - /// - /// Spec is an empty spec. It is here to comply with Kubernetes API style. - /// - /// - /// API server instances report the version they can decode and the version they - /// encode objects to when persisting objects in the backend. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// The name is <group>.<resource>. - /// - public V1alpha1StorageVersion(object spec, V1alpha1StorageVersionStatus status, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// The name is <group>.<resource>. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Spec is an empty spec. It is here to comply with Kubernetes API style. - /// - [JsonProperty(PropertyName = "spec")] - public object Spec { get; set; } - - /// - /// API server instances report the version they can decode and the version they - /// encode objects to when persisting objects in the backend. - /// - [JsonProperty(PropertyName = "status")] - public V1alpha1StorageVersionStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Status == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Status"); - } - Metadata?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1StorageVersionCondition.cs b/src/KubernetesClient/generated/Models/V1alpha1StorageVersionCondition.cs deleted file mode 100644 index 88d6ef12e..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1StorageVersionCondition.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Describes the state of the storageVersion at a certain point. - /// - public partial class V1alpha1StorageVersionCondition - { - /// - /// Initializes a new instance of the V1alpha1StorageVersionCondition class. - /// - public V1alpha1StorageVersionCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1StorageVersionCondition class. - /// - /// - /// The reason for the condition's last transition. - /// - /// - /// Status of the condition, one of True, False, Unknown. - /// - /// - /// Type of the condition. - /// - /// - /// Last time the condition transitioned from one status to another. - /// - /// - /// A human readable message indicating details about the transition. - /// - /// - /// If set, this represents the .metadata.generation that the condition was set - /// based upon. - /// - public V1alpha1StorageVersionCondition(string reason, string status, string type, System.DateTime? lastTransitionTime = null, string message = null, long? observedGeneration = null) - { - LastTransitionTime = lastTransitionTime; - Message = message; - ObservedGeneration = observedGeneration; - Reason = reason; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Last time the condition transitioned from one status to another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// A human readable message indicating details about the transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// If set, this represents the .metadata.generation that the condition was set - /// based upon. - /// - [JsonProperty(PropertyName = "observedGeneration")] - public long? ObservedGeneration { get; set; } - - /// - /// The reason for the condition's last transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Status of the condition, one of True, False, Unknown. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Type of the condition. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1StorageVersionList.cs b/src/KubernetesClient/generated/Models/V1alpha1StorageVersionList.cs deleted file mode 100644 index 6cea279f2..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1StorageVersionList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// A list of StorageVersions. - /// - public partial class V1alpha1StorageVersionList - { - /// - /// Initializes a new instance of the V1alpha1StorageVersionList class. - /// - public V1alpha1StorageVersionList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1StorageVersionList class. - /// - /// - /// Items holds a list of StorageVersion - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1alpha1StorageVersionList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items holds a list of StorageVersion - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1StorageVersionStatus.cs b/src/KubernetesClient/generated/Models/V1alpha1StorageVersionStatus.cs deleted file mode 100644 index 7762cf75e..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1StorageVersionStatus.cs +++ /dev/null @@ -1,100 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// API server instances report the versions they can decode and the version they - /// encode objects to when persisting objects in the backend. - /// - public partial class V1alpha1StorageVersionStatus - { - /// - /// Initializes a new instance of the V1alpha1StorageVersionStatus class. - /// - public V1alpha1StorageVersionStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1StorageVersionStatus class. - /// - /// - /// 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. - /// - /// - /// The latest available observations of the storageVersion's state. - /// - /// - /// The reported versions per API server instance. - /// - public V1alpha1StorageVersionStatus(string commonEncodingVersion = null, IList conditions = null, IList storageVersions = null) - { - CommonEncodingVersion = commonEncodingVersion; - Conditions = conditions; - StorageVersions = storageVersions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "commonEncodingVersion")] - public string CommonEncodingVersion { get; set; } - - /// - /// The latest available observations of the storageVersion's state. - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// The reported versions per API server instance. - /// - [JsonProperty(PropertyName = "storageVersions")] - public IList StorageVersions { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Conditions != null){ - foreach(var obj in Conditions) - { - obj.Validate(); - } - } - if (StorageVersions != null){ - foreach(var obj in StorageVersions) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1Subject.cs b/src/KubernetesClient/generated/Models/V1alpha1Subject.cs deleted file mode 100644 index b8dfaf359..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1Subject.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1alpha1Subject - { - /// - /// Initializes a new instance of the V1alpha1Subject class. - /// - public V1alpha1Subject() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1Subject class. - /// - /// - /// Kind of object being referenced. Values defined by this API group are "User", - /// "Group", and "ServiceAccount". If the Authorizer does not recognized the kind - /// value, the Authorizer should report an error. - /// - /// - /// Name of the object being referenced. - /// - /// - /// APIVersion holds the API group and version of the referenced subject. Defaults - /// to "v1" for ServiceAccount subjects. Defaults to - /// "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. - /// - /// - /// Namespace of the referenced object. If the object kind is non-namespace, such - /// as "User" or "Group", and this value is not empty the Authorizer should report - /// an error. - /// - public V1alpha1Subject(string kind, string name, string apiVersion = null, string namespaceProperty = null) - { - ApiVersion = apiVersion; - Kind = kind; - Name = name; - NamespaceProperty = namespaceProperty; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion holds the API group and version of the referenced subject. Defaults - /// to "v1" for ServiceAccount subjects. Defaults to - /// "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Name of the object being referenced. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "namespace")] - public string NamespaceProperty { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1VolumeAttachment.cs b/src/KubernetesClient/generated/Models/V1alpha1VolumeAttachment.cs deleted file mode 100644 index bd3395519..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1VolumeAttachment.cs +++ /dev/null @@ -1,129 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// VolumeAttachment captures the intent to attach or detach the specified volume - /// to/from the specified node. - /// - /// VolumeAttachment objects are non-namespaced. - /// - public partial class V1alpha1VolumeAttachment - { - /// - /// Initializes a new instance of the V1alpha1VolumeAttachment class. - /// - public V1alpha1VolumeAttachment() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1VolumeAttachment class. - /// - /// - /// Specification of the desired attach/detach volume behavior. Populated by the - /// Kubernetes system. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Status of the VolumeAttachment request. Populated by the entity completing the - /// attach or detach operation, i.e. the external-attacher. - /// - public V1alpha1VolumeAttachment(V1alpha1VolumeAttachmentSpec spec, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1alpha1VolumeAttachmentStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Specification of the desired attach/detach volume behavior. Populated by the - /// Kubernetes system. - /// - [JsonProperty(PropertyName = "spec")] - public V1alpha1VolumeAttachmentSpec Spec { get; set; } - - /// - /// Status of the VolumeAttachment request. Populated by the entity completing the - /// attach or detach operation, i.e. the external-attacher. - /// - [JsonProperty(PropertyName = "status")] - public V1alpha1VolumeAttachmentStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Spec == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Spec"); - } - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1VolumeAttachmentList.cs b/src/KubernetesClient/generated/Models/V1alpha1VolumeAttachmentList.cs deleted file mode 100644 index 99287f013..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1VolumeAttachmentList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// VolumeAttachmentList is a collection of VolumeAttachment objects. - /// - public partial class V1alpha1VolumeAttachmentList - { - /// - /// Initializes a new instance of the V1alpha1VolumeAttachmentList class. - /// - public V1alpha1VolumeAttachmentList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1VolumeAttachmentList class. - /// - /// - /// Items is the list of VolumeAttachments - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1alpha1VolumeAttachmentList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is the list of VolumeAttachments - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1VolumeAttachmentSource.cs b/src/KubernetesClient/generated/Models/V1alpha1VolumeAttachmentSource.cs deleted file mode 100644 index 42bc78d12..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1VolumeAttachmentSource.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1alpha1VolumeAttachmentSource - { - /// - /// Initializes a new instance of the V1alpha1VolumeAttachmentSource class. - /// - public V1alpha1VolumeAttachmentSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1VolumeAttachmentSource class. - /// - /// - /// inlineVolumeSpec contains all the information necessary to attach a persistent - /// volume defined by a pod's inline VolumeSource. This field is populated only for - /// the CSIMigration feature. It contains translated fields from a pod's inline - /// VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only - /// honored by servers that enabled the CSIMigration feature. - /// - /// - /// Name of the persistent volume to attach. - /// - public V1alpha1VolumeAttachmentSource(V1PersistentVolumeSpec inlineVolumeSpec = null, string persistentVolumeName = null) - { - InlineVolumeSpec = inlineVolumeSpec; - PersistentVolumeName = persistentVolumeName; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// inlineVolumeSpec contains all the information necessary to attach a persistent - /// volume defined by a pod's inline VolumeSource. This field is populated only for - /// the CSIMigration feature. It contains translated fields from a pod's inline - /// VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only - /// honored by servers that enabled the CSIMigration feature. - /// - [JsonProperty(PropertyName = "inlineVolumeSpec")] - public V1PersistentVolumeSpec InlineVolumeSpec { get; set; } - - /// - /// Name of the persistent volume to attach. - /// - [JsonProperty(PropertyName = "persistentVolumeName")] - public string PersistentVolumeName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - InlineVolumeSpec?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1VolumeAttachmentSpec.cs b/src/KubernetesClient/generated/Models/V1alpha1VolumeAttachmentSpec.cs deleted file mode 100644 index 52e37ab4c..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1VolumeAttachmentSpec.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// VolumeAttachmentSpec is the specification of a VolumeAttachment request. - /// - public partial class V1alpha1VolumeAttachmentSpec - { - /// - /// Initializes a new instance of the V1alpha1VolumeAttachmentSpec class. - /// - public V1alpha1VolumeAttachmentSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1VolumeAttachmentSpec class. - /// - /// - /// Attacher indicates the name of the volume driver that MUST handle this request. - /// This is the name returned by GetPluginName(). - /// - /// - /// The node that the volume should be attached to. - /// - /// - /// Source represents the volume that should be attached. - /// - public V1alpha1VolumeAttachmentSpec(string attacher, string nodeName, V1alpha1VolumeAttachmentSource source) - { - Attacher = attacher; - NodeName = nodeName; - Source = source; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Attacher indicates the name of the volume driver that MUST handle this request. - /// This is the name returned by GetPluginName(). - /// - [JsonProperty(PropertyName = "attacher")] - public string Attacher { get; set; } - - /// - /// The node that the volume should be attached to. - /// - [JsonProperty(PropertyName = "nodeName")] - public string NodeName { get; set; } - - /// - /// Source represents the volume that should be attached. - /// - [JsonProperty(PropertyName = "source")] - public V1alpha1VolumeAttachmentSource Source { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Source == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Source"); - } - Source?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1VolumeAttachmentStatus.cs b/src/KubernetesClient/generated/Models/V1alpha1VolumeAttachmentStatus.cs deleted file mode 100644 index 41c7eb45c..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1VolumeAttachmentStatus.cs +++ /dev/null @@ -1,109 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// VolumeAttachmentStatus is the status of a VolumeAttachment request. - /// - public partial class V1alpha1VolumeAttachmentStatus - { - /// - /// Initializes a new instance of the V1alpha1VolumeAttachmentStatus class. - /// - public V1alpha1VolumeAttachmentStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1VolumeAttachmentStatus class. - /// - /// - /// Indicates the volume is successfully attached. This field must only be set by - /// the entity completing the attach operation, i.e. the external-attacher. - /// - /// - /// The last error encountered during attach operation, if any. This field must only - /// be set by the entity completing the attach operation, i.e. the - /// external-attacher. - /// - /// - /// Upon successful attach, this field is populated with any information returned by - /// the attach operation that must be passed into subsequent WaitForAttach or Mount - /// calls. This field must only be set by the entity completing the attach - /// operation, i.e. the external-attacher. - /// - /// - /// The last error encountered during detach operation, if any. This field must only - /// be set by the entity completing the detach operation, i.e. the - /// external-attacher. - /// - public V1alpha1VolumeAttachmentStatus(bool attached, V1alpha1VolumeError attachError = null, IDictionary attachmentMetadata = null, V1alpha1VolumeError detachError = null) - { - AttachError = attachError; - Attached = attached; - AttachmentMetadata = attachmentMetadata; - DetachError = detachError; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The last error encountered during attach operation, if any. This field must only - /// be set by the entity completing the attach operation, i.e. the - /// external-attacher. - /// - [JsonProperty(PropertyName = "attachError")] - public V1alpha1VolumeError AttachError { get; set; } - - /// - /// Indicates the volume is successfully attached. This field must only be set by - /// the entity completing the attach operation, i.e. the external-attacher. - /// - [JsonProperty(PropertyName = "attached")] - public bool Attached { get; set; } - - /// - /// Upon successful attach, this field is populated with any information returned by - /// the attach operation that must be passed into subsequent WaitForAttach or Mount - /// calls. This field must only be set by the entity completing the attach - /// operation, i.e. the external-attacher. - /// - [JsonProperty(PropertyName = "attachmentMetadata")] - public IDictionary AttachmentMetadata { get; set; } - - /// - /// The last error encountered during detach operation, if any. This field must only - /// be set by the entity completing the detach operation, i.e. the - /// external-attacher. - /// - [JsonProperty(PropertyName = "detachError")] - public V1alpha1VolumeError DetachError { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - AttachError?.Validate(); - DetachError?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1alpha1VolumeError.cs b/src/KubernetesClient/generated/Models/V1alpha1VolumeError.cs deleted file mode 100644 index ae3af54c2..000000000 --- a/src/KubernetesClient/generated/Models/V1alpha1VolumeError.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// VolumeError captures an error encountered during a volume operation. - /// - public partial class V1alpha1VolumeError - { - /// - /// Initializes a new instance of the V1alpha1VolumeError class. - /// - public V1alpha1VolumeError() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1VolumeError class. - /// - /// - /// String detailing the error encountered during Attach or Detach operation. This - /// string maybe logged, so it should not contain sensitive information. - /// - /// - /// Time the error was encountered. - /// - public V1alpha1VolumeError(string message = null, System.DateTime? time = null) - { - Message = message; - Time = time; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// String detailing the error encountered during Attach or Detach operation. This - /// string maybe logged, so it should not contain sensitive information. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Time the error was encountered. - /// - [JsonProperty(PropertyName = "time")] - public System.DateTime? Time { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1AllowedCSIDriver.cs b/src/KubernetesClient/generated/Models/V1beta1AllowedCSIDriver.cs deleted file mode 100644 index 7b1a96794..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1AllowedCSIDriver.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// AllowedCSIDriver represents a single inline CSI Driver that is allowed to be - /// used. - /// - public partial class V1beta1AllowedCSIDriver - { - /// - /// Initializes a new instance of the V1beta1AllowedCSIDriver class. - /// - public V1beta1AllowedCSIDriver() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1AllowedCSIDriver class. - /// - /// - /// Name is the registered name of the CSI driver - /// - public V1beta1AllowedCSIDriver(string name) - { - Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Name is the registered name of the CSI driver - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1AllowedFlexVolume.cs b/src/KubernetesClient/generated/Models/V1beta1AllowedFlexVolume.cs deleted file mode 100644 index 5d2196d56..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1AllowedFlexVolume.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// AllowedFlexVolume represents a single Flexvolume that is allowed to be used. - /// - public partial class V1beta1AllowedFlexVolume - { - /// - /// Initializes a new instance of the V1beta1AllowedFlexVolume class. - /// - public V1beta1AllowedFlexVolume() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1AllowedFlexVolume class. - /// - /// - /// driver is the name of the Flexvolume driver. - /// - public V1beta1AllowedFlexVolume(string driver) - { - Driver = driver; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// driver is the name of the Flexvolume driver. - /// - [JsonProperty(PropertyName = "driver")] - public string Driver { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1AllowedHostPath.cs b/src/KubernetesClient/generated/Models/V1beta1AllowedHostPath.cs deleted file mode 100644 index bc6be4ca0..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1AllowedHostPath.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// AllowedHostPath defines the host volume conditions that will be enabled by a - /// policy for pods to use. It requires the path prefix to be defined. - /// - public partial class V1beta1AllowedHostPath - { - /// - /// Initializes a new instance of the V1beta1AllowedHostPath class. - /// - public V1beta1AllowedHostPath() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1AllowedHostPath class. - /// - /// - /// pathPrefix is the path prefix that the host volume must match. It does not - /// support `*`. Trailing slashes are trimmed when validating the path prefix with a - /// host path. - /// - /// Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not - /// allow `/food` or `/etc/foo` - /// - /// - /// when set to true, will allow host volumes matching the pathPrefix only if all - /// volume mounts are readOnly. - /// - public V1beta1AllowedHostPath(string pathPrefix = null, bool? readOnlyProperty = null) - { - PathPrefix = pathPrefix; - ReadOnlyProperty = readOnlyProperty; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// pathPrefix is the path prefix that the host volume must match. It does not - /// support `*`. Trailing slashes are trimmed when validating the path prefix with a - /// host path. - /// - /// Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not - /// allow `/food` or `/etc/foo` - /// - [JsonProperty(PropertyName = "pathPrefix")] - public string PathPrefix { get; set; } - - /// - /// when set to true, will allow host volumes matching the pathPrefix only if all - /// volume mounts are readOnly. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1CSIStorageCapacity.cs b/src/KubernetesClient/generated/Models/V1beta1CSIStorageCapacity.cs deleted file mode 100644 index 8c9e5c6f5..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1CSIStorageCapacity.cs +++ /dev/null @@ -1,211 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given - /// StorageClass, this describes the available capacity in a particular topology - /// segment. This can be used when considering where to instantiate new - /// PersistentVolumes. - /// - /// For example this can express things like: - StorageClass "standard" has "1234 - /// GiB" available in "topology.kubernetes.io/zone=us-east1" - StorageClass - /// "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" - /// - /// The following three cases all imply that no capacity is available for a certain - /// combination: - no object exists with suitable topology and storage class name - - /// such an object exists, but the capacity is unset - such an object exists, but - /// the capacity is zero - /// - /// The producer of these objects can decide which approach is more suitable. - /// - /// They are consumed by the kube-scheduler if the CSIStorageCapacity beta feature - /// gate is enabled there and a CSI driver opts into capacity-aware scheduling with - /// CSIDriver.StorageCapacity. - /// - public partial class V1beta1CSIStorageCapacity - { - /// - /// Initializes a new instance of the V1beta1CSIStorageCapacity class. - /// - public V1beta1CSIStorageCapacity() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1CSIStorageCapacity class. - /// - /// - /// The name of the StorageClass that the reported capacity applies to. It must meet - /// the same requirements as the name of a StorageClass object (non-empty, DNS - /// subdomain). If that object no longer exists, the CSIStorageCapacity object is - /// obsolete and should be removed by its creator. This field is immutable. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Capacity is the value reported by the CSI driver in its GetCapacityResponse for - /// a GetCapacityRequest with topology and parameters that match the previous - /// fields. - /// - /// The semantic is currently (CSI spec 1.2) defined as: The available capacity, in - /// bytes, of the storage that can be used to provision volumes. If not set, that - /// information is currently unavailable and treated like zero capacity. - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// MaximumVolumeSize is the value reported by the CSI driver in its - /// GetCapacityResponse for a GetCapacityRequest with topology and parameters that - /// match the previous fields. - /// - /// This is defined since CSI spec 1.4.0 as the largest size that may be used in a - /// CreateVolumeRequest.capacity_range.required_bytes field to create a volume with - /// the same parameters as those in GetCapacityRequest. The corresponding value in - /// the Kubernetes API is ResourceRequirements.Requests in a volume claim. - /// - /// - /// Standard object's metadata. The name has no particular meaning. It must be be a - /// DNS subdomain (dots allowed, 253 characters). To ensure that there are no - /// conflicts with other CSI drivers on the cluster, the recommendation is to use - /// csisc-<uuid>, a generated name, or a reverse-domain name which ends with the - /// unique CSI driver name. - /// - /// Objects are namespaced. - /// - /// More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// NodeTopology defines which nodes have access to the storage for which capacity - /// was reported. If not set, the storage is not accessible from any node in the - /// cluster. If empty, the storage is accessible from all nodes. This field is - /// immutable. - /// - public V1beta1CSIStorageCapacity(string storageClassName, string apiVersion = null, ResourceQuantity capacity = null, string kind = null, ResourceQuantity maximumVolumeSize = null, V1ObjectMeta metadata = null, V1LabelSelector nodeTopology = null) - { - ApiVersion = apiVersion; - Capacity = capacity; - Kind = kind; - MaximumVolumeSize = maximumVolumeSize; - Metadata = metadata; - NodeTopology = nodeTopology; - StorageClassName = storageClassName; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Capacity is the value reported by the CSI driver in its GetCapacityResponse for - /// a GetCapacityRequest with topology and parameters that match the previous - /// fields. - /// - /// The semantic is currently (CSI spec 1.2) defined as: The available capacity, in - /// bytes, of the storage that can be used to provision volumes. If not set, that - /// information is currently unavailable and treated like zero capacity. - /// - [JsonProperty(PropertyName = "capacity")] - public ResourceQuantity Capacity { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// MaximumVolumeSize is the value reported by the CSI driver in its - /// GetCapacityResponse for a GetCapacityRequest with topology and parameters that - /// match the previous fields. - /// - /// This is defined since CSI spec 1.4.0 as the largest size that may be used in a - /// CreateVolumeRequest.capacity_range.required_bytes field to create a volume with - /// the same parameters as those in GetCapacityRequest. The corresponding value in - /// the Kubernetes API is ResourceRequirements.Requests in a volume claim. - /// - [JsonProperty(PropertyName = "maximumVolumeSize")] - public ResourceQuantity MaximumVolumeSize { get; set; } - - /// - /// Standard object's metadata. The name has no particular meaning. It must be be a - /// DNS subdomain (dots allowed, 253 characters). To ensure that there are no - /// conflicts with other CSI drivers on the cluster, the recommendation is to use - /// csisc-<uuid>, a generated name, or a reverse-domain name which ends with the - /// unique CSI driver name. - /// - /// Objects are namespaced. - /// - /// More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// NodeTopology defines which nodes have access to the storage for which capacity - /// was reported. If not set, the storage is not accessible from any node in the - /// cluster. If empty, the storage is accessible from all nodes. This field is - /// immutable. - /// - [JsonProperty(PropertyName = "nodeTopology")] - public V1LabelSelector NodeTopology { get; set; } - - /// - /// The name of the StorageClass that the reported capacity applies to. It must meet - /// the same requirements as the name of a StorageClass object (non-empty, DNS - /// subdomain). If that object no longer exists, the CSIStorageCapacity object is - /// obsolete and should be removed by its creator. This field is immutable. - /// - [JsonProperty(PropertyName = "storageClassName")] - public string StorageClassName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Capacity?.Validate(); - MaximumVolumeSize?.Validate(); - Metadata?.Validate(); - NodeTopology?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1CSIStorageCapacityList.cs b/src/KubernetesClient/generated/Models/V1beta1CSIStorageCapacityList.cs deleted file mode 100644 index 06070f71b..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1CSIStorageCapacityList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CSIStorageCapacityList is a collection of CSIStorageCapacity objects. - /// - public partial class V1beta1CSIStorageCapacityList - { - /// - /// Initializes a new instance of the V1beta1CSIStorageCapacityList class. - /// - public V1beta1CSIStorageCapacityList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1CSIStorageCapacityList class. - /// - /// - /// Items is the list of CSIStorageCapacity objects. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1beta1CSIStorageCapacityList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is the list of CSIStorageCapacity objects. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1CronJob.cs b/src/KubernetesClient/generated/Models/V1beta1CronJob.cs deleted file mode 100644 index 719384dbc..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1CronJob.cs +++ /dev/null @@ -1,124 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CronJob represents the configuration of a single cron job. - /// - public partial class V1beta1CronJob - { - /// - /// Initializes a new instance of the V1beta1CronJob class. - /// - public V1beta1CronJob() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1CronJob class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Specification of the desired behavior of a cron job, including the schedule. - /// More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - /// - /// Current status of a cron job. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - public V1beta1CronJob(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1beta1CronJobSpec spec = null, V1beta1CronJobStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Specification of the desired behavior of a cron job, including the schedule. - /// More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1beta1CronJobSpec Spec { get; set; } - - /// - /// Current status of a cron job. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "status")] - public V1beta1CronJobStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1CronJobList.cs b/src/KubernetesClient/generated/Models/V1beta1CronJobList.cs deleted file mode 100644 index a9419f7af..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1CronJobList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CronJobList is a collection of cron jobs. - /// - public partial class V1beta1CronJobList - { - /// - /// Initializes a new instance of the V1beta1CronJobList class. - /// - public V1beta1CronJobList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1CronJobList class. - /// - /// - /// items is the list of CronJobs. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1beta1CronJobList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// items is the list of CronJobs. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1CronJobSpec.cs b/src/KubernetesClient/generated/Models/V1beta1CronJobSpec.cs deleted file mode 100644 index eb1a0aabc..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1CronJobSpec.cs +++ /dev/null @@ -1,141 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CronJobSpec describes how the job execution will look like and when it will - /// actually run. - /// - public partial class V1beta1CronJobSpec - { - /// - /// Initializes a new instance of the V1beta1CronJobSpec class. - /// - public V1beta1CronJobSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1CronJobSpec class. - /// - /// - /// Specifies the job that will be created when executing a CronJob. - /// - /// - /// The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. - /// - /// - /// Specifies how to treat concurrent executions of a Job. Valid values are: - - /// "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids - /// concurrent runs, skipping next run if previous run hasn't finished yet; - - /// "Replace": cancels currently running job and replaces it with a new one - /// - /// - /// The number of failed finished jobs to retain. This is a pointer to distinguish - /// between explicit zero and not specified. Defaults to 1. - /// - /// - /// Optional deadline in seconds for starting the job if it misses scheduled time - /// for any reason. Missed jobs executions will be counted as failed ones. - /// - /// - /// The number of successful finished jobs to retain. This is a pointer to - /// distinguish between explicit zero and not specified. Defaults to 3. - /// - /// - /// This flag tells the controller to suspend subsequent executions, it does not - /// apply to already started executions. Defaults to false. - /// - public V1beta1CronJobSpec(V1beta1JobTemplateSpec jobTemplate, string schedule, string concurrencyPolicy = null, int? failedJobsHistoryLimit = null, long? startingDeadlineSeconds = null, int? successfulJobsHistoryLimit = null, bool? suspend = null) - { - ConcurrencyPolicy = concurrencyPolicy; - FailedJobsHistoryLimit = failedJobsHistoryLimit; - JobTemplate = jobTemplate; - Schedule = schedule; - StartingDeadlineSeconds = startingDeadlineSeconds; - SuccessfulJobsHistoryLimit = successfulJobsHistoryLimit; - Suspend = suspend; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Specifies how to treat concurrent executions of a Job. Valid values are: - - /// "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids - /// concurrent runs, skipping next run if previous run hasn't finished yet; - - /// "Replace": cancels currently running job and replaces it with a new one - /// - [JsonProperty(PropertyName = "concurrencyPolicy")] - public string ConcurrencyPolicy { get; set; } - - /// - /// The number of failed finished jobs to retain. This is a pointer to distinguish - /// between explicit zero and not specified. Defaults to 1. - /// - [JsonProperty(PropertyName = "failedJobsHistoryLimit")] - public int? FailedJobsHistoryLimit { get; set; } - - /// - /// Specifies the job that will be created when executing a CronJob. - /// - [JsonProperty(PropertyName = "jobTemplate")] - public V1beta1JobTemplateSpec JobTemplate { get; set; } - - /// - /// The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. - /// - [JsonProperty(PropertyName = "schedule")] - public string Schedule { get; set; } - - /// - /// Optional deadline in seconds for starting the job if it misses scheduled time - /// for any reason. Missed jobs executions will be counted as failed ones. - /// - [JsonProperty(PropertyName = "startingDeadlineSeconds")] - public long? StartingDeadlineSeconds { get; set; } - - /// - /// The number of successful finished jobs to retain. This is a pointer to - /// distinguish between explicit zero and not specified. Defaults to 3. - /// - [JsonProperty(PropertyName = "successfulJobsHistoryLimit")] - public int? SuccessfulJobsHistoryLimit { get; set; } - - /// - /// This flag tells the controller to suspend subsequent executions, it does not - /// apply to already started executions. Defaults to false. - /// - [JsonProperty(PropertyName = "suspend")] - public bool? Suspend { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (JobTemplate == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "JobTemplate"); - } - JobTemplate?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1CronJobStatus.cs b/src/KubernetesClient/generated/Models/V1beta1CronJobStatus.cs deleted file mode 100644 index 4167795cc..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1CronJobStatus.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CronJobStatus represents the current state of a cron job. - /// - public partial class V1beta1CronJobStatus - { - /// - /// Initializes a new instance of the V1beta1CronJobStatus class. - /// - public V1beta1CronJobStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1CronJobStatus class. - /// - /// - /// A list of pointers to currently running jobs. - /// - /// - /// Information when was the last time the job was successfully scheduled. - /// - /// - /// Information when was the last time the job successfully completed. - /// - public V1beta1CronJobStatus(IList active = null, System.DateTime? lastScheduleTime = null, System.DateTime? lastSuccessfulTime = null) - { - Active = active; - LastScheduleTime = lastScheduleTime; - LastSuccessfulTime = lastSuccessfulTime; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// A list of pointers to currently running jobs. - /// - [JsonProperty(PropertyName = "active")] - public IList Active { get; set; } - - /// - /// Information when was the last time the job was successfully scheduled. - /// - [JsonProperty(PropertyName = "lastScheduleTime")] - public System.DateTime? LastScheduleTime { get; set; } - - /// - /// Information when was the last time the job successfully completed. - /// - [JsonProperty(PropertyName = "lastSuccessfulTime")] - public System.DateTime? LastSuccessfulTime { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Active != null){ - foreach(var obj in Active) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1Endpoint.cs b/src/KubernetesClient/generated/Models/V1beta1Endpoint.cs deleted file mode 100644 index 973bb08ca..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1Endpoint.cs +++ /dev/null @@ -1,164 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Endpoint represents a single logical "backend" implementing a service. - /// - public partial class V1beta1Endpoint - { - /// - /// Initializes a new instance of the V1beta1Endpoint class. - /// - public V1beta1Endpoint() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1Endpoint class. - /// - /// - /// 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. - /// - /// - /// conditions contains information about the current status of the endpoint. - /// - /// - /// hints contains information associated with how an endpoint should be consumed. - /// - /// - /// 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. - /// - /// - /// nodeName represents the name of the Node hosting this endpoint. This can be used - /// to determine endpoints local to a Node. This field can be enabled with the - /// EndpointSliceNodeName feature gate. - /// - /// - /// targetRef is a reference to a Kubernetes object that represents this endpoint. - /// - /// - /// topology contains arbitrary topology information associated with the endpoint. - /// These key/value pairs must conform with the label format. - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels - /// Topology may include a maximum of 16 key/value pairs. This includes, but is not - /// limited to the following well known keys: * kubernetes.io/hostname: the value - /// indicates the hostname of the node - /// where the endpoint is located. This should match the corresponding - /// node label. - /// * topology.kubernetes.io/zone: the value indicates the zone where the - /// endpoint is located. This should match the corresponding node label. - /// * topology.kubernetes.io/region: the value indicates the region where the - /// endpoint is located. This should match the corresponding node label. - /// This field is deprecated and will be removed in future api versions. - /// - public V1beta1Endpoint(IList addresses, V1beta1EndpointConditions conditions = null, V1beta1EndpointHints hints = null, string hostname = null, string nodeName = null, V1ObjectReference targetRef = null, IDictionary topology = null) - { - Addresses = addresses; - Conditions = conditions; - Hints = hints; - Hostname = hostname; - NodeName = nodeName; - TargetRef = targetRef; - Topology = topology; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "addresses")] - public IList Addresses { get; set; } - - /// - /// conditions contains information about the current status of the endpoint. - /// - [JsonProperty(PropertyName = "conditions")] - public V1beta1EndpointConditions Conditions { get; set; } - - /// - /// hints contains information associated with how an endpoint should be consumed. - /// - [JsonProperty(PropertyName = "hints")] - public V1beta1EndpointHints Hints { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "hostname")] - public string Hostname { get; set; } - - /// - /// nodeName represents the name of the Node hosting this endpoint. This can be used - /// to determine endpoints local to a Node. This field can be enabled with the - /// EndpointSliceNodeName feature gate. - /// - [JsonProperty(PropertyName = "nodeName")] - public string NodeName { get; set; } - - /// - /// targetRef is a reference to a Kubernetes object that represents this endpoint. - /// - [JsonProperty(PropertyName = "targetRef")] - public V1ObjectReference TargetRef { get; set; } - - /// - /// topology contains arbitrary topology information associated with the endpoint. - /// These key/value pairs must conform with the label format. - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels - /// Topology may include a maximum of 16 key/value pairs. This includes, but is not - /// limited to the following well known keys: * kubernetes.io/hostname: the value - /// indicates the hostname of the node - /// where the endpoint is located. This should match the corresponding - /// node label. - /// * topology.kubernetes.io/zone: the value indicates the zone where the - /// endpoint is located. This should match the corresponding node label. - /// * topology.kubernetes.io/region: the value indicates the region where the - /// endpoint is located. This should match the corresponding node label. - /// This field is deprecated and will be removed in future api versions. - /// - [JsonProperty(PropertyName = "topology")] - public IDictionary Topology { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Conditions?.Validate(); - Hints?.Validate(); - TargetRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1EndpointConditions.cs b/src/KubernetesClient/generated/Models/V1beta1EndpointConditions.cs deleted file mode 100644 index 6901a7bc2..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1EndpointConditions.cs +++ /dev/null @@ -1,101 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// EndpointConditions represents the current condition of an endpoint. - /// - public partial class V1beta1EndpointConditions - { - /// - /// Initializes a new instance of the V1beta1EndpointConditions class. - /// - public V1beta1EndpointConditions() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1EndpointConditions class. - /// - /// - /// 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. - /// - /// - /// 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. This field can be enabled with the EndpointSliceTerminatingCondition - /// feature gate. - /// - /// - /// 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. This field can be enabled with the - /// EndpointSliceTerminatingCondition feature gate. - /// - public V1beta1EndpointConditions(bool? ready = null, bool? serving = null, bool? terminating = null) - { - Ready = ready; - Serving = serving; - Terminating = terminating; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "ready")] - public bool? Ready { get; set; } - - /// - /// 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. This field can be enabled with the EndpointSliceTerminatingCondition - /// feature gate. - /// - [JsonProperty(PropertyName = "serving")] - public bool? Serving { get; set; } - - /// - /// 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. This field can be enabled with the - /// EndpointSliceTerminatingCondition feature gate. - /// - [JsonProperty(PropertyName = "terminating")] - public bool? Terminating { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1EndpointHints.cs b/src/KubernetesClient/generated/Models/V1beta1EndpointHints.cs deleted file mode 100644 index fd19bc73e..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1EndpointHints.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// EndpointHints provides hints describing how an endpoint should be consumed. - /// - public partial class V1beta1EndpointHints - { - /// - /// Initializes a new instance of the V1beta1EndpointHints class. - /// - public V1beta1EndpointHints() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1EndpointHints class. - /// - /// - /// forZones indicates the zone(s) this endpoint should be consumed by to enable - /// topology aware routing. May contain a maximum of 8 entries. - /// - public V1beta1EndpointHints(IList forZones = null) - { - ForZones = forZones; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// forZones indicates the zone(s) this endpoint should be consumed by to enable - /// topology aware routing. May contain a maximum of 8 entries. - /// - [JsonProperty(PropertyName = "forZones")] - public IList ForZones { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (ForZones != null){ - foreach(var obj in ForZones) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1EndpointPort.cs b/src/KubernetesClient/generated/Models/V1beta1EndpointPort.cs deleted file mode 100644 index 722230042..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1EndpointPort.cs +++ /dev/null @@ -1,109 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// EndpointPort represents a Port used by an EndpointSlice - /// - public partial class V1beta1EndpointPort - { - /// - /// Initializes a new instance of the V1beta1EndpointPort class. - /// - public V1beta1EndpointPort() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1EndpointPort class. - /// - /// - /// The application protocol for this port. This field follows standard Kubernetes - /// label syntax. Un-prefixed names are reserved for IANA standard service names (as - /// per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard - /// protocols should use prefixed names such as mycompany.com/my-custom-protocol. - /// - /// - /// The name of this port. All ports in an EndpointSlice must have a unique name. If - /// the EndpointSlice is dervied from a Kubernetes service, this corresponds to the - /// Service.ports[].name. Name must either be an empty string or pass DNS_LABEL - /// validation: * must be no more than 63 characters long. * must consist of lower - /// case alphanumeric characters or '-'. * must start and end with an alphanumeric - /// character. Default is empty string. - /// - /// - /// 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. - /// - /// - /// The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. - /// - public V1beta1EndpointPort(string appProtocol = null, string name = null, int? port = null, string protocol = null) - { - AppProtocol = appProtocol; - Name = name; - Port = port; - Protocol = protocol; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// The application protocol for this port. This field follows standard Kubernetes - /// label syntax. Un-prefixed names are reserved for IANA standard service names (as - /// per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard - /// protocols should use prefixed names such as mycompany.com/my-custom-protocol. - /// - [JsonProperty(PropertyName = "appProtocol")] - public string AppProtocol { get; set; } - - /// - /// The name of this port. All ports in an EndpointSlice must have a unique name. If - /// the EndpointSlice is dervied from a Kubernetes service, this corresponds to the - /// Service.ports[].name. Name must either be an empty string or pass DNS_LABEL - /// validation: * must be no more than 63 characters long. * must consist of lower - /// case alphanumeric characters or '-'. * must start and end with an alphanumeric - /// character. Default is empty string. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "port")] - public int? Port { get; set; } - - /// - /// The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. - /// - [JsonProperty(PropertyName = "protocol")] - public string Protocol { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1EndpointSlice.cs b/src/KubernetesClient/generated/Models/V1beta1EndpointSlice.cs deleted file mode 100644 index df22733c2..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1EndpointSlice.cs +++ /dev/null @@ -1,154 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1beta1EndpointSlice - { - /// - /// Initializes a new instance of the V1beta1EndpointSlice class. - /// - public V1beta1EndpointSlice() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1EndpointSlice class. - /// - /// - /// 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. - /// - /// - /// endpoints is a list of unique endpoints in this slice. Each slice may include a - /// maximum of 1000 endpoints. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. - /// - /// - /// ports specifies the list of network ports exposed by each endpoint in this - /// slice. Each port must have a unique name. When ports is empty, it indicates that - /// there are no defined ports. When a port is defined with a nil port value, it - /// indicates "all ports". Each slice may include a maximum of 100 ports. - /// - public V1beta1EndpointSlice(string addressType, IList endpoints, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, IList ports = null) - { - AddressType = addressType; - ApiVersion = apiVersion; - Endpoints = endpoints; - Kind = kind; - Metadata = metadata; - Ports = ports; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "addressType")] - public string AddressType { get; set; } - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// endpoints is a list of unique endpoints in this slice. Each slice may include a - /// maximum of 1000 endpoints. - /// - [JsonProperty(PropertyName = "endpoints")] - public IList Endpoints { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "ports")] - public IList Ports { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Endpoints != null){ - foreach(var obj in Endpoints) - { - obj.Validate(); - } - } - Metadata?.Validate(); - if (Ports != null){ - foreach(var obj in Ports) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1EndpointSliceList.cs b/src/KubernetesClient/generated/Models/V1beta1EndpointSliceList.cs deleted file mode 100644 index d0fdd62e0..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1EndpointSliceList.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// EndpointSliceList represents a list of endpoint slices - /// - public partial class V1beta1EndpointSliceList - { - /// - /// Initializes a new instance of the V1beta1EndpointSliceList class. - /// - public V1beta1EndpointSliceList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1EndpointSliceList class. - /// - /// - /// List of endpoint slices - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. - /// - public V1beta1EndpointSliceList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// List of endpoint slices - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1Event.cs b/src/KubernetesClient/generated/Models/V1beta1Event.cs deleted file mode 100644 index d1051aae2..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1Event.cs +++ /dev/null @@ -1,279 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1beta1Event - { - /// - /// Initializes a new instance of the V1beta1Event class. - /// - public V1beta1Event() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1Event class. - /// - /// - /// eventTime is the time when this Event was first observed. It is required. - /// - /// - /// action is what action was taken/failed regarding to the regarding object. It is - /// machine-readable. This field can have at most 128 characters. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// deprecatedCount is the deprecated field assuring backward compatibility with - /// core.v1 Event type. - /// - /// - /// deprecatedFirstTimestamp is the deprecated field assuring backward compatibility - /// with core.v1 Event type. - /// - /// - /// deprecatedLastTimestamp is the deprecated field assuring backward compatibility - /// with core.v1 Event type. - /// - /// - /// deprecatedSource is the deprecated field assuring backward compatibility with - /// core.v1 Event type. - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// 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. - /// - /// - /// reason is why the action was taken. It is human-readable. This field can have at - /// most 128 characters. - /// - /// - /// regarding contains the object this Event is about. In most cases it's an Object - /// reporting controller implements, e.g. ReplicaSetController implements - /// ReplicaSets and this event is emitted because it acts on some changes in a - /// ReplicaSet object. - /// - /// - /// related is the optional secondary object for more complex actions. E.g. when - /// regarding object triggers a creation or deletion of related object. - /// - /// - /// reportingController is the name of the controller that emitted this Event, e.g. - /// `kubernetes.io/kubelet`. This field cannot be empty for new Events. - /// - /// - /// 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. - /// - /// - /// series is data about the Event series this event represents or nil if it's a - /// singleton Event. - /// - /// - /// type is the type of this event (Normal, Warning), new types could be added in - /// the future. It is machine-readable. - /// - public V1beta1Event(System.DateTime eventTime, string action = null, string apiVersion = null, int? deprecatedCount = null, System.DateTime? deprecatedFirstTimestamp = null, System.DateTime? deprecatedLastTimestamp = null, V1EventSource deprecatedSource = null, string kind = null, V1ObjectMeta metadata = null, string note = null, string reason = null, V1ObjectReference regarding = null, V1ObjectReference related = null, string reportingController = null, string reportingInstance = null, V1beta1EventSeries series = null, string type = null) - { - Action = action; - ApiVersion = apiVersion; - DeprecatedCount = deprecatedCount; - DeprecatedFirstTimestamp = deprecatedFirstTimestamp; - DeprecatedLastTimestamp = deprecatedLastTimestamp; - DeprecatedSource = deprecatedSource; - EventTime = eventTime; - Kind = kind; - Metadata = metadata; - Note = note; - Reason = reason; - Regarding = regarding; - Related = related; - ReportingController = reportingController; - ReportingInstance = reportingInstance; - Series = series; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// action is what action was taken/failed regarding to the regarding object. It is - /// machine-readable. This field can have at most 128 characters. - /// - [JsonProperty(PropertyName = "action")] - public string Action { get; set; } - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// deprecatedCount is the deprecated field assuring backward compatibility with - /// core.v1 Event type. - /// - [JsonProperty(PropertyName = "deprecatedCount")] - public int? DeprecatedCount { get; set; } - - /// - /// deprecatedFirstTimestamp is the deprecated field assuring backward compatibility - /// with core.v1 Event type. - /// - [JsonProperty(PropertyName = "deprecatedFirstTimestamp")] - public System.DateTime? DeprecatedFirstTimestamp { get; set; } - - /// - /// deprecatedLastTimestamp is the deprecated field assuring backward compatibility - /// with core.v1 Event type. - /// - [JsonProperty(PropertyName = "deprecatedLastTimestamp")] - public System.DateTime? DeprecatedLastTimestamp { get; set; } - - /// - /// deprecatedSource is the deprecated field assuring backward compatibility with - /// core.v1 Event type. - /// - [JsonProperty(PropertyName = "deprecatedSource")] - public V1EventSource DeprecatedSource { get; set; } - - /// - /// eventTime is the time when this Event was first observed. It is required. - /// - [JsonProperty(PropertyName = "eventTime")] - public System.DateTime EventTime { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "note")] - public string Note { get; set; } - - /// - /// reason is why the action was taken. It is human-readable. This field can have at - /// most 128 characters. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// regarding contains the object this Event is about. In most cases it's an Object - /// reporting controller implements, e.g. ReplicaSetController implements - /// ReplicaSets and this event is emitted because it acts on some changes in a - /// ReplicaSet object. - /// - [JsonProperty(PropertyName = "regarding")] - public V1ObjectReference Regarding { get; set; } - - /// - /// related is the optional secondary object for more complex actions. E.g. when - /// regarding object triggers a creation or deletion of related object. - /// - [JsonProperty(PropertyName = "related")] - public V1ObjectReference Related { get; set; } - - /// - /// reportingController is the name of the controller that emitted this Event, e.g. - /// `kubernetes.io/kubelet`. This field cannot be empty for new Events. - /// - [JsonProperty(PropertyName = "reportingController")] - public string ReportingController { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "reportingInstance")] - public string ReportingInstance { get; set; } - - /// - /// series is data about the Event series this event represents or nil if it's a - /// singleton Event. - /// - [JsonProperty(PropertyName = "series")] - public V1beta1EventSeries Series { get; set; } - - /// - /// type is the type of this event (Normal, Warning), new types could be added in - /// the future. It is machine-readable. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - DeprecatedSource?.Validate(); - Metadata?.Validate(); - Regarding?.Validate(); - Related?.Validate(); - Series?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1EventList.cs b/src/KubernetesClient/generated/Models/V1beta1EventList.cs deleted file mode 100644 index 3bb1c73ac..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1EventList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// EventList is a list of Event objects. - /// - public partial class V1beta1EventList - { - /// - /// Initializes a new instance of the V1beta1EventList class. - /// - public V1beta1EventList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1EventList class. - /// - /// - /// items is a list of schema objects. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1beta1EventList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// items is a list of schema objects. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1EventSeries.cs b/src/KubernetesClient/generated/Models/V1beta1EventSeries.cs deleted file mode 100644 index fb84c3fbd..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1EventSeries.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// EventSeries contain information on series of events, i.e. thing that was/is - /// happening continuously for some time. - /// - public partial class V1beta1EventSeries - { - /// - /// Initializes a new instance of the V1beta1EventSeries class. - /// - public V1beta1EventSeries() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1EventSeries class. - /// - /// - /// count is the number of occurrences in this series up to the last heartbeat time. - /// - /// - /// lastObservedTime is the time when last Event from the series was seen before - /// last heartbeat. - /// - public V1beta1EventSeries(int count, System.DateTime lastObservedTime) - { - Count = count; - LastObservedTime = lastObservedTime; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// count is the number of occurrences in this series up to the last heartbeat time. - /// - [JsonProperty(PropertyName = "count")] - public int Count { get; set; } - - /// - /// lastObservedTime is the time when last Event from the series was seen before - /// last heartbeat. - /// - [JsonProperty(PropertyName = "lastObservedTime")] - public System.DateTime LastObservedTime { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1FSGroupStrategyOptions.cs b/src/KubernetesClient/generated/Models/V1beta1FSGroupStrategyOptions.cs deleted file mode 100644 index 3fb263ee2..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1FSGroupStrategyOptions.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// FSGroupStrategyOptions defines the strategy type and options used to create the - /// strategy. - /// - public partial class V1beta1FSGroupStrategyOptions - { - /// - /// Initializes a new instance of the V1beta1FSGroupStrategyOptions class. - /// - public V1beta1FSGroupStrategyOptions() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1FSGroupStrategyOptions class. - /// - /// - /// ranges are the allowed ranges of fs groups. If you would like to force a single - /// fs group then supply a single range with the same start and end. Required for - /// MustRunAs. - /// - /// - /// rule is the strategy that will dictate what FSGroup is used in the - /// SecurityContext. - /// - public V1beta1FSGroupStrategyOptions(IList ranges = null, string rule = null) - { - Ranges = ranges; - Rule = rule; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// ranges are the allowed ranges of fs groups. If you would like to force a single - /// fs group then supply a single range with the same start and end. Required for - /// MustRunAs. - /// - [JsonProperty(PropertyName = "ranges")] - public IList Ranges { get; set; } - - /// - /// rule is the strategy that will dictate what FSGroup is used in the - /// SecurityContext. - /// - [JsonProperty(PropertyName = "rule")] - public string Rule { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Ranges != null){ - foreach(var obj in Ranges) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1FlowDistinguisherMethod.cs b/src/KubernetesClient/generated/Models/V1beta1FlowDistinguisherMethod.cs deleted file mode 100644 index 8a33194fe..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1FlowDistinguisherMethod.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// FlowDistinguisherMethod specifies the method of a flow distinguisher. - /// - public partial class V1beta1FlowDistinguisherMethod - { - /// - /// Initializes a new instance of the V1beta1FlowDistinguisherMethod class. - /// - public V1beta1FlowDistinguisherMethod() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1FlowDistinguisherMethod class. - /// - /// - /// `type` is the type of flow distinguisher method The supported types are "ByUser" - /// and "ByNamespace". Required. - /// - public V1beta1FlowDistinguisherMethod(string type) - { - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// `type` is the type of flow distinguisher method The supported types are "ByUser" - /// and "ByNamespace". Required. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1FlowSchema.cs b/src/KubernetesClient/generated/Models/V1beta1FlowSchema.cs deleted file mode 100644 index e316f3e60..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1FlowSchema.cs +++ /dev/null @@ -1,124 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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". - /// - public partial class V1beta1FlowSchema - { - /// - /// Initializes a new instance of the V1beta1FlowSchema class. - /// - public V1beta1FlowSchema() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1FlowSchema class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// `metadata` is the standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// `spec` is the specification of the desired behavior of a FlowSchema. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - /// - /// `status` is the current status of a FlowSchema. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - public V1beta1FlowSchema(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1beta1FlowSchemaSpec spec = null, V1beta1FlowSchemaStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// `metadata` is the standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// `spec` is the specification of the desired behavior of a FlowSchema. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1beta1FlowSchemaSpec Spec { get; set; } - - /// - /// `status` is the current status of a FlowSchema. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "status")] - public V1beta1FlowSchemaStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1FlowSchemaCondition.cs b/src/KubernetesClient/generated/Models/V1beta1FlowSchemaCondition.cs deleted file mode 100644 index eb2128379..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1FlowSchemaCondition.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// FlowSchemaCondition describes conditions for a FlowSchema. - /// - public partial class V1beta1FlowSchemaCondition - { - /// - /// Initializes a new instance of the V1beta1FlowSchemaCondition class. - /// - public V1beta1FlowSchemaCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1FlowSchemaCondition class. - /// - /// - /// `lastTransitionTime` is the last time the condition transitioned from one status - /// to another. - /// - /// - /// `message` is a human-readable message indicating details about last transition. - /// - /// - /// `reason` is a unique, one-word, CamelCase reason for the condition's last - /// transition. - /// - /// - /// `status` is the status of the condition. Can be True, False, Unknown. Required. - /// - /// - /// `type` is the type of the condition. Required. - /// - public V1beta1FlowSchemaCondition(System.DateTime? lastTransitionTime = null, string message = null, string reason = null, string status = null, string type = null) - { - LastTransitionTime = lastTransitionTime; - Message = message; - Reason = reason; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// `lastTransitionTime` is the last time the condition transitioned from one status - /// to another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// `message` is a human-readable message indicating details about last transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// `reason` is a unique, one-word, CamelCase reason for the condition's last - /// transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// `status` is the status of the condition. Can be True, False, Unknown. Required. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// `type` is the type of the condition. Required. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1FlowSchemaList.cs b/src/KubernetesClient/generated/Models/V1beta1FlowSchemaList.cs deleted file mode 100644 index ce5b2aa51..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1FlowSchemaList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// FlowSchemaList is a list of FlowSchema objects. - /// - public partial class V1beta1FlowSchemaList - { - /// - /// Initializes a new instance of the V1beta1FlowSchemaList class. - /// - public V1beta1FlowSchemaList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1FlowSchemaList class. - /// - /// - /// `items` is a list of FlowSchemas. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// `metadata` is the standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1beta1FlowSchemaList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// `items` is a list of FlowSchemas. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// `metadata` is the standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1FlowSchemaSpec.cs b/src/KubernetesClient/generated/Models/V1beta1FlowSchemaSpec.cs deleted file mode 100644 index 1a9efc8d5..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1FlowSchemaSpec.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// FlowSchemaSpec describes how the FlowSchema's specification looks like. - /// - public partial class V1beta1FlowSchemaSpec - { - /// - /// Initializes a new instance of the V1beta1FlowSchemaSpec class. - /// - public V1beta1FlowSchemaSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1FlowSchemaSpec class. - /// - /// - /// `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in - /// the cluster. If the reference cannot be resolved, the FlowSchema will be ignored - /// and marked as invalid in its status. Required. - /// - /// - /// `distinguisherMethod` defines how to compute the flow distinguisher for requests - /// that match this schema. `nil` specifies that the distinguisher is disabled and - /// thus will always be the empty string. - /// - /// - /// `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. - /// - /// - /// `rules` describes which requests will match this flow schema. This FlowSchema - /// matches a request if and only if at least one member of rules matches the - /// request. if it is an empty slice, there will be no requests matching the - /// FlowSchema. - /// - public V1beta1FlowSchemaSpec(V1beta1PriorityLevelConfigurationReference priorityLevelConfiguration, V1beta1FlowDistinguisherMethod distinguisherMethod = null, int? matchingPrecedence = null, IList rules = null) - { - DistinguisherMethod = distinguisherMethod; - MatchingPrecedence = matchingPrecedence; - PriorityLevelConfiguration = priorityLevelConfiguration; - Rules = rules; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// `distinguisherMethod` defines how to compute the flow distinguisher for requests - /// that match this schema. `nil` specifies that the distinguisher is disabled and - /// thus will always be the empty string. - /// - [JsonProperty(PropertyName = "distinguisherMethod")] - public V1beta1FlowDistinguisherMethod DistinguisherMethod { get; set; } - - /// - /// `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. - /// - [JsonProperty(PropertyName = "matchingPrecedence")] - public int? MatchingPrecedence { get; set; } - - /// - /// `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in - /// the cluster. If the reference cannot be resolved, the FlowSchema will be ignored - /// and marked as invalid in its status. Required. - /// - [JsonProperty(PropertyName = "priorityLevelConfiguration")] - public V1beta1PriorityLevelConfigurationReference PriorityLevelConfiguration { get; set; } - - /// - /// `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. - /// - [JsonProperty(PropertyName = "rules")] - public IList Rules { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (PriorityLevelConfiguration == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "PriorityLevelConfiguration"); - } - DistinguisherMethod?.Validate(); - PriorityLevelConfiguration?.Validate(); - if (Rules != null){ - foreach(var obj in Rules) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1FlowSchemaStatus.cs b/src/KubernetesClient/generated/Models/V1beta1FlowSchemaStatus.cs deleted file mode 100644 index 26ef92022..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1FlowSchemaStatus.cs +++ /dev/null @@ -1,67 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// FlowSchemaStatus represents the current state of a FlowSchema. - /// - public partial class V1beta1FlowSchemaStatus - { - /// - /// Initializes a new instance of the V1beta1FlowSchemaStatus class. - /// - public V1beta1FlowSchemaStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1FlowSchemaStatus class. - /// - /// - /// `conditions` is a list of the current states of FlowSchema. - /// - public V1beta1FlowSchemaStatus(IList conditions = null) - { - Conditions = conditions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// `conditions` is a list of the current states of FlowSchema. - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Conditions != null){ - foreach(var obj in Conditions) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1ForZone.cs b/src/KubernetesClient/generated/Models/V1beta1ForZone.cs deleted file mode 100644 index 5837ea9ee..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1ForZone.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ForZone provides information about which zones should consume this endpoint. - /// - public partial class V1beta1ForZone - { - /// - /// Initializes a new instance of the V1beta1ForZone class. - /// - public V1beta1ForZone() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1ForZone class. - /// - /// - /// name represents the name of the zone. - /// - public V1beta1ForZone(string name) - { - Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// name represents the name of the zone. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1GroupSubject.cs b/src/KubernetesClient/generated/Models/V1beta1GroupSubject.cs deleted file mode 100644 index 6091788e9..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1GroupSubject.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// GroupSubject holds detailed information for group-kind subject. - /// - public partial class V1beta1GroupSubject - { - /// - /// Initializes a new instance of the V1beta1GroupSubject class. - /// - public V1beta1GroupSubject() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1GroupSubject class. - /// - /// - /// name is the user group that matches, or "*" to match all user groups. See - /// https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go - /// for some well-known group names. Required. - /// - public V1beta1GroupSubject(string name) - { - Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1HostPortRange.cs b/src/KubernetesClient/generated/Models/V1beta1HostPortRange.cs deleted file mode 100644 index e950efd80..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1HostPortRange.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// HostPortRange defines a range of host ports that will be enabled by a policy for - /// pods to use. It requires both the start and end to be defined. - /// - public partial class V1beta1HostPortRange - { - /// - /// Initializes a new instance of the V1beta1HostPortRange class. - /// - public V1beta1HostPortRange() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1HostPortRange class. - /// - /// - /// max is the end of the range, inclusive. - /// - /// - /// min is the start of the range, inclusive. - /// - public V1beta1HostPortRange(int max, int min) - { - Max = max; - Min = min; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// max is the end of the range, inclusive. - /// - [JsonProperty(PropertyName = "max")] - public int Max { get; set; } - - /// - /// min is the start of the range, inclusive. - /// - [JsonProperty(PropertyName = "min")] - public int Min { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1IDRange.cs b/src/KubernetesClient/generated/Models/V1beta1IDRange.cs deleted file mode 100644 index d03e6f6c0..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1IDRange.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// IDRange provides a min/max of an allowed range of IDs. - /// - public partial class V1beta1IDRange - { - /// - /// Initializes a new instance of the V1beta1IDRange class. - /// - public V1beta1IDRange() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1IDRange class. - /// - /// - /// max is the end of the range, inclusive. - /// - /// - /// min is the start of the range, inclusive. - /// - public V1beta1IDRange(long max, long min) - { - Max = max; - Min = min; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// max is the end of the range, inclusive. - /// - [JsonProperty(PropertyName = "max")] - public long Max { get; set; } - - /// - /// min is the start of the range, inclusive. - /// - [JsonProperty(PropertyName = "min")] - public long Min { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1JobTemplateSpec.cs b/src/KubernetesClient/generated/Models/V1beta1JobTemplateSpec.cs deleted file mode 100644 index dd17d11bc..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1JobTemplateSpec.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// JobTemplateSpec describes the data a Job should have when created from a - /// template - /// - public partial class V1beta1JobTemplateSpec - { - /// - /// Initializes a new instance of the V1beta1JobTemplateSpec class. - /// - public V1beta1JobTemplateSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1JobTemplateSpec class. - /// - /// - /// Standard object's metadata of the jobs created from this template. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Specification of the desired behavior of the job. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - public V1beta1JobTemplateSpec(V1ObjectMeta metadata = null, V1JobSpec spec = null) - { - Metadata = metadata; - Spec = spec; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Standard object's metadata of the jobs created from this template. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Specification of the desired behavior of the job. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1JobSpec Spec { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1LimitResponse.cs b/src/KubernetesClient/generated/Models/V1beta1LimitResponse.cs deleted file mode 100644 index c4afb2800..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1LimitResponse.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// LimitResponse defines how to handle requests that can not be executed right now. - /// - public partial class V1beta1LimitResponse - { - /// - /// Initializes a new instance of the V1beta1LimitResponse class. - /// - public V1beta1LimitResponse() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1LimitResponse class. - /// - /// - /// `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. - /// - /// - /// `queuing` holds the configuration parameters for queuing. This field may be - /// non-empty only if `type` is `"Queue"`. - /// - public V1beta1LimitResponse(string type, V1beta1QueuingConfiguration queuing = null) - { - Queuing = queuing; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// `queuing` holds the configuration parameters for queuing. This field may be - /// non-empty only if `type` is `"Queue"`. - /// - [JsonProperty(PropertyName = "queuing")] - public V1beta1QueuingConfiguration Queuing { get; set; } - - /// - /// `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. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Queuing?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1LimitedPriorityLevelConfiguration.cs b/src/KubernetesClient/generated/Models/V1beta1LimitedPriorityLevelConfiguration.cs deleted file mode 100644 index 8ab924e14..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1LimitedPriorityLevelConfiguration.cs +++ /dev/null @@ -1,99 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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? - /// - public partial class V1beta1LimitedPriorityLevelConfiguration - { - /// - /// Initializes a new instance of the V1beta1LimitedPriorityLevelConfiguration class. - /// - public V1beta1LimitedPriorityLevelConfiguration() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1LimitedPriorityLevelConfiguration class. - /// - /// - /// `assuredConcurrencyShares` (ACS) configures the execution limit, which is a - /// limit on the number of requests of this priority level that may be exeucting at - /// a given time. ACS must be a positive number. The server's concurrency limit - /// (SCL) is divided among the concurrency-controlled priority levels in proportion - /// to their assured concurrency shares. This produces the assured concurrency value - /// (ACV) --- the number of requests that may be executing at a time --- for each - /// such priority level: - /// - /// ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) - /// - /// bigger numbers of ACS mean more reserved concurrent requests (at the expense of - /// every other PL). This field has a default value of 30. - /// - /// - /// `limitResponse` indicates what to do with requests that can not be executed - /// right now - /// - public V1beta1LimitedPriorityLevelConfiguration(int? assuredConcurrencyShares = null, V1beta1LimitResponse limitResponse = null) - { - AssuredConcurrencyShares = assuredConcurrencyShares; - LimitResponse = limitResponse; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// `assuredConcurrencyShares` (ACS) configures the execution limit, which is a - /// limit on the number of requests of this priority level that may be exeucting at - /// a given time. ACS must be a positive number. The server's concurrency limit - /// (SCL) is divided among the concurrency-controlled priority levels in proportion - /// to their assured concurrency shares. This produces the assured concurrency value - /// (ACV) --- the number of requests that may be executing at a time --- for each - /// such priority level: - /// - /// ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) - /// - /// bigger numbers of ACS mean more reserved concurrent requests (at the expense of - /// every other PL). This field has a default value of 30. - /// - [JsonProperty(PropertyName = "assuredConcurrencyShares")] - public int? AssuredConcurrencyShares { get; set; } - - /// - /// `limitResponse` indicates what to do with requests that can not be executed - /// right now - /// - [JsonProperty(PropertyName = "limitResponse")] - public V1beta1LimitResponse LimitResponse { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - LimitResponse?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1NonResourcePolicyRule.cs b/src/KubernetesClient/generated/Models/V1beta1NonResourcePolicyRule.cs deleted file mode 100644 index f14c0374c..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1NonResourcePolicyRule.cs +++ /dev/null @@ -1,92 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1beta1NonResourcePolicyRule - { - /// - /// Initializes a new instance of the V1beta1NonResourcePolicyRule class. - /// - public V1beta1NonResourcePolicyRule() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1NonResourcePolicyRule class. - /// - /// - /// `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` is a list of matching verbs and may not be empty. "*" matches all verbs. - /// If it is present, it must be the only entry. Required. - /// - public V1beta1NonResourcePolicyRule(IList nonResourceURLs, IList verbs) - { - NonResourceURLs = nonResourceURLs; - Verbs = verbs; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// `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. - /// - [JsonProperty(PropertyName = "nonResourceURLs")] - public IList NonResourceURLs { get; set; } - - /// - /// `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. - /// - [JsonProperty(PropertyName = "verbs")] - public IList Verbs { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1Overhead.cs b/src/KubernetesClient/generated/Models/V1beta1Overhead.cs deleted file mode 100644 index 091e95d96..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1Overhead.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Overhead structure represents the resource overhead associated with running a - /// pod. - /// - public partial class V1beta1Overhead - { - /// - /// Initializes a new instance of the V1beta1Overhead class. - /// - public V1beta1Overhead() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1Overhead class. - /// - /// - /// PodFixed represents the fixed resource overhead associated with running a pod. - /// - public V1beta1Overhead(IDictionary podFixed = null) - { - PodFixed = podFixed; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// PodFixed represents the fixed resource overhead associated with running a pod. - /// - [JsonProperty(PropertyName = "podFixed")] - public IDictionary PodFixed { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1PodDisruptionBudget.cs b/src/KubernetesClient/generated/Models/V1beta1PodDisruptionBudget.cs deleted file mode 100644 index 6e9709fc6..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1PodDisruptionBudget.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodDisruptionBudget is an object to define the max disruption that can be caused - /// to a collection of pods - /// - public partial class V1beta1PodDisruptionBudget - { - /// - /// Initializes a new instance of the V1beta1PodDisruptionBudget class. - /// - public V1beta1PodDisruptionBudget() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1PodDisruptionBudget class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Specification of the desired behavior of the PodDisruptionBudget. - /// - /// - /// Most recently observed status of the PodDisruptionBudget. - /// - public V1beta1PodDisruptionBudget(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1beta1PodDisruptionBudgetSpec spec = null, V1beta1PodDisruptionBudgetStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Specification of the desired behavior of the PodDisruptionBudget. - /// - [JsonProperty(PropertyName = "spec")] - public V1beta1PodDisruptionBudgetSpec Spec { get; set; } - - /// - /// Most recently observed status of the PodDisruptionBudget. - /// - [JsonProperty(PropertyName = "status")] - public V1beta1PodDisruptionBudgetStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1PodDisruptionBudgetList.cs b/src/KubernetesClient/generated/Models/V1beta1PodDisruptionBudgetList.cs deleted file mode 100644 index 8a5510f61..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1PodDisruptionBudgetList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodDisruptionBudgetList is a collection of PodDisruptionBudgets. - /// - public partial class V1beta1PodDisruptionBudgetList - { - /// - /// Initializes a new instance of the V1beta1PodDisruptionBudgetList class. - /// - public V1beta1PodDisruptionBudgetList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1PodDisruptionBudgetList class. - /// - /// - /// items list individual PodDisruptionBudget objects - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1beta1PodDisruptionBudgetList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// items list individual PodDisruptionBudget objects - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1PodDisruptionBudgetSpec.cs b/src/KubernetesClient/generated/Models/V1beta1PodDisruptionBudgetSpec.cs deleted file mode 100644 index 2a6605a69..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1PodDisruptionBudgetSpec.cs +++ /dev/null @@ -1,102 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. - /// - public partial class V1beta1PodDisruptionBudgetSpec - { - /// - /// Initializes a new instance of the V1beta1PodDisruptionBudgetSpec class. - /// - public V1beta1PodDisruptionBudgetSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1PodDisruptionBudgetSpec class. - /// - /// - /// An eviction is allowed if at most "maxUnavailable" pods selected by "selector" - /// are unavailable after the eviction, i.e. even in absence of the evicted pod. For - /// example, one can prevent all voluntary evictions by specifying 0. This is a - /// mutually exclusive setting with "minAvailable". - /// - /// - /// An eviction is allowed if at least "minAvailable" pods selected by "selector" - /// will still be available after the eviction, i.e. even in the absence of the - /// evicted pod. So for example you can prevent all voluntary evictions by - /// specifying "100%". - /// - /// - /// Label query over pods whose evictions are managed by the disruption budget. A - /// null selector selects no pods. An empty selector ({}) also selects no pods, - /// which differs from standard behavior of selecting all pods. In policy/v1, an - /// empty selector will select all pods in the namespace. - /// - public V1beta1PodDisruptionBudgetSpec(IntstrIntOrString maxUnavailable = null, IntstrIntOrString minAvailable = null, V1LabelSelector selector = null) - { - MaxUnavailable = maxUnavailable; - MinAvailable = minAvailable; - Selector = selector; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// An eviction is allowed if at most "maxUnavailable" pods selected by "selector" - /// are unavailable after the eviction, i.e. even in absence of the evicted pod. For - /// example, one can prevent all voluntary evictions by specifying 0. This is a - /// mutually exclusive setting with "minAvailable". - /// - [JsonProperty(PropertyName = "maxUnavailable")] - public IntstrIntOrString MaxUnavailable { get; set; } - - /// - /// An eviction is allowed if at least "minAvailable" pods selected by "selector" - /// will still be available after the eviction, i.e. even in the absence of the - /// evicted pod. So for example you can prevent all voluntary evictions by - /// specifying "100%". - /// - [JsonProperty(PropertyName = "minAvailable")] - public IntstrIntOrString MinAvailable { get; set; } - - /// - /// Label query over pods whose evictions are managed by the disruption budget. A - /// null selector selects no pods. An empty selector ({}) also selects no pods, - /// which differs from standard behavior of selecting all pods. In policy/v1, an - /// empty selector will select all pods in the namespace. - /// - [JsonProperty(PropertyName = "selector")] - public V1LabelSelector Selector { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - MaxUnavailable?.Validate(); - MinAvailable?.Validate(); - Selector?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1PodDisruptionBudgetStatus.cs b/src/KubernetesClient/generated/Models/V1beta1PodDisruptionBudgetStatus.cs deleted file mode 100644 index 79d09f247..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1PodDisruptionBudgetStatus.cs +++ /dev/null @@ -1,174 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodDisruptionBudgetStatus represents information about the status of a - /// PodDisruptionBudget. Status may trail the actual state of a system. - /// - public partial class V1beta1PodDisruptionBudgetStatus - { - /// - /// Initializes a new instance of the V1beta1PodDisruptionBudgetStatus class. - /// - public V1beta1PodDisruptionBudgetStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1PodDisruptionBudgetStatus class. - /// - /// - /// current number of healthy pods - /// - /// - /// minimum desired number of healthy pods - /// - /// - /// Number of pod disruptions that are currently allowed. - /// - /// - /// total number of pods counted by this disruption budget - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// Most recent generation observed when updating this PDB status. - /// DisruptionsAllowed and other status information is valid only if - /// observedGeneration equals to PDB's object generation. - /// - public V1beta1PodDisruptionBudgetStatus(int currentHealthy, int desiredHealthy, int disruptionsAllowed, int expectedPods, IList conditions = null, IDictionary disruptedPods = null, long? observedGeneration = null) - { - Conditions = conditions; - CurrentHealthy = currentHealthy; - DesiredHealthy = desiredHealthy; - DisruptedPods = disruptedPods; - DisruptionsAllowed = disruptionsAllowed; - ExpectedPods = expectedPods; - ObservedGeneration = observedGeneration; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// current number of healthy pods - /// - [JsonProperty(PropertyName = "currentHealthy")] - public int CurrentHealthy { get; set; } - - /// - /// minimum desired number of healthy pods - /// - [JsonProperty(PropertyName = "desiredHealthy")] - public int DesiredHealthy { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "disruptedPods")] - public IDictionary DisruptedPods { get; set; } - - /// - /// Number of pod disruptions that are currently allowed. - /// - [JsonProperty(PropertyName = "disruptionsAllowed")] - public int DisruptionsAllowed { get; set; } - - /// - /// total number of pods counted by this disruption budget - /// - [JsonProperty(PropertyName = "expectedPods")] - public int ExpectedPods { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "observedGeneration")] - public long? ObservedGeneration { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Conditions != null){ - foreach(var obj in Conditions) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1PodSecurityPolicy.cs b/src/KubernetesClient/generated/Models/V1beta1PodSecurityPolicy.cs deleted file mode 100644 index b6c1e52e3..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1PodSecurityPolicy.cs +++ /dev/null @@ -1,108 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodSecurityPolicy governs the ability to make requests that affect the Security - /// Context that will be applied to a pod and container. Deprecated in 1.21. - /// - public partial class V1beta1PodSecurityPolicy - { - /// - /// Initializes a new instance of the V1beta1PodSecurityPolicy class. - /// - public V1beta1PodSecurityPolicy() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1PodSecurityPolicy class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// spec defines the policy enforced. - /// - public V1beta1PodSecurityPolicy(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1beta1PodSecurityPolicySpec spec = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// spec defines the policy enforced. - /// - [JsonProperty(PropertyName = "spec")] - public V1beta1PodSecurityPolicySpec Spec { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1PodSecurityPolicyList.cs b/src/KubernetesClient/generated/Models/V1beta1PodSecurityPolicyList.cs deleted file mode 100644 index 757315507..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1PodSecurityPolicyList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodSecurityPolicyList is a list of PodSecurityPolicy objects. - /// - public partial class V1beta1PodSecurityPolicyList - { - /// - /// Initializes a new instance of the V1beta1PodSecurityPolicyList class. - /// - public V1beta1PodSecurityPolicyList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1PodSecurityPolicyList class. - /// - /// - /// items is a list of schema objects. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1beta1PodSecurityPolicyList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// items is a list of schema objects. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1PodSecurityPolicySpec.cs b/src/KubernetesClient/generated/Models/V1beta1PodSecurityPolicySpec.cs deleted file mode 100644 index 10d63e76e..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1PodSecurityPolicySpec.cs +++ /dev/null @@ -1,427 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodSecurityPolicySpec defines the policy enforced. - /// - public partial class V1beta1PodSecurityPolicySpec - { - /// - /// Initializes a new instance of the V1beta1PodSecurityPolicySpec class. - /// - public V1beta1PodSecurityPolicySpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1PodSecurityPolicySpec class. - /// - /// - /// fsGroup is the strategy that will dictate what fs group is used by the - /// SecurityContext. - /// - /// - /// runAsUser is the strategy that will dictate the allowable RunAsUser values that - /// may be set. - /// - /// - /// seLinux is the strategy that will dictate the allowable labels that may be set. - /// - /// - /// supplementalGroups is the strategy that will dictate what supplemental groups - /// are used by the SecurityContext. - /// - /// - /// allowPrivilegeEscalation determines if a pod can request to allow privilege - /// escalation. If unspecified, defaults to true. - /// - /// - /// AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly - /// set to be embedded within a pod spec. An empty value indicates that any CSI - /// driver can be used for inline ephemeral volumes. This is a beta field, and is - /// only honored if the API server enables the CSIInlineVolume feature gate. - /// - /// - /// allowedCapabilities is a list of capabilities that can be requested to add to - /// the container. Capabilities in this field may be added at the pod author's - /// discretion. You must not list a capability in both allowedCapabilities and - /// requiredDropCapabilities. - /// - /// - /// allowedFlexVolumes is an allowlist of Flexvolumes. Empty or nil indicates that - /// all Flexvolumes may be used. This parameter is effective only when the usage of - /// the Flexvolumes is allowed in the "volumes" field. - /// - /// - /// allowedHostPaths is an allowlist of host paths. Empty indicates that all host - /// paths may be used. - /// - /// - /// AllowedProcMountTypes is an allowlist of allowed ProcMountTypes. Empty or nil - /// indicates that only the DefaultProcMountType may be used. This requires the - /// ProcMountType feature flag to be enabled. - /// - /// - /// allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to - /// none. Each entry is either a plain sysctl name or ends in "*" in which case it - /// is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls - /// are allowed. Kubelet has to allowlist all allowed unsafe sysctls explicitly to - /// avoid rejection. - /// - /// Examples: e.g. "foo/*" allows "foo/bar", "foo/baz", etc. e.g. "foo.*" allows - /// "foo.bar", "foo.baz", etc. - /// - /// - /// defaultAddCapabilities is the default set of capabilities that will be added to - /// the container unless the pod spec specifically drops the capability. You may - /// not list a capability in both defaultAddCapabilities and - /// requiredDropCapabilities. Capabilities added here are implicitly allowed, and - /// need not be included in the allowedCapabilities list. - /// - /// - /// defaultAllowPrivilegeEscalation controls the default setting for whether a - /// process can gain more privileges than its parent process. - /// - /// - /// forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. - /// Each entry is either a plain sysctl name or ends in "*" in which case it is - /// considered as a prefix of forbidden sysctls. Single * means all sysctls are - /// forbidden. - /// - /// Examples: e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. e.g. "foo.*" forbids - /// "foo.bar", "foo.baz", etc. - /// - /// - /// hostIPC determines if the policy allows the use of HostIPC in the pod spec. - /// - /// - /// hostNetwork determines if the policy allows the use of HostNetwork in the pod - /// spec. - /// - /// - /// hostPID determines if the policy allows the use of HostPID in the pod spec. - /// - /// - /// hostPorts determines which host port ranges are allowed to be exposed. - /// - /// - /// privileged determines if a pod can request to be run as privileged. - /// - /// - /// readOnlyRootFilesystem when set to true will force containers to run with a read - /// only root file system. If the container specifically requests to run with a - /// non-read only root file system the PSP should deny the pod. If set to false the - /// container may run with a read only root file system if it wishes but it will not - /// be forced to. - /// - /// - /// requiredDropCapabilities are the capabilities that will be dropped from the - /// container. These are required to be dropped and cannot be added. - /// - /// - /// RunAsGroup is the strategy that will dictate the allowable RunAsGroup values - /// that may be set. If this field is omitted, the pod's RunAsGroup can take any - /// value. This field requires the RunAsGroup feature gate to be enabled. - /// - /// - /// runtimeClass is the strategy that will dictate the allowable RuntimeClasses for - /// a pod. If this field is omitted, the pod's runtimeClassName field is - /// unrestricted. Enforcement of this field depends on the RuntimeClass feature gate - /// being enabled. - /// - /// - /// volumes is an allowlist of volume plugins. Empty indicates that no volumes may - /// be used. To allow all volumes you may use '*'. - /// - public V1beta1PodSecurityPolicySpec(V1beta1FSGroupStrategyOptions fsGroup, V1beta1RunAsUserStrategyOptions runAsUser, V1beta1SELinuxStrategyOptions seLinux, V1beta1SupplementalGroupsStrategyOptions supplementalGroups, bool? allowPrivilegeEscalation = null, IList allowedCSIDrivers = null, IList allowedCapabilities = null, IList allowedFlexVolumes = null, IList allowedHostPaths = null, IList allowedProcMountTypes = null, IList allowedUnsafeSysctls = null, IList defaultAddCapabilities = null, bool? defaultAllowPrivilegeEscalation = null, IList forbiddenSysctls = null, bool? hostIPC = null, bool? hostNetwork = null, bool? hostPID = null, IList hostPorts = null, bool? privileged = null, bool? readOnlyRootFilesystem = null, IList requiredDropCapabilities = null, V1beta1RunAsGroupStrategyOptions runAsGroup = null, V1beta1RuntimeClassStrategyOptions runtimeClass = null, IList volumes = null) - { - AllowPrivilegeEscalation = allowPrivilegeEscalation; - AllowedCSIDrivers = allowedCSIDrivers; - AllowedCapabilities = allowedCapabilities; - AllowedFlexVolumes = allowedFlexVolumes; - AllowedHostPaths = allowedHostPaths; - AllowedProcMountTypes = allowedProcMountTypes; - AllowedUnsafeSysctls = allowedUnsafeSysctls; - DefaultAddCapabilities = defaultAddCapabilities; - DefaultAllowPrivilegeEscalation = defaultAllowPrivilegeEscalation; - ForbiddenSysctls = forbiddenSysctls; - FsGroup = fsGroup; - HostIPC = hostIPC; - HostNetwork = hostNetwork; - HostPID = hostPID; - HostPorts = hostPorts; - Privileged = privileged; - ReadOnlyRootFilesystem = readOnlyRootFilesystem; - RequiredDropCapabilities = requiredDropCapabilities; - RunAsGroup = runAsGroup; - RunAsUser = runAsUser; - RuntimeClass = runtimeClass; - SeLinux = seLinux; - SupplementalGroups = supplementalGroups; - Volumes = volumes; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// allowPrivilegeEscalation determines if a pod can request to allow privilege - /// escalation. If unspecified, defaults to true. - /// - [JsonProperty(PropertyName = "allowPrivilegeEscalation")] - public bool? AllowPrivilegeEscalation { get; set; } - - /// - /// AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly - /// set to be embedded within a pod spec. An empty value indicates that any CSI - /// driver can be used for inline ephemeral volumes. This is a beta field, and is - /// only honored if the API server enables the CSIInlineVolume feature gate. - /// - [JsonProperty(PropertyName = "allowedCSIDrivers")] - public IList AllowedCSIDrivers { get; set; } - - /// - /// allowedCapabilities is a list of capabilities that can be requested to add to - /// the container. Capabilities in this field may be added at the pod author's - /// discretion. You must not list a capability in both allowedCapabilities and - /// requiredDropCapabilities. - /// - [JsonProperty(PropertyName = "allowedCapabilities")] - public IList AllowedCapabilities { get; set; } - - /// - /// allowedFlexVolumes is an allowlist of Flexvolumes. Empty or nil indicates that - /// all Flexvolumes may be used. This parameter is effective only when the usage of - /// the Flexvolumes is allowed in the "volumes" field. - /// - [JsonProperty(PropertyName = "allowedFlexVolumes")] - public IList AllowedFlexVolumes { get; set; } - - /// - /// allowedHostPaths is an allowlist of host paths. Empty indicates that all host - /// paths may be used. - /// - [JsonProperty(PropertyName = "allowedHostPaths")] - public IList AllowedHostPaths { get; set; } - - /// - /// AllowedProcMountTypes is an allowlist of allowed ProcMountTypes. Empty or nil - /// indicates that only the DefaultProcMountType may be used. This requires the - /// ProcMountType feature flag to be enabled. - /// - [JsonProperty(PropertyName = "allowedProcMountTypes")] - public IList AllowedProcMountTypes { get; set; } - - /// - /// allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to - /// none. Each entry is either a plain sysctl name or ends in "*" in which case it - /// is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls - /// are allowed. Kubelet has to allowlist all allowed unsafe sysctls explicitly to - /// avoid rejection. - /// - /// Examples: e.g. "foo/*" allows "foo/bar", "foo/baz", etc. e.g. "foo.*" allows - /// "foo.bar", "foo.baz", etc. - /// - [JsonProperty(PropertyName = "allowedUnsafeSysctls")] - public IList AllowedUnsafeSysctls { get; set; } - - /// - /// defaultAddCapabilities is the default set of capabilities that will be added to - /// the container unless the pod spec specifically drops the capability. You may - /// not list a capability in both defaultAddCapabilities and - /// requiredDropCapabilities. Capabilities added here are implicitly allowed, and - /// need not be included in the allowedCapabilities list. - /// - [JsonProperty(PropertyName = "defaultAddCapabilities")] - public IList DefaultAddCapabilities { get; set; } - - /// - /// defaultAllowPrivilegeEscalation controls the default setting for whether a - /// process can gain more privileges than its parent process. - /// - [JsonProperty(PropertyName = "defaultAllowPrivilegeEscalation")] - public bool? DefaultAllowPrivilegeEscalation { get; set; } - - /// - /// forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. - /// Each entry is either a plain sysctl name or ends in "*" in which case it is - /// considered as a prefix of forbidden sysctls. Single * means all sysctls are - /// forbidden. - /// - /// Examples: e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. e.g. "foo.*" forbids - /// "foo.bar", "foo.baz", etc. - /// - [JsonProperty(PropertyName = "forbiddenSysctls")] - public IList ForbiddenSysctls { get; set; } - - /// - /// fsGroup is the strategy that will dictate what fs group is used by the - /// SecurityContext. - /// - [JsonProperty(PropertyName = "fsGroup")] - public V1beta1FSGroupStrategyOptions FsGroup { get; set; } - - /// - /// hostIPC determines if the policy allows the use of HostIPC in the pod spec. - /// - [JsonProperty(PropertyName = "hostIPC")] - public bool? HostIPC { get; set; } - - /// - /// hostNetwork determines if the policy allows the use of HostNetwork in the pod - /// spec. - /// - [JsonProperty(PropertyName = "hostNetwork")] - public bool? HostNetwork { get; set; } - - /// - /// hostPID determines if the policy allows the use of HostPID in the pod spec. - /// - [JsonProperty(PropertyName = "hostPID")] - public bool? HostPID { get; set; } - - /// - /// hostPorts determines which host port ranges are allowed to be exposed. - /// - [JsonProperty(PropertyName = "hostPorts")] - public IList HostPorts { get; set; } - - /// - /// privileged determines if a pod can request to be run as privileged. - /// - [JsonProperty(PropertyName = "privileged")] - public bool? Privileged { get; set; } - - /// - /// readOnlyRootFilesystem when set to true will force containers to run with a read - /// only root file system. If the container specifically requests to run with a - /// non-read only root file system the PSP should deny the pod. If set to false the - /// container may run with a read only root file system if it wishes but it will not - /// be forced to. - /// - [JsonProperty(PropertyName = "readOnlyRootFilesystem")] - public bool? ReadOnlyRootFilesystem { get; set; } - - /// - /// requiredDropCapabilities are the capabilities that will be dropped from the - /// container. These are required to be dropped and cannot be added. - /// - [JsonProperty(PropertyName = "requiredDropCapabilities")] - public IList RequiredDropCapabilities { get; set; } - - /// - /// RunAsGroup is the strategy that will dictate the allowable RunAsGroup values - /// that may be set. If this field is omitted, the pod's RunAsGroup can take any - /// value. This field requires the RunAsGroup feature gate to be enabled. - /// - [JsonProperty(PropertyName = "runAsGroup")] - public V1beta1RunAsGroupStrategyOptions RunAsGroup { get; set; } - - /// - /// runAsUser is the strategy that will dictate the allowable RunAsUser values that - /// may be set. - /// - [JsonProperty(PropertyName = "runAsUser")] - public V1beta1RunAsUserStrategyOptions RunAsUser { get; set; } - - /// - /// runtimeClass is the strategy that will dictate the allowable RuntimeClasses for - /// a pod. If this field is omitted, the pod's runtimeClassName field is - /// unrestricted. Enforcement of this field depends on the RuntimeClass feature gate - /// being enabled. - /// - [JsonProperty(PropertyName = "runtimeClass")] - public V1beta1RuntimeClassStrategyOptions RuntimeClass { get; set; } - - /// - /// seLinux is the strategy that will dictate the allowable labels that may be set. - /// - [JsonProperty(PropertyName = "seLinux")] - public V1beta1SELinuxStrategyOptions SeLinux { get; set; } - - /// - /// supplementalGroups is the strategy that will dictate what supplemental groups - /// are used by the SecurityContext. - /// - [JsonProperty(PropertyName = "supplementalGroups")] - public V1beta1SupplementalGroupsStrategyOptions SupplementalGroups { get; set; } - - /// - /// volumes is an allowlist of volume plugins. Empty indicates that no volumes may - /// be used. To allow all volumes you may use '*'. - /// - [JsonProperty(PropertyName = "volumes")] - public IList Volumes { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (FsGroup == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "FsGroup"); - } - if (RunAsUser == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "RunAsUser"); - } - if (SeLinux == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "SeLinux"); - } - if (SupplementalGroups == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "SupplementalGroups"); - } - if (AllowedCSIDrivers != null){ - foreach(var obj in AllowedCSIDrivers) - { - obj.Validate(); - } - } - if (AllowedFlexVolumes != null){ - foreach(var obj in AllowedFlexVolumes) - { - obj.Validate(); - } - } - if (AllowedHostPaths != null){ - foreach(var obj in AllowedHostPaths) - { - obj.Validate(); - } - } - FsGroup?.Validate(); - if (HostPorts != null){ - foreach(var obj in HostPorts) - { - obj.Validate(); - } - } - RunAsGroup?.Validate(); - RunAsUser?.Validate(); - RuntimeClass?.Validate(); - SeLinux?.Validate(); - SupplementalGroups?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1PolicyRulesWithSubjects.cs b/src/KubernetesClient/generated/Models/V1beta1PolicyRulesWithSubjects.cs deleted file mode 100644 index b9946d8c0..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1PolicyRulesWithSubjects.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1beta1PolicyRulesWithSubjects - { - /// - /// Initializes a new instance of the V1beta1PolicyRulesWithSubjects class. - /// - public V1beta1PolicyRulesWithSubjects() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1PolicyRulesWithSubjects class. - /// - /// - /// 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. - /// - /// - /// `nonResourceRules` is a list of NonResourcePolicyRules that identify matching - /// requests according to their verb and the target non-resource URL. - /// - /// - /// `resourceRules` is a slice of ResourcePolicyRules that identify matching - /// requests according to their verb and the target resource. At least one of - /// `resourceRules` and `nonResourceRules` has to be non-empty. - /// - public V1beta1PolicyRulesWithSubjects(IList subjects, IList nonResourceRules = null, IList resourceRules = null) - { - NonResourceRules = nonResourceRules; - ResourceRules = resourceRules; - Subjects = subjects; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// `nonResourceRules` is a list of NonResourcePolicyRules that identify matching - /// requests according to their verb and the target non-resource URL. - /// - [JsonProperty(PropertyName = "nonResourceRules")] - public IList NonResourceRules { get; set; } - - /// - /// `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. - /// - [JsonProperty(PropertyName = "resourceRules")] - public IList ResourceRules { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "subjects")] - public IList Subjects { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (NonResourceRules != null){ - foreach(var obj in NonResourceRules) - { - obj.Validate(); - } - } - if (ResourceRules != null){ - foreach(var obj in ResourceRules) - { - obj.Validate(); - } - } - if (Subjects != null){ - foreach(var obj in Subjects) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfiguration.cs b/src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfiguration.cs deleted file mode 100644 index c32a1654e..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfiguration.cs +++ /dev/null @@ -1,124 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PriorityLevelConfiguration represents the configuration of a priority level. - /// - public partial class V1beta1PriorityLevelConfiguration - { - /// - /// Initializes a new instance of the V1beta1PriorityLevelConfiguration class. - /// - public V1beta1PriorityLevelConfiguration() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1PriorityLevelConfiguration class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// `metadata` is the standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// `spec` is the specification of the desired behavior of a "request-priority". - /// More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - /// - /// `status` is the current status of a "request-priority". More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - public V1beta1PriorityLevelConfiguration(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1beta1PriorityLevelConfigurationSpec spec = null, V1beta1PriorityLevelConfigurationStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// `metadata` is the standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// `spec` is the specification of the desired behavior of a "request-priority". - /// More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1beta1PriorityLevelConfigurationSpec Spec { get; set; } - - /// - /// `status` is the current status of a "request-priority". More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "status")] - public V1beta1PriorityLevelConfigurationStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationCondition.cs b/src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationCondition.cs deleted file mode 100644 index 80fb8ecab..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationCondition.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PriorityLevelConfigurationCondition defines the condition of priority level. - /// - public partial class V1beta1PriorityLevelConfigurationCondition - { - /// - /// Initializes a new instance of the V1beta1PriorityLevelConfigurationCondition class. - /// - public V1beta1PriorityLevelConfigurationCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1PriorityLevelConfigurationCondition class. - /// - /// - /// `lastTransitionTime` is the last time the condition transitioned from one status - /// to another. - /// - /// - /// `message` is a human-readable message indicating details about last transition. - /// - /// - /// `reason` is a unique, one-word, CamelCase reason for the condition's last - /// transition. - /// - /// - /// `status` is the status of the condition. Can be True, False, Unknown. Required. - /// - /// - /// `type` is the type of the condition. Required. - /// - public V1beta1PriorityLevelConfigurationCondition(System.DateTime? lastTransitionTime = null, string message = null, string reason = null, string status = null, string type = null) - { - LastTransitionTime = lastTransitionTime; - Message = message; - Reason = reason; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// `lastTransitionTime` is the last time the condition transitioned from one status - /// to another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// `message` is a human-readable message indicating details about last transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// `reason` is a unique, one-word, CamelCase reason for the condition's last - /// transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// `status` is the status of the condition. Can be True, False, Unknown. Required. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// `type` is the type of the condition. Required. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationList.cs b/src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationList.cs deleted file mode 100644 index 784b8452c..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. - /// - public partial class V1beta1PriorityLevelConfigurationList - { - /// - /// Initializes a new instance of the V1beta1PriorityLevelConfigurationList class. - /// - public V1beta1PriorityLevelConfigurationList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1PriorityLevelConfigurationList class. - /// - /// - /// `items` is a list of request-priorities. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// `metadata` is the standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1beta1PriorityLevelConfigurationList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// `items` is a list of request-priorities. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// `metadata` is the standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationReference.cs b/src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationReference.cs deleted file mode 100644 index 91eb2ee75..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationReference.cs +++ /dev/null @@ -1,64 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PriorityLevelConfigurationReference contains information that points to the - /// "request-priority" being used. - /// - public partial class V1beta1PriorityLevelConfigurationReference - { - /// - /// Initializes a new instance of the V1beta1PriorityLevelConfigurationReference class. - /// - public V1beta1PriorityLevelConfigurationReference() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1PriorityLevelConfigurationReference class. - /// - /// - /// `name` is the name of the priority level configuration being referenced - /// Required. - /// - public V1beta1PriorityLevelConfigurationReference(string name) - { - Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// `name` is the name of the priority level configuration being referenced - /// Required. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationSpec.cs b/src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationSpec.cs deleted file mode 100644 index 6cfc37c6a..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationSpec.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PriorityLevelConfigurationSpec specifies the configuration of a priority level. - /// - public partial class V1beta1PriorityLevelConfigurationSpec - { - /// - /// Initializes a new instance of the V1beta1PriorityLevelConfigurationSpec class. - /// - public V1beta1PriorityLevelConfigurationSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1PriorityLevelConfigurationSpec class. - /// - /// - /// `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. - /// - /// - /// `limited` specifies how requests are handled for a Limited priority level. This - /// field must be non-empty if and only if `type` is `"Limited"`. - /// - public V1beta1PriorityLevelConfigurationSpec(string type, V1beta1LimitedPriorityLevelConfiguration limited = null) - { - Limited = limited; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// `limited` specifies how requests are handled for a Limited priority level. This - /// field must be non-empty if and only if `type` is `"Limited"`. - /// - [JsonProperty(PropertyName = "limited")] - public V1beta1LimitedPriorityLevelConfiguration Limited { get; set; } - - /// - /// `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. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Limited?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationStatus.cs b/src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationStatus.cs deleted file mode 100644 index 766554f39..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationStatus.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PriorityLevelConfigurationStatus represents the current state of a - /// "request-priority". - /// - public partial class V1beta1PriorityLevelConfigurationStatus - { - /// - /// Initializes a new instance of the V1beta1PriorityLevelConfigurationStatus class. - /// - public V1beta1PriorityLevelConfigurationStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1PriorityLevelConfigurationStatus class. - /// - /// - /// `conditions` is the current state of "request-priority". - /// - public V1beta1PriorityLevelConfigurationStatus(IList conditions = null) - { - Conditions = conditions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// `conditions` is the current state of "request-priority". - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Conditions != null){ - foreach(var obj in Conditions) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1QueuingConfiguration.cs b/src/KubernetesClient/generated/Models/V1beta1QueuingConfiguration.cs deleted file mode 100644 index 7d9b57929..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1QueuingConfiguration.cs +++ /dev/null @@ -1,107 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// QueuingConfiguration holds the configuration parameters for queuing - /// - public partial class V1beta1QueuingConfiguration - { - /// - /// Initializes a new instance of the V1beta1QueuingConfiguration class. - /// - public V1beta1QueuingConfiguration() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1QueuingConfiguration class. - /// - /// - /// `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. - /// - /// - /// `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. - /// - /// - /// `queues` is the number of queues for this priority level. The queues exist - /// independently at each apiserver. The value must be positive. Setting it to 1 - /// effectively precludes shufflesharding and thus makes the distinguisher method of - /// associated flow schemas irrelevant. This field has a default value of 64. - /// - public V1beta1QueuingConfiguration(int? handSize = null, int? queueLengthLimit = null, int? queues = null) - { - HandSize = handSize; - QueueLengthLimit = queueLengthLimit; - Queues = queues; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// `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. - /// - [JsonProperty(PropertyName = "handSize")] - public int? HandSize { get; set; } - - /// - /// `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. - /// - [JsonProperty(PropertyName = "queueLengthLimit")] - public int? QueueLengthLimit { get; set; } - - /// - /// `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. - /// - [JsonProperty(PropertyName = "queues")] - public int? Queues { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1ResourcePolicyRule.cs b/src/KubernetesClient/generated/Models/V1beta1ResourcePolicyRule.cs deleted file mode 100644 index f6cc62764..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1ResourcePolicyRule.cs +++ /dev/null @@ -1,132 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ResourcePolicyRule is a predicate that matches some resource requests, testing - /// the request's verb and the target resource. A ResourcePolicyRule matches a - /// resource request if and only if: (a) at least one member of verbs matches the - /// request, (b) at least one member of apiGroups matches the request, (c) at least - /// one member of resources matches the request, and (d) least one member of - /// namespaces matches the request. - /// - public partial class V1beta1ResourcePolicyRule - { - /// - /// Initializes a new instance of the V1beta1ResourcePolicyRule class. - /// - public V1beta1ResourcePolicyRule() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1ResourcePolicyRule class. - /// - /// - /// `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. - /// - /// - /// `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` is a list of matching verbs and may not be empty. "*" matches all verbs - /// and, if present, must be the only entry. Required. - /// - /// - /// `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. - /// - /// - /// `namespaces` is a list of target namespaces that restricts matches. A request - /// that specifies a target namespace matches only if either (a) this list contains - /// that target namespace or (b) this list contains "*". Note that "*" matches any - /// specified namespace but does not match a request that _does not specify_ a - /// namespace (see the `clusterScope` field for that). This list may be empty, but - /// only if `clusterScope` is true. - /// - public V1beta1ResourcePolicyRule(IList apiGroups, IList resources, IList verbs, bool? clusterScope = null, IList namespaces = null) - { - ApiGroups = apiGroups; - ClusterScope = clusterScope; - Namespaces = namespaces; - Resources = resources; - Verbs = verbs; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// `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. - /// - [JsonProperty(PropertyName = "apiGroups")] - public IList ApiGroups { get; set; } - - /// - /// `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. - /// - [JsonProperty(PropertyName = "clusterScope")] - public bool? ClusterScope { get; set; } - - /// - /// `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. - /// - [JsonProperty(PropertyName = "namespaces")] - public IList Namespaces { get; set; } - - /// - /// `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. - /// - [JsonProperty(PropertyName = "resources")] - public IList Resources { get; set; } - - /// - /// `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs - /// and, if present, must be the only entry. Required. - /// - [JsonProperty(PropertyName = "verbs")] - public IList Verbs { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1RunAsGroupStrategyOptions.cs b/src/KubernetesClient/generated/Models/V1beta1RunAsGroupStrategyOptions.cs deleted file mode 100644 index f81e14378..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1RunAsGroupStrategyOptions.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// RunAsGroupStrategyOptions defines the strategy type and any options used to - /// create the strategy. - /// - public partial class V1beta1RunAsGroupStrategyOptions - { - /// - /// Initializes a new instance of the V1beta1RunAsGroupStrategyOptions class. - /// - public V1beta1RunAsGroupStrategyOptions() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1RunAsGroupStrategyOptions class. - /// - /// - /// rule is the strategy that will dictate the allowable RunAsGroup values that may - /// be set. - /// - /// - /// ranges are the allowed ranges of gids that may be used. If you would like to - /// force a single gid then supply a single range with the same start and end. - /// Required for MustRunAs. - /// - public V1beta1RunAsGroupStrategyOptions(string rule, IList ranges = null) - { - Ranges = ranges; - Rule = rule; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// ranges are the allowed ranges of gids that may be used. If you would like to - /// force a single gid then supply a single range with the same start and end. - /// Required for MustRunAs. - /// - [JsonProperty(PropertyName = "ranges")] - public IList Ranges { get; set; } - - /// - /// rule is the strategy that will dictate the allowable RunAsGroup values that may - /// be set. - /// - [JsonProperty(PropertyName = "rule")] - public string Rule { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Ranges != null){ - foreach(var obj in Ranges) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1RunAsUserStrategyOptions.cs b/src/KubernetesClient/generated/Models/V1beta1RunAsUserStrategyOptions.cs deleted file mode 100644 index 27139e8de..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1RunAsUserStrategyOptions.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// RunAsUserStrategyOptions defines the strategy type and any options used to - /// create the strategy. - /// - public partial class V1beta1RunAsUserStrategyOptions - { - /// - /// Initializes a new instance of the V1beta1RunAsUserStrategyOptions class. - /// - public V1beta1RunAsUserStrategyOptions() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1RunAsUserStrategyOptions class. - /// - /// - /// rule is the strategy that will dictate the allowable RunAsUser values that may - /// be set. - /// - /// - /// ranges are the allowed ranges of uids that may be used. If you would like to - /// force a single uid then supply a single range with the same start and end. - /// Required for MustRunAs. - /// - public V1beta1RunAsUserStrategyOptions(string rule, IList ranges = null) - { - Ranges = ranges; - Rule = rule; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// ranges are the allowed ranges of uids that may be used. If you would like to - /// force a single uid then supply a single range with the same start and end. - /// Required for MustRunAs. - /// - [JsonProperty(PropertyName = "ranges")] - public IList Ranges { get; set; } - - /// - /// rule is the strategy that will dictate the allowable RunAsUser values that may - /// be set. - /// - [JsonProperty(PropertyName = "rule")] - public string Rule { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Ranges != null){ - foreach(var obj in Ranges) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1RuntimeClass.cs b/src/KubernetesClient/generated/Models/V1beta1RuntimeClass.cs deleted file mode 100644 index bf9b6aecf..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1RuntimeClass.cs +++ /dev/null @@ -1,160 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// RuntimeClass defines a class of container runtime supported in the cluster. The - /// RuntimeClass is used to determine which container runtime is used to run all - /// containers in a pod. RuntimeClasses are (currently) manually defined by a user - /// or cluster provisioner, and referenced in the PodSpec. The Kubelet is - /// responsible for resolving the RuntimeClassName reference before running the pod. - /// For more details, see - /// https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class - /// - public partial class V1beta1RuntimeClass - { - /// - /// Initializes a new instance of the V1beta1RuntimeClass class. - /// - public V1beta1RuntimeClass() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1RuntimeClass class. - /// - /// - /// 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. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// Overhead represents the resource overhead associated with running a pod for a - /// given RuntimeClass. For more details, see - /// https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md This - /// field is beta-level as of Kubernetes v1.18, and is only honored by servers that - /// enable the PodOverhead feature. - /// - /// - /// Scheduling holds the scheduling constraints to ensure that pods running with - /// this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, - /// this RuntimeClass is assumed to be supported by all nodes. - /// - public V1beta1RuntimeClass(string handler, string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V1beta1Overhead overhead = null, V1beta1Scheduling scheduling = null) - { - ApiVersion = apiVersion; - Handler = handler; - Kind = kind; - Metadata = metadata; - Overhead = overhead; - Scheduling = scheduling; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "handler")] - public string Handler { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Overhead represents the resource overhead associated with running a pod for a - /// given RuntimeClass. For more details, see - /// https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md This - /// field is beta-level as of Kubernetes v1.18, and is only honored by servers that - /// enable the PodOverhead feature. - /// - [JsonProperty(PropertyName = "overhead")] - public V1beta1Overhead Overhead { get; set; } - - /// - /// Scheduling holds the scheduling constraints to ensure that pods running with - /// this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, - /// this RuntimeClass is assumed to be supported by all nodes. - /// - [JsonProperty(PropertyName = "scheduling")] - public V1beta1Scheduling Scheduling { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Overhead?.Validate(); - Scheduling?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1RuntimeClassList.cs b/src/KubernetesClient/generated/Models/V1beta1RuntimeClassList.cs deleted file mode 100644 index 03cf7e4c3..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1RuntimeClassList.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// RuntimeClassList is a list of RuntimeClass objects. - /// - public partial class V1beta1RuntimeClassList - { - /// - /// Initializes a new instance of the V1beta1RuntimeClassList class. - /// - public V1beta1RuntimeClassList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1RuntimeClassList class. - /// - /// - /// Items is a list of schema objects. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - public V1beta1RuntimeClassList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Items is a list of schema objects. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1RuntimeClassStrategyOptions.cs b/src/KubernetesClient/generated/Models/V1beta1RuntimeClassStrategyOptions.cs deleted file mode 100644 index 068f88472..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1RuntimeClassStrategyOptions.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// RuntimeClassStrategyOptions define the strategy that will dictate the allowable - /// RuntimeClasses for a pod. - /// - public partial class V1beta1RuntimeClassStrategyOptions - { - /// - /// Initializes a new instance of the V1beta1RuntimeClassStrategyOptions class. - /// - public V1beta1RuntimeClassStrategyOptions() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1RuntimeClassStrategyOptions class. - /// - /// - /// allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be - /// specified on a pod. A value of "*" means that any RuntimeClass name is allowed, - /// and must be the only item in the list. An empty list requires the - /// RuntimeClassName field to be unset. - /// - /// - /// defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The - /// default MUST be allowed by the allowedRuntimeClassNames list. A value of nil - /// does not mutate the Pod. - /// - public V1beta1RuntimeClassStrategyOptions(IList allowedRuntimeClassNames, string defaultRuntimeClassName = null) - { - AllowedRuntimeClassNames = allowedRuntimeClassNames; - DefaultRuntimeClassName = defaultRuntimeClassName; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be - /// specified on a pod. A value of "*" means that any RuntimeClass name is allowed, - /// and must be the only item in the list. An empty list requires the - /// RuntimeClassName field to be unset. - /// - [JsonProperty(PropertyName = "allowedRuntimeClassNames")] - public IList AllowedRuntimeClassNames { get; set; } - - /// - /// defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The - /// default MUST be allowed by the allowedRuntimeClassNames list. A value of nil - /// does not mutate the Pod. - /// - [JsonProperty(PropertyName = "defaultRuntimeClassName")] - public string DefaultRuntimeClassName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1SELinuxStrategyOptions.cs b/src/KubernetesClient/generated/Models/V1beta1SELinuxStrategyOptions.cs deleted file mode 100644 index 2649d9994..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1SELinuxStrategyOptions.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// SELinuxStrategyOptions defines the strategy type and any options used to create - /// the strategy. - /// - public partial class V1beta1SELinuxStrategyOptions - { - /// - /// Initializes a new instance of the V1beta1SELinuxStrategyOptions class. - /// - public V1beta1SELinuxStrategyOptions() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1SELinuxStrategyOptions class. - /// - /// - /// rule is the strategy that will dictate the allowable labels that may be set. - /// - /// - /// seLinuxOptions required to run as; required for MustRunAs More info: - /// https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - /// - public V1beta1SELinuxStrategyOptions(string rule, V1SELinuxOptions seLinuxOptions = null) - { - Rule = rule; - SeLinuxOptions = seLinuxOptions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// rule is the strategy that will dictate the allowable labels that may be set. - /// - [JsonProperty(PropertyName = "rule")] - public string Rule { get; set; } - - /// - /// seLinuxOptions required to run as; required for MustRunAs More info: - /// https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - /// - [JsonProperty(PropertyName = "seLinuxOptions")] - public V1SELinuxOptions SeLinuxOptions { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - SeLinuxOptions?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1Scheduling.cs b/src/KubernetesClient/generated/Models/V1beta1Scheduling.cs deleted file mode 100644 index 626f2b63b..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1Scheduling.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Scheduling specifies the scheduling constraints for nodes supporting a - /// RuntimeClass. - /// - public partial class V1beta1Scheduling - { - /// - /// Initializes a new instance of the V1beta1Scheduling class. - /// - public V1beta1Scheduling() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1Scheduling class. - /// - /// - /// 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. - /// - /// - /// tolerations are appended (excluding duplicates) to pods running with this - /// RuntimeClass during admission, effectively unioning the set of nodes tolerated - /// by the pod and the RuntimeClass. - /// - public V1beta1Scheduling(IDictionary nodeSelector = null, IList tolerations = null) - { - NodeSelector = nodeSelector; - Tolerations = tolerations; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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. - /// - [JsonProperty(PropertyName = "nodeSelector")] - public IDictionary NodeSelector { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "tolerations")] - public IList Tolerations { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Tolerations != null){ - foreach(var obj in Tolerations) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1ServiceAccountSubject.cs b/src/KubernetesClient/generated/Models/V1beta1ServiceAccountSubject.cs deleted file mode 100644 index 1ee724994..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1ServiceAccountSubject.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ServiceAccountSubject holds detailed information for service-account-kind - /// subject. - /// - public partial class V1beta1ServiceAccountSubject - { - /// - /// Initializes a new instance of the V1beta1ServiceAccountSubject class. - /// - public V1beta1ServiceAccountSubject() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1ServiceAccountSubject class. - /// - /// - /// `name` is the name of matching ServiceAccount objects, or "*" to match - /// regardless of name. Required. - /// - /// - /// `namespace` is the namespace of matching ServiceAccount objects. Required. - /// - public V1beta1ServiceAccountSubject(string name, string namespaceProperty) - { - Name = name; - NamespaceProperty = namespaceProperty; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// `name` is the name of matching ServiceAccount objects, or "*" to match - /// regardless of name. Required. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// `namespace` is the namespace of matching ServiceAccount objects. Required. - /// - [JsonProperty(PropertyName = "namespace")] - public string NamespaceProperty { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1Subject.cs b/src/KubernetesClient/generated/Models/V1beta1Subject.cs deleted file mode 100644 index b03001863..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1Subject.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V1beta1Subject - { - /// - /// Initializes a new instance of the V1beta1Subject class. - /// - public V1beta1Subject() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1Subject class. - /// - /// - /// `kind` indicates which one of the other fields is non-empty. Required - /// - /// - /// `group` matches based on user group name. - /// - /// - /// `serviceAccount` matches ServiceAccounts. - /// - /// - /// `user` matches based on username. - /// - public V1beta1Subject(string kind, V1beta1GroupSubject group = null, V1beta1ServiceAccountSubject serviceAccount = null, V1beta1UserSubject user = null) - { - Group = group; - Kind = kind; - ServiceAccount = serviceAccount; - User = user; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// `group` matches based on user group name. - /// - [JsonProperty(PropertyName = "group")] - public V1beta1GroupSubject Group { get; set; } - - /// - /// `kind` indicates which one of the other fields is non-empty. Required - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// `serviceAccount` matches ServiceAccounts. - /// - [JsonProperty(PropertyName = "serviceAccount")] - public V1beta1ServiceAccountSubject ServiceAccount { get; set; } - - /// - /// `user` matches based on username. - /// - [JsonProperty(PropertyName = "user")] - public V1beta1UserSubject User { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Group?.Validate(); - ServiceAccount?.Validate(); - User?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1SupplementalGroupsStrategyOptions.cs b/src/KubernetesClient/generated/Models/V1beta1SupplementalGroupsStrategyOptions.cs deleted file mode 100644 index 73bae4656..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1SupplementalGroupsStrategyOptions.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// SupplementalGroupsStrategyOptions defines the strategy type and options used to - /// create the strategy. - /// - public partial class V1beta1SupplementalGroupsStrategyOptions - { - /// - /// Initializes a new instance of the V1beta1SupplementalGroupsStrategyOptions class. - /// - public V1beta1SupplementalGroupsStrategyOptions() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1SupplementalGroupsStrategyOptions class. - /// - /// - /// ranges are the allowed ranges of supplemental groups. If you would like to - /// force a single supplemental group then supply a single range with the same start - /// and end. Required for MustRunAs. - /// - /// - /// rule is the strategy that will dictate what supplemental groups is used in the - /// SecurityContext. - /// - public V1beta1SupplementalGroupsStrategyOptions(IList ranges = null, string rule = null) - { - Ranges = ranges; - Rule = rule; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// ranges are the allowed ranges of supplemental groups. If you would like to - /// force a single supplemental group then supply a single range with the same start - /// and end. Required for MustRunAs. - /// - [JsonProperty(PropertyName = "ranges")] - public IList Ranges { get; set; } - - /// - /// rule is the strategy that will dictate what supplemental groups is used in the - /// SecurityContext. - /// - [JsonProperty(PropertyName = "rule")] - public string Rule { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Ranges != null){ - foreach(var obj in Ranges) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V1beta1UserSubject.cs b/src/KubernetesClient/generated/Models/V1beta1UserSubject.cs deleted file mode 100644 index 0e7ce7a71..000000000 --- a/src/KubernetesClient/generated/Models/V1beta1UserSubject.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// UserSubject holds detailed information for user-kind subject. - /// - public partial class V1beta1UserSubject - { - /// - /// Initializes a new instance of the V1beta1UserSubject class. - /// - public V1beta1UserSubject() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1UserSubject class. - /// - /// - /// `name` is the username that matches, or "*" to match all usernames. Required. - /// - public V1beta1UserSubject(string name) - { - Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// `name` is the username that matches, or "*" to match all usernames. Required. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta1ContainerResourceMetricSource.cs b/src/KubernetesClient/generated/Models/V2beta1ContainerResourceMetricSource.cs deleted file mode 100644 index d74c837a3..000000000 --- a/src/KubernetesClient/generated/Models/V2beta1ContainerResourceMetricSource.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ContainerResourceMetricSource indicates how to scale on a resource metric known - /// to Kubernetes, as specified in requests and limits, describing each pod in the - /// current scale target (e.g. CPU or memory). The values will be averaged together - /// before being compared to the target. Such metrics are built in to Kubernetes, - /// and have special scaling options on top of those available to normal per-pod - /// metrics using the "pods" source. Only one "target" type should be set. - /// - public partial class V2beta1ContainerResourceMetricSource - { - /// - /// Initializes a new instance of the V2beta1ContainerResourceMetricSource class. - /// - public V2beta1ContainerResourceMetricSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta1ContainerResourceMetricSource class. - /// - /// - /// container is the name of the container in the pods of the scaling target - /// - /// - /// name is the name of the resource in question. - /// - /// - /// targetAverageUtilization is the target value of the average of the resource - /// metric across all relevant pods, represented as a percentage of the requested - /// value of the resource for the pods. - /// - /// - /// targetAverageValue is the target value of the average of the resource metric - /// across all relevant pods, as a raw value (instead of as a percentage of the - /// request), similar to the "pods" metric source type. - /// - public V2beta1ContainerResourceMetricSource(string container, string name, int? targetAverageUtilization = null, ResourceQuantity targetAverageValue = null) - { - Container = container; - Name = name; - TargetAverageUtilization = targetAverageUtilization; - TargetAverageValue = targetAverageValue; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// container is the name of the container in the pods of the scaling target - /// - [JsonProperty(PropertyName = "container")] - public string Container { get; set; } - - /// - /// name is the name of the resource in question. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// targetAverageUtilization is the target value of the average of the resource - /// metric across all relevant pods, represented as a percentage of the requested - /// value of the resource for the pods. - /// - [JsonProperty(PropertyName = "targetAverageUtilization")] - public int? TargetAverageUtilization { get; set; } - - /// - /// targetAverageValue is the target value of the average of the resource metric - /// across all relevant pods, as a raw value (instead of as a percentage of the - /// request), similar to the "pods" metric source type. - /// - [JsonProperty(PropertyName = "targetAverageValue")] - public ResourceQuantity TargetAverageValue { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - TargetAverageValue?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta1ContainerResourceMetricStatus.cs b/src/KubernetesClient/generated/Models/V2beta1ContainerResourceMetricStatus.cs deleted file mode 100644 index ea9e2aafe..000000000 --- a/src/KubernetesClient/generated/Models/V2beta1ContainerResourceMetricStatus.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ContainerResourceMetricStatus indicates the current value of a resource metric - /// known to Kubernetes, as specified in requests and limits, describing a single - /// container in each pod in the current scale target (e.g. CPU or memory). Such - /// metrics are built in to Kubernetes, and have special scaling options on top of - /// those available to normal per-pod metrics using the "pods" source. - /// - public partial class V2beta1ContainerResourceMetricStatus - { - /// - /// Initializes a new instance of the V2beta1ContainerResourceMetricStatus class. - /// - public V2beta1ContainerResourceMetricStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta1ContainerResourceMetricStatus class. - /// - /// - /// container is the name of the container in the pods of the scaling target - /// - /// - /// currentAverageValue is the current value of the average of the resource metric - /// across all relevant pods, as a raw value (instead of as a percentage of the - /// request), similar to the "pods" metric source type. It will always be set, - /// regardless of the corresponding metric specification. - /// - /// - /// name is the name of the resource in question. - /// - /// - /// currentAverageUtilization is the current value of the average of the resource - /// metric across all relevant pods, represented as a percentage of the requested - /// value of the resource for the pods. It will only be present if - /// `targetAverageValue` was set in the corresponding metric specification. - /// - public V2beta1ContainerResourceMetricStatus(string container, ResourceQuantity currentAverageValue, string name, int? currentAverageUtilization = null) - { - Container = container; - CurrentAverageUtilization = currentAverageUtilization; - CurrentAverageValue = currentAverageValue; - Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// container is the name of the container in the pods of the scaling target - /// - [JsonProperty(PropertyName = "container")] - public string Container { get; set; } - - /// - /// currentAverageUtilization is the current value of the average of the resource - /// metric across all relevant pods, represented as a percentage of the requested - /// value of the resource for the pods. It will only be present if - /// `targetAverageValue` was set in the corresponding metric specification. - /// - [JsonProperty(PropertyName = "currentAverageUtilization")] - public int? CurrentAverageUtilization { get; set; } - - /// - /// currentAverageValue is the current value of the average of the resource metric - /// across all relevant pods, as a raw value (instead of as a percentage of the - /// request), similar to the "pods" metric source type. It will always be set, - /// regardless of the corresponding metric specification. - /// - [JsonProperty(PropertyName = "currentAverageValue")] - public ResourceQuantity CurrentAverageValue { get; set; } - - /// - /// name is the name of the resource in question. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (CurrentAverageValue == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "CurrentAverageValue"); - } - CurrentAverageValue?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta1CrossVersionObjectReference.cs b/src/KubernetesClient/generated/Models/V2beta1CrossVersionObjectReference.cs deleted file mode 100644 index f569e007a..000000000 --- a/src/KubernetesClient/generated/Models/V2beta1CrossVersionObjectReference.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CrossVersionObjectReference contains enough information to let you identify the - /// referred resource. - /// - public partial class V2beta1CrossVersionObjectReference - { - /// - /// Initializes a new instance of the V2beta1CrossVersionObjectReference class. - /// - public V2beta1CrossVersionObjectReference() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta1CrossVersionObjectReference class. - /// - /// - /// Kind of the referent; More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - /// - /// - /// Name of the referent; More info: - /// http://kubernetes.io/docs/user-guide/identifiers#names - /// - /// - /// API version of the referent - /// - public V2beta1CrossVersionObjectReference(string kind, string name, string apiVersion = null) - { - ApiVersion = apiVersion; - Kind = kind; - Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// API version of the referent - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind of the referent; More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Name of the referent; More info: - /// http://kubernetes.io/docs/user-guide/identifiers#names - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta1ExternalMetricSource.cs b/src/KubernetesClient/generated/Models/V2beta1ExternalMetricSource.cs deleted file mode 100644 index af18e773e..000000000 --- a/src/KubernetesClient/generated/Models/V2beta1ExternalMetricSource.cs +++ /dev/null @@ -1,101 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ExternalMetricSource indicates how to scale on a metric not associated with any - /// Kubernetes object (for example length of queue in cloud messaging service, or - /// QPS from loadbalancer running outside of cluster). Exactly one "target" type - /// should be set. - /// - public partial class V2beta1ExternalMetricSource - { - /// - /// Initializes a new instance of the V2beta1ExternalMetricSource class. - /// - public V2beta1ExternalMetricSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta1ExternalMetricSource class. - /// - /// - /// metricName is the name of the metric in question. - /// - /// - /// metricSelector is used to identify a specific time series within a given metric. - /// - /// - /// targetAverageValue is the target per-pod value of global metric (as a quantity). - /// Mutually exclusive with TargetValue. - /// - /// - /// targetValue is the target value of the metric (as a quantity). Mutually - /// exclusive with TargetAverageValue. - /// - public V2beta1ExternalMetricSource(string metricName, V1LabelSelector metricSelector = null, ResourceQuantity targetAverageValue = null, ResourceQuantity targetValue = null) - { - MetricName = metricName; - MetricSelector = metricSelector; - TargetAverageValue = targetAverageValue; - TargetValue = targetValue; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// metricName is the name of the metric in question. - /// - [JsonProperty(PropertyName = "metricName")] - public string MetricName { get; set; } - - /// - /// metricSelector is used to identify a specific time series within a given metric. - /// - [JsonProperty(PropertyName = "metricSelector")] - public V1LabelSelector MetricSelector { get; set; } - - /// - /// targetAverageValue is the target per-pod value of global metric (as a quantity). - /// Mutually exclusive with TargetValue. - /// - [JsonProperty(PropertyName = "targetAverageValue")] - public ResourceQuantity TargetAverageValue { get; set; } - - /// - /// targetValue is the target value of the metric (as a quantity). Mutually - /// exclusive with TargetAverageValue. - /// - [JsonProperty(PropertyName = "targetValue")] - public ResourceQuantity TargetValue { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - MetricSelector?.Validate(); - TargetAverageValue?.Validate(); - TargetValue?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta1ExternalMetricStatus.cs b/src/KubernetesClient/generated/Models/V2beta1ExternalMetricStatus.cs deleted file mode 100644 index 682ab1987..000000000 --- a/src/KubernetesClient/generated/Models/V2beta1ExternalMetricStatus.cs +++ /dev/null @@ -1,101 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ExternalMetricStatus indicates the current value of a global metric not - /// associated with any Kubernetes object. - /// - public partial class V2beta1ExternalMetricStatus - { - /// - /// Initializes a new instance of the V2beta1ExternalMetricStatus class. - /// - public V2beta1ExternalMetricStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta1ExternalMetricStatus class. - /// - /// - /// currentValue is the current value of the metric (as a quantity) - /// - /// - /// metricName is the name of a metric used for autoscaling in metric system. - /// - /// - /// currentAverageValue is the current value of metric averaged over autoscaled - /// pods. - /// - /// - /// metricSelector is used to identify a specific time series within a given metric. - /// - public V2beta1ExternalMetricStatus(ResourceQuantity currentValue, string metricName, ResourceQuantity currentAverageValue = null, V1LabelSelector metricSelector = null) - { - CurrentAverageValue = currentAverageValue; - CurrentValue = currentValue; - MetricName = metricName; - MetricSelector = metricSelector; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// currentAverageValue is the current value of metric averaged over autoscaled - /// pods. - /// - [JsonProperty(PropertyName = "currentAverageValue")] - public ResourceQuantity CurrentAverageValue { get; set; } - - /// - /// currentValue is the current value of the metric (as a quantity) - /// - [JsonProperty(PropertyName = "currentValue")] - public ResourceQuantity CurrentValue { get; set; } - - /// - /// metricName is the name of a metric used for autoscaling in metric system. - /// - [JsonProperty(PropertyName = "metricName")] - public string MetricName { get; set; } - - /// - /// metricSelector is used to identify a specific time series within a given metric. - /// - [JsonProperty(PropertyName = "metricSelector")] - public V1LabelSelector MetricSelector { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (CurrentValue == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "CurrentValue"); - } - CurrentAverageValue?.Validate(); - CurrentValue?.Validate(); - MetricSelector?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta1HorizontalPodAutoscaler.cs b/src/KubernetesClient/generated/Models/V2beta1HorizontalPodAutoscaler.cs deleted file mode 100644 index 27de52f93..000000000 --- a/src/KubernetesClient/generated/Models/V2beta1HorizontalPodAutoscaler.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, - /// which automatically manages the replica count of any resource implementing the - /// scale subresource based on the metrics specified. - /// - public partial class V2beta1HorizontalPodAutoscaler - { - /// - /// Initializes a new instance of the V2beta1HorizontalPodAutoscaler class. - /// - public V2beta1HorizontalPodAutoscaler() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta1HorizontalPodAutoscaler class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// metadata is the standard object metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// spec is the specification for the behaviour of the autoscaler. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - /// - /// - /// status is the current information about the autoscaler. - /// - public V2beta1HorizontalPodAutoscaler(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V2beta1HorizontalPodAutoscalerSpec spec = null, V2beta1HorizontalPodAutoscalerStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// metadata is the standard object metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// spec is the specification for the behaviour of the autoscaler. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - /// - [JsonProperty(PropertyName = "spec")] - public V2beta1HorizontalPodAutoscalerSpec Spec { get; set; } - - /// - /// status is the current information about the autoscaler. - /// - [JsonProperty(PropertyName = "status")] - public V2beta1HorizontalPodAutoscalerStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta1HorizontalPodAutoscalerCondition.cs b/src/KubernetesClient/generated/Models/V2beta1HorizontalPodAutoscalerCondition.cs deleted file mode 100644 index 14a6ee017..000000000 --- a/src/KubernetesClient/generated/Models/V2beta1HorizontalPodAutoscalerCondition.cs +++ /dev/null @@ -1,104 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// HorizontalPodAutoscalerCondition describes the state of a - /// HorizontalPodAutoscaler at a certain point. - /// - public partial class V2beta1HorizontalPodAutoscalerCondition - { - /// - /// Initializes a new instance of the V2beta1HorizontalPodAutoscalerCondition class. - /// - public V2beta1HorizontalPodAutoscalerCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta1HorizontalPodAutoscalerCondition class. - /// - /// - /// status is the status of the condition (True, False, Unknown) - /// - /// - /// type describes the current condition - /// - /// - /// lastTransitionTime is the last time the condition transitioned from one status - /// to another - /// - /// - /// message is a human-readable explanation containing details about the transition - /// - /// - /// reason is the reason for the condition's last transition. - /// - public V2beta1HorizontalPodAutoscalerCondition(string status, string type, System.DateTime? lastTransitionTime = null, string message = null, string reason = null) - { - LastTransitionTime = lastTransitionTime; - Message = message; - Reason = reason; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// lastTransitionTime is the last time the condition transitioned from one status - /// to another - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// message is a human-readable explanation containing details about the transition - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// reason is the reason for the condition's last transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// status is the status of the condition (True, False, Unknown) - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// type describes the current condition - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta1HorizontalPodAutoscalerList.cs b/src/KubernetesClient/generated/Models/V2beta1HorizontalPodAutoscalerList.cs deleted file mode 100644 index b30e1414f..000000000 --- a/src/KubernetesClient/generated/Models/V2beta1HorizontalPodAutoscalerList.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects. - /// - public partial class V2beta1HorizontalPodAutoscalerList - { - /// - /// Initializes a new instance of the V2beta1HorizontalPodAutoscalerList class. - /// - public V2beta1HorizontalPodAutoscalerList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta1HorizontalPodAutoscalerList class. - /// - /// - /// items is the list of horizontal pod autoscaler objects. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// metadata is the standard list metadata. - /// - public V2beta1HorizontalPodAutoscalerList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// items is the list of horizontal pod autoscaler objects. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// metadata is the standard list metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta1HorizontalPodAutoscalerSpec.cs b/src/KubernetesClient/generated/Models/V2beta1HorizontalPodAutoscalerSpec.cs deleted file mode 100644 index 8f73377e6..000000000 --- a/src/KubernetesClient/generated/Models/V2beta1HorizontalPodAutoscalerSpec.cs +++ /dev/null @@ -1,129 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// HorizontalPodAutoscalerSpec describes the desired functionality of the - /// HorizontalPodAutoscaler. - /// - public partial class V2beta1HorizontalPodAutoscalerSpec - { - /// - /// Initializes a new instance of the V2beta1HorizontalPodAutoscalerSpec class. - /// - public V2beta1HorizontalPodAutoscalerSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta1HorizontalPodAutoscalerSpec class. - /// - /// - /// maxReplicas is the upper limit for the number of replicas to which the - /// autoscaler can scale up. It cannot be less that minReplicas. - /// - /// - /// scaleTargetRef points to the target resource to scale, and is used to the pods - /// for which metrics should be collected, as well as to actually change the replica - /// count. - /// - /// - /// metrics contains the specifications for which to use to calculate the desired - /// replica count (the maximum replica count across all metrics will be used). The - /// desired replica count is calculated multiplying the ratio between the target - /// value and the current value by the current number of pods. Ergo, metrics used - /// must decrease as the pod count is increased, and vice-versa. See the individual - /// metric source types for more information about how each type of metric must - /// respond. - /// - /// - /// minReplicas is the lower limit for the number of replicas to which the - /// autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be - /// 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or - /// External metric is configured. Scaling is active as long as at least one metric - /// value is available. - /// - public V2beta1HorizontalPodAutoscalerSpec(int maxReplicas, V2beta1CrossVersionObjectReference scaleTargetRef, IList metrics = null, int? minReplicas = null) - { - MaxReplicas = maxReplicas; - Metrics = metrics; - MinReplicas = minReplicas; - ScaleTargetRef = scaleTargetRef; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// maxReplicas is the upper limit for the number of replicas to which the - /// autoscaler can scale up. It cannot be less that minReplicas. - /// - [JsonProperty(PropertyName = "maxReplicas")] - public int MaxReplicas { get; set; } - - /// - /// metrics contains the specifications for which to use to calculate the desired - /// replica count (the maximum replica count across all metrics will be used). The - /// desired replica count is calculated multiplying the ratio between the target - /// value and the current value by the current number of pods. Ergo, metrics used - /// must decrease as the pod count is increased, and vice-versa. See the individual - /// metric source types for more information about how each type of metric must - /// respond. - /// - [JsonProperty(PropertyName = "metrics")] - public IList Metrics { get; set; } - - /// - /// minReplicas is the lower limit for the number of replicas to which the - /// autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be - /// 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or - /// External metric is configured. Scaling is active as long as at least one metric - /// value is available. - /// - [JsonProperty(PropertyName = "minReplicas")] - public int? MinReplicas { get; set; } - - /// - /// scaleTargetRef points to the target resource to scale, and is used to the pods - /// for which metrics should be collected, as well as to actually change the replica - /// count. - /// - [JsonProperty(PropertyName = "scaleTargetRef")] - public V2beta1CrossVersionObjectReference ScaleTargetRef { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (ScaleTargetRef == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ScaleTargetRef"); - } - if (Metrics != null){ - foreach(var obj in Metrics) - { - obj.Validate(); - } - } - ScaleTargetRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta1HorizontalPodAutoscalerStatus.cs b/src/KubernetesClient/generated/Models/V2beta1HorizontalPodAutoscalerStatus.cs deleted file mode 100644 index 0c8ac22fa..000000000 --- a/src/KubernetesClient/generated/Models/V2beta1HorizontalPodAutoscalerStatus.cs +++ /dev/null @@ -1,132 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// HorizontalPodAutoscalerStatus describes the current status of a horizontal pod - /// autoscaler. - /// - public partial class V2beta1HorizontalPodAutoscalerStatus - { - /// - /// Initializes a new instance of the V2beta1HorizontalPodAutoscalerStatus class. - /// - public V2beta1HorizontalPodAutoscalerStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta1HorizontalPodAutoscalerStatus class. - /// - /// - /// conditions is the set of conditions required for this autoscaler to scale its - /// target, and indicates whether or not those conditions are met. - /// - /// - /// currentReplicas is current number of replicas of pods managed by this - /// autoscaler, as last seen by the autoscaler. - /// - /// - /// desiredReplicas is the desired number of replicas of pods managed by this - /// autoscaler, as last calculated by the autoscaler. - /// - /// - /// currentMetrics is the last read state of the metrics used by this autoscaler. - /// - /// - /// lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of - /// pods, used by the autoscaler to control how often the number of pods is changed. - /// - /// - /// observedGeneration is the most recent generation observed by this autoscaler. - /// - public V2beta1HorizontalPodAutoscalerStatus(IList conditions, int currentReplicas, int desiredReplicas, IList currentMetrics = null, System.DateTime? lastScaleTime = null, long? observedGeneration = null) - { - Conditions = conditions; - CurrentMetrics = currentMetrics; - CurrentReplicas = currentReplicas; - DesiredReplicas = desiredReplicas; - LastScaleTime = lastScaleTime; - ObservedGeneration = observedGeneration; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// conditions is the set of conditions required for this autoscaler to scale its - /// target, and indicates whether or not those conditions are met. - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// currentMetrics is the last read state of the metrics used by this autoscaler. - /// - [JsonProperty(PropertyName = "currentMetrics")] - public IList CurrentMetrics { get; set; } - - /// - /// currentReplicas is current number of replicas of pods managed by this - /// autoscaler, as last seen by the autoscaler. - /// - [JsonProperty(PropertyName = "currentReplicas")] - public int CurrentReplicas { get; set; } - - /// - /// desiredReplicas is the desired number of replicas of pods managed by this - /// autoscaler, as last calculated by the autoscaler. - /// - [JsonProperty(PropertyName = "desiredReplicas")] - public int DesiredReplicas { get; set; } - - /// - /// lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of - /// pods, used by the autoscaler to control how often the number of pods is changed. - /// - [JsonProperty(PropertyName = "lastScaleTime")] - public System.DateTime? LastScaleTime { get; set; } - - /// - /// observedGeneration is the most recent generation observed by this autoscaler. - /// - [JsonProperty(PropertyName = "observedGeneration")] - public long? ObservedGeneration { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Conditions != null){ - foreach(var obj in Conditions) - { - obj.Validate(); - } - } - if (CurrentMetrics != null){ - foreach(var obj in CurrentMetrics) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta1MetricSpec.cs b/src/KubernetesClient/generated/Models/V2beta1MetricSpec.cs deleted file mode 100644 index 4b8e18fb2..000000000 --- a/src/KubernetesClient/generated/Models/V2beta1MetricSpec.cs +++ /dev/null @@ -1,153 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// MetricSpec specifies how to scale based on a single metric (only `type` and one - /// other matching field should be set at once). - /// - public partial class V2beta1MetricSpec - { - /// - /// Initializes a new instance of the V2beta1MetricSpec class. - /// - public V2beta1MetricSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta1MetricSpec class. - /// - /// - /// 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 - /// - /// - /// container resource refers to a resource metric (such as those specified in - /// requests and limits) known to Kubernetes describing a single container in each - /// pod of the current scale target (e.g. CPU or memory). Such metrics are built in - /// to Kubernetes, and have special scaling options on top of those available to - /// normal per-pod metrics using the "pods" source. This is an alpha feature and can - /// be enabled by the HPAContainerMetrics feature flag. - /// - /// - /// external refers to a global metric that is not associated with any Kubernetes - /// object. It allows autoscaling based on information coming from components - /// running outside of cluster (for example length of queue in cloud messaging - /// service, or QPS from loadbalancer running outside of cluster). - /// - /// - /// object refers to a metric describing a single kubernetes object (for example, - /// hits-per-second on an Ingress object). - /// - /// - /// pods refers to a metric describing each pod in the current scale target (for - /// example, transactions-processed-per-second). The values will be averaged - /// together before being compared to the target value. - /// - /// - /// resource refers to a resource metric (such as those specified in requests and - /// limits) known to Kubernetes describing each pod in the current scale target - /// (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special - /// scaling options on top of those available to normal per-pod metrics using the - /// "pods" source. - /// - public V2beta1MetricSpec(string type, V2beta1ContainerResourceMetricSource containerResource = null, V2beta1ExternalMetricSource external = null, V2beta1ObjectMetricSource objectProperty = null, V2beta1PodsMetricSource pods = null, V2beta1ResourceMetricSource resource = null) - { - ContainerResource = containerResource; - External = external; - ObjectProperty = objectProperty; - Pods = pods; - Resource = resource; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// container resource refers to a resource metric (such as those specified in - /// requests and limits) known to Kubernetes describing a single container in each - /// pod of the current scale target (e.g. CPU or memory). Such metrics are built in - /// to Kubernetes, and have special scaling options on top of those available to - /// normal per-pod metrics using the "pods" source. This is an alpha feature and can - /// be enabled by the HPAContainerMetrics feature flag. - /// - [JsonProperty(PropertyName = "containerResource")] - public V2beta1ContainerResourceMetricSource ContainerResource { get; set; } - - /// - /// external refers to a global metric that is not associated with any Kubernetes - /// object. It allows autoscaling based on information coming from components - /// running outside of cluster (for example length of queue in cloud messaging - /// service, or QPS from loadbalancer running outside of cluster). - /// - [JsonProperty(PropertyName = "external")] - public V2beta1ExternalMetricSource External { get; set; } - - /// - /// object refers to a metric describing a single kubernetes object (for example, - /// hits-per-second on an Ingress object). - /// - [JsonProperty(PropertyName = "object")] - public V2beta1ObjectMetricSource ObjectProperty { get; set; } - - /// - /// pods refers to a metric describing each pod in the current scale target (for - /// example, transactions-processed-per-second). The values will be averaged - /// together before being compared to the target value. - /// - [JsonProperty(PropertyName = "pods")] - public V2beta1PodsMetricSource Pods { get; set; } - - /// - /// resource refers to a resource metric (such as those specified in requests and - /// limits) known to Kubernetes describing each pod in the current scale target - /// (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special - /// scaling options on top of those available to normal per-pod metrics using the - /// "pods" source. - /// - [JsonProperty(PropertyName = "resource")] - public V2beta1ResourceMetricSource Resource { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - ContainerResource?.Validate(); - External?.Validate(); - ObjectProperty?.Validate(); - Pods?.Validate(); - Resource?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta1MetricStatus.cs b/src/KubernetesClient/generated/Models/V2beta1MetricStatus.cs deleted file mode 100644 index 25f5b4d25..000000000 --- a/src/KubernetesClient/generated/Models/V2beta1MetricStatus.cs +++ /dev/null @@ -1,150 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// MetricStatus describes the last-read state of a single metric. - /// - public partial class V2beta1MetricStatus - { - /// - /// Initializes a new instance of the V2beta1MetricStatus class. - /// - public V2beta1MetricStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta1MetricStatus class. - /// - /// - /// 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 - /// - /// - /// container resource refers to a resource metric (such as those specified in - /// requests and limits) known to Kubernetes describing a single container in each - /// pod in the current scale target (e.g. CPU or memory). Such metrics are built in - /// to Kubernetes, and have special scaling options on top of those available to - /// normal per-pod metrics using the "pods" source. - /// - /// - /// external refers to a global metric that is not associated with any Kubernetes - /// object. It allows autoscaling based on information coming from components - /// running outside of cluster (for example length of queue in cloud messaging - /// service, or QPS from loadbalancer running outside of cluster). - /// - /// - /// object refers to a metric describing a single kubernetes object (for example, - /// hits-per-second on an Ingress object). - /// - /// - /// pods refers to a metric describing each pod in the current scale target (for - /// example, transactions-processed-per-second). The values will be averaged - /// together before being compared to the target value. - /// - /// - /// resource refers to a resource metric (such as those specified in requests and - /// limits) known to Kubernetes describing each pod in the current scale target - /// (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special - /// scaling options on top of those available to normal per-pod metrics using the - /// "pods" source. - /// - public V2beta1MetricStatus(string type, V2beta1ContainerResourceMetricStatus containerResource = null, V2beta1ExternalMetricStatus external = null, V2beta1ObjectMetricStatus objectProperty = null, V2beta1PodsMetricStatus pods = null, V2beta1ResourceMetricStatus resource = null) - { - ContainerResource = containerResource; - External = external; - ObjectProperty = objectProperty; - Pods = pods; - Resource = resource; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// container resource refers to a resource metric (such as those specified in - /// requests and limits) known to Kubernetes describing a single container in each - /// pod in the current scale target (e.g. CPU or memory). Such metrics are built in - /// to Kubernetes, and have special scaling options on top of those available to - /// normal per-pod metrics using the "pods" source. - /// - [JsonProperty(PropertyName = "containerResource")] - public V2beta1ContainerResourceMetricStatus ContainerResource { get; set; } - - /// - /// external refers to a global metric that is not associated with any Kubernetes - /// object. It allows autoscaling based on information coming from components - /// running outside of cluster (for example length of queue in cloud messaging - /// service, or QPS from loadbalancer running outside of cluster). - /// - [JsonProperty(PropertyName = "external")] - public V2beta1ExternalMetricStatus External { get; set; } - - /// - /// object refers to a metric describing a single kubernetes object (for example, - /// hits-per-second on an Ingress object). - /// - [JsonProperty(PropertyName = "object")] - public V2beta1ObjectMetricStatus ObjectProperty { get; set; } - - /// - /// pods refers to a metric describing each pod in the current scale target (for - /// example, transactions-processed-per-second). The values will be averaged - /// together before being compared to the target value. - /// - [JsonProperty(PropertyName = "pods")] - public V2beta1PodsMetricStatus Pods { get; set; } - - /// - /// resource refers to a resource metric (such as those specified in requests and - /// limits) known to Kubernetes describing each pod in the current scale target - /// (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special - /// scaling options on top of those available to normal per-pod metrics using the - /// "pods" source. - /// - [JsonProperty(PropertyName = "resource")] - public V2beta1ResourceMetricStatus Resource { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - ContainerResource?.Validate(); - External?.Validate(); - ObjectProperty?.Validate(); - Pods?.Validate(); - Resource?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta1ObjectMetricSource.cs b/src/KubernetesClient/generated/Models/V2beta1ObjectMetricSource.cs deleted file mode 100644 index 8a3b7f1b4..000000000 --- a/src/KubernetesClient/generated/Models/V2beta1ObjectMetricSource.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ObjectMetricSource indicates how to scale on a metric describing a kubernetes - /// object (for example, hits-per-second on an Ingress object). - /// - public partial class V2beta1ObjectMetricSource - { - /// - /// Initializes a new instance of the V2beta1ObjectMetricSource class. - /// - public V2beta1ObjectMetricSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta1ObjectMetricSource class. - /// - /// - /// metricName is the name of the metric in question. - /// - /// - /// target is the described Kubernetes object. - /// - /// - /// targetValue is the target value of the metric (as a quantity). - /// - /// - /// averageValue is the target value of the average of the metric across all - /// relevant pods (as a quantity) - /// - /// - /// selector is the string-encoded form of a standard kubernetes label selector for - /// the given metric When set, it is passed as an additional parameter to the - /// metrics server for more specific metrics scoping When unset, just the metricName - /// will be used to gather metrics. - /// - public V2beta1ObjectMetricSource(string metricName, V2beta1CrossVersionObjectReference target, ResourceQuantity targetValue, ResourceQuantity averageValue = null, V1LabelSelector selector = null) - { - AverageValue = averageValue; - MetricName = metricName; - Selector = selector; - Target = target; - TargetValue = targetValue; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// averageValue is the target value of the average of the metric across all - /// relevant pods (as a quantity) - /// - [JsonProperty(PropertyName = "averageValue")] - public ResourceQuantity AverageValue { get; set; } - - /// - /// metricName is the name of the metric in question. - /// - [JsonProperty(PropertyName = "metricName")] - public string MetricName { get; set; } - - /// - /// selector is the string-encoded form of a standard kubernetes label selector for - /// the given metric When set, it is passed as an additional parameter to the - /// metrics server for more specific metrics scoping When unset, just the metricName - /// will be used to gather metrics. - /// - [JsonProperty(PropertyName = "selector")] - public V1LabelSelector Selector { get; set; } - - /// - /// target is the described Kubernetes object. - /// - [JsonProperty(PropertyName = "target")] - public V2beta1CrossVersionObjectReference Target { get; set; } - - /// - /// targetValue is the target value of the metric (as a quantity). - /// - [JsonProperty(PropertyName = "targetValue")] - public ResourceQuantity TargetValue { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Target == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Target"); - } - if (TargetValue == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "TargetValue"); - } - AverageValue?.Validate(); - Selector?.Validate(); - Target?.Validate(); - TargetValue?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta1ObjectMetricStatus.cs b/src/KubernetesClient/generated/Models/V2beta1ObjectMetricStatus.cs deleted file mode 100644 index 0311454ba..000000000 --- a/src/KubernetesClient/generated/Models/V2beta1ObjectMetricStatus.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ObjectMetricStatus indicates the current value of a metric describing a - /// kubernetes object (for example, hits-per-second on an Ingress object). - /// - public partial class V2beta1ObjectMetricStatus - { - /// - /// Initializes a new instance of the V2beta1ObjectMetricStatus class. - /// - public V2beta1ObjectMetricStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta1ObjectMetricStatus class. - /// - /// - /// currentValue is the current value of the metric (as a quantity). - /// - /// - /// metricName is the name of the metric in question. - /// - /// - /// target is the described Kubernetes object. - /// - /// - /// averageValue is the current value of the average of the metric across all - /// relevant pods (as a quantity) - /// - /// - /// selector is the string-encoded form of a standard kubernetes label selector for - /// the given metric When set in the ObjectMetricSource, it is passed as an - /// additional parameter to the metrics server for more specific metrics scoping. - /// When unset, just the metricName will be used to gather metrics. - /// - public V2beta1ObjectMetricStatus(ResourceQuantity currentValue, string metricName, V2beta1CrossVersionObjectReference target, ResourceQuantity averageValue = null, V1LabelSelector selector = null) - { - AverageValue = averageValue; - CurrentValue = currentValue; - MetricName = metricName; - Selector = selector; - Target = target; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// averageValue is the current value of the average of the metric across all - /// relevant pods (as a quantity) - /// - [JsonProperty(PropertyName = "averageValue")] - public ResourceQuantity AverageValue { get; set; } - - /// - /// currentValue is the current value of the metric (as a quantity). - /// - [JsonProperty(PropertyName = "currentValue")] - public ResourceQuantity CurrentValue { get; set; } - - /// - /// metricName is the name of the metric in question. - /// - [JsonProperty(PropertyName = "metricName")] - public string MetricName { get; set; } - - /// - /// selector is the string-encoded form of a standard kubernetes label selector for - /// the given metric When set in the ObjectMetricSource, it is passed as an - /// additional parameter to the metrics server for more specific metrics scoping. - /// When unset, just the metricName will be used to gather metrics. - /// - [JsonProperty(PropertyName = "selector")] - public V1LabelSelector Selector { get; set; } - - /// - /// target is the described Kubernetes object. - /// - [JsonProperty(PropertyName = "target")] - public V2beta1CrossVersionObjectReference Target { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (CurrentValue == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "CurrentValue"); - } - if (Target == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Target"); - } - AverageValue?.Validate(); - CurrentValue?.Validate(); - Selector?.Validate(); - Target?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta1PodsMetricSource.cs b/src/KubernetesClient/generated/Models/V2beta1PodsMetricSource.cs deleted file mode 100644 index ed9581c13..000000000 --- a/src/KubernetesClient/generated/Models/V2beta1PodsMetricSource.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodsMetricSource indicates how to scale on a metric describing each pod in the - /// current scale target (for example, transactions-processed-per-second). The - /// values will be averaged together before being compared to the target value. - /// - public partial class V2beta1PodsMetricSource - { - /// - /// Initializes a new instance of the V2beta1PodsMetricSource class. - /// - public V2beta1PodsMetricSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta1PodsMetricSource class. - /// - /// - /// metricName is the name of the metric in question - /// - /// - /// targetAverageValue is the target value of the average of the metric across all - /// relevant pods (as a quantity) - /// - /// - /// selector is the string-encoded form of a standard kubernetes label selector for - /// the given metric When set, it is passed as an additional parameter to the - /// metrics server for more specific metrics scoping When unset, just the metricName - /// will be used to gather metrics. - /// - public V2beta1PodsMetricSource(string metricName, ResourceQuantity targetAverageValue, V1LabelSelector selector = null) - { - MetricName = metricName; - Selector = selector; - TargetAverageValue = targetAverageValue; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// metricName is the name of the metric in question - /// - [JsonProperty(PropertyName = "metricName")] - public string MetricName { get; set; } - - /// - /// selector is the string-encoded form of a standard kubernetes label selector for - /// the given metric When set, it is passed as an additional parameter to the - /// metrics server for more specific metrics scoping When unset, just the metricName - /// will be used to gather metrics. - /// - [JsonProperty(PropertyName = "selector")] - public V1LabelSelector Selector { get; set; } - - /// - /// targetAverageValue is the target value of the average of the metric across all - /// relevant pods (as a quantity) - /// - [JsonProperty(PropertyName = "targetAverageValue")] - public ResourceQuantity TargetAverageValue { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (TargetAverageValue == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "TargetAverageValue"); - } - Selector?.Validate(); - TargetAverageValue?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta1PodsMetricStatus.cs b/src/KubernetesClient/generated/Models/V2beta1PodsMetricStatus.cs deleted file mode 100644 index b694935b5..000000000 --- a/src/KubernetesClient/generated/Models/V2beta1PodsMetricStatus.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodsMetricStatus indicates the current value of a metric describing each pod in - /// the current scale target (for example, transactions-processed-per-second). - /// - public partial class V2beta1PodsMetricStatus - { - /// - /// Initializes a new instance of the V2beta1PodsMetricStatus class. - /// - public V2beta1PodsMetricStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta1PodsMetricStatus class. - /// - /// - /// currentAverageValue is the current value of the average of the metric across all - /// relevant pods (as a quantity) - /// - /// - /// metricName is the name of the metric in question - /// - /// - /// selector is the string-encoded form of a standard kubernetes label selector for - /// the given metric When set in the PodsMetricSource, it is passed as an additional - /// parameter to the metrics server for more specific metrics scoping. When unset, - /// just the metricName will be used to gather metrics. - /// - public V2beta1PodsMetricStatus(ResourceQuantity currentAverageValue, string metricName, V1LabelSelector selector = null) - { - CurrentAverageValue = currentAverageValue; - MetricName = metricName; - Selector = selector; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// currentAverageValue is the current value of the average of the metric across all - /// relevant pods (as a quantity) - /// - [JsonProperty(PropertyName = "currentAverageValue")] - public ResourceQuantity CurrentAverageValue { get; set; } - - /// - /// metricName is the name of the metric in question - /// - [JsonProperty(PropertyName = "metricName")] - public string MetricName { get; set; } - - /// - /// selector is the string-encoded form of a standard kubernetes label selector for - /// the given metric When set in the PodsMetricSource, it is passed as an additional - /// parameter to the metrics server for more specific metrics scoping. When unset, - /// just the metricName will be used to gather metrics. - /// - [JsonProperty(PropertyName = "selector")] - public V1LabelSelector Selector { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (CurrentAverageValue == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "CurrentAverageValue"); - } - CurrentAverageValue?.Validate(); - Selector?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta1ResourceMetricSource.cs b/src/KubernetesClient/generated/Models/V2beta1ResourceMetricSource.cs deleted file mode 100644 index 79b99a052..000000000 --- a/src/KubernetesClient/generated/Models/V2beta1ResourceMetricSource.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ResourceMetricSource indicates how to scale on a resource metric known to - /// Kubernetes, as specified in requests and limits, describing each pod in the - /// current scale target (e.g. CPU or memory). The values will be averaged together - /// before being compared to the target. Such metrics are built in to Kubernetes, - /// and have special scaling options on top of those available to normal per-pod - /// metrics using the "pods" source. Only one "target" type should be set. - /// - public partial class V2beta1ResourceMetricSource - { - /// - /// Initializes a new instance of the V2beta1ResourceMetricSource class. - /// - public V2beta1ResourceMetricSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta1ResourceMetricSource class. - /// - /// - /// name is the name of the resource in question. - /// - /// - /// targetAverageUtilization is the target value of the average of the resource - /// metric across all relevant pods, represented as a percentage of the requested - /// value of the resource for the pods. - /// - /// - /// targetAverageValue is the target value of the average of the resource metric - /// across all relevant pods, as a raw value (instead of as a percentage of the - /// request), similar to the "pods" metric source type. - /// - public V2beta1ResourceMetricSource(string name, int? targetAverageUtilization = null, ResourceQuantity targetAverageValue = null) - { - Name = name; - TargetAverageUtilization = targetAverageUtilization; - TargetAverageValue = targetAverageValue; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// name is the name of the resource in question. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// targetAverageUtilization is the target value of the average of the resource - /// metric across all relevant pods, represented as a percentage of the requested - /// value of the resource for the pods. - /// - [JsonProperty(PropertyName = "targetAverageUtilization")] - public int? TargetAverageUtilization { get; set; } - - /// - /// targetAverageValue is the target value of the average of the resource metric - /// across all relevant pods, as a raw value (instead of as a percentage of the - /// request), similar to the "pods" metric source type. - /// - [JsonProperty(PropertyName = "targetAverageValue")] - public ResourceQuantity TargetAverageValue { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - TargetAverageValue?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta1ResourceMetricStatus.cs b/src/KubernetesClient/generated/Models/V2beta1ResourceMetricStatus.cs deleted file mode 100644 index dd7d5a8d3..000000000 --- a/src/KubernetesClient/generated/Models/V2beta1ResourceMetricStatus.cs +++ /dev/null @@ -1,102 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ResourceMetricStatus indicates the current value of a resource metric known to - /// Kubernetes, as specified in requests and limits, describing each pod in the - /// current scale target (e.g. CPU or memory). Such metrics are built in to - /// Kubernetes, and have special scaling options on top of those available to normal - /// per-pod metrics using the "pods" source. - /// - public partial class V2beta1ResourceMetricStatus - { - /// - /// Initializes a new instance of the V2beta1ResourceMetricStatus class. - /// - public V2beta1ResourceMetricStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta1ResourceMetricStatus class. - /// - /// - /// currentAverageValue is the current value of the average of the resource metric - /// across all relevant pods, as a raw value (instead of as a percentage of the - /// request), similar to the "pods" metric source type. It will always be set, - /// regardless of the corresponding metric specification. - /// - /// - /// name is the name of the resource in question. - /// - /// - /// currentAverageUtilization is the current value of the average of the resource - /// metric across all relevant pods, represented as a percentage of the requested - /// value of the resource for the pods. It will only be present if - /// `targetAverageValue` was set in the corresponding metric specification. - /// - public V2beta1ResourceMetricStatus(ResourceQuantity currentAverageValue, string name, int? currentAverageUtilization = null) - { - CurrentAverageUtilization = currentAverageUtilization; - CurrentAverageValue = currentAverageValue; - Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// currentAverageUtilization is the current value of the average of the resource - /// metric across all relevant pods, represented as a percentage of the requested - /// value of the resource for the pods. It will only be present if - /// `targetAverageValue` was set in the corresponding metric specification. - /// - [JsonProperty(PropertyName = "currentAverageUtilization")] - public int? CurrentAverageUtilization { get; set; } - - /// - /// currentAverageValue is the current value of the average of the resource metric - /// across all relevant pods, as a raw value (instead of as a percentage of the - /// request), similar to the "pods" metric source type. It will always be set, - /// regardless of the corresponding metric specification. - /// - [JsonProperty(PropertyName = "currentAverageValue")] - public ResourceQuantity CurrentAverageValue { get; set; } - - /// - /// name is the name of the resource in question. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (CurrentAverageValue == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "CurrentAverageValue"); - } - CurrentAverageValue?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta2ContainerResourceMetricSource.cs b/src/KubernetesClient/generated/Models/V2beta2ContainerResourceMetricSource.cs deleted file mode 100644 index c589d356c..000000000 --- a/src/KubernetesClient/generated/Models/V2beta2ContainerResourceMetricSource.cs +++ /dev/null @@ -1,91 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ContainerResourceMetricSource indicates how to scale on a resource metric known - /// to Kubernetes, as specified in requests and limits, describing each pod in the - /// current scale target (e.g. CPU or memory). The values will be averaged together - /// before being compared to the target. Such metrics are built in to Kubernetes, - /// and have special scaling options on top of those available to normal per-pod - /// metrics using the "pods" source. Only one "target" type should be set. - /// - public partial class V2beta2ContainerResourceMetricSource - { - /// - /// Initializes a new instance of the V2beta2ContainerResourceMetricSource class. - /// - public V2beta2ContainerResourceMetricSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta2ContainerResourceMetricSource class. - /// - /// - /// container is the name of the container in the pods of the scaling target - /// - /// - /// name is the name of the resource in question. - /// - /// - /// target specifies the target value for the given metric - /// - public V2beta2ContainerResourceMetricSource(string container, string name, V2beta2MetricTarget target) - { - Container = container; - Name = name; - Target = target; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// container is the name of the container in the pods of the scaling target - /// - [JsonProperty(PropertyName = "container")] - public string Container { get; set; } - - /// - /// name is the name of the resource in question. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// target specifies the target value for the given metric - /// - [JsonProperty(PropertyName = "target")] - public V2beta2MetricTarget Target { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Target == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Target"); - } - Target?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta2ContainerResourceMetricStatus.cs b/src/KubernetesClient/generated/Models/V2beta2ContainerResourceMetricStatus.cs deleted file mode 100644 index 9f05dad06..000000000 --- a/src/KubernetesClient/generated/Models/V2beta2ContainerResourceMetricStatus.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ContainerResourceMetricStatus indicates the current value of a resource metric - /// known to Kubernetes, as specified in requests and limits, describing a single - /// container in each pod in the current scale target (e.g. CPU or memory). Such - /// metrics are built in to Kubernetes, and have special scaling options on top of - /// those available to normal per-pod metrics using the "pods" source. - /// - public partial class V2beta2ContainerResourceMetricStatus - { - /// - /// Initializes a new instance of the V2beta2ContainerResourceMetricStatus class. - /// - public V2beta2ContainerResourceMetricStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta2ContainerResourceMetricStatus class. - /// - /// - /// Container is the name of the container in the pods of the scaling target - /// - /// - /// current contains the current value for the given metric - /// - /// - /// Name is the name of the resource in question. - /// - public V2beta2ContainerResourceMetricStatus(string container, V2beta2MetricValueStatus current, string name) - { - Container = container; - Current = current; - Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Container is the name of the container in the pods of the scaling target - /// - [JsonProperty(PropertyName = "container")] - public string Container { get; set; } - - /// - /// current contains the current value for the given metric - /// - [JsonProperty(PropertyName = "current")] - public V2beta2MetricValueStatus Current { get; set; } - - /// - /// Name is the name of the resource in question. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Current == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Current"); - } - Current?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta2CrossVersionObjectReference.cs b/src/KubernetesClient/generated/Models/V2beta2CrossVersionObjectReference.cs deleted file mode 100644 index 870eb4259..000000000 --- a/src/KubernetesClient/generated/Models/V2beta2CrossVersionObjectReference.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// CrossVersionObjectReference contains enough information to let you identify the - /// referred resource. - /// - public partial class V2beta2CrossVersionObjectReference - { - /// - /// Initializes a new instance of the V2beta2CrossVersionObjectReference class. - /// - public V2beta2CrossVersionObjectReference() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta2CrossVersionObjectReference class. - /// - /// - /// Kind of the referent; More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - /// - /// - /// Name of the referent; More info: - /// http://kubernetes.io/docs/user-guide/identifiers#names - /// - /// - /// API version of the referent - /// - public V2beta2CrossVersionObjectReference(string kind, string name, string apiVersion = null) - { - ApiVersion = apiVersion; - Kind = kind; - Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// API version of the referent - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind of the referent; More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Name of the referent; More info: - /// http://kubernetes.io/docs/user-guide/identifiers#names - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta2ExternalMetricSource.cs b/src/KubernetesClient/generated/Models/V2beta2ExternalMetricSource.cs deleted file mode 100644 index 1efe672f2..000000000 --- a/src/KubernetesClient/generated/Models/V2beta2ExternalMetricSource.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ExternalMetricSource indicates how to scale on a metric not associated with any - /// Kubernetes object (for example length of queue in cloud messaging service, or - /// QPS from loadbalancer running outside of cluster). - /// - public partial class V2beta2ExternalMetricSource - { - /// - /// Initializes a new instance of the V2beta2ExternalMetricSource class. - /// - public V2beta2ExternalMetricSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta2ExternalMetricSource class. - /// - /// - /// metric identifies the target metric by name and selector - /// - /// - /// target specifies the target value for the given metric - /// - public V2beta2ExternalMetricSource(V2beta2MetricIdentifier metric, V2beta2MetricTarget target) - { - Metric = metric; - Target = target; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// metric identifies the target metric by name and selector - /// - [JsonProperty(PropertyName = "metric")] - public V2beta2MetricIdentifier Metric { get; set; } - - /// - /// target specifies the target value for the given metric - /// - [JsonProperty(PropertyName = "target")] - public V2beta2MetricTarget Target { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Metric == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Metric"); - } - if (Target == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Target"); - } - Metric?.Validate(); - Target?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta2ExternalMetricStatus.cs b/src/KubernetesClient/generated/Models/V2beta2ExternalMetricStatus.cs deleted file mode 100644 index 46fec2647..000000000 --- a/src/KubernetesClient/generated/Models/V2beta2ExternalMetricStatus.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ExternalMetricStatus indicates the current value of a global metric not - /// associated with any Kubernetes object. - /// - public partial class V2beta2ExternalMetricStatus - { - /// - /// Initializes a new instance of the V2beta2ExternalMetricStatus class. - /// - public V2beta2ExternalMetricStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta2ExternalMetricStatus class. - /// - /// - /// current contains the current value for the given metric - /// - /// - /// metric identifies the target metric by name and selector - /// - public V2beta2ExternalMetricStatus(V2beta2MetricValueStatus current, V2beta2MetricIdentifier metric) - { - Current = current; - Metric = metric; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// current contains the current value for the given metric - /// - [JsonProperty(PropertyName = "current")] - public V2beta2MetricValueStatus Current { get; set; } - - /// - /// metric identifies the target metric by name and selector - /// - [JsonProperty(PropertyName = "metric")] - public V2beta2MetricIdentifier Metric { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Current == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Current"); - } - if (Metric == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Metric"); - } - Current?.Validate(); - Metric?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta2HPAScalingPolicy.cs b/src/KubernetesClient/generated/Models/V2beta2HPAScalingPolicy.cs deleted file mode 100644 index 04ac1bbb1..000000000 --- a/src/KubernetesClient/generated/Models/V2beta2HPAScalingPolicy.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// HPAScalingPolicy is a single policy which must hold true for a specified past - /// interval. - /// - public partial class V2beta2HPAScalingPolicy - { - /// - /// Initializes a new instance of the V2beta2HPAScalingPolicy class. - /// - public V2beta2HPAScalingPolicy() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta2HPAScalingPolicy class. - /// - /// - /// PeriodSeconds specifies the window of time for which the policy should hold - /// true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 - /// min). - /// - /// - /// Type is used to specify the scaling policy. - /// - /// - /// Value contains the amount of change which is permitted by the policy. It must be - /// greater than zero - /// - public V2beta2HPAScalingPolicy(int periodSeconds, string type, int value) - { - PeriodSeconds = periodSeconds; - Type = type; - Value = value; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// PeriodSeconds specifies the window of time for which the policy should hold - /// true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 - /// min). - /// - [JsonProperty(PropertyName = "periodSeconds")] - public int PeriodSeconds { get; set; } - - /// - /// Type is used to specify the scaling policy. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Value contains the amount of change which is permitted by the policy. It must be - /// greater than zero - /// - [JsonProperty(PropertyName = "value")] - public int Value { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta2HPAScalingRules.cs b/src/KubernetesClient/generated/Models/V2beta2HPAScalingRules.cs deleted file mode 100644 index 999d80557..000000000 --- a/src/KubernetesClient/generated/Models/V2beta2HPAScalingRules.cs +++ /dev/null @@ -1,108 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// 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. - /// - public partial class V2beta2HPAScalingRules - { - /// - /// Initializes a new instance of the V2beta2HPAScalingRules class. - /// - public V2beta2HPAScalingRules() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta2HPAScalingRules class. - /// - /// - /// 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 - /// - /// - /// selectPolicy is used to specify which policy should be used. If not set, the - /// default value MaxPolicySelect is used. - /// - /// - /// StabilizationWindowSeconds is the number of seconds for which past - /// recommendations should be considered while scaling up or scaling down. - /// StabilizationWindowSeconds must be greater than or equal to zero and less than - /// or equal to 3600 (one hour). If not set, use the default values: - For scale up: - /// 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization - /// window is 300 seconds long). - /// - public V2beta2HPAScalingRules(IList policies = null, string selectPolicy = null, int? stabilizationWindowSeconds = null) - { - Policies = policies; - SelectPolicy = selectPolicy; - StabilizationWindowSeconds = stabilizationWindowSeconds; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// 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 - /// - [JsonProperty(PropertyName = "policies")] - public IList Policies { get; set; } - - /// - /// selectPolicy is used to specify which policy should be used. If not set, the - /// default value MaxPolicySelect is used. - /// - [JsonProperty(PropertyName = "selectPolicy")] - public string SelectPolicy { get; set; } - - /// - /// 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). - /// - [JsonProperty(PropertyName = "stabilizationWindowSeconds")] - public int? StabilizationWindowSeconds { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Policies != null){ - foreach(var obj in Policies) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta2HorizontalPodAutoscaler.cs b/src/KubernetesClient/generated/Models/V2beta2HorizontalPodAutoscaler.cs deleted file mode 100644 index fee477bf0..000000000 --- a/src/KubernetesClient/generated/Models/V2beta2HorizontalPodAutoscaler.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, - /// which automatically manages the replica count of any resource implementing the - /// scale subresource based on the metrics specified. - /// - public partial class V2beta2HorizontalPodAutoscaler - { - /// - /// Initializes a new instance of the V2beta2HorizontalPodAutoscaler class. - /// - public V2beta2HorizontalPodAutoscaler() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta2HorizontalPodAutoscaler class. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// metadata is the standard object metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - /// - /// spec is the specification for the behaviour of the autoscaler. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - /// - /// - /// status is the current information about the autoscaler. - /// - public V2beta2HorizontalPodAutoscaler(string apiVersion = null, string kind = null, V1ObjectMeta metadata = null, V2beta2HorizontalPodAutoscalerSpec spec = null, V2beta2HorizontalPodAutoscalerStatus status = null) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// metadata is the standard object metadata. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// spec is the specification for the behaviour of the autoscaler. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - /// - [JsonProperty(PropertyName = "spec")] - public V2beta2HorizontalPodAutoscalerSpec Spec { get; set; } - - /// - /// status is the current information about the autoscaler. - /// - [JsonProperty(PropertyName = "status")] - public V2beta2HorizontalPodAutoscalerStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Metadata?.Validate(); - Spec?.Validate(); - Status?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta2HorizontalPodAutoscalerBehavior.cs b/src/KubernetesClient/generated/Models/V2beta2HorizontalPodAutoscalerBehavior.cs deleted file mode 100644 index 74f28c5cb..000000000 --- a/src/KubernetesClient/generated/Models/V2beta2HorizontalPodAutoscalerBehavior.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in - /// both Up and Down directions (scaleUp and scaleDown fields respectively). - /// - public partial class V2beta2HorizontalPodAutoscalerBehavior - { - /// - /// Initializes a new instance of the V2beta2HorizontalPodAutoscalerBehavior class. - /// - public V2beta2HorizontalPodAutoscalerBehavior() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta2HorizontalPodAutoscalerBehavior class. - /// - /// - /// scaleDown is scaling policy for scaling Down. If not set, the default value is - /// to allow to scale down to minReplicas pods, with a 300 second stabilization - /// window (i.e., the highest recommendation for the last 300sec is used). - /// - /// - /// scaleUp is scaling policy for scaling Up. If not set, the default value is the - /// higher of: - /// * increase no more than 4 pods per 60 seconds - /// * double the number of pods per 60 seconds - /// No stabilization is used. - /// - public V2beta2HorizontalPodAutoscalerBehavior(V2beta2HPAScalingRules scaleDown = null, V2beta2HPAScalingRules scaleUp = null) - { - ScaleDown = scaleDown; - ScaleUp = scaleUp; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// scaleDown is scaling policy for scaling Down. If not set, the default value is - /// to allow to scale down to minReplicas pods, with a 300 second stabilization - /// window (i.e., the highest recommendation for the last 300sec is used). - /// - [JsonProperty(PropertyName = "scaleDown")] - public V2beta2HPAScalingRules ScaleDown { get; set; } - - /// - /// scaleUp is scaling policy for scaling Up. If not set, the default value is the - /// higher of: - /// * increase no more than 4 pods per 60 seconds - /// * double the number of pods per 60 seconds - /// No stabilization is used. - /// - [JsonProperty(PropertyName = "scaleUp")] - public V2beta2HPAScalingRules ScaleUp { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - ScaleDown?.Validate(); - ScaleUp?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta2HorizontalPodAutoscalerCondition.cs b/src/KubernetesClient/generated/Models/V2beta2HorizontalPodAutoscalerCondition.cs deleted file mode 100644 index 30d9527b4..000000000 --- a/src/KubernetesClient/generated/Models/V2beta2HorizontalPodAutoscalerCondition.cs +++ /dev/null @@ -1,104 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// HorizontalPodAutoscalerCondition describes the state of a - /// HorizontalPodAutoscaler at a certain point. - /// - public partial class V2beta2HorizontalPodAutoscalerCondition - { - /// - /// Initializes a new instance of the V2beta2HorizontalPodAutoscalerCondition class. - /// - public V2beta2HorizontalPodAutoscalerCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta2HorizontalPodAutoscalerCondition class. - /// - /// - /// status is the status of the condition (True, False, Unknown) - /// - /// - /// type describes the current condition - /// - /// - /// lastTransitionTime is the last time the condition transitioned from one status - /// to another - /// - /// - /// message is a human-readable explanation containing details about the transition - /// - /// - /// reason is the reason for the condition's last transition. - /// - public V2beta2HorizontalPodAutoscalerCondition(string status, string type, System.DateTime? lastTransitionTime = null, string message = null, string reason = null) - { - LastTransitionTime = lastTransitionTime; - Message = message; - Reason = reason; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// lastTransitionTime is the last time the condition transitioned from one status - /// to another - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// message is a human-readable explanation containing details about the transition - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// reason is the reason for the condition's last transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// status is the status of the condition (True, False, Unknown) - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// type describes the current condition - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta2HorizontalPodAutoscalerList.cs b/src/KubernetesClient/generated/Models/V2beta2HorizontalPodAutoscalerList.cs deleted file mode 100644 index 99cbdd3bd..000000000 --- a/src/KubernetesClient/generated/Models/V2beta2HorizontalPodAutoscalerList.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. - /// - public partial class V2beta2HorizontalPodAutoscalerList - { - /// - /// Initializes a new instance of the V2beta2HorizontalPodAutoscalerList class. - /// - public V2beta2HorizontalPodAutoscalerList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta2HorizontalPodAutoscalerList class. - /// - /// - /// items is the list of horizontal pod autoscaler objects. - /// - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - /// - /// metadata is the standard list metadata. - /// - public V2beta2HorizontalPodAutoscalerList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// APIVersion defines the versioned schema of this representation of an object. - /// Servers should convert recognized schemas to the latest internal value, and may - /// reject unrecognized values. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// items is the list of horizontal pod autoscaler objects. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Kind is a string value representing the REST resource this object represents. - /// Servers may infer this from the endpoint the client submits requests to. Cannot - /// be updated. In CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// metadata is the standard list metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Items != null){ - foreach(var obj in Items) - { - obj.Validate(); - } - } - Metadata?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta2HorizontalPodAutoscalerSpec.cs b/src/KubernetesClient/generated/Models/V2beta2HorizontalPodAutoscalerSpec.cs deleted file mode 100644 index 9e39c6b92..000000000 --- a/src/KubernetesClient/generated/Models/V2beta2HorizontalPodAutoscalerSpec.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// HorizontalPodAutoscalerSpec describes the desired functionality of the - /// HorizontalPodAutoscaler. - /// - public partial class V2beta2HorizontalPodAutoscalerSpec - { - /// - /// Initializes a new instance of the V2beta2HorizontalPodAutoscalerSpec class. - /// - public V2beta2HorizontalPodAutoscalerSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta2HorizontalPodAutoscalerSpec class. - /// - /// - /// maxReplicas is the upper limit for the number of replicas to which the - /// autoscaler can scale up. It cannot be less that minReplicas. - /// - /// - /// scaleTargetRef points to the target resource to scale, and is used to the pods - /// for which metrics should be collected, as well as to actually change the replica - /// count. - /// - /// - /// behavior configures the scaling behavior of the target in both Up and Down - /// directions (scaleUp and scaleDown fields respectively). If not set, the default - /// HPAScalingRules for scale up and scale down are used. - /// - /// - /// metrics contains the specifications for which to use to calculate the desired - /// replica count (the maximum replica count across all metrics will be used). The - /// desired replica count is calculated multiplying the ratio between the target - /// value and the current value by the current number of pods. Ergo, metrics used - /// must decrease as the pod count is increased, and vice-versa. See the individual - /// metric source types for more information about how each type of metric must - /// respond. If not set, the default metric will be set to 80% average CPU - /// utilization. - /// - /// - /// minReplicas is the lower limit for the number of replicas to which the - /// autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be - /// 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or - /// External metric is configured. Scaling is active as long as at least one metric - /// value is available. - /// - public V2beta2HorizontalPodAutoscalerSpec(int maxReplicas, V2beta2CrossVersionObjectReference scaleTargetRef, V2beta2HorizontalPodAutoscalerBehavior behavior = null, IList metrics = null, int? minReplicas = null) - { - Behavior = behavior; - MaxReplicas = maxReplicas; - Metrics = metrics; - MinReplicas = minReplicas; - ScaleTargetRef = scaleTargetRef; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// behavior configures the scaling behavior of the target in both Up and Down - /// directions (scaleUp and scaleDown fields respectively). If not set, the default - /// HPAScalingRules for scale up and scale down are used. - /// - [JsonProperty(PropertyName = "behavior")] - public V2beta2HorizontalPodAutoscalerBehavior Behavior { get; set; } - - /// - /// maxReplicas is the upper limit for the number of replicas to which the - /// autoscaler can scale up. It cannot be less that minReplicas. - /// - [JsonProperty(PropertyName = "maxReplicas")] - public int MaxReplicas { get; set; } - - /// - /// metrics contains the specifications for which to use to calculate the desired - /// replica count (the maximum replica count across all metrics will be used). The - /// desired replica count is calculated multiplying the ratio between the target - /// value and the current value by the current number of pods. Ergo, metrics used - /// must decrease as the pod count is increased, and vice-versa. See the individual - /// metric source types for more information about how each type of metric must - /// respond. If not set, the default metric will be set to 80% average CPU - /// utilization. - /// - [JsonProperty(PropertyName = "metrics")] - public IList Metrics { get; set; } - - /// - /// minReplicas is the lower limit for the number of replicas to which the - /// autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be - /// 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or - /// External metric is configured. Scaling is active as long as at least one metric - /// value is available. - /// - [JsonProperty(PropertyName = "minReplicas")] - public int? MinReplicas { get; set; } - - /// - /// scaleTargetRef points to the target resource to scale, and is used to the pods - /// for which metrics should be collected, as well as to actually change the replica - /// count. - /// - [JsonProperty(PropertyName = "scaleTargetRef")] - public V2beta2CrossVersionObjectReference ScaleTargetRef { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (ScaleTargetRef == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ScaleTargetRef"); - } - Behavior?.Validate(); - if (Metrics != null){ - foreach(var obj in Metrics) - { - obj.Validate(); - } - } - ScaleTargetRef?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta2HorizontalPodAutoscalerStatus.cs b/src/KubernetesClient/generated/Models/V2beta2HorizontalPodAutoscalerStatus.cs deleted file mode 100644 index 1e5191900..000000000 --- a/src/KubernetesClient/generated/Models/V2beta2HorizontalPodAutoscalerStatus.cs +++ /dev/null @@ -1,132 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// HorizontalPodAutoscalerStatus describes the current status of a horizontal pod - /// autoscaler. - /// - public partial class V2beta2HorizontalPodAutoscalerStatus - { - /// - /// Initializes a new instance of the V2beta2HorizontalPodAutoscalerStatus class. - /// - public V2beta2HorizontalPodAutoscalerStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta2HorizontalPodAutoscalerStatus class. - /// - /// - /// conditions is the set of conditions required for this autoscaler to scale its - /// target, and indicates whether or not those conditions are met. - /// - /// - /// currentReplicas is current number of replicas of pods managed by this - /// autoscaler, as last seen by the autoscaler. - /// - /// - /// desiredReplicas is the desired number of replicas of pods managed by this - /// autoscaler, as last calculated by the autoscaler. - /// - /// - /// currentMetrics is the last read state of the metrics used by this autoscaler. - /// - /// - /// lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of - /// pods, used by the autoscaler to control how often the number of pods is changed. - /// - /// - /// observedGeneration is the most recent generation observed by this autoscaler. - /// - public V2beta2HorizontalPodAutoscalerStatus(IList conditions, int currentReplicas, int desiredReplicas, IList currentMetrics = null, System.DateTime? lastScaleTime = null, long? observedGeneration = null) - { - Conditions = conditions; - CurrentMetrics = currentMetrics; - CurrentReplicas = currentReplicas; - DesiredReplicas = desiredReplicas; - LastScaleTime = lastScaleTime; - ObservedGeneration = observedGeneration; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// conditions is the set of conditions required for this autoscaler to scale its - /// target, and indicates whether or not those conditions are met. - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// currentMetrics is the last read state of the metrics used by this autoscaler. - /// - [JsonProperty(PropertyName = "currentMetrics")] - public IList CurrentMetrics { get; set; } - - /// - /// currentReplicas is current number of replicas of pods managed by this - /// autoscaler, as last seen by the autoscaler. - /// - [JsonProperty(PropertyName = "currentReplicas")] - public int CurrentReplicas { get; set; } - - /// - /// desiredReplicas is the desired number of replicas of pods managed by this - /// autoscaler, as last calculated by the autoscaler. - /// - [JsonProperty(PropertyName = "desiredReplicas")] - public int DesiredReplicas { get; set; } - - /// - /// lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of - /// pods, used by the autoscaler to control how often the number of pods is changed. - /// - [JsonProperty(PropertyName = "lastScaleTime")] - public System.DateTime? LastScaleTime { get; set; } - - /// - /// observedGeneration is the most recent generation observed by this autoscaler. - /// - [JsonProperty(PropertyName = "observedGeneration")] - public long? ObservedGeneration { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Conditions != null){ - foreach(var obj in Conditions) - { - obj.Validate(); - } - } - if (CurrentMetrics != null){ - foreach(var obj in CurrentMetrics) - { - obj.Validate(); - } - } - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta2MetricIdentifier.cs b/src/KubernetesClient/generated/Models/V2beta2MetricIdentifier.cs deleted file mode 100644 index 6bb0c0ed4..000000000 --- a/src/KubernetesClient/generated/Models/V2beta2MetricIdentifier.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// MetricIdentifier defines the name and optionally selector for a metric - /// - public partial class V2beta2MetricIdentifier - { - /// - /// Initializes a new instance of the V2beta2MetricIdentifier class. - /// - public V2beta2MetricIdentifier() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta2MetricIdentifier class. - /// - /// - /// name is the name of the given metric - /// - /// - /// selector is the string-encoded form of a standard kubernetes label selector for - /// the given metric When set, it is passed as an additional parameter to the - /// metrics server for more specific metrics scoping. When unset, just the - /// metricName will be used to gather metrics. - /// - public V2beta2MetricIdentifier(string name, V1LabelSelector selector = null) - { - Name = name; - Selector = selector; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// name is the name of the given metric - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// selector is the string-encoded form of a standard kubernetes label selector for - /// the given metric When set, it is passed as an additional parameter to the - /// metrics server for more specific metrics scoping. When unset, just the - /// metricName will be used to gather metrics. - /// - [JsonProperty(PropertyName = "selector")] - public V1LabelSelector Selector { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - Selector?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta2MetricSpec.cs b/src/KubernetesClient/generated/Models/V2beta2MetricSpec.cs deleted file mode 100644 index b87b30301..000000000 --- a/src/KubernetesClient/generated/Models/V2beta2MetricSpec.cs +++ /dev/null @@ -1,153 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// MetricSpec specifies how to scale based on a single metric (only `type` and one - /// other matching field should be set at once). - /// - public partial class V2beta2MetricSpec - { - /// - /// Initializes a new instance of the V2beta2MetricSpec class. - /// - public V2beta2MetricSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta2MetricSpec class. - /// - /// - /// 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 - /// - /// - /// container resource refers to a resource metric (such as those specified in - /// requests and limits) known to Kubernetes describing a single container in each - /// pod of the current scale target (e.g. CPU or memory). Such metrics are built in - /// to Kubernetes, and have special scaling options on top of those available to - /// normal per-pod metrics using the "pods" source. This is an alpha feature and can - /// be enabled by the HPAContainerMetrics feature flag. - /// - /// - /// external refers to a global metric that is not associated with any Kubernetes - /// object. It allows autoscaling based on information coming from components - /// running outside of cluster (for example length of queue in cloud messaging - /// service, or QPS from loadbalancer running outside of cluster). - /// - /// - /// object refers to a metric describing a single kubernetes object (for example, - /// hits-per-second on an Ingress object). - /// - /// - /// pods refers to a metric describing each pod in the current scale target (for - /// example, transactions-processed-per-second). The values will be averaged - /// together before being compared to the target value. - /// - /// - /// resource refers to a resource metric (such as those specified in requests and - /// limits) known to Kubernetes describing each pod in the current scale target - /// (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special - /// scaling options on top of those available to normal per-pod metrics using the - /// "pods" source. - /// - public V2beta2MetricSpec(string type, V2beta2ContainerResourceMetricSource containerResource = null, V2beta2ExternalMetricSource external = null, V2beta2ObjectMetricSource objectProperty = null, V2beta2PodsMetricSource pods = null, V2beta2ResourceMetricSource resource = null) - { - ContainerResource = containerResource; - External = external; - ObjectProperty = objectProperty; - Pods = pods; - Resource = resource; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// container resource refers to a resource metric (such as those specified in - /// requests and limits) known to Kubernetes describing a single container in each - /// pod of the current scale target (e.g. CPU or memory). Such metrics are built in - /// to Kubernetes, and have special scaling options on top of those available to - /// normal per-pod metrics using the "pods" source. This is an alpha feature and can - /// be enabled by the HPAContainerMetrics feature flag. - /// - [JsonProperty(PropertyName = "containerResource")] - public V2beta2ContainerResourceMetricSource ContainerResource { get; set; } - - /// - /// external refers to a global metric that is not associated with any Kubernetes - /// object. It allows autoscaling based on information coming from components - /// running outside of cluster (for example length of queue in cloud messaging - /// service, or QPS from loadbalancer running outside of cluster). - /// - [JsonProperty(PropertyName = "external")] - public V2beta2ExternalMetricSource External { get; set; } - - /// - /// object refers to a metric describing a single kubernetes object (for example, - /// hits-per-second on an Ingress object). - /// - [JsonProperty(PropertyName = "object")] - public V2beta2ObjectMetricSource ObjectProperty { get; set; } - - /// - /// pods refers to a metric describing each pod in the current scale target (for - /// example, transactions-processed-per-second). The values will be averaged - /// together before being compared to the target value. - /// - [JsonProperty(PropertyName = "pods")] - public V2beta2PodsMetricSource Pods { get; set; } - - /// - /// resource refers to a resource metric (such as those specified in requests and - /// limits) known to Kubernetes describing each pod in the current scale target - /// (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special - /// scaling options on top of those available to normal per-pod metrics using the - /// "pods" source. - /// - [JsonProperty(PropertyName = "resource")] - public V2beta2ResourceMetricSource Resource { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - ContainerResource?.Validate(); - External?.Validate(); - ObjectProperty?.Validate(); - Pods?.Validate(); - Resource?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta2MetricStatus.cs b/src/KubernetesClient/generated/Models/V2beta2MetricStatus.cs deleted file mode 100644 index 99883510a..000000000 --- a/src/KubernetesClient/generated/Models/V2beta2MetricStatus.cs +++ /dev/null @@ -1,150 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// MetricStatus describes the last-read state of a single metric. - /// - public partial class V2beta2MetricStatus - { - /// - /// Initializes a new instance of the V2beta2MetricStatus class. - /// - public V2beta2MetricStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta2MetricStatus class. - /// - /// - /// 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 - /// - /// - /// container resource refers to a resource metric (such as those specified in - /// requests and limits) known to Kubernetes describing a single container in each - /// pod in the current scale target (e.g. CPU or memory). Such metrics are built in - /// to Kubernetes, and have special scaling options on top of those available to - /// normal per-pod metrics using the "pods" source. - /// - /// - /// external refers to a global metric that is not associated with any Kubernetes - /// object. It allows autoscaling based on information coming from components - /// running outside of cluster (for example length of queue in cloud messaging - /// service, or QPS from loadbalancer running outside of cluster). - /// - /// - /// object refers to a metric describing a single kubernetes object (for example, - /// hits-per-second on an Ingress object). - /// - /// - /// pods refers to a metric describing each pod in the current scale target (for - /// example, transactions-processed-per-second). The values will be averaged - /// together before being compared to the target value. - /// - /// - /// resource refers to a resource metric (such as those specified in requests and - /// limits) known to Kubernetes describing each pod in the current scale target - /// (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special - /// scaling options on top of those available to normal per-pod metrics using the - /// "pods" source. - /// - public V2beta2MetricStatus(string type, V2beta2ContainerResourceMetricStatus containerResource = null, V2beta2ExternalMetricStatus external = null, V2beta2ObjectMetricStatus objectProperty = null, V2beta2PodsMetricStatus pods = null, V2beta2ResourceMetricStatus resource = null) - { - ContainerResource = containerResource; - External = external; - ObjectProperty = objectProperty; - Pods = pods; - Resource = resource; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// container resource refers to a resource metric (such as those specified in - /// requests and limits) known to Kubernetes describing a single container in each - /// pod in the current scale target (e.g. CPU or memory). Such metrics are built in - /// to Kubernetes, and have special scaling options on top of those available to - /// normal per-pod metrics using the "pods" source. - /// - [JsonProperty(PropertyName = "containerResource")] - public V2beta2ContainerResourceMetricStatus ContainerResource { get; set; } - - /// - /// external refers to a global metric that is not associated with any Kubernetes - /// object. It allows autoscaling based on information coming from components - /// running outside of cluster (for example length of queue in cloud messaging - /// service, or QPS from loadbalancer running outside of cluster). - /// - [JsonProperty(PropertyName = "external")] - public V2beta2ExternalMetricStatus External { get; set; } - - /// - /// object refers to a metric describing a single kubernetes object (for example, - /// hits-per-second on an Ingress object). - /// - [JsonProperty(PropertyName = "object")] - public V2beta2ObjectMetricStatus ObjectProperty { get; set; } - - /// - /// pods refers to a metric describing each pod in the current scale target (for - /// example, transactions-processed-per-second). The values will be averaged - /// together before being compared to the target value. - /// - [JsonProperty(PropertyName = "pods")] - public V2beta2PodsMetricStatus Pods { get; set; } - - /// - /// resource refers to a resource metric (such as those specified in requests and - /// limits) known to Kubernetes describing each pod in the current scale target - /// (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special - /// scaling options on top of those available to normal per-pod metrics using the - /// "pods" source. - /// - [JsonProperty(PropertyName = "resource")] - public V2beta2ResourceMetricStatus Resource { get; set; } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - ContainerResource?.Validate(); - External?.Validate(); - ObjectProperty?.Validate(); - Pods?.Validate(); - Resource?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta2MetricTarget.cs b/src/KubernetesClient/generated/Models/V2beta2MetricTarget.cs deleted file mode 100644 index 85c9cbda8..000000000 --- a/src/KubernetesClient/generated/Models/V2beta2MetricTarget.cs +++ /dev/null @@ -1,100 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// MetricTarget defines the target value, average value, or average utilization of - /// a specific metric - /// - public partial class V2beta2MetricTarget - { - /// - /// Initializes a new instance of the V2beta2MetricTarget class. - /// - public V2beta2MetricTarget() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta2MetricTarget class. - /// - /// - /// type represents whether the metric type is Utilization, Value, or AverageValue - /// - /// - /// averageUtilization is the target value of the average of the resource metric - /// across all relevant pods, represented as a percentage of the requested value of - /// the resource for the pods. Currently only valid for Resource metric source type - /// - /// - /// averageValue is the target value of the average of the metric across all - /// relevant pods (as a quantity) - /// - /// - /// value is the target value of the metric (as a quantity). - /// - public V2beta2MetricTarget(string type, int? averageUtilization = null, ResourceQuantity averageValue = null, ResourceQuantity value = null) - { - AverageUtilization = averageUtilization; - AverageValue = averageValue; - Type = type; - Value = value; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// averageUtilization is the target value of the average of the resource metric - /// across all relevant pods, represented as a percentage of the requested value of - /// the resource for the pods. Currently only valid for Resource metric source type - /// - [JsonProperty(PropertyName = "averageUtilization")] - public int? AverageUtilization { get; set; } - - /// - /// averageValue is the target value of the average of the metric across all - /// relevant pods (as a quantity) - /// - [JsonProperty(PropertyName = "averageValue")] - public ResourceQuantity AverageValue { get; set; } - - /// - /// type represents whether the metric type is Utilization, Value, or AverageValue - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// value is the target value of the metric (as a quantity). - /// - [JsonProperty(PropertyName = "value")] - public ResourceQuantity Value { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - AverageValue?.Validate(); - Value?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta2MetricValueStatus.cs b/src/KubernetesClient/generated/Models/V2beta2MetricValueStatus.cs deleted file mode 100644 index 3580c07fd..000000000 --- a/src/KubernetesClient/generated/Models/V2beta2MetricValueStatus.cs +++ /dev/null @@ -1,89 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// MetricValueStatus holds the current value for a metric - /// - public partial class V2beta2MetricValueStatus - { - /// - /// Initializes a new instance of the V2beta2MetricValueStatus class. - /// - public V2beta2MetricValueStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta2MetricValueStatus class. - /// - /// - /// currentAverageUtilization is the current value of the average of the resource - /// metric across all relevant pods, represented as a percentage of the requested - /// value of the resource for the pods. - /// - /// - /// averageValue is the current value of the average of the metric across all - /// relevant pods (as a quantity) - /// - /// - /// value is the current value of the metric (as a quantity). - /// - public V2beta2MetricValueStatus(int? averageUtilization = null, ResourceQuantity averageValue = null, ResourceQuantity value = null) - { - AverageUtilization = averageUtilization; - AverageValue = averageValue; - Value = value; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// currentAverageUtilization is the current value of the average of the resource - /// metric across all relevant pods, represented as a percentage of the requested - /// value of the resource for the pods. - /// - [JsonProperty(PropertyName = "averageUtilization")] - public int? AverageUtilization { get; set; } - - /// - /// averageValue is the current value of the average of the metric across all - /// relevant pods (as a quantity) - /// - [JsonProperty(PropertyName = "averageValue")] - public ResourceQuantity AverageValue { get; set; } - - /// - /// value is the current value of the metric (as a quantity). - /// - [JsonProperty(PropertyName = "value")] - public ResourceQuantity Value { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - AverageValue?.Validate(); - Value?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta2ObjectMetricSource.cs b/src/KubernetesClient/generated/Models/V2beta2ObjectMetricSource.cs deleted file mode 100644 index 1e5d13c7f..000000000 --- a/src/KubernetesClient/generated/Models/V2beta2ObjectMetricSource.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ObjectMetricSource indicates how to scale on a metric describing a kubernetes - /// object (for example, hits-per-second on an Ingress object). - /// - public partial class V2beta2ObjectMetricSource - { - /// - /// Initializes a new instance of the V2beta2ObjectMetricSource class. - /// - public V2beta2ObjectMetricSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta2ObjectMetricSource class. - /// - /// - /// - /// - /// - /// metric identifies the target metric by name and selector - /// - /// - /// target specifies the target value for the given metric - /// - public V2beta2ObjectMetricSource(V2beta2CrossVersionObjectReference describedObject, V2beta2MetricIdentifier metric, V2beta2MetricTarget target) - { - DescribedObject = describedObject; - Metric = metric; - Target = target; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// - /// - [JsonProperty(PropertyName = "describedObject")] - public V2beta2CrossVersionObjectReference DescribedObject { get; set; } - - /// - /// metric identifies the target metric by name and selector - /// - [JsonProperty(PropertyName = "metric")] - public V2beta2MetricIdentifier Metric { get; set; } - - /// - /// target specifies the target value for the given metric - /// - [JsonProperty(PropertyName = "target")] - public V2beta2MetricTarget Target { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (DescribedObject == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "DescribedObject"); - } - if (Metric == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Metric"); - } - if (Target == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Target"); - } - DescribedObject?.Validate(); - Metric?.Validate(); - Target?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta2ObjectMetricStatus.cs b/src/KubernetesClient/generated/Models/V2beta2ObjectMetricStatus.cs deleted file mode 100644 index e9e4ac44f..000000000 --- a/src/KubernetesClient/generated/Models/V2beta2ObjectMetricStatus.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ObjectMetricStatus indicates the current value of a metric describing a - /// kubernetes object (for example, hits-per-second on an Ingress object). - /// - public partial class V2beta2ObjectMetricStatus - { - /// - /// Initializes a new instance of the V2beta2ObjectMetricStatus class. - /// - public V2beta2ObjectMetricStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta2ObjectMetricStatus class. - /// - /// - /// current contains the current value for the given metric - /// - /// - /// - /// - /// - /// metric identifies the target metric by name and selector - /// - public V2beta2ObjectMetricStatus(V2beta2MetricValueStatus current, V2beta2CrossVersionObjectReference describedObject, V2beta2MetricIdentifier metric) - { - Current = current; - DescribedObject = describedObject; - Metric = metric; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// current contains the current value for the given metric - /// - [JsonProperty(PropertyName = "current")] - public V2beta2MetricValueStatus Current { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "describedObject")] - public V2beta2CrossVersionObjectReference DescribedObject { get; set; } - - /// - /// metric identifies the target metric by name and selector - /// - [JsonProperty(PropertyName = "metric")] - public V2beta2MetricIdentifier Metric { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Current == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Current"); - } - if (DescribedObject == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "DescribedObject"); - } - if (Metric == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Metric"); - } - Current?.Validate(); - DescribedObject?.Validate(); - Metric?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta2PodsMetricSource.cs b/src/KubernetesClient/generated/Models/V2beta2PodsMetricSource.cs deleted file mode 100644 index 784e37a24..000000000 --- a/src/KubernetesClient/generated/Models/V2beta2PodsMetricSource.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodsMetricSource indicates how to scale on a metric describing each pod in the - /// current scale target (for example, transactions-processed-per-second). The - /// values will be averaged together before being compared to the target value. - /// - public partial class V2beta2PodsMetricSource - { - /// - /// Initializes a new instance of the V2beta2PodsMetricSource class. - /// - public V2beta2PodsMetricSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta2PodsMetricSource class. - /// - /// - /// metric identifies the target metric by name and selector - /// - /// - /// target specifies the target value for the given metric - /// - public V2beta2PodsMetricSource(V2beta2MetricIdentifier metric, V2beta2MetricTarget target) - { - Metric = metric; - Target = target; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// metric identifies the target metric by name and selector - /// - [JsonProperty(PropertyName = "metric")] - public V2beta2MetricIdentifier Metric { get; set; } - - /// - /// target specifies the target value for the given metric - /// - [JsonProperty(PropertyName = "target")] - public V2beta2MetricTarget Target { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Metric == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Metric"); - } - if (Target == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Target"); - } - Metric?.Validate(); - Target?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta2PodsMetricStatus.cs b/src/KubernetesClient/generated/Models/V2beta2PodsMetricStatus.cs deleted file mode 100644 index 4715347de..000000000 --- a/src/KubernetesClient/generated/Models/V2beta2PodsMetricStatus.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// PodsMetricStatus indicates the current value of a metric describing each pod in - /// the current scale target (for example, transactions-processed-per-second). - /// - public partial class V2beta2PodsMetricStatus - { - /// - /// Initializes a new instance of the V2beta2PodsMetricStatus class. - /// - public V2beta2PodsMetricStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta2PodsMetricStatus class. - /// - /// - /// current contains the current value for the given metric - /// - /// - /// metric identifies the target metric by name and selector - /// - public V2beta2PodsMetricStatus(V2beta2MetricValueStatus current, V2beta2MetricIdentifier metric) - { - Current = current; - Metric = metric; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// current contains the current value for the given metric - /// - [JsonProperty(PropertyName = "current")] - public V2beta2MetricValueStatus Current { get; set; } - - /// - /// metric identifies the target metric by name and selector - /// - [JsonProperty(PropertyName = "metric")] - public V2beta2MetricIdentifier Metric { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Current == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Current"); - } - if (Metric == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Metric"); - } - Current?.Validate(); - Metric?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta2ResourceMetricSource.cs b/src/KubernetesClient/generated/Models/V2beta2ResourceMetricSource.cs deleted file mode 100644 index f6d441591..000000000 --- a/src/KubernetesClient/generated/Models/V2beta2ResourceMetricSource.cs +++ /dev/null @@ -1,81 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ResourceMetricSource indicates how to scale on a resource metric known to - /// Kubernetes, as specified in requests and limits, describing each pod in the - /// current scale target (e.g. CPU or memory). The values will be averaged together - /// before being compared to the target. Such metrics are built in to Kubernetes, - /// and have special scaling options on top of those available to normal per-pod - /// metrics using the "pods" source. Only one "target" type should be set. - /// - public partial class V2beta2ResourceMetricSource - { - /// - /// Initializes a new instance of the V2beta2ResourceMetricSource class. - /// - public V2beta2ResourceMetricSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta2ResourceMetricSource class. - /// - /// - /// name is the name of the resource in question. - /// - /// - /// target specifies the target value for the given metric - /// - public V2beta2ResourceMetricSource(string name, V2beta2MetricTarget target) - { - Name = name; - Target = target; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// name is the name of the resource in question. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// target specifies the target value for the given metric - /// - [JsonProperty(PropertyName = "target")] - public V2beta2MetricTarget Target { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Target == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Target"); - } - Target?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/V2beta2ResourceMetricStatus.cs b/src/KubernetesClient/generated/Models/V2beta2ResourceMetricStatus.cs deleted file mode 100644 index 9a0145560..000000000 --- a/src/KubernetesClient/generated/Models/V2beta2ResourceMetricStatus.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// ResourceMetricStatus indicates the current value of a resource metric known to - /// Kubernetes, as specified in requests and limits, describing each pod in the - /// current scale target (e.g. CPU or memory). Such metrics are built in to - /// Kubernetes, and have special scaling options on top of those available to normal - /// per-pod metrics using the "pods" source. - /// - public partial class V2beta2ResourceMetricStatus - { - /// - /// Initializes a new instance of the V2beta2ResourceMetricStatus class. - /// - public V2beta2ResourceMetricStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2beta2ResourceMetricStatus class. - /// - /// - /// current contains the current value for the given metric - /// - /// - /// Name is the name of the resource in question. - /// - public V2beta2ResourceMetricStatus(V2beta2MetricValueStatus current, string name) - { - Current = current; - Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// current contains the current value for the given metric - /// - [JsonProperty(PropertyName = "current")] - public V2beta2MetricValueStatus Current { get; set; } - - /// - /// Name is the name of the resource in question. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Current == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Current"); - } - Current?.Validate(); - } - } -} diff --git a/src/KubernetesClient/generated/Models/VersionInfo.cs b/src/KubernetesClient/generated/Models/VersionInfo.cs deleted file mode 100644 index 9a1ef1743..000000000 --- a/src/KubernetesClient/generated/Models/VersionInfo.cs +++ /dev/null @@ -1,142 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Collections; - using System.Linq; - - /// - /// Info contains versioning information. how we'll want to distribute that - /// information. - /// - public partial class VersionInfo - { - /// - /// Initializes a new instance of the VersionInfo class. - /// - public VersionInfo() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the VersionInfo class. - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - public VersionInfo(string buildDate, string compiler, string gitCommit, string gitTreeState, string gitVersion, string goVersion, string major, string minor, string platform) - { - BuildDate = buildDate; - Compiler = compiler; - GitCommit = gitCommit; - GitTreeState = gitTreeState; - GitVersion = gitVersion; - GoVersion = goVersion; - Major = major; - Minor = minor; - Platform = platform; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// - /// - [JsonProperty(PropertyName = "buildDate")] - public string BuildDate { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "compiler")] - public string Compiler { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "gitCommit")] - public string GitCommit { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "gitTreeState")] - public string GitTreeState { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "gitVersion")] - public string GitVersion { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "goVersion")] - public string GoVersion { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "major")] - public string Major { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "minor")] - public string Minor { get; set; } - - /// - /// - /// - [JsonProperty(PropertyName = "platform")] - public string Platform { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/KubernetesClient/generated/VersionConverter.cs b/src/KubernetesClient/generated/VersionConverter.cs deleted file mode 100644 index ebe770c85..000000000 --- a/src/KubernetesClient/generated/VersionConverter.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// -using AutoMapper; -using k8s.Models; - -namespace k8s.Versioning -{ - - - public static partial class VersionConverter - { - private static void AutoConfigurations(IMapperConfigurationExpression cfg) - { - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - } - } - - -} diff --git a/src/KubernetesClient/generated/swagger.json.unprocessed b/src/KubernetesClient/generated/swagger.json.unprocessed deleted file mode 100644 index 8a2242ff1..000000000 --- a/src/KubernetesClient/generated/swagger.json.unprocessed +++ /dev/null @@ -1,90274 +0,0 @@ -{ - "definitions": { - "io.k8s.api.admissionregistration.v1.MutatingWebhook": { - "description": "MutatingWebhook describes an admission webhook and the resources and operations it applies to.", - "properties": { - "admissionReviewVersions": { - "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.", - "items": { - "type": "string" - }, - "type": "array" - }, - "clientConfig": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.WebhookClientConfig", - "description": "ClientConfig defines how to communicate with the hook. Required" - }, - "failurePolicy": { - "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.", - "type": "string" - }, - "matchPolicy": { - "description": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- 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.\n\n- 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.\n\nDefaults 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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." - }, - "objectSelector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." - }, - "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\".\n\nNever: the webhook will not be called more than once in a single admission evaluation.\n\nIfNeeded: 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.\n\nDefaults 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": "#/definitions/io.k8s.api.admissionregistration.v1.RuleWithOperations" - }, - "type": "array" - }, - "sideEffects": { - "description": "SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.", - "type": "string" - }, - "timeoutSeconds": { - "description": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "name", - "clientConfig", - "sideEffects", - "admissionReviewVersions" - ], - "type": "object" - }, - "io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration": { - "description": "MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." - }, - "webhooks": { - "description": "Webhooks is a list of webhooks and the affected resources and operations.", - "items": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhook" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "admissionregistration.k8s.io", - "kind": "MutatingWebhookConfiguration", - "version": "v1" - } - ] - }, - "io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList": { - "description": "MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.", - "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": "#/definitions/io.k8s.api.admissionregistration.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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "admissionregistration.k8s.io", - "kind": "MutatingWebhookConfigurationList", - "version": "v1" - } - ] - }, - "io.k8s.api.admissionregistration.v1.RuleWithOperations": { - "description": "RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.", - "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" - }, - "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" - }, - "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" - }, - "resources": { - "description": "Resources is a list of resources this rule applies to.\n\nFor 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.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", - "items": { - "type": "string" - }, - "type": "array" - }, - "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" - }, - "io.k8s.api.admissionregistration.v1.ServiceReference": { - "description": "ServiceReference holds a reference to Service.legacy.k8s.io", - "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": [ - "namespace", - "name" - ], - "type": "object" - }, - "io.k8s.api.admissionregistration.v1.ValidatingWebhook": { - "description": "ValidatingWebhook describes an admission webhook and the resources and operations it applies to.", - "properties": { - "admissionReviewVersions": { - "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.", - "items": { - "type": "string" - }, - "type": "array" - }, - "clientConfig": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.WebhookClientConfig", - "description": "ClientConfig defines how to communicate with the hook. Required" - }, - "failurePolicy": { - "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.", - "type": "string" - }, - "matchPolicy": { - "description": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- 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.\n\n- 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.\n\nDefaults 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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." - }, - "objectSelector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." - }, - "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": "#/definitions/io.k8s.api.admissionregistration.v1.RuleWithOperations" - }, - "type": "array" - }, - "sideEffects": { - "description": "SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.", - "type": "string" - }, - "timeoutSeconds": { - "description": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "name", - "clientConfig", - "sideEffects", - "admissionReviewVersions" - ], - "type": "object" - }, - "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration": { - "description": "ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." - }, - "webhooks": { - "description": "Webhooks is a list of webhooks and the affected resources and operations.", - "items": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhook" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "admissionregistration.k8s.io", - "kind": "ValidatingWebhookConfiguration", - "version": "v1" - } - ] - }, - "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList": { - "description": "ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.", - "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": "#/definitions/io.k8s.api.admissionregistration.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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "admissionregistration.k8s.io", - "kind": "ValidatingWebhookConfigurationList", - "version": "v1" - } - ] - }, - "io.k8s.api.admissionregistration.v1.WebhookClientConfig": { - "description": "WebhookClientConfig contains the information to make a TLS connection with the webhook", - "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", - "type": "string" - }, - "service": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ServiceReference", - "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." - }, - "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.\n\nThe `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.\n\nPlease 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.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA 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.\n\nAttempting 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" - }, - "io.k8s.api.apiserverinternal.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.", - "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" - } - }, - "type": "object" - }, - "io.k8s.api.apiserverinternal.v1alpha1.StorageVersion": { - "description": "\n Storage version of a specific resource.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "The name is .." - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionSpec", - "description": "Spec is an empty spec. It is here to comply with Kubernetes API style." - }, - "status": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionStatus", - "description": "API server instances report the version they can decode and the version they encode objects to when persisting objects in the backend." - } - }, - "required": [ - "spec", - "status" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" - } - ] - }, - "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionCondition": { - "description": "Describes the state of the storageVersion at a certain point.", - "properties": { - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Last time the condition transitioned from one status to another." - }, - "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": [ - "type", - "status", - "reason" - ], - "type": "object" - }, - "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList": { - "description": "A list of StorageVersions.", - "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": "#/definitions/io.k8s.api.apiserverinternal.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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersionList", - "version": "v1alpha1" - } - ] - }, - "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionSpec": { - "description": "StorageVersionSpec is an empty spec.", - "type": "object" - }, - "io.k8s.api.apiserverinternal.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.", - "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": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionCondition" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" - }, - "storageVersions": { - "description": "The reported versions per API server instance.", - "items": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.ServerStorageVersion" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "apiServerID" - ], - "x-kubernetes-list-type": "map" - } - }, - "type": "object" - }, - "io.k8s.api.apps.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.", - "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": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.runtime.RawExtension", - "description": "Data is the serialized representation of the state." - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "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" - } - ] - }, - "io.k8s.api.apps.v1.ControllerRevisionList": { - "description": "ControllerRevisionList is a resource containing a list of ControllerRevision objects.", - "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": "#/definitions/io.k8s.api.apps.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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "ControllerRevisionList", - "version": "v1" - } - ] - }, - "io.k8s.api.apps.v1.DaemonSet": { - "description": "DaemonSet represents the configuration of a daemon set.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSetSpec", - "description": "The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSetStatus", - "description": "The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" - } - ] - }, - "io.k8s.api.apps.v1.DaemonSetCondition": { - "description": "DaemonSetCondition describes the state of a DaemonSet at a certain point.", - "properties": { - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Last time the condition transitioned from one status to another." - }, - "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 DaemonSet condition.", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "io.k8s.api.apps.v1.DaemonSetList": { - "description": "DaemonSetList is a collection of daemon sets.", - "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": "A list of daemon sets.", - "items": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "DaemonSetList", - "version": "v1" - } - ] - }, - "io.k8s.api.apps.v1.DaemonSetSpec": { - "description": "DaemonSetSpec is the specification of a daemon set.", - "properties": { - "minReadySeconds": { - "description": "The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).", - "format": "int32", - "type": "integer" - }, - "revisionHistoryLimit": { - "description": "The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.", - "format": "int32", - "type": "integer" - }, - "selector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" - }, - "template": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec", - "description": "An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template" - }, - "updateStrategy": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSetUpdateStrategy", - "description": "An update strategy to replace existing DaemonSet pods with new pods." - } - }, - "required": [ - "selector", - "template" - ], - "type": "object" - }, - "io.k8s.api.apps.v1.DaemonSetStatus": { - "description": "DaemonSetStatus represents the current status of a daemon set.", - "properties": { - "collisionCount": { - "description": "Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.", - "format": "int32", - "type": "integer" - }, - "conditions": { - "description": "Represents the latest available observations of a DaemonSet's current state.", - "items": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSetCondition" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "currentNumberScheduled": { - "description": "The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", - "format": "int32", - "type": "integer" - }, - "desiredNumberScheduled": { - "description": "The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", - "format": "int32", - "type": "integer" - }, - "numberAvailable": { - "description": "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)", - "format": "int32", - "type": "integer" - }, - "numberMisscheduled": { - "description": "The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", - "format": "int32", - "type": "integer" - }, - "numberReady": { - "description": "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready.", - "format": "int32", - "type": "integer" - }, - "numberUnavailable": { - "description": "The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)", - "format": "int32", - "type": "integer" - }, - "observedGeneration": { - "description": "The most recent generation observed by the daemon set controller.", - "format": "int64", - "type": "integer" - }, - "updatedNumberScheduled": { - "description": "The total number of nodes that are running updated daemon pod", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "currentNumberScheduled", - "numberMisscheduled", - "desiredNumberScheduled", - "numberReady" - ], - "type": "object" - }, - "io.k8s.api.apps.v1.DaemonSetUpdateStrategy": { - "description": "DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.", - "properties": { - "rollingUpdate": { - "$ref": "#/definitions/io.k8s.api.apps.v1.RollingUpdateDaemonSet", - "description": "Rolling update config params. Present only if type = \"RollingUpdate\"." - }, - "type": { - "description": "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.apps.v1.Deployment": { - "description": "Deployment enables declarative updates for Pods and ReplicaSets.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DeploymentSpec", - "description": "Specification of the desired behavior of the Deployment." - }, - "status": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DeploymentStatus", - "description": "Most recently observed status of the Deployment." - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "Deployment", - "version": "v1" - } - ] - }, - "io.k8s.api.apps.v1.DeploymentCondition": { - "description": "DeploymentCondition describes the state of a deployment at a certain point.", - "properties": { - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Last time the condition transitioned from one status to another." - }, - "lastUpdateTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "The last time this condition was updated." - }, - "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 deployment condition.", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "io.k8s.api.apps.v1.DeploymentList": { - "description": "DeploymentList is a list of Deployments.", - "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 Deployments.", - "items": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata." - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "DeploymentList", - "version": "v1" - } - ] - }, - "io.k8s.api.apps.v1.DeploymentSpec": { - "description": "DeploymentSpec is the specification of the desired behavior of the Deployment.", - "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" - }, - "paused": { - "description": "Indicates that the deployment is paused.", - "type": "boolean" - }, - "progressDeadlineSeconds": { - "description": "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.", - "format": "int32", - "type": "integer" - }, - "replicas": { - "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", - "format": "int32", - "type": "integer" - }, - "revisionHistoryLimit": { - "description": "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.", - "format": "int32", - "type": "integer" - }, - "selector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels." - }, - "strategy": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DeploymentStrategy", - "description": "The deployment strategy to use to replace existing pods with new ones.", - "x-kubernetes-patch-strategy": "retainKeys" - }, - "template": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec", - "description": "Template describes the pods that will be created." - } - }, - "required": [ - "selector", - "template" - ], - "type": "object" - }, - "io.k8s.api.apps.v1.DeploymentStatus": { - "description": "DeploymentStatus is the most recently observed status of the Deployment.", - "properties": { - "availableReplicas": { - "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", - "format": "int32", - "type": "integer" - }, - "collisionCount": { - "description": "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.", - "format": "int32", - "type": "integer" - }, - "conditions": { - "description": "Represents the latest available observations of a deployment's current state.", - "items": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DeploymentCondition" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "observedGeneration": { - "description": "The generation observed by the deployment controller.", - "format": "int64", - "type": "integer" - }, - "readyReplicas": { - "description": "Total number of ready pods targeted by this deployment.", - "format": "int32", - "type": "integer" - }, - "replicas": { - "description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", - "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 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.", - "format": "int32", - "type": "integer" - }, - "updatedReplicas": { - "description": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "io.k8s.api.apps.v1.DeploymentStrategy": { - "description": "DeploymentStrategy describes how to replace existing pods with new ones.", - "properties": { - "rollingUpdate": { - "$ref": "#/definitions/io.k8s.api.apps.v1.RollingUpdateDeployment", - "description": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate." - }, - "type": { - "description": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.apps.v1.ReplicaSet": { - "description": "ReplicaSet ensures that a specified number of pod replicas are running at any given time.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSetSpec", - "description": "Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSetStatus", - "description": "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1" - } - ] - }, - "io.k8s.api.apps.v1.ReplicaSetCondition": { - "description": "ReplicaSetCondition describes the state of a replica set at a certain point.", - "properties": { - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "The last time the condition transitioned from one status to another." - }, - "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 replica set condition.", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "io.k8s.api.apps.v1.ReplicaSetList": { - "description": "ReplicaSetList is a collection of ReplicaSets.", - "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 ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", - "items": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "ReplicaSetList", - "version": "v1" - } - ] - }, - "io.k8s.api.apps.v1.ReplicaSetSpec": { - "description": "ReplicaSetSpec is the specification of a ReplicaSet.", - "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": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" - }, - "template": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec", - "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template" - } - }, - "required": [ - "selector" - ], - "type": "object" - }, - "io.k8s.api.apps.v1.ReplicaSetStatus": { - "description": "ReplicaSetStatus represents the current status of a ReplicaSet.", - "properties": { - "availableReplicas": { - "description": "The number of available replicas (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": "#/definitions/io.k8s.api.apps.v1.ReplicaSetCondition" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "fullyLabeledReplicas": { - "description": "The number of pods that have labels matching the labels of the pod template of the replicaset.", - "format": "int32", - "type": "integer" - }, - "observedGeneration": { - "description": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.", - "format": "int64", - "type": "integer" - }, - "readyReplicas": { - "description": "The number of ready replicas for this replica set.", - "format": "int32", - "type": "integer" - }, - "replicas": { - "description": "Replicas is the most recently oberved 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" - }, - "io.k8s.api.apps.v1.RollingUpdateDaemonSet": { - "description": "Spec to control the desired behavior of daemon set rolling update.", - "properties": { - "maxSurge": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", - "description": "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate." - }, - "maxUnavailable": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", - "description": "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update." - } - }, - "type": "object" - }, - "io.k8s.api.apps.v1.RollingUpdateDeployment": { - "description": "Spec to control the desired behavior of rolling update.", - "properties": { - "maxSurge": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", - "description": "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods." - }, - "maxUnavailable": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", - "description": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods." - } - }, - "type": "object" - }, - "io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy": { - "description": "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.", - "properties": { - "partition": { - "description": "Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "io.k8s.api.apps.v1.StatefulSet": { - "description": "StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSetSpec", - "description": "Spec defines the desired identities of pods in this set." - }, - "status": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSetStatus", - "description": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time." - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "StatefulSet", - "version": "v1" - } - ] - }, - "io.k8s.api.apps.v1.StatefulSetCondition": { - "description": "StatefulSetCondition describes the state of a statefulset at a certain point.", - "properties": { - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Last time the condition transitioned from one status to another." - }, - "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 statefulset condition.", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "io.k8s.api.apps.v1.StatefulSetList": { - "description": "StatefulSetList is a collection of StatefulSets.", - "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 stateful sets.", - "items": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "StatefulSetList", - "version": "v1" - } - ] - }, - "io.k8s.api.apps.v1.StatefulSetSpec": { - "description": "A StatefulSetSpec is the specification of a StatefulSet.", - "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) This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate.", - "format": "int32", - "type": "integer" - }, - "podManagementPolicy": { - "description": "podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.", - "type": "string" - }, - "replicas": { - "description": "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.", - "format": "int32", - "type": "integer" - }, - "revisionHistoryLimit": { - "description": "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.", - "format": "int32", - "type": "integer" - }, - "selector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" - }, - "serviceName": { - "description": "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.", - "type": "string" - }, - "template": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec", - "description": "template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet." - }, - "updateStrategy": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSetUpdateStrategy", - "description": "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template." - }, - "volumeClaimTemplates": { - "description": "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.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - }, - "type": "array" - } - }, - "required": [ - "selector", - "template", - "serviceName" - ], - "type": "object" - }, - "io.k8s.api.apps.v1.StatefulSetStatus": { - "description": "StatefulSetStatus represents the current state of a StatefulSet.", - "properties": { - "availableReplicas": { - "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate. Remove omitempty when graduating to beta", - "format": "int32", - "type": "integer" - }, - "collisionCount": { - "description": "collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.", - "format": "int32", - "type": "integer" - }, - "conditions": { - "description": "Represents the latest available observations of a statefulset's current state.", - "items": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSetCondition" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "currentReplicas": { - "description": "currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.", - "format": "int32", - "type": "integer" - }, - "currentRevision": { - "description": "currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).", - "type": "string" - }, - "observedGeneration": { - "description": "observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server.", - "format": "int64", - "type": "integer" - }, - "readyReplicas": { - "description": "readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition.", - "format": "int32", - "type": "integer" - }, - "replicas": { - "description": "replicas is the number of Pods created by the StatefulSet controller.", - "format": "int32", - "type": "integer" - }, - "updateRevision": { - "description": "updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)", - "type": "string" - }, - "updatedReplicas": { - "description": "updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "replicas" - ], - "type": "object" - }, - "io.k8s.api.apps.v1.StatefulSetUpdateStrategy": { - "description": "StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.", - "properties": { - "rollingUpdate": { - "$ref": "#/definitions/io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy", - "description": "RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType." - }, - "type": { - "description": "Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.authentication.v1.BoundObjectReference": { - "description": "BoundObjectReference is a reference to an object that a token is bound to.", - "properties": { - "apiVersion": { - "description": "API version of the referent.", - "type": "string" - }, - "kind": { - "description": "Kind of the referent. Valid kinds are 'Pod' and 'Secret'.", - "type": "string" - }, - "name": { - "description": "Name of the referent.", - "type": "string" - }, - "uid": { - "description": "UID of the referent.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.authentication.v1.TokenRequest": { - "description": "TokenRequest requests a token for a given service account.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenRequestSpec", - "description": "Spec holds information about the request being evaluated" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenRequestStatus", - "description": "Status is filled in by the server and indicates whether the token can be authenticated." - } - }, - "required": [ - "spec" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "authentication.k8s.io", - "kind": "TokenRequest", - "version": "v1" - } - ] - }, - "io.k8s.api.authentication.v1.TokenRequestSpec": { - "description": "TokenRequestSpec contains client provided parameters of a token request.", - "properties": { - "audiences": { - "description": "Audiences are the intendend audiences of the token. A recipient of a token must identitfy themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.", - "items": { - "type": "string" - }, - "type": "array" - }, - "boundObjectRef": { - "$ref": "#/definitions/io.k8s.api.authentication.v1.BoundObjectReference", - "description": "BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation." - }, - "expirationSeconds": { - "description": "ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "audiences" - ], - "type": "object" - }, - "io.k8s.api.authentication.v1.TokenRequestStatus": { - "description": "TokenRequestStatus is the result of a token request.", - "properties": { - "expirationTimestamp": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "ExpirationTimestamp is the time of expiration of the returned token." - }, - "token": { - "description": "Token is the opaque bearer token.", - "type": "string" - } - }, - "required": [ - "token", - "expirationTimestamp" - ], - "type": "object" - }, - "io.k8s.api.authentication.v1.TokenReview": { - "description": "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReviewSpec", - "description": "Spec holds information about the request being evaluated" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReviewStatus", - "description": "Status is filled in by the server and indicates whether the request can be authenticated." - } - }, - "required": [ - "spec" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "authentication.k8s.io", - "kind": "TokenReview", - "version": "v1" - } - ] - }, - "io.k8s.api.authentication.v1.TokenReviewSpec": { - "description": "TokenReviewSpec is a description of the token authentication request.", - "properties": { - "audiences": { - "description": "Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.", - "items": { - "type": "string" - }, - "type": "array" - }, - "token": { - "description": "Token is the opaque bearer token.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.authentication.v1.TokenReviewStatus": { - "description": "TokenReviewStatus is the result of the token authentication request.", - "properties": { - "audiences": { - "description": "Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server.", - "items": { - "type": "string" - }, - "type": "array" - }, - "authenticated": { - "description": "Authenticated indicates that the token was associated with a known user.", - "type": "boolean" - }, - "error": { - "description": "Error indicates that the token couldn't be checked", - "type": "string" - }, - "user": { - "$ref": "#/definitions/io.k8s.api.authentication.v1.UserInfo", - "description": "User is the UserInfo associated with the provided token." - } - }, - "type": "object" - }, - "io.k8s.api.authentication.v1.UserInfo": { - "description": "UserInfo holds the information about the user needed to implement the user.Info interface.", - "properties": { - "extra": { - "additionalProperties": { - "items": { - "type": "string" - }, - "type": "array" - }, - "description": "Any additional information provided by the authenticator.", - "type": "object" - }, - "groups": { - "description": "The names of groups this user is a part of.", - "items": { - "type": "string" - }, - "type": "array" - }, - "uid": { - "description": "A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.", - "type": "string" - }, - "username": { - "description": "The name that uniquely identifies this user among all active users.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.authorization.v1.LocalSubjectAccessReview": { - "description": "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReviewSpec", - "description": "Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted." - }, - "status": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReviewStatus", - "description": "Status is filled in by the server and indicates whether the request is allowed or not" - } - }, - "required": [ - "spec" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "authorization.k8s.io", - "kind": "LocalSubjectAccessReview", - "version": "v1" - } - ] - }, - "io.k8s.api.authorization.v1.NonResourceAttributes": { - "description": "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface", - "properties": { - "path": { - "description": "Path is the URL path of the request", - "type": "string" - }, - "verb": { - "description": "Verb is the standard HTTP verb", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.authorization.v1.NonResourceRule": { - "description": "NonResourceRule holds information that describes a rule for the non-resource", - "properties": { - "nonResourceURLs": { - "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. \"*\" means all.", - "items": { - "type": "string" - }, - "type": "array" - }, - "verbs": { - "description": "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "verbs" - ], - "type": "object" - }, - "io.k8s.api.authorization.v1.ResourceAttributes": { - "description": "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface", - "properties": { - "group": { - "description": "Group is the API Group of the Resource. \"*\" means all.", - "type": "string" - }, - "name": { - "description": "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.", - "type": "string" - }, - "namespace": { - "description": "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", - "type": "string" - }, - "resource": { - "description": "Resource is one of the existing resource types. \"*\" means all.", - "type": "string" - }, - "subresource": { - "description": "Subresource is one of the existing resource types. \"\" means none.", - "type": "string" - }, - "verb": { - "description": "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", - "type": "string" - }, - "version": { - "description": "Version is the API Version of the Resource. \"*\" means all.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.authorization.v1.ResourceRule": { - "description": "ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", - "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. \"*\" means all.", - "items": { - "type": "string" - }, - "type": "array" - }, - "resourceNames": { - "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.", - "items": { - "type": "string" - }, - "type": "array" - }, - "resources": { - "description": "Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups.\n \"*/foo\" represents the subresource 'foo' for all resources in the specified apiGroups.", - "items": { - "type": "string" - }, - "type": "array" - }, - "verbs": { - "description": "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "verbs" - ], - "type": "object" - }, - "io.k8s.api.authorization.v1.SelfSubjectAccessReview": { - "description": "SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec", - "description": "Spec holds information about the request being evaluated. user and groups must be empty" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReviewStatus", - "description": "Status is filled in by the server and indicates whether the request is allowed or not" - } - }, - "required": [ - "spec" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "authorization.k8s.io", - "kind": "SelfSubjectAccessReview", - "version": "v1" - } - ] - }, - "io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec": { - "description": "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", - "properties": { - "nonResourceAttributes": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.NonResourceAttributes", - "description": "NonResourceAttributes describes information for a non-resource access request" - }, - "resourceAttributes": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.ResourceAttributes", - "description": "ResourceAuthorizationAttributes describes information for a resource access request" - } - }, - "type": "object" - }, - "io.k8s.api.authorization.v1.SelfSubjectRulesReview": { - "description": "SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectRulesReviewSpec", - "description": "Spec holds information about the request being evaluated." - }, - "status": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectRulesReviewStatus", - "description": "Status is filled in by the server and indicates the set of actions a user can perform." - } - }, - "required": [ - "spec" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "authorization.k8s.io", - "kind": "SelfSubjectRulesReview", - "version": "v1" - } - ] - }, - "io.k8s.api.authorization.v1.SelfSubjectRulesReviewSpec": { - "description": "SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.", - "properties": { - "namespace": { - "description": "Namespace to evaluate rules for. Required.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.authorization.v1.SubjectAccessReview": { - "description": "SubjectAccessReview checks whether or not a user or group can perform an 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" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReviewSpec", - "description": "Spec holds information about the request being evaluated" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReviewStatus", - "description": "Status is filled in by the server and indicates whether the request is allowed or not" - } - }, - "required": [ - "spec" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "authorization.k8s.io", - "kind": "SubjectAccessReview", - "version": "v1" - } - ] - }, - "io.k8s.api.authorization.v1.SubjectAccessReviewSpec": { - "description": "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", - "properties": { - "extra": { - "additionalProperties": { - "items": { - "type": "string" - }, - "type": "array" - }, - "description": "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.", - "type": "object" - }, - "groups": { - "description": "Groups is the groups you're testing for.", - "items": { - "type": "string" - }, - "type": "array" - }, - "nonResourceAttributes": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.NonResourceAttributes", - "description": "NonResourceAttributes describes information for a non-resource access request" - }, - "resourceAttributes": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.ResourceAttributes", - "description": "ResourceAuthorizationAttributes describes information for a resource access request" - }, - "uid": { - "description": "UID information about the requesting user.", - "type": "string" - }, - "user": { - "description": "User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.authorization.v1.SubjectAccessReviewStatus": { - "description": "SubjectAccessReviewStatus", - "properties": { - "allowed": { - "description": "Allowed is required. True if the action would be allowed, false otherwise.", - "type": "boolean" - }, - "denied": { - "description": "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.", - "type": "boolean" - }, - "evaluationError": { - "description": "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", - "type": "string" - }, - "reason": { - "description": "Reason is optional. It indicates why a request was allowed or denied.", - "type": "string" - } - }, - "required": [ - "allowed" - ], - "type": "object" - }, - "io.k8s.api.authorization.v1.SubjectRulesReviewStatus": { - "description": "SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete.", - "properties": { - "evaluationError": { - "description": "EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.", - "type": "string" - }, - "incomplete": { - "description": "Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.", - "type": "boolean" - }, - "nonResourceRules": { - "description": "NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", - "items": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.NonResourceRule" - }, - "type": "array" - }, - "resourceRules": { - "description": "ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", - "items": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.ResourceRule" - }, - "type": "array" - } - }, - "required": [ - "resourceRules", - "nonResourceRules", - "incomplete" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v1.CrossVersionObjectReference": { - "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", - "properties": { - "apiVersion": { - "description": "API version of the referent", - "type": "string" - }, - "kind": { - "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"", - "type": "string" - }, - "name": { - "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler": { - "description": "configuration of a horizontal pod autoscaler.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec", - "description": "behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." - }, - "status": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerStatus", - "description": "current information about the autoscaler." - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - ] - }, - "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList": { - "description": "list of horizontal pod autoscaler objects.", - "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 horizontal pod autoscaler objects.", - "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata." - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "HorizontalPodAutoscalerList", - "version": "v1" - } - ] - }, - "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec": { - "description": "specification of a horizontal pod autoscaler.", - "properties": { - "maxReplicas": { - "description": "upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.", - "format": "int32", - "type": "integer" - }, - "minReplicas": { - "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", - "format": "int32", - "type": "integer" - }, - "scaleTargetRef": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.CrossVersionObjectReference", - "description": "reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource." - }, - "targetCPUUtilizationPercentage": { - "description": "target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "scaleTargetRef", - "maxReplicas" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerStatus": { - "description": "current status of a horizontal pod autoscaler", - "properties": { - "currentCPUUtilizationPercentage": { - "description": "current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.", - "format": "int32", - "type": "integer" - }, - "currentReplicas": { - "description": "current number of replicas of pods managed by this autoscaler.", - "format": "int32", - "type": "integer" - }, - "desiredReplicas": { - "description": "desired number of replicas of pods managed by this autoscaler.", - "format": "int32", - "type": "integer" - }, - "lastScaleTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed." - }, - "observedGeneration": { - "description": "most recent generation observed by this autoscaler.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "currentReplicas", - "desiredReplicas" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v1.Scale": { - "description": "Scale represents a scaling request for a resource.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.ScaleSpec", - "description": "defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." - }, - "status": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.ScaleStatus", - "description": "current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only." - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - } - ] - }, - "io.k8s.api.autoscaling.v1.ScaleSpec": { - "description": "ScaleSpec describes the attributes of a scale subresource.", - "properties": { - "replicas": { - "description": "desired number of instances for the scaled object.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "io.k8s.api.autoscaling.v1.ScaleStatus": { - "description": "ScaleStatus represents the current status of a scale subresource.", - "properties": { - "replicas": { - "description": "actual number of observed instances of the scaled object.", - "format": "int32", - "type": "integer" - }, - "selector": { - "description": "label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "type": "string" - } - }, - "required": [ - "replicas" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.ContainerResourceMetricSource": { - "description": "ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", - "properties": { - "container": { - "description": "container is the name of the container in the pods of the scaling target", - "type": "string" - }, - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - }, - "targetAverageUtilization": { - "description": "targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", - "format": "int32", - "type": "integer" - }, - "targetAverageValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type." - } - }, - "required": [ - "name", - "container" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.ContainerResourceMetricStatus": { - "description": "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", - "properties": { - "container": { - "description": "container is the name of the container in the pods of the scaling target", - "type": "string" - }, - "currentAverageUtilization": { - "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification.", - "format": "int32", - "type": "integer" - }, - "currentAverageValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification." - }, - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - } - }, - "required": [ - "name", - "currentAverageValue", - "container" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.CrossVersionObjectReference": { - "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", - "properties": { - "apiVersion": { - "description": "API version of the referent", - "type": "string" - }, - "kind": { - "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"", - "type": "string" - }, - "name": { - "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.ExternalMetricSource": { - "description": "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). Exactly one \"target\" type should be set.", - "properties": { - "metricName": { - "description": "metricName is the name of the metric in question.", - "type": "string" - }, - "metricSelector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "metricSelector is used to identify a specific time series within a given metric." - }, - "targetAverageValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue." - }, - "targetValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue." - } - }, - "required": [ - "metricName" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.ExternalMetricStatus": { - "description": "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.", - "properties": { - "currentAverageValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "currentAverageValue is the current value of metric averaged over autoscaled pods." - }, - "currentValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "currentValue is the current value of the metric (as a quantity)" - }, - "metricName": { - "description": "metricName is the name of a metric used for autoscaling in metric system.", - "type": "string" - }, - "metricSelector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "metricSelector is used to identify a specific time series within a given metric." - } - }, - "required": [ - "metricName", - "currentValue" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler": { - "description": "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerSpec", - "description": "spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." - }, - "status": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerStatus", - "description": "status is the current information about the autoscaler." - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - ] - }, - "io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerCondition": { - "description": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.", - "properties": { - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "lastTransitionTime is the last time the condition transitioned from one status to another" - }, - "message": { - "description": "message is a human-readable explanation containing details about the transition", - "type": "string" - }, - "reason": { - "description": "reason is the reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "status is the status of the condition (True, False, Unknown)", - "type": "string" - }, - "type": { - "description": "type describes the current condition", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerList": { - "description": "HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects.", - "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 horizontal pod autoscaler objects.", - "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "metadata is the standard list metadata." - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "HorizontalPodAutoscalerList", - "version": "v2beta1" - } - ] - }, - "io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerSpec": { - "description": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.", - "properties": { - "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.", - "format": "int32", - "type": "integer" - }, - "metrics": { - "description": "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond.", - "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.MetricSpec" - }, - "type": "array" - }, - "minReplicas": { - "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", - "format": "int32", - "type": "integer" - }, - "scaleTargetRef": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.CrossVersionObjectReference", - "description": "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count." - } - }, - "required": [ - "scaleTargetRef", - "maxReplicas" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerStatus": { - "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", - "properties": { - "conditions": { - "description": "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.", - "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerCondition" - }, - "type": "array" - }, - "currentMetrics": { - "description": "currentMetrics is the last read state of the metrics used by this autoscaler.", - "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.MetricStatus" - }, - "type": "array" - }, - "currentReplicas": { - "description": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.", - "format": "int32", - "type": "integer" - }, - "desiredReplicas": { - "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.", - "format": "int32", - "type": "integer" - }, - "lastScaleTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed." - }, - "observedGeneration": { - "description": "observedGeneration is the most recent generation observed by this autoscaler.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "currentReplicas", - "desiredReplicas", - "conditions" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.MetricSpec": { - "description": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).", - "properties": { - "containerResource": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.ContainerResourceMetricSource", - "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag." - }, - "external": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.ExternalMetricSource", - "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." - }, - "object": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.ObjectMetricSource", - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." - }, - "pods": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.PodsMetricSource", - "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." - }, - "resource": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.ResourceMetricSource", - "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." - }, - "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", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.MetricStatus": { - "description": "MetricStatus describes the last-read state of a single metric.", - "properties": { - "containerResource": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.ContainerResourceMetricStatus", - "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." - }, - "external": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.ExternalMetricStatus", - "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." - }, - "object": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.ObjectMetricStatus", - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." - }, - "pods": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.PodsMetricStatus", - "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." - }, - "resource": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.ResourceMetricStatus", - "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." - }, - "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", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.ObjectMetricSource": { - "description": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", - "properties": { - "averageValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)" - }, - "metricName": { - "description": "metricName is the name of the metric in question.", - "type": "string" - }, - "selector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics." - }, - "target": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.CrossVersionObjectReference", - "description": "target is the described Kubernetes object." - }, - "targetValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "targetValue is the target value of the metric (as a quantity)." - } - }, - "required": [ - "target", - "metricName", - "targetValue" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.ObjectMetricStatus": { - "description": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", - "properties": { - "averageValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)" - }, - "currentValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "currentValue is the current value of the metric (as a quantity)." - }, - "metricName": { - "description": "metricName is the name of the metric in question.", - "type": "string" - }, - "selector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics." - }, - "target": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.CrossVersionObjectReference", - "description": "target is the described Kubernetes object." - } - }, - "required": [ - "target", - "metricName", - "currentValue" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.PodsMetricSource": { - "description": "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", - "properties": { - "metricName": { - "description": "metricName is the name of the metric in question", - "type": "string" - }, - "selector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics." - }, - "targetAverageValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)" - } - }, - "required": [ - "metricName", - "targetAverageValue" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.PodsMetricStatus": { - "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", - "properties": { - "currentAverageValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)" - }, - "metricName": { - "description": "metricName is the name of the metric in question", - "type": "string" - }, - "selector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics." - } - }, - "required": [ - "metricName", - "currentAverageValue" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.ResourceMetricSource": { - "description": "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", - "properties": { - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - }, - "targetAverageUtilization": { - "description": "targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", - "format": "int32", - "type": "integer" - }, - "targetAverageValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type." - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta1.ResourceMetricStatus": { - "description": "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", - "properties": { - "currentAverageUtilization": { - "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification.", - "format": "int32", - "type": "integer" - }, - "currentAverageValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification." - }, - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - } - }, - "required": [ - "name", - "currentAverageValue" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricSource": { - "description": "ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", - "properties": { - "container": { - "description": "container is the name of the container in the pods of the scaling target", - "type": "string" - }, - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - }, - "target": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" - } - }, - "required": [ - "name", - "target", - "container" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricStatus": { - "description": "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", - "properties": { - "container": { - "description": "Container is the name of the container in the pods of the scaling target", - "type": "string" - }, - "current": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" - }, - "name": { - "description": "Name is the name of the resource in question.", - "type": "string" - } - }, - "required": [ - "name", - "current", - "container" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.CrossVersionObjectReference": { - "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", - "properties": { - "apiVersion": { - "description": "API version of the referent", - "type": "string" - }, - "kind": { - "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"", - "type": "string" - }, - "name": { - "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.ExternalMetricSource": { - "description": "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).", - "properties": { - "metric": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" - }, - "target": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" - } - }, - "required": [ - "metric", - "target" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.ExternalMetricStatus": { - "description": "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.", - "properties": { - "current": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" - }, - "metric": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" - } - }, - "required": [ - "metric", - "current" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.HPAScalingPolicy": { - "description": "HPAScalingPolicy is a single policy which must hold true for a specified past interval.", - "properties": { - "periodSeconds": { - "description": "PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).", - "format": "int32", - "type": "integer" - }, - "type": { - "description": "Type is used to specify the scaling policy.", - "type": "string" - }, - "value": { - "description": "Value contains the amount of change which is permitted by the policy. It must be greater than zero", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "type", - "value", - "periodSeconds" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.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.", - "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", - "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HPAScalingPolicy" - }, - "type": "array" - }, - "selectPolicy": { - "description": "selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used.", - "type": "string" - }, - "stabilizationWindowSeconds": { - "description": "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).", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler": { - "description": "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec", - "description": "spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." - }, - "status": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerStatus", - "description": "status is the current information about the autoscaler." - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - ] - }, - "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerBehavior": { - "description": "HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).", - "properties": { - "scaleDown": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HPAScalingRules", - "description": "scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used)." - }, - "scaleUp": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HPAScalingRules", - "description": "scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of:\n * increase no more than 4 pods per 60 seconds\n * double the number of pods per 60 seconds\nNo stabilization is used." - } - }, - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerCondition": { - "description": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.", - "properties": { - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "lastTransitionTime is the last time the condition transitioned from one status to another" - }, - "message": { - "description": "message is a human-readable explanation containing details about the transition", - "type": "string" - }, - "reason": { - "description": "reason is the reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "status is the status of the condition (True, False, Unknown)", - "type": "string" - }, - "type": { - "description": "type describes the current condition", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList": { - "description": "HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.", - "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 horizontal pod autoscaler objects.", - "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "metadata is the standard list metadata." - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "HorizontalPodAutoscalerList", - "version": "v2beta2" - } - ] - }, - "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec": { - "description": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.", - "properties": { - "behavior": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerBehavior", - "description": "behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used." - }, - "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.", - "format": "int32", - "type": "integer" - }, - "metrics": { - "description": "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization.", - "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricSpec" - }, - "type": "array" - }, - "minReplicas": { - "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", - "format": "int32", - "type": "integer" - }, - "scaleTargetRef": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.CrossVersionObjectReference", - "description": "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count." - } - }, - "required": [ - "scaleTargetRef", - "maxReplicas" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerStatus": { - "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", - "properties": { - "conditions": { - "description": "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.", - "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerCondition" - }, - "type": "array" - }, - "currentMetrics": { - "description": "currentMetrics is the last read state of the metrics used by this autoscaler.", - "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricStatus" - }, - "type": "array" - }, - "currentReplicas": { - "description": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.", - "format": "int32", - "type": "integer" - }, - "desiredReplicas": { - "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.", - "format": "int32", - "type": "integer" - }, - "lastScaleTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed." - }, - "observedGeneration": { - "description": "observedGeneration is the most recent generation observed by this autoscaler.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "currentReplicas", - "desiredReplicas", - "conditions" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.MetricIdentifier": { - "description": "MetricIdentifier defines the name and optionally selector for a metric", - "properties": { - "name": { - "description": "name is the name of the given metric", - "type": "string" - }, - "selector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics." - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.MetricSpec": { - "description": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).", - "properties": { - "containerResource": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricSource", - "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag." - }, - "external": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.ExternalMetricSource", - "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." - }, - "object": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.ObjectMetricSource", - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." - }, - "pods": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.PodsMetricSource", - "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." - }, - "resource": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.ResourceMetricSource", - "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." - }, - "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", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.MetricStatus": { - "description": "MetricStatus describes the last-read state of a single metric.", - "properties": { - "containerResource": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricStatus", - "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." - }, - "external": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.ExternalMetricStatus", - "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." - }, - "object": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.ObjectMetricStatus", - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." - }, - "pods": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.PodsMetricStatus", - "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." - }, - "resource": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.ResourceMetricStatus", - "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." - }, - "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", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.MetricTarget": { - "description": "MetricTarget defines the target value, average value, or average utilization of a specific metric", - "properties": { - "averageUtilization": { - "description": "averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type", - "format": "int32", - "type": "integer" - }, - "averageValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)" - }, - "type": { - "description": "type represents whether the metric type is Utilization, Value, or AverageValue", - "type": "string" - }, - "value": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "value is the target value of the metric (as a quantity)." - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.MetricValueStatus": { - "description": "MetricValueStatus holds the current value for a metric", - "properties": { - "averageUtilization": { - "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", - "format": "int32", - "type": "integer" - }, - "averageValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)" - }, - "value": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "value is the current value of the metric (as a quantity)." - } - }, - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.ObjectMetricSource": { - "description": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", - "properties": { - "describedObject": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.CrossVersionObjectReference" - }, - "metric": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" - }, - "target": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" - } - }, - "required": [ - "describedObject", - "target", - "metric" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.ObjectMetricStatus": { - "description": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", - "properties": { - "current": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" - }, - "describedObject": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.CrossVersionObjectReference" - }, - "metric": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" - } - }, - "required": [ - "metric", - "current", - "describedObject" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.PodsMetricSource": { - "description": "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", - "properties": { - "metric": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" - }, - "target": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" - } - }, - "required": [ - "metric", - "target" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.PodsMetricStatus": { - "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", - "properties": { - "current": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" - }, - "metric": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" - } - }, - "required": [ - "metric", - "current" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.ResourceMetricSource": { - "description": "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", - "properties": { - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - }, - "target": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" - } - }, - "required": [ - "name", - "target" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.ResourceMetricStatus": { - "description": "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", - "properties": { - "current": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" - }, - "name": { - "description": "Name is the name of the resource in question.", - "type": "string" - } - }, - "required": [ - "name", - "current" - ], - "type": "object" - }, - "io.k8s.api.batch.v1.CronJob": { - "description": "CronJob represents the configuration of a single cron job.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.batch.v1.CronJobSpec", - "description": "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.batch.v1.CronJobStatus", - "description": "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "batch", - "kind": "CronJob", - "version": "v1" - } - ] - }, - "io.k8s.api.batch.v1.CronJobList": { - "description": "CronJobList is a collection of cron jobs.", - "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 CronJobs.", - "items": { - "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "batch", - "kind": "CronJobList", - "version": "v1" - } - ] - }, - "io.k8s.api.batch.v1.CronJobSpec": { - "description": "CronJobSpec describes how the job execution will look like and when it will actually run.", - "properties": { - "concurrencyPolicy": { - "description": "Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one", - "type": "string" - }, - "failedJobsHistoryLimit": { - "description": "The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1.", - "format": "int32", - "type": "integer" - }, - "jobTemplate": { - "$ref": "#/definitions/io.k8s.api.batch.v1.JobTemplateSpec", - "description": "Specifies the job that will be created when executing a CronJob." - }, - "schedule": { - "description": "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.", - "type": "string" - }, - "startingDeadlineSeconds": { - "description": "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.", - "format": "int64", - "type": "integer" - }, - "successfulJobsHistoryLimit": { - "description": "The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3.", - "format": "int32", - "type": "integer" - }, - "suspend": { - "description": "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", - "type": "boolean" - } - }, - "required": [ - "schedule", - "jobTemplate" - ], - "type": "object" - }, - "io.k8s.api.batch.v1.CronJobStatus": { - "description": "CronJobStatus represents the current state of a cron job.", - "properties": { - "active": { - "description": "A list of pointers to currently running jobs.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "lastScheduleTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Information when was the last time the job was successfully scheduled." - }, - "lastSuccessfulTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Information when was the last time the job successfully completed." - } - }, - "type": "object" - }, - "io.k8s.api.batch.v1.Job": { - "description": "Job represents the configuration of a single job.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.batch.v1.JobSpec", - "description": "Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.batch.v1.JobStatus", - "description": "Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "batch", - "kind": "Job", - "version": "v1" - } - ] - }, - "io.k8s.api.batch.v1.JobCondition": { - "description": "JobCondition describes current state of a job.", - "properties": { - "lastProbeTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Last time the condition was checked." - }, - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Last time the condition transit from one status to another." - }, - "message": { - "description": "Human readable message indicating details about last transition.", - "type": "string" - }, - "reason": { - "description": "(brief) reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", - "type": "string" - }, - "type": { - "description": "Type of job condition, Complete or Failed.", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "io.k8s.api.batch.v1.JobList": { - "description": "JobList is a collection of jobs.", - "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 Jobs.", - "items": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "batch", - "kind": "JobList", - "version": "v1" - } - ] - }, - "io.k8s.api.batch.v1.JobSpec": { - "description": "JobSpec describes how the job execution will look like.", - "properties": { - "activeDeadlineSeconds": { - "description": "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.", - "format": "int64", - "type": "integer" - }, - "backoffLimit": { - "description": "Specifies the number of retries before marking this job failed. Defaults to 6", - "format": "int32", - "type": "integer" - }, - "completionMode": { - "description": "CompletionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.\n\n`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.\n\n`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)`.\n\nThis field is beta-level. More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, the controller skips updates for the Job.", - "type": "string" - }, - "completions": { - "description": "Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/", - "format": "int32", - "type": "integer" - }, - "manualSelector": { - "description": "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", - "type": "boolean" - }, - "parallelism": { - "description": "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/", - "format": "int32", - "type": "integer" - }, - "selector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" - }, - "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 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.\n\nThis field is beta-level, gated by SuspendJob feature flag (enabled by default).", - "type": "boolean" - }, - "template": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec", - "description": "Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/" - }, - "ttlSecondsAfterFinished": { - "description": "ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "template" - ], - "type": "object" - }, - "io.k8s.api.batch.v1.JobStatus": { - "description": "JobStatus represents the current state of a Job.", - "properties": { - "active": { - "description": "The number of actively running pods.", - "format": "int32", - "type": "integer" - }, - "completedIndexes": { - "description": "CompletedIndexes holds the completed indexes when .spec.completionMode = \"Indexed\" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\".", - "type": "string" - }, - "completionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is only set when the job finishes successfully." - }, - "conditions": { - "description": "The latest available observations of an object's current state. When a Job fails, one of the conditions will have type \"Failed\" and status true. When a Job is suspended, one of the conditions will have type \"Suspended\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \"Complete\" and status true. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", - "items": { - "$ref": "#/definitions/io.k8s.api.batch.v1.JobCondition" - }, - "type": "array", - "x-kubernetes-list-type": "atomic", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "failed": { - "description": "The number of pods which reached phase Failed.", - "format": "int32", - "type": "integer" - }, - "startTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC." - }, - "succeeded": { - "description": "The number of pods which reached phase Succeeded.", - "format": "int32", - "type": "integer" - }, - "uncountedTerminatedPods": { - "$ref": "#/definitions/io.k8s.api.batch.v1.UncountedTerminatedPods", - "description": "UncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.\n\nThe job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status: (1) Add the pod UID to the arrays in this field. (2) Remove the pod finalizer. (3) Remove the pod UID from the arrays while increasing the corresponding\n counter.\n\nThis field is alpha-level. The job controller only makes use of this field when the feature gate PodTrackingWithFinalizers is enabled. Old jobs might not be tracked using this field, in which case the field remains null." - } - }, - "type": "object" - }, - "io.k8s.api.batch.v1.JobTemplateSpec": { - "description": "JobTemplateSpec describes the data a Job should have when created from a template", - "properties": { - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.batch.v1.JobSpec", - "description": "Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object" - }, - "io.k8s.api.batch.v1.UncountedTerminatedPods": { - "description": "UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.", - "properties": { - "failed": { - "description": "Failed holds UIDs of failed Pods.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "succeeded": { - "description": "Succeeded holds UIDs of succeeded Pods.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - } - }, - "type": "object" - }, - "io.k8s.api.batch.v1beta1.CronJob": { - "description": "CronJob represents the configuration of a single cron job.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJobSpec", - "description": "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJobStatus", - "description": "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.batch.v1beta1.CronJobList": { - "description": "CronJobList is a collection of cron jobs.", - "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 CronJobs.", - "items": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "batch", - "kind": "CronJobList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.batch.v1beta1.CronJobSpec": { - "description": "CronJobSpec describes how the job execution will look like and when it will actually run.", - "properties": { - "concurrencyPolicy": { - "description": "Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one", - "type": "string" - }, - "failedJobsHistoryLimit": { - "description": "The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", - "format": "int32", - "type": "integer" - }, - "jobTemplate": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.JobTemplateSpec", - "description": "Specifies the job that will be created when executing a CronJob." - }, - "schedule": { - "description": "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.", - "type": "string" - }, - "startingDeadlineSeconds": { - "description": "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.", - "format": "int64", - "type": "integer" - }, - "successfulJobsHistoryLimit": { - "description": "The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3.", - "format": "int32", - "type": "integer" - }, - "suspend": { - "description": "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", - "type": "boolean" - } - }, - "required": [ - "schedule", - "jobTemplate" - ], - "type": "object" - }, - "io.k8s.api.batch.v1beta1.CronJobStatus": { - "description": "CronJobStatus represents the current state of a cron job.", - "properties": { - "active": { - "description": "A list of pointers to currently running jobs.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "lastScheduleTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Information when was the last time the job was successfully scheduled." - }, - "lastSuccessfulTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Information when was the last time the job successfully completed." - } - }, - "type": "object" - }, - "io.k8s.api.batch.v1beta1.JobTemplateSpec": { - "description": "JobTemplateSpec describes the data a Job should have when created from a template", - "properties": { - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.batch.v1.JobSpec", - "description": "Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object" - }, - "io.k8s.api.certificates.v1.CertificateSigningRequest": { - "description": "CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued.\n\nKubelets use this API to obtain:\n 1. client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client-kubelet\" signerName).\n 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the \"kubernetes.io/kubelet-serving\" signerName).\n\nThis API can be used to request client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client\" signerName), or to obtain certificates from custom non-Kubernetes signers.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequestSpec", - "description": "spec contains the certificate request, and is immutable after creation. Only the request, signerName, expirationSeconds, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users." - }, - "status": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequestStatus", - "description": "status contains information about whether the request is approved or denied, and the certificate issued by the signer, or the failure condition indicating signer failure." - } - }, - "required": [ - "spec" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - ] - }, - "io.k8s.api.certificates.v1.CertificateSigningRequestCondition": { - "description": "CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object", - "properties": { - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time." - }, - "lastUpdateTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "lastUpdateTime is the time of the last update to this condition" - }, - "message": { - "description": "message contains a human readable message with details about the request state", - "type": "string" - }, - "reason": { - "description": "reason indicates a brief reason for the request state", - "type": "string" - }, - "status": { - "description": "status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\".", - "type": "string" - }, - "type": { - "description": "type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\".\n\nAn \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer.\n\nA \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer.\n\nA \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate.\n\nApproved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added.\n\nOnly one condition of a given type is allowed.", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "io.k8s.api.certificates.v1.CertificateSigningRequestList": { - "description": "CertificateSigningRequestList is a collection of CertificateSigningRequest objects", - "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": "#/definitions/io.k8s.api.certificates.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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequestList", - "version": "v1" - } - ] - }, - "io.k8s.api.certificates.v1.CertificateSigningRequestSpec": { - "description": "CertificateSigningRequestSpec contains the certificate request.", - "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.\n\nThe 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.\n\nCertificate signers may not honor this field for various reasons:\n\n 1. Old signer that is unaware of the field (such as the in-tree\n implementations prior to v1.22)\n 2. Signer whose configured maximum is shorter than the requested duration\n 3. Signer whose configured minimum is longer than the requested duration\n\nThe minimum valid value for expirationSeconds is 600, i.e. 10 minutes.\n\nAs of v1.22, this field is beta and is controlled via the CSRDuration feature gate.", - "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", - "type": "string", - "x-kubernetes-list-type": "atomic" - }, - "signerName": { - "description": "signerName indicates the requested signer, and is a qualified name.\n\nList/watch requests for CertificateSigningRequests can filter on this field using a \"spec.signerName=NAME\" fieldSelector.\n\nWell-known Kubernetes signers are:\n 1. \"kubernetes.io/kube-apiserver-client\": issues client certificates that can be used to authenticate to kube-apiserver.\n Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the \"csrsigning\" controller in kube-controller-manager.\n 2. \"kubernetes.io/kube-apiserver-client-kubelet\": issues client certificates that kubelets use to authenticate to kube-apiserver.\n 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.\n 3. \"kubernetes.io/kubelet-serving\" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely.\n Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager.\n\nMore details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers\n\nCustom signerNames can also be specified. The signer defines:\n 1. Trust distribution: how trust (CA bundles) are distributed.\n 2. Permitted subjects: and behavior when a disallowed subject is requested.\n 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.\n 4. Required, permitted, or forbidden key usages / extended key usages.\n 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin.\n 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.\n\nRequests for TLS client certificates typically request: \"digital signature\", \"key encipherment\", \"client auth\".\n\nRequests for TLS serving certificates typically request: \"key encipherment\", \"digital signature\", \"server auth\".\n\nValid values are:\n \"signing\", \"digital signature\", \"content commitment\",\n \"key encipherment\", \"key agreement\", \"data encipherment\",\n \"cert sign\", \"crl sign\", \"encipher only\", \"decipher only\", \"any\",\n \"server auth\", \"client auth\",\n \"code signing\", \"email protection\", \"s/mime\",\n \"ipsec end system\", \"ipsec tunnel\", \"ipsec user\",\n \"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" - }, - "io.k8s.api.certificates.v1.CertificateSigningRequestStatus": { - "description": "CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate.", - "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.\n\nIf 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.\n\nValidation requirements:\n 1. certificate must contain one or more PEM blocks.\n 2. All PEM blocks must have the \"CERTIFICATE\" label, contain no headers, and the encoded data\n must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280.\n 3. Non-PEM content may appear before or after the \"CERTIFICATE\" PEM blocks and is unvalidated,\n to allow for explanatory text as described in section 5.2 of RFC7468.\n\nIf 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.\n\nThe certificate is encoded in PEM format.\n\nWhen serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of:\n\n base64(\n -----BEGIN CERTIFICATE-----\n ...\n -----END CERTIFICATE-----\n )", - "format": "byte", - "type": "string", - "x-kubernetes-list-type": "atomic" - }, - "conditions": { - "description": "conditions applied to the request. Known conditions are \"Approved\", \"Denied\", and \"Failed\".", - "items": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequestCondition" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" - } - }, - "type": "object" - }, - "io.k8s.api.coordination.v1.Lease": { - "description": "Lease defines a lease concept.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.LeaseSpec", - "description": "Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - ] - }, - "io.k8s.api.coordination.v1.LeaseList": { - "description": "LeaseList is a list of Lease objects.", - "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": "#/definitions/io.k8s.api.coordination.v1.Lease" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "coordination.k8s.io", - "kind": "LeaseList", - "version": "v1" - } - ] - }, - "io.k8s.api.coordination.v1.LeaseSpec": { - "description": "LeaseSpec is a specification of a Lease.", - "properties": { - "acquireTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", - "description": "acquireTime is a time when the current lease was acquired." - }, - "holderIdentity": { - "description": "holderIdentity contains the identity of the holder of a current lease.", - "type": "string" - }, - "leaseDurationSeconds": { - "description": "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime.", - "format": "int32", - "type": "integer" - }, - "leaseTransitions": { - "description": "leaseTransitions is the number of transitions of a lease between holders.", - "format": "int32", - "type": "integer" - }, - "renewTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", - "description": "renewTime is a time when the current holder of a lease has last updated the lease." - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource": { - "description": "Represents a Persistent Disk resource in AWS.\n\nAn 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.", - "properties": { - "fsType": { - "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - "type": "string" - }, - "partition": { - "description": "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).", - "format": "int32", - "type": "integer" - }, - "readOnly": { - "description": "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", - "type": "boolean" - }, - "volumeID": { - "description": "Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - "type": "string" - } - }, - "required": [ - "volumeID" - ], - "type": "object" - }, - "io.k8s.api.core.v1.Affinity": { - "description": "Affinity is a group of affinity scheduling rules.", - "properties": { - "nodeAffinity": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeAffinity", - "description": "Describes node affinity scheduling rules for the pod." - }, - "podAffinity": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodAffinity", - "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s))." - }, - "podAntiAffinity": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodAntiAffinity", - "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s))." - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.AttachedVolume": { - "description": "AttachedVolume describes a volume attached to a node", - "properties": { - "devicePath": { - "description": "DevicePath represents the device path where the volume should be available", - "type": "string" - }, - "name": { - "description": "Name of the attached volume", - "type": "string" - } - }, - "required": [ - "name", - "devicePath" - ], - "type": "object" - }, - "io.k8s.api.core.v1.AzureDiskVolumeSource": { - "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", - "properties": { - "cachingMode": { - "description": "Host Caching mode: None, Read Only, Read Write.", - "type": "string" - }, - "diskName": { - "description": "The Name of the data disk in the blob storage", - "type": "string" - }, - "diskURI": { - "description": "The URI the data disk in the blob storage", - "type": "string" - }, - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "kind": { - "description": "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", - "type": "string" - }, - "readOnly": { - "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - } - }, - "required": [ - "diskName", - "diskURI" - ], - "type": "object" - }, - "io.k8s.api.core.v1.AzureFilePersistentVolumeSource": { - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "properties": { - "readOnly": { - "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretName": { - "description": "the name of secret that contains Azure Storage Account Name and Key", - "type": "string" - }, - "secretNamespace": { - "description": "the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod", - "type": "string" - }, - "shareName": { - "description": "Share Name", - "type": "string" - } - }, - "required": [ - "secretName", - "shareName" - ], - "type": "object" - }, - "io.k8s.api.core.v1.AzureFileVolumeSource": { - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "properties": { - "readOnly": { - "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretName": { - "description": "the name of secret that contains Azure Storage Account Name and Key", - "type": "string" - }, - "shareName": { - "description": "Share Name", - "type": "string" - } - }, - "required": [ - "secretName", - "shareName" - ], - "type": "object" - }, - "io.k8s.api.core.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.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "target": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", - "description": "The target object that you want to bind to the standard object." - } - }, - "required": [ - "target" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Binding", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.CSIPersistentVolumeSource": { - "description": "Represents storage that is managed by an external CSI volume driver (Beta feature)", - "properties": { - "controllerExpandSecretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", - "description": "ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." - }, - "controllerPublishSecretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", - "description": "ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." - }, - "driver": { - "description": "Driver is the name of the driver to use for this volume. Required.", - "type": "string" - }, - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", - "type": "string" - }, - "nodePublishSecretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", - "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 secrets are passed." - }, - "nodeStageSecretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", - "description": "NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." - }, - "readOnly": { - "description": "Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).", - "type": "boolean" - }, - "volumeAttributes": { - "additionalProperties": { - "type": "string" - }, - "description": "Attributes of the volume to publish.", - "type": "object" - }, - "volumeHandle": { - "description": "VolumeHandle is the unique volume name returned by the CSI volume plugin\u2019s CreateVolume to refer to the volume on all subsequent calls. Required.", - "type": "string" - } - }, - "required": [ - "driver", - "volumeHandle" - ], - "type": "object" - }, - "io.k8s.api.core.v1.CSIVolumeSource": { - "description": "Represents a source location of a volume to mount, managed by an external CSI driver", - "properties": { - "driver": { - "description": "Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.", - "type": "string" - }, - "fsType": { - "description": "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.", - "type": "string" - }, - "nodePublishSecretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", - "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." - }, - "readOnly": { - "description": "Specifies a read-only configuration for the volume. Defaults to false (read/write).", - "type": "boolean" - }, - "volumeAttributes": { - "additionalProperties": { - "type": "string" - }, - "description": "VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", - "type": "object" - } - }, - "required": [ - "driver" - ], - "type": "object" - }, - "io.k8s.api.core.v1.Capabilities": { - "description": "Adds and removes POSIX capabilities from running containers.", - "properties": { - "add": { - "description": "Added capabilities", - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "description": "Removed capabilities", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.CephFSPersistentVolumeSource": { - "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", - "properties": { - "monitors": { - "description": "Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "items": { - "type": "string" - }, - "type": "array" - }, - "path": { - "description": "Optional: Used as the mounted root, rather than the full Ceph tree, default is /", - "type": "string" - }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "boolean" - }, - "secretFile": { - "description": "Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - }, - "secretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", - "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" - }, - "user": { - "description": "Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - } - }, - "required": [ - "monitors" - ], - "type": "object" - }, - "io.k8s.api.core.v1.CephFSVolumeSource": { - "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", - "properties": { - "monitors": { - "description": "Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "items": { - "type": "string" - }, - "type": "array" - }, - "path": { - "description": "Optional: Used as the mounted root, rather than the full Ceph tree, default is /", - "type": "string" - }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "boolean" - }, - "secretFile": { - "description": "Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - }, - "secretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", - "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" - }, - "user": { - "description": "Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - } - }, - "required": [ - "monitors" - ], - "type": "object" - }, - "io.k8s.api.core.v1.CinderPersistentVolumeSource": { - "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", - "properties": { - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "string" - }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "boolean" - }, - "secretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", - "description": "Optional: points to a secret object containing parameters used to connect to OpenStack." - }, - "volumeID": { - "description": "volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "string" - } - }, - "required": [ - "volumeID" - ], - "type": "object" - }, - "io.k8s.api.core.v1.CinderVolumeSource": { - "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", - "properties": { - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "string" - }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "boolean" - }, - "secretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", - "description": "Optional: points to a secret object containing parameters used to connect to OpenStack." - }, - "volumeID": { - "description": "volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "string" - } - }, - "required": [ - "volumeID" - ], - "type": "object" - }, - "io.k8s.api.core.v1.ClientIPConfig": { - "description": "ClientIPConfig represents the configurations of Client IP based session affinity.", - "properties": { - "timeoutSeconds": { - "description": "timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours).", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.ComponentCondition": { - "description": "Information about the condition of a component.", - "properties": { - "error": { - "description": "Condition error code for a component. For example, a health check error code.", - "type": "string" - }, - "message": { - "description": "Message about the condition for a component. For example, information about a health check.", - "type": "string" - }, - "status": { - "description": "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".", - "type": "string" - }, - "type": { - "description": "Type of condition for a component. Valid value: \"Healthy\"", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "io.k8s.api.core.v1.ComponentStatus": { - "description": "ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "conditions": { - "description": "List of component conditions observed", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ComponentCondition" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ComponentStatus", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.ComponentStatusList": { - "description": "Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of ComponentStatus objects.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ComponentStatus" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ComponentStatusList", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.ConfigMap": { - "description": "ConfigMap holds configuration data for pods to consume.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "binaryData": { - "additionalProperties": { - "format": "byte", - "type": "string" - }, - "description": "BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.", - "type": "object" - }, - "data": { - "additionalProperties": { - "type": "string" - }, - "description": "Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.", - "type": "object" - }, - "immutable": { - "description": "Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.", - "type": "boolean" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.ConfigMapEnvSource": { - "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.", - "properties": { - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap must be defined", - "type": "boolean" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.ConfigMapKeySelector": { - "description": "Selects a key from a ConfigMap.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "io.k8s.api.core.v1.ConfigMapList": { - "description": "ConfigMapList is a resource containing a list of ConfigMap objects.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of ConfigMaps.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ConfigMapList", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.ConfigMapNodeConfigSource": { - "description": "ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration", - "properties": { - "kubeletConfigKey": { - "description": "KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.", - "type": "string" - }, - "name": { - "description": "Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.", - "type": "string" - }, - "namespace": { - "description": "Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.", - "type": "string" - }, - "resourceVersion": { - "description": "ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", - "type": "string" - }, - "uid": { - "description": "UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", - "type": "string" - } - }, - "required": [ - "namespace", - "name", - "kubeletConfigKey" - ], - "type": "object" - }, - "io.k8s.api.core.v1.ConfigMapProjection": { - "description": "Adapts a ConfigMap into a projected volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.", - "properties": { - "items": { - "description": "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.KeyToPath" - }, - "type": "array" - }, - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its keys must be defined", - "type": "boolean" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.ConfigMapVolumeSource": { - "description": "Adapts a ConfigMap into a volume.\n\nThe 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.", - "properties": { - "defaultMode": { - "description": "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": "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.KeyToPath" - }, - "type": "array" - }, - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its keys must be defined", - "type": "boolean" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.Container": { - "description": "A single application container that you want to run within a pod.", - "properties": { - "args": { - "description": "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. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array" - }, - "command": { - "description": "Entrypoint array. Not executed within a shell. The 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. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array" - }, - "env": { - "description": "List of environment variables to set in the container. Cannot be updated.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.EnvVar" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" - }, - "envFrom": { - "description": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.EnvFromSource" - }, - "type": "array" - }, - "image": { - "description": "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.", - "type": "string" - }, - "imagePullPolicy": { - "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images", - "type": "string" - }, - "lifecycle": { - "$ref": "#/definitions/io.k8s.api.core.v1.Lifecycle", - "description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated." - }, - "livenessProbe": { - "$ref": "#/definitions/io.k8s.api.core.v1.Probe", - "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" - }, - "name": { - "description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.", - "type": "string" - }, - "ports": { - "description": "List of ports to expose from the container. 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.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerPort" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "containerPort", - "protocol" - ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "containerPort", - "x-kubernetes-patch-strategy": "merge" - }, - "readinessProbe": { - "$ref": "#/definitions/io.k8s.api.core.v1.Probe", - "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" - }, - "resources": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceRequirements", - "description": "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" - }, - "securityContext": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecurityContext", - "description": "SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/" - }, - "startupProbe": { - "$ref": "#/definitions/io.k8s.api.core.v1.Probe", - "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. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" - }, - "stdin": { - "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", - "type": "boolean" - }, - "stdinOnce": { - "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", - "type": "boolean" - }, - "terminationMessagePath": { - "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", - "type": "string" - }, - "terminationMessagePolicy": { - "description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.", - "type": "string" - }, - "tty": { - "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", - "type": "boolean" - }, - "volumeDevices": { - "description": "volumeDevices is the list of block devices to be used by the container.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.VolumeDevice" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "devicePath", - "x-kubernetes-patch-strategy": "merge" - }, - "volumeMounts": { - "description": "Pod volumes to mount into the container's filesystem. Cannot be updated.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.VolumeMount" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "mountPath", - "x-kubernetes-patch-strategy": "merge" - }, - "workingDir": { - "description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "io.k8s.api.core.v1.ContainerImage": { - "description": "Describe a container image", - "properties": { - "names": { - "description": "Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]", - "items": { - "type": "string" - }, - "type": "array" - }, - "sizeBytes": { - "description": "The size of the image in bytes.", - "format": "int64", - "type": "integer" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.ContainerPort": { - "description": "ContainerPort represents a network port in a single container.", - "properties": { - "containerPort": { - "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", - "format": "int32", - "type": "integer" - }, - "hostIP": { - "description": "What host IP to bind the external port to.", - "type": "string" - }, - "hostPort": { - "description": "Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.", - "format": "int32", - "type": "integer" - }, - "name": { - "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.", - "type": "string" - }, - "protocol": { - "description": "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".", - "type": "string" - } - }, - "required": [ - "containerPort" - ], - "type": "object" - }, - "io.k8s.api.core.v1.ContainerState": { - "description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.", - "properties": { - "running": { - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStateRunning", - "description": "Details about a running container" - }, - "terminated": { - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStateTerminated", - "description": "Details about a terminated container" - }, - "waiting": { - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStateWaiting", - "description": "Details about a waiting container" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.ContainerStateRunning": { - "description": "ContainerStateRunning is a running state of a container.", - "properties": { - "startedAt": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Time at which the container was last (re-)started" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.ContainerStateTerminated": { - "description": "ContainerStateTerminated is a terminated state of a container.", - "properties": { - "containerID": { - "description": "Container's ID in the format 'docker://'", - "type": "string" - }, - "exitCode": { - "description": "Exit status from the last termination of the container", - "format": "int32", - "type": "integer" - }, - "finishedAt": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Time at which the container last terminated" - }, - "message": { - "description": "Message regarding the last termination of the container", - "type": "string" - }, - "reason": { - "description": "(brief) reason from the last termination of the container", - "type": "string" - }, - "signal": { - "description": "Signal from the last termination of the container", - "format": "int32", - "type": "integer" - }, - "startedAt": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Time at which previous execution of the container started" - } - }, - "required": [ - "exitCode" - ], - "type": "object" - }, - "io.k8s.api.core.v1.ContainerStateWaiting": { - "description": "ContainerStateWaiting is a waiting state of a container.", - "properties": { - "message": { - "description": "Message regarding why the container is not yet running.", - "type": "string" - }, - "reason": { - "description": "(brief) reason the container is not yet running.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.ContainerStatus": { - "description": "ContainerStatus contains details for the current status of this container.", - "properties": { - "containerID": { - "description": "Container's ID in the format 'docker://'.", - "type": "string" - }, - "image": { - "description": "The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images", - "type": "string" - }, - "imageID": { - "description": "ImageID of the container's image.", - "type": "string" - }, - "lastState": { - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerState", - "description": "Details about the container's last termination condition." - }, - "name": { - "description": "This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated.", - "type": "string" - }, - "ready": { - "description": "Specifies whether the container has passed its readiness probe.", - "type": "boolean" - }, - "restartCount": { - "description": "The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC.", - "format": "int32", - "type": "integer" - }, - "started": { - "description": "Specifies whether the container has 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. Is always true when no startupProbe is defined.", - "type": "boolean" - }, - "state": { - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerState", - "description": "Details about the container's current condition." - } - }, - "required": [ - "name", - "ready", - "restartCount", - "image", - "imageID" - ], - "type": "object" - }, - "io.k8s.api.core.v1.DaemonEndpoint": { - "description": "DaemonEndpoint contains information about a single Daemon endpoint.", - "properties": { - "Port": { - "description": "Port number of the given endpoint.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "Port" - ], - "type": "object" - }, - "io.k8s.api.core.v1.DownwardAPIProjection": { - "description": "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.", - "properties": { - "items": { - "description": "Items is a list of DownwardAPIVolume file", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.DownwardAPIVolumeFile" - }, - "type": "array" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.DownwardAPIVolumeFile": { - "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", - "properties": { - "fieldRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectFieldSelector", - "description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported." - }, - "mode": { - "description": "Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", - "type": "string" - }, - "resourceFieldRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceFieldSelector", - "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported." - } - }, - "required": [ - "path" - ], - "type": "object" - }, - "io.k8s.api.core.v1.DownwardAPIVolumeSource": { - "description": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", - "properties": { - "defaultMode": { - "description": "Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "items": { - "description": "Items is a list of downward API volume file", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.DownwardAPIVolumeFile" - }, - "type": "array" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.EmptyDirVolumeSource": { - "description": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", - "properties": { - "medium": { - "description": "What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - "type": "string" - }, - "sizeLimit": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "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" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.EndpointAddress": { - "description": "EndpointAddress is a tuple that describes single IP address.", - "properties": { - "hostname": { - "description": "The Hostname of this endpoint", - "type": "string" - }, - "ip": { - "description": "The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready.", - "type": "string" - }, - "nodeName": { - "description": "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.", - "type": "string" - }, - "targetRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", - "description": "Reference to object providing the endpoint." - } - }, - "required": [ - "ip" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "io.k8s.api.core.v1.EndpointPort": { - "description": "EndpointPort is a tuple that describes a single port.", - "properties": { - "appProtocol": { - "description": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.", - "type": "string" - }, - "name": { - "description": "The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.", - "type": "string" - }, - "port": { - "description": "The port number of the endpoint.", - "format": "int32", - "type": "integer" - }, - "protocol": { - "description": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "io.k8s.api.core.v1.EndpointSubset": { - "description": "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n }\nThe resulting set of endpoints can be viewed as:\n a: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n b: [ 10.10.1.1:309, 10.10.2.2:309 ]", - "properties": { - "addresses": { - "description": "IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.EndpointAddress" - }, - "type": "array" - }, - "notReadyAddresses": { - "description": "IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.EndpointAddress" - }, - "type": "array" - }, - "ports": { - "description": "Port numbers available on the related IP addresses.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.EndpointPort" - }, - "type": "array" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.Endpoints": { - "description": "Endpoints is a collection of endpoints that implement the actual service. Example:\n Name: \"mysvc\",\n Subsets: [\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n },\n {\n Addresses: [{\"ip\": \"10.10.3.3\"}],\n Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n },\n ]", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "subsets": { - "description": "The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.EndpointSubset" - }, - "type": "array" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.EndpointsList": { - "description": "EndpointsList is a list of endpoints.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of endpoints.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "EndpointsList", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.EnvFromSource": { - "description": "EnvFromSource represents the source of a set of ConfigMaps", - "properties": { - "configMapRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapEnvSource", - "description": "The ConfigMap to select from" - }, - "prefix": { - "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", - "type": "string" - }, - "secretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretEnvSource", - "description": "The Secret to select from" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.EnvVar": { - "description": "EnvVar represents an environment variable present in a Container.", - "properties": { - "name": { - "description": "Name of the environment variable. Must be a C_IDENTIFIER.", - "type": "string" - }, - "value": { - "description": "Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".", - "type": "string" - }, - "valueFrom": { - "$ref": "#/definitions/io.k8s.api.core.v1.EnvVarSource", - "description": "Source for the environment variable's value. Cannot be used if value is not empty." - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "io.k8s.api.core.v1.EnvVarSource": { - "description": "EnvVarSource represents a source for the value of an EnvVar.", - "properties": { - "configMapKeyRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapKeySelector", - "description": "Selects a key of a ConfigMap." - }, - "fieldRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectFieldSelector", - "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." - }, - "resourceFieldRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceFieldSelector", - "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." - }, - "secretKeyRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector", - "description": "Selects a key of a secret in the pod's namespace" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.EphemeralContainer": { - "description": "An EphemeralContainer is a container that may be added temporarily to an existing pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a pod is removed or restarted. If an ephemeral container causes a pod to exceed its resource allocation, the pod may be evicted. Ephemeral containers may not be added by directly updating the pod spec. They must be added via the pod's ephemeralcontainers subresource, and they will appear in the pod spec once added. This is an alpha feature enabled by the EphemeralContainers feature flag.", - "properties": { - "args": { - "description": "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. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array" - }, - "command": { - "description": "Entrypoint array. Not executed within a shell. The 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. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array" - }, - "env": { - "description": "List of environment variables to set in the container. Cannot be updated.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.EnvVar" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" - }, - "envFrom": { - "description": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.EnvFromSource" - }, - "type": "array" - }, - "image": { - "description": "Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images", - "type": "string" - }, - "imagePullPolicy": { - "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images", - "type": "string" - }, - "lifecycle": { - "$ref": "#/definitions/io.k8s.api.core.v1.Lifecycle", - "description": "Lifecycle is not allowed for ephemeral containers." - }, - "livenessProbe": { - "$ref": "#/definitions/io.k8s.api.core.v1.Probe", - "description": "Probes are not allowed for ephemeral containers." - }, - "name": { - "description": "Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.", - "type": "string" - }, - "ports": { - "description": "Ports are not allowed for ephemeral containers.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerPort" - }, - "type": "array" - }, - "readinessProbe": { - "$ref": "#/definitions/io.k8s.api.core.v1.Probe", - "description": "Probes are not allowed for ephemeral containers." - }, - "resources": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceRequirements", - "description": "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod." - }, - "securityContext": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecurityContext", - "description": "Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext." - }, - "startupProbe": { - "$ref": "#/definitions/io.k8s.api.core.v1.Probe", - "description": "Probes are not allowed for ephemeral containers." - }, - "stdin": { - "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", - "type": "boolean" - }, - "stdinOnce": { - "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", - "type": "boolean" - }, - "targetContainerName": { - "description": "If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature.", - "type": "string" - }, - "terminationMessagePath": { - "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", - "type": "string" - }, - "terminationMessagePolicy": { - "description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.", - "type": "string" - }, - "tty": { - "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", - "type": "boolean" - }, - "volumeDevices": { - "description": "volumeDevices is the list of block devices to be used by the container.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.VolumeDevice" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "devicePath", - "x-kubernetes-patch-strategy": "merge" - }, - "volumeMounts": { - "description": "Pod volumes to mount into the container's filesystem. Cannot be updated.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.VolumeMount" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "mountPath", - "x-kubernetes-patch-strategy": "merge" - }, - "workingDir": { - "description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "io.k8s.api.core.v1.EphemeralVolumeSource": { - "description": "Represents an ephemeral volume that is handled by a normal storage driver.", - "properties": { - "volumeClaimTemplate": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimTemplate", - "description": "Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be `-` where `` is the name from the `PodSpec.Volumes` array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod will *not* be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes to the PVC after it has been created.\n\nRequired, must not be nil." - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.Event": { - "description": "Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.", - "properties": { - "action": { - "description": "What action was taken/failed regarding to the Regarding object.", - "type": "string" - }, - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "count": { - "description": "The number of times this event has occurred.", - "format": "int32", - "type": "integer" - }, - "eventTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", - "description": "Time when this Event was first observed." - }, - "firstTimestamp": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)" - }, - "involvedObject": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", - "description": "The object that this event is about." - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "lastTimestamp": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "The time at which the most recent occurrence of this event was recorded." - }, - "message": { - "description": "A human-readable description of the status of this operation.", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "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": "#/definitions/io.k8s.api.core.v1.ObjectReference", - "description": "Optional secondary object for more complex actions." - }, - "reportingComponent": { - "description": "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.", - "type": "string" - }, - "reportingInstance": { - "description": "ID of the controller instance, e.g. `kubelet-xyzf`.", - "type": "string" - }, - "series": { - "$ref": "#/definitions/io.k8s.api.core.v1.EventSeries", - "description": "Data about the Event series this event represents or nil if it's a singleton Event." - }, - "source": { - "$ref": "#/definitions/io.k8s.api.core.v1.EventSource", - "description": "The component reporting this event. Should be a short machine understandable string." - }, - "type": { - "description": "Type of this event (Normal, Warning), new types could be added in the future", - "type": "string" - } - }, - "required": [ - "metadata", - "involvedObject" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Event", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.EventList": { - "description": "EventList is a list of events.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of events", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Event" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "EventList", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.EventSeries": { - "description": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.", - "properties": { - "count": { - "description": "Number of occurrences in this series up to the last heartbeat time", - "format": "int32", - "type": "integer" - }, - "lastObservedTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", - "description": "Time of the last occurrence observed" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.EventSource": { - "description": "EventSource contains information for an event.", - "properties": { - "component": { - "description": "Component from which the event is generated.", - "type": "string" - }, - "host": { - "description": "Node name on which the event is generated.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.ExecAction": { - "description": "ExecAction describes a \"run in container\" action.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.FCVolumeSource": { - "description": "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.", - "properties": { - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "lun": { - "description": "Optional: FC target lun number", - "format": "int32", - "type": "integer" - }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "targetWWNs": { - "description": "Optional: FC target worldwide names (WWNs)", - "items": { - "type": "string" - }, - "type": "array" - }, - "wwids": { - "description": "Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.FlexPersistentVolumeSource": { - "description": "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.", - "properties": { - "driver": { - "description": "Driver is the name of the driver to use for this volume.", - "type": "string" - }, - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", - "type": "string" - }, - "options": { - "additionalProperties": { - "type": "string" - }, - "description": "Optional: Extra command options if any.", - "type": "object" - }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", - "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." - } - }, - "required": [ - "driver" - ], - "type": "object" - }, - "io.k8s.api.core.v1.FlexVolumeSource": { - "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", - "properties": { - "driver": { - "description": "Driver is the name of the driver to use for this volume.", - "type": "string" - }, - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", - "type": "string" - }, - "options": { - "additionalProperties": { - "type": "string" - }, - "description": "Optional: Extra command options if any.", - "type": "object" - }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", - "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." - } - }, - "required": [ - "driver" - ], - "type": "object" - }, - "io.k8s.api.core.v1.FlockerVolumeSource": { - "description": "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.", - "properties": { - "datasetName": { - "description": "Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated", - "type": "string" - }, - "datasetUUID": { - "description": "UUID of the dataset. This is unique identifier of a Flocker dataset", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.GCEPersistentDiskVolumeSource": { - "description": "Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.", - "properties": { - "fsType": { - "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "type": "string" - }, - "partition": { - "description": "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "format": "int32", - "type": "integer" - }, - "pdName": { - "description": "Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "type": "string" - }, - "readOnly": { - "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "type": "boolean" - } - }, - "required": [ - "pdName" - ], - "type": "object" - }, - "io.k8s.api.core.v1.GitRepoVolumeSource": { - "description": "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.\n\nDEPRECATED: 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.", - "properties": { - "directory": { - "description": "Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.", - "type": "string" - }, - "repository": { - "description": "Repository URL", - "type": "string" - }, - "revision": { - "description": "Commit hash for the specified revision.", - "type": "string" - } - }, - "required": [ - "repository" - ], - "type": "object" - }, - "io.k8s.api.core.v1.GlusterfsPersistentVolumeSource": { - "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", - "properties": { - "endpoints": { - "description": "EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "string" - }, - "endpointsNamespace": { - "description": "EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "string" - }, - "path": { - "description": "Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "string" - }, - "readOnly": { - "description": "ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "boolean" - } - }, - "required": [ - "endpoints", - "path" - ], - "type": "object" - }, - "io.k8s.api.core.v1.GlusterfsVolumeSource": { - "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", - "properties": { - "endpoints": { - "description": "EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "string" - }, - "path": { - "description": "Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "string" - }, - "readOnly": { - "description": "ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "boolean" - } - }, - "required": [ - "endpoints", - "path" - ], - "type": "object" - }, - "io.k8s.api.core.v1.HTTPGetAction": { - "description": "HTTPGetAction describes an action based on HTTP Get requests.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.HTTPHeader" - }, - "type": "array" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", - "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." - }, - "scheme": { - "description": "Scheme to use for connecting to the host. Defaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "io.k8s.api.core.v1.HTTPHeader": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "io.k8s.api.core.v1.Handler": { - "description": "Handler defines a specific action that should be taken", - "properties": { - "exec": { - "$ref": "#/definitions/io.k8s.api.core.v1.ExecAction", - "description": "One and only one of the following should be specified. Exec specifies the action to take." - }, - "httpGet": { - "$ref": "#/definitions/io.k8s.api.core.v1.HTTPGetAction", - "description": "HTTPGet specifies the http request to perform." - }, - "tcpSocket": { - "$ref": "#/definitions/io.k8s.api.core.v1.TCPSocketAction", - "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.HostAlias": { - "description": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.", - "properties": { - "hostnames": { - "description": "Hostnames for the above IP address.", - "items": { - "type": "string" - }, - "type": "array" - }, - "ip": { - "description": "IP address of the host file entry.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.HostPathVolumeSource": { - "description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", - "properties": { - "path": { - "description": "Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", - "type": "string" - }, - "type": { - "description": "Type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", - "type": "string" - } - }, - "required": [ - "path" - ], - "type": "object" - }, - "io.k8s.api.core.v1.ISCSIPersistentVolumeSource": { - "description": "ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", - "properties": { - "chapAuthDiscovery": { - "description": "whether support iSCSI Discovery CHAP authentication", - "type": "boolean" - }, - "chapAuthSession": { - "description": "whether support iSCSI Session CHAP authentication", - "type": "boolean" - }, - "fsType": { - "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", - "type": "string" - }, - "initiatorName": { - "description": "Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", - "type": "string" - }, - "iqn": { - "description": "Target iSCSI Qualified Name.", - "type": "string" - }, - "iscsiInterface": { - "description": "iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", - "type": "string" - }, - "lun": { - "description": "iSCSI Target Lun number.", - "format": "int32", - "type": "integer" - }, - "portals": { - "description": "iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", - "items": { - "type": "string" - }, - "type": "array" - }, - "readOnly": { - "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", - "type": "boolean" - }, - "secretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", - "description": "CHAP Secret for iSCSI target and initiator authentication" - }, - "targetPortal": { - "description": "iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", - "type": "string" - } - }, - "required": [ - "targetPortal", - "iqn", - "lun" - ], - "type": "object" - }, - "io.k8s.api.core.v1.ISCSIVolumeSource": { - "description": "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", - "properties": { - "chapAuthDiscovery": { - "description": "whether support iSCSI Discovery CHAP authentication", - "type": "boolean" - }, - "chapAuthSession": { - "description": "whether support iSCSI Session CHAP authentication", - "type": "boolean" - }, - "fsType": { - "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", - "type": "string" - }, - "initiatorName": { - "description": "Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", - "type": "string" - }, - "iqn": { - "description": "Target iSCSI Qualified Name.", - "type": "string" - }, - "iscsiInterface": { - "description": "iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", - "type": "string" - }, - "lun": { - "description": "iSCSI Target Lun number.", - "format": "int32", - "type": "integer" - }, - "portals": { - "description": "iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", - "items": { - "type": "string" - }, - "type": "array" - }, - "readOnly": { - "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", - "type": "boolean" - }, - "secretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", - "description": "CHAP Secret for iSCSI target and initiator authentication" - }, - "targetPortal": { - "description": "iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", - "type": "string" - } - }, - "required": [ - "targetPortal", - "iqn", - "lun" - ], - "type": "object" - }, - "io.k8s.api.core.v1.KeyToPath": { - "description": "Maps a string key to a path within a volume.", - "properties": { - "key": { - "description": "The key to project.", - "type": "string" - }, - "mode": { - "description": "Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", - "type": "string" - } - }, - "required": [ - "key", - "path" - ], - "type": "object" - }, - "io.k8s.api.core.v1.Lifecycle": { - "description": "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.", - "properties": { - "postStart": { - "$ref": "#/definitions/io.k8s.api.core.v1.Handler", - "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" - }, - "preStop": { - "$ref": "#/definitions/io.k8s.api.core.v1.Handler", - "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" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.LimitRange": { - "description": "LimitRange sets resource usage limits for each kind of resource in a 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" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRangeSpec", - "description": "Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.LimitRangeItem": { - "description": "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", - "properties": { - "default": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - }, - "description": "Default resource requirement limit value by resource name if resource limit is omitted.", - "type": "object" - }, - "defaultRequest": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - }, - "description": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", - "type": "object" - }, - "max": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - }, - "description": "Max usage constraints on this kind by resource name.", - "type": "object" - }, - "maxLimitRequestRatio": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - }, - "description": "MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.", - "type": "object" - }, - "min": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - }, - "description": "Min usage constraints on this kind by resource name.", - "type": "object" - }, - "type": { - "description": "Type of resource that this limit applies to.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "io.k8s.api.core.v1.LimitRangeList": { - "description": "LimitRangeList is a list of LimitRange items.", - "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 LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "LimitRangeList", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.LimitRangeSpec": { - "description": "LimitRangeSpec defines a min/max usage limit for resources that match on kind.", - "properties": { - "limits": { - "description": "Limits is the list of LimitRangeItem objects that are enforced.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRangeItem" - }, - "type": "array" - } - }, - "required": [ - "limits" - ], - "type": "object" - }, - "io.k8s.api.core.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.", - "properties": { - "hostname": { - "description": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)", - "type": "string" - }, - "ip": { - "description": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)", - "type": "string" - }, - "ports": { - "description": "Ports is a list of records of service ports If used, every port defined in the service should have an entry in it", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.PortStatus" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.LoadBalancerStatus": { - "description": "LoadBalancerStatus represents the status of a load-balancer.", - "properties": { - "ingress": { - "description": "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.LoadBalancerIngress" - }, - "type": "array" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.LocalObjectReference": { - "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", - "properties": { - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "io.k8s.api.core.v1.LocalVolumeSource": { - "description": "Local represents directly-attached storage with node affinity (Beta feature)", - "properties": { - "fsType": { - "description": "Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a fileystem if unspecified.", - "type": "string" - }, - "path": { - "description": "The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).", - "type": "string" - } - }, - "required": [ - "path" - ], - "type": "object" - }, - "io.k8s.api.core.v1.NFSVolumeSource": { - "description": "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.", - "properties": { - "path": { - "description": "Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "type": "string" - }, - "readOnly": { - "description": "ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "type": "boolean" - }, - "server": { - "description": "Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "type": "string" - } - }, - "required": [ - "server", - "path" - ], - "type": "object" - }, - "io.k8s.api.core.v1.Namespace": { - "description": "Namespace provides a scope for Names. Use of multiple namespaces is optional.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.core.v1.NamespaceSpec", - "description": "Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.core.v1.NamespaceStatus", - "description": "Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Namespace", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.NamespaceCondition": { - "description": "NamespaceCondition contains details about state of namespace.", - "properties": { - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "message": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", - "type": "string" - }, - "type": { - "description": "Type of namespace controller condition.", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "io.k8s.api.core.v1.NamespaceList": { - "description": "NamespaceList is a list of Namespaces.", - "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 Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "NamespaceList", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.NamespaceSpec": { - "description": "NamespaceSpec describes the attributes on a Namespace.", - "properties": { - "finalizers": { - "description": "Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.NamespaceStatus": { - "description": "NamespaceStatus is information about the current status of a Namespace.", - "properties": { - "conditions": { - "description": "Represents the latest available observations of a namespace's current state.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.NamespaceCondition" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "phase": { - "description": "Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.Node": { - "description": "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeSpec", - "description": "Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeStatus", - "description": "Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Node", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.NodeAddress": { - "description": "NodeAddress contains information for the node's address.", - "properties": { - "address": { - "description": "The node address.", - "type": "string" - }, - "type": { - "description": "Node address type, one of Hostname, ExternalIP or InternalIP.", - "type": "string" - } - }, - "required": [ - "type", - "address" - ], - "type": "object" - }, - "io.k8s.api.core.v1.NodeAffinity": { - "description": "Node affinity is a group of node affinity scheduling rules.", - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.PreferredSchedulingTerm" - }, - "type": "array" - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelector", - "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." - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.NodeCondition": { - "description": "NodeCondition contains condition information for a node.", - "properties": { - "lastHeartbeatTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Last time we got an update on a given condition." - }, - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Last time the condition transit from one status to another." - }, - "message": { - "description": "Human readable message indicating details about last transition.", - "type": "string" - }, - "reason": { - "description": "(brief) reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", - "type": "string" - }, - "type": { - "description": "Type of node condition.", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "io.k8s.api.core.v1.NodeConfigSource": { - "description": "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22", - "properties": { - "configMap": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapNodeConfigSource", - "description": "ConfigMap is a reference to a Node's ConfigMap" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.NodeConfigStatus": { - "description": "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.", - "properties": { - "active": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeConfigSource", - "description": "Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error." - }, - "assigned": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeConfigSource", - "description": "Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned." - }, - "error": { - "description": "Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions.", - "type": "string" - }, - "lastKnownGood": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeConfigSource", - "description": "LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future." - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.NodeDaemonEndpoints": { - "description": "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", - "properties": { - "kubeletEndpoint": { - "$ref": "#/definitions/io.k8s.api.core.v1.DaemonEndpoint", - "description": "Endpoint on which Kubelet is listening." - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.NodeList": { - "description": "NodeList is the whole list of all Nodes which have been registered with master.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of nodes", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "NodeList", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.NodeSelector": { - "description": "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.", - "properties": { - "nodeSelectorTerms": { - "description": "Required. A list of node selector terms. The terms are ORed.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelectorTerm" - }, - "type": "array" - } - }, - "required": [ - "nodeSelectorTerms" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "io.k8s.api.core.v1.NodeSelectorRequirement": { - "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", - "properties": { - "key": { - "description": "The label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", - "type": "string" - }, - "values": { - "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "io.k8s.api.core.v1.NodeSelectorTerm": { - "description": "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.", - "properties": { - "matchExpressions": { - "description": "A list of node selector requirements by node's labels.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelectorRequirement" - }, - "type": "array" - }, - "matchFields": { - "description": "A list of node selector requirements by node's fields.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelectorRequirement" - }, - "type": "array" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "io.k8s.api.core.v1.NodeSpec": { - "description": "NodeSpec describes the attributes that a node is created with.", - "properties": { - "configSource": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeConfigSource", - "description": "Deprecated. If specified, the source of the node's configuration. The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field. This field is deprecated as of 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration" - }, - "externalID": { - "description": "Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966", - "type": "string" - }, - "podCIDR": { - "description": "PodCIDR represents the pod IP range assigned to the node.", - "type": "string" - }, - "podCIDRs": { - "description": "podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-patch-strategy": "merge" - }, - "providerID": { - "description": "ID of the node assigned by the cloud provider in the format: ://", - "type": "string" - }, - "taints": { - "description": "If specified, the node's taints.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Taint" - }, - "type": "array" - }, - "unschedulable": { - "description": "Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration", - "type": "boolean" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.NodeStatus": { - "description": "NodeStatus is information about the current status of a node.", - "properties": { - "addresses": { - "description": "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See http://pr.k8s.io/79391 for an example.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeAddress" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "allocatable": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - }, - "description": "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.", - "type": "object" - }, - "capacity": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - }, - "description": "Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", - "type": "object" - }, - "conditions": { - "description": "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeCondition" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "config": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeConfigStatus", - "description": "Status of the config assigned to the node via the dynamic Kubelet config feature." - }, - "daemonEndpoints": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeDaemonEndpoints", - "description": "Endpoints of daemons running on the Node." - }, - "images": { - "description": "List of container images on this node", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerImage" - }, - "type": "array" - }, - "nodeInfo": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeSystemInfo", - "description": "Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info" - }, - "phase": { - "description": "NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated.", - "type": "string" - }, - "volumesAttached": { - "description": "List of volumes that are attached to the node.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.AttachedVolume" - }, - "type": "array" - }, - "volumesInUse": { - "description": "List of attachable volumes in use (mounted) by the node.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.NodeSystemInfo": { - "description": "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.", - "properties": { - "architecture": { - "description": "The Architecture reported by the node", - "type": "string" - }, - "bootID": { - "description": "Boot ID reported by the node.", - "type": "string" - }, - "containerRuntimeVersion": { - "description": "ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).", - "type": "string" - }, - "kernelVersion": { - "description": "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).", - "type": "string" - }, - "kubeProxyVersion": { - "description": "KubeProxy Version reported by the node.", - "type": "string" - }, - "kubeletVersion": { - "description": "Kubelet Version reported by the node.", - "type": "string" - }, - "machineID": { - "description": "MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html", - "type": "string" - }, - "operatingSystem": { - "description": "The Operating System reported by the node", - "type": "string" - }, - "osImage": { - "description": "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).", - "type": "string" - }, - "systemUUID": { - "description": "SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid", - "type": "string" - } - }, - "required": [ - "machineID", - "systemUUID", - "bootID", - "kernelVersion", - "osImage", - "containerRuntimeVersion", - "kubeletVersion", - "kubeProxyVersion", - "operatingSystem", - "architecture" - ], - "type": "object" - }, - "io.k8s.api.core.v1.ObjectFieldSelector": { - "description": "ObjectFieldSelector selects an APIVersioned field of an object.", - "properties": { - "apiVersion": { - "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", - "type": "string" - }, - "fieldPath": { - "description": "Path of the field to select in the specified API version.", - "type": "string" - } - }, - "required": [ - "fieldPath" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "io.k8s.api.core.v1.ObjectReference": { - "description": "ObjectReference contains enough information to let you inspect or modify the referred object.", - "properties": { - "apiVersion": { - "description": "API version of the referent.", - "type": "string" - }, - "fieldPath": { - "description": "If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.", - "type": "string" - }, - "kind": { - "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "namespace": { - "description": "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", - "type": "string" - }, - "resourceVersion": { - "description": "Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "uid": { - "description": "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "io.k8s.api.core.v1.PersistentVolume": { - "description": "PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeSpec", - "description": "Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeStatus", - "description": "Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.PersistentVolumeClaim": { - "description": "PersistentVolumeClaim is a user's request for and claim to a persistent volume", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimSpec", - "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" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimStatus", - "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" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.PersistentVolumeClaimCondition": { - "description": "PersistentVolumeClaimCondition contails details about state of pvc", - "properties": { - "lastProbeTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Last time we probed the condition." - }, - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Last time the condition transitioned from one status to another." - }, - "message": { - "description": "Human-readable message indicating details about last transition.", - "type": "string" - }, - "reason": { - "description": "Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized.", - "type": "string" - }, - "status": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "io.k8s.api.core.v1.PersistentVolumeClaimList": { - "description": "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.", - "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": "A list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "PersistentVolumeClaimList", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.PersistentVolumeClaimSpec": { - "description": "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes", - "properties": { - "accessModes": { - "description": "AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", - "items": { - "type": "string" - }, - "type": "array" - }, - "dataSource": { - "$ref": "#/definitions/io.k8s.api.core.v1.TypedLocalObjectReference", - "description": "This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field." - }, - "dataSourceRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.TypedLocalObjectReference", - "description": "Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While DataSource ignores disallowed values (dropping them), DataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n(Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled." - }, - "resources": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceRequirements", - "description": "Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources" - }, - "selector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "A label query over volumes to consider for binding." - }, - "storageClassName": { - "description": "Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", - "type": "string" - }, - "volumeMode": { - "description": "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.", - "type": "string" - }, - "volumeName": { - "description": "VolumeName is the binding reference to the PersistentVolume backing this claim.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.PersistentVolumeClaimStatus": { - "description": "PersistentVolumeClaimStatus is the current status of a persistent volume claim.", - "properties": { - "accessModes": { - "description": "AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", - "items": { - "type": "string" - }, - "type": "array" - }, - "capacity": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - }, - "description": "Represents the actual resources of the underlying volume.", - "type": "object" - }, - "conditions": { - "description": "Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimCondition" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "phase": { - "description": "Phase represents the current phase of PersistentVolumeClaim.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.PersistentVolumeClaimTemplate": { - "description": "PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.", - "properties": { - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation." - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimSpec", - "description": "The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here." - } - }, - "required": [ - "spec" - ], - "type": "object" - }, - "io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource": { - "description": "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).", - "properties": { - "claimName": { - "description": "ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", - "type": "string" - }, - "readOnly": { - "description": "Will force the ReadOnly setting in VolumeMounts. Default false.", - "type": "boolean" - } - }, - "required": [ - "claimName" - ], - "type": "object" - }, - "io.k8s.api.core.v1.PersistentVolumeList": { - "description": "PersistentVolumeList is a list of PersistentVolume items.", - "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 persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "PersistentVolumeList", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.PersistentVolumeSpec": { - "description": "PersistentVolumeSpec is the specification of a persistent volume.", - "properties": { - "accessModes": { - "description": "AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes", - "items": { - "type": "string" - }, - "type": "array" - }, - "awsElasticBlockStore": { - "$ref": "#/definitions/io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource", - "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" - }, - "azureDisk": { - "$ref": "#/definitions/io.k8s.api.core.v1.AzureDiskVolumeSource", - "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod." - }, - "azureFile": { - "$ref": "#/definitions/io.k8s.api.core.v1.AzureFilePersistentVolumeSource", - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod." - }, - "capacity": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - }, - "description": "A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", - "type": "object" - }, - "cephfs": { - "$ref": "#/definitions/io.k8s.api.core.v1.CephFSPersistentVolumeSource", - "description": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime" - }, - "cinder": { - "$ref": "#/definitions/io.k8s.api.core.v1.CinderPersistentVolumeSource", - "description": "Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md" - }, - "claimRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", - "description": "ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding" - }, - "csi": { - "$ref": "#/definitions/io.k8s.api.core.v1.CSIPersistentVolumeSource", - "description": "CSI represents storage that is handled by an external CSI driver (Beta feature)." - }, - "fc": { - "$ref": "#/definitions/io.k8s.api.core.v1.FCVolumeSource", - "description": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod." - }, - "flexVolume": { - "$ref": "#/definitions/io.k8s.api.core.v1.FlexPersistentVolumeSource", - "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin." - }, - "flocker": { - "$ref": "#/definitions/io.k8s.api.core.v1.FlockerVolumeSource", - "description": "Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running" - }, - "gcePersistentDisk": { - "$ref": "#/definitions/io.k8s.api.core.v1.GCEPersistentDiskVolumeSource", - "description": "GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk" - }, - "glusterfs": { - "$ref": "#/definitions/io.k8s.api.core.v1.GlusterfsPersistentVolumeSource", - "description": "Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md" - }, - "hostPath": { - "$ref": "#/definitions/io.k8s.api.core.v1.HostPathVolumeSource", - "description": "HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath" - }, - "iscsi": { - "$ref": "#/definitions/io.k8s.api.core.v1.ISCSIPersistentVolumeSource", - "description": "ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin." - }, - "local": { - "$ref": "#/definitions/io.k8s.api.core.v1.LocalVolumeSource", - "description": "Local represents directly-attached storage with node affinity" - }, - "mountOptions": { - "description": "A list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options", - "items": { - "type": "string" - }, - "type": "array" - }, - "nfs": { - "$ref": "#/definitions/io.k8s.api.core.v1.NFSVolumeSource", - "description": "NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs" - }, - "nodeAffinity": { - "$ref": "#/definitions/io.k8s.api.core.v1.VolumeNodeAffinity", - "description": "NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume." - }, - "persistentVolumeReclaimPolicy": { - "description": "What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming", - "type": "string" - }, - "photonPersistentDisk": { - "$ref": "#/definitions/io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource", - "description": "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine" - }, - "portworxVolume": { - "$ref": "#/definitions/io.k8s.api.core.v1.PortworxVolumeSource", - "description": "PortworxVolume represents a portworx volume attached and mounted on kubelets host machine" - }, - "quobyte": { - "$ref": "#/definitions/io.k8s.api.core.v1.QuobyteVolumeSource", - "description": "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime" - }, - "rbd": { - "$ref": "#/definitions/io.k8s.api.core.v1.RBDPersistentVolumeSource", - "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" - }, - "scaleIO": { - "$ref": "#/definitions/io.k8s.api.core.v1.ScaleIOPersistentVolumeSource", - "description": "ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes." - }, - "storageClassName": { - "description": "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": "#/definitions/io.k8s.api.core.v1.StorageOSPersistentVolumeSource", - "description": "StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md" - }, - "volumeMode": { - "description": "volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec.", - "type": "string" - }, - "vsphereVolume": { - "$ref": "#/definitions/io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource", - "description": "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.PersistentVolumeStatus": { - "description": "PersistentVolumeStatus is the current status of a persistent volume.", - "properties": { - "message": { - "description": "A human-readable message indicating details about why the volume is in this state.", - "type": "string" - }, - "phase": { - "description": "Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase", - "type": "string" - }, - "reason": { - "description": "Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource": { - "description": "Represents a Photon Controller persistent disk resource.", - "properties": { - "fsType": { - "description": "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" - }, - "pdID": { - "description": "ID that identifies Photon Controller persistent disk", - "type": "string" - } - }, - "required": [ - "pdID" - ], - "type": "object" - }, - "io.k8s.api.core.v1.Pod": { - "description": "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodSpec", - "description": "Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodStatus", - "description": "Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Pod", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.PodAffinity": { - "description": "Pod affinity is a group of inter pod affinity scheduling rules.", - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.WeightedPodAffinityTerm" - }, - "type": "array" - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodAffinityTerm" - }, - "type": "array" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.PodAffinityTerm": { - "description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running", - "properties": { - "labelSelector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "A label query over a set of resources, in this case pods." - }, - "namespaceSelector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled." - }, - "namespaces": { - "description": "namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\"", - "items": { - "type": "string" - }, - "type": "array" - }, - "topologyKey": { - "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.", - "type": "string" - } - }, - "required": [ - "topologyKey" - ], - "type": "object" - }, - "io.k8s.api.core.v1.PodAntiAffinity": { - "description": "Pod anti affinity is a group of inter pod anti affinity scheduling rules.", - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.WeightedPodAffinityTerm" - }, - "type": "array" - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "description": "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodAffinityTerm" - }, - "type": "array" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.PodCondition": { - "description": "PodCondition contains details for the current condition of this pod.", - "properties": { - "lastProbeTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Last time we probed the condition." - }, - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Last time the condition transitioned from one status to another." - }, - "message": { - "description": "Human-readable message indicating details about last transition.", - "type": "string" - }, - "reason": { - "description": "Unique, one-word, CamelCase reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", - "type": "string" - }, - "type": { - "description": "Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "io.k8s.api.core.v1.PodDNSConfig": { - "description": "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.", - "properties": { - "nameservers": { - "description": "A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.", - "items": { - "type": "string" - }, - "type": "array" - }, - "options": { - "description": "A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodDNSConfigOption" - }, - "type": "array" - }, - "searches": { - "description": "A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.PodDNSConfigOption": { - "description": "PodDNSConfigOption defines DNS resolver options of a pod.", - "properties": { - "name": { - "description": "Required.", - "type": "string" - }, - "value": { - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.PodIP": { - "description": "IP address information for entries in the (plural) PodIPs field. Each entry includes:\n IP: An IP address allocated to the pod. Routable at least within the cluster.", - "properties": { - "ip": { - "description": "ip is an IP address (IPv4 or IPv6) assigned to the pod", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.PodList": { - "description": "PodList is a list of Pods.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "PodList", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.PodReadinessGate": { - "description": "PodReadinessGate contains the reference to a pod condition", - "properties": { - "conditionType": { - "description": "ConditionType refers to a condition in the pod's condition list with matching type.", - "type": "string" - } - }, - "required": [ - "conditionType" - ], - "type": "object" - }, - "io.k8s.api.core.v1.PodSecurityContext": { - "description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.", - "properties": { - "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:\n\n1. 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----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume.", - "format": "int64", - "type": "integer" - }, - "fsGroupChangePolicy": { - "description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used.", - "type": "string" - }, - "runAsGroup": { - "description": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.", - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "boolean" - }, - "runAsUser": { - "description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.", - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "$ref": "#/definitions/io.k8s.api.core.v1.SELinuxOptions", - "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." - }, - "seccompProfile": { - "$ref": "#/definitions/io.k8s.api.core.v1.SeccompProfile", - "description": "The seccomp options to use by the containers in this pod." - }, - "supplementalGroups": { - "description": "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.", - "items": { - "format": "int64", - "type": "integer" - }, - "type": "array" - }, - "sysctls": { - "description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Sysctl" - }, - "type": "array" - }, - "windowsOptions": { - "$ref": "#/definitions/io.k8s.api.core.v1.WindowsSecurityContextOptions", - "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." - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.PodSpec": { - "description": "PodSpec is a description of a pod.", - "properties": { - "activeDeadlineSeconds": { - "description": "Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.", - "format": "int64", - "type": "integer" - }, - "affinity": { - "$ref": "#/definitions/io.k8s.api.core.v1.Affinity", - "description": "If specified, the pod's scheduling constraints" - }, - "automountServiceAccountToken": { - "description": "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.", - "type": "boolean" - }, - "containers": { - "description": "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Container" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" - }, - "dnsConfig": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodDNSConfig", - "description": "Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy." - }, - "dnsPolicy": { - "description": "Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.", - "type": "string" - }, - "enableServiceLinks": { - "description": "EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.", - "type": "boolean" - }, - "ephemeralContainers": { - "description": "List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.EphemeralContainer" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" - }, - "hostAliases": { - "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.HostAlias" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "ip", - "x-kubernetes-patch-strategy": "merge" - }, - "hostIPC": { - "description": "Use the host's ipc namespace. Optional: Default to false.", - "type": "boolean" - }, - "hostNetwork": { - "description": "Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.", - "type": "boolean" - }, - "hostPID": { - "description": "Use the host's pid namespace. Optional: Default to false.", - "type": "boolean" - }, - "hostname": { - "description": "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.", - "type": "string" - }, - "imagePullSecrets": { - "description": "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" - }, - "initContainers": { - "description": "List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Container" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" - }, - "nodeName": { - "description": "NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.", - "type": "string" - }, - "nodeSelector": { - "additionalProperties": { - "type": "string" - }, - "description": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "overhead": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - }, - "description": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature.", - "type": "object" - }, - "preemptionPolicy": { - "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate.", - "type": "string" - }, - "priority": { - "description": "The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.", - "format": "int32", - "type": "integer" - }, - "priorityClassName": { - "description": "If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.", - "type": "string" - }, - "readinessGates": { - "description": "If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodReadinessGate" - }, - "type": "array" - }, - "restartPolicy": { - "description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy", - "type": "string" - }, - "runtimeClassName": { - "description": "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class This is a beta feature as of Kubernetes v1.14.", - "type": "string" - }, - "schedulerName": { - "description": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", - "type": "string" - }, - "securityContext": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodSecurityContext", - "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field." - }, - "serviceAccount": { - "description": "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.", - "type": "string" - }, - "serviceAccountName": { - "description": "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", - "type": "string" - }, - "setHostnameAsFQDN": { - "description": "If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.", - "type": "boolean" - }, - "shareProcessNamespace": { - "description": "Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false.", - "type": "boolean" - }, - "subdomain": { - "description": "If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all.", - "type": "string" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.", - "format": "int64", - "type": "integer" - }, - "tolerations": { - "description": "If specified, the pod's tolerations.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Toleration" - }, - "type": "array" - }, - "topologySpreadConstraints": { - "description": "TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.TopologySpreadConstraint" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "topologyKey", - "whenUnsatisfiable" - ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "topologyKey", - "x-kubernetes-patch-strategy": "merge" - }, - "volumes": { - "description": "List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Volume" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge,retainKeys" - } - }, - "required": [ - "containers" - ], - "type": "object" - }, - "io.k8s.api.core.v1.PodStatus": { - "description": "PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.", - "properties": { - "conditions": { - "description": "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodCondition" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "containerStatuses": { - "description": "The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStatus" - }, - "type": "array" - }, - "ephemeralContainerStatuses": { - "description": "Status for any ephemeral containers that have run in this pod. This field is alpha-level and is only populated by servers that enable the EphemeralContainers feature.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStatus" - }, - "type": "array" - }, - "hostIP": { - "description": "IP address of the host to which the pod is assigned. Empty if not yet scheduled.", - "type": "string" - }, - "initContainerStatuses": { - "description": "The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStatus" - }, - "type": "array" - }, - "message": { - "description": "A human readable message indicating details about why the pod is in this condition.", - "type": "string" - }, - "nominatedNodeName": { - "description": "nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled.", - "type": "string" - }, - "phase": { - "description": "The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values:\n\nPending: 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.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase", - "type": "string" - }, - "podIP": { - "description": "IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.", - "type": "string" - }, - "podIPs": { - "description": "podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodIP" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "ip", - "x-kubernetes-patch-strategy": "merge" - }, - "qosClass": { - "description": "The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md", - "type": "string" - }, - "reason": { - "description": "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'", - "type": "string" - }, - "startTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod." - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.PodTemplate": { - "description": "PodTemplate describes a template for creating copies of a predefined pod.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "template": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec", - "description": "Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.PodTemplateList": { - "description": "PodTemplateList is a list of PodTemplates.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of pod templates", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "PodTemplateList", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.PodTemplateSpec": { - "description": "PodTemplateSpec describes the data a pod should have when created from a template", - "properties": { - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodSpec", - "description": "Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.PortStatus": { - "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\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n 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" - }, - "io.k8s.api.core.v1.PortworxVolumeSource": { - "description": "PortworxVolumeSource represents a Portworx volume resource.", - "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": "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" - }, - "io.k8s.api.core.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).", - "properties": { - "preference": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelectorTerm", - "description": "A node selector term, associated with the corresponding weight." - }, - "weight": { - "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "weight", - "preference" - ], - "type": "object" - }, - "io.k8s.api.core.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.", - "properties": { - "exec": { - "$ref": "#/definitions/io.k8s.api.core.v1.ExecAction", - "description": "One and only one of the following should be specified. Exec specifies the action to take." - }, - "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" - }, - "httpGet": { - "$ref": "#/definitions/io.k8s.api.core.v1.HTTPGetAction", - "description": "HTTPGet specifies the http request to perform." - }, - "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": "#/definitions/io.k8s.api.core.v1.TCPSocketAction", - "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported" - }, - "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" - }, - "io.k8s.api.core.v1.ProjectedVolumeSource": { - "description": "Represents a projected volume source", - "properties": { - "defaultMode": { - "description": "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": "list of volume projections", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.VolumeProjection" - }, - "type": "array" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.QuobyteVolumeSource": { - "description": "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.", - "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" - }, - "io.k8s.api.core.v1.RBDPersistentVolumeSource": { - "description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", - "properties": { - "fsType": { - "description": "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": "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": "A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "items": { - "type": "string" - }, - "type": "array" - }, - "pool": { - "description": "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": "#/definitions/io.k8s.api.core.v1.SecretReference", - "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" - }, - "user": { - "description": "The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "string" - } - }, - "required": [ - "monitors", - "image" - ], - "type": "object" - }, - "io.k8s.api.core.v1.RBDVolumeSource": { - "description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", - "properties": { - "fsType": { - "description": "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": "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": "A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "items": { - "type": "string" - }, - "type": "array" - }, - "pool": { - "description": "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": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", - "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" - }, - "user": { - "description": "The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "string" - } - }, - "required": [ - "monitors", - "image" - ], - "type": "object" - }, - "io.k8s.api.core.v1.ReplicationController": { - "description": "ReplicationController represents the configuration of a replication controller.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationControllerSpec", - "description": "Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationControllerStatus", - "description": "Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.ReplicationControllerCondition": { - "description": "ReplicationControllerCondition describes the state of a replication controller at a certain point.", - "properties": { - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "The last time the condition transitioned from one status to another." - }, - "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": [ - "type", - "status" - ], - "type": "object" - }, - "io.k8s.api.core.v1.ReplicationControllerList": { - "description": "ReplicationControllerList is a collection of replication controllers.", - "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": "#/definitions/io.k8s.api.core.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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ReplicationControllerList", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.ReplicationControllerSpec": { - "description": "ReplicationControllerSpec is the specification of a replication controller.", - "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": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec", - "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.ReplicationControllerStatus": { - "description": "ReplicationControllerStatus represents the current status of a replication controller.", - "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": "#/definitions/io.k8s.api.core.v1.ReplicationControllerCondition" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "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 oberved 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" - }, - "io.k8s.api.core.v1.ResourceFieldSelector": { - "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", - "properties": { - "containerName": { - "description": "Container name: required for volumes, optional for env vars", - "type": "string" - }, - "divisor": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "Specifies the output format of the exposed resources, defaults to \"1\"" - }, - "resource": { - "description": "Required: resource to select", - "type": "string" - } - }, - "required": [ - "resource" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "io.k8s.api.core.v1.ResourceQuota": { - "description": "ResourceQuota sets aggregate quota restrictions enforced per 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" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuotaSpec", - "description": "Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuotaStatus", - "description": "Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.ResourceQuotaList": { - "description": "ResourceQuotaList is a list of ResourceQuota items.", - "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": "#/definitions/io.k8s.api.core.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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ResourceQuotaList", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.ResourceQuotaSpec": { - "description": "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.", - "properties": { - "hard": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.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": "#/definitions/io.k8s.api.core.v1.ScopeSelector", - "description": "scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched." - }, - "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" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.ResourceQuotaStatus": { - "description": "ResourceQuotaStatus defines the enforced hard limits and observed use.", - "properties": { - "hard": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.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": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - }, - "description": "Used is the current observed total usage of the resource in the namespace.", - "type": "object" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.ResourceRequirements": { - "description": "ResourceRequirements describes the compute resource requirements.", - "properties": { - "limits": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.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": "#/definitions/io.k8s.apimachinery.pkg.api.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. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.SELinuxOptions": { - "description": "SELinuxOptions are the labels to be applied to the container", - "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" - }, - "io.k8s.api.core.v1.ScaleIOPersistentVolumeSource": { - "description": "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume", - "properties": { - "fsType": { - "description": "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": "The host address of the ScaleIO API Gateway.", - "type": "string" - }, - "protectionDomain": { - "description": "The name of the ScaleIO Protection Domain for the configured storage.", - "type": "string" - }, - "readOnly": { - "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", - "description": "SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail." - }, - "sslEnabled": { - "description": "Flag to enable/disable SSL communication with Gateway, default false", - "type": "boolean" - }, - "storageMode": { - "description": "Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", - "type": "string" - }, - "storagePool": { - "description": "The ScaleIO Storage Pool associated with the protection domain.", - "type": "string" - }, - "system": { - "description": "The name of the storage system as configured in ScaleIO.", - "type": "string" - }, - "volumeName": { - "description": "The name of a volume already created in the ScaleIO system that is associated with this volume source.", - "type": "string" - } - }, - "required": [ - "gateway", - "system", - "secretRef" - ], - "type": "object" - }, - "io.k8s.api.core.v1.ScaleIOVolumeSource": { - "description": "ScaleIOVolumeSource represents a persistent ScaleIO volume", - "properties": { - "fsType": { - "description": "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": "The host address of the ScaleIO API Gateway.", - "type": "string" - }, - "protectionDomain": { - "description": "The name of the ScaleIO Protection Domain for the configured storage.", - "type": "string" - }, - "readOnly": { - "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", - "description": "SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail." - }, - "sslEnabled": { - "description": "Flag to enable/disable SSL communication with Gateway, default false", - "type": "boolean" - }, - "storageMode": { - "description": "Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", - "type": "string" - }, - "storagePool": { - "description": "The ScaleIO Storage Pool associated with the protection domain.", - "type": "string" - }, - "system": { - "description": "The name of the storage system as configured in ScaleIO.", - "type": "string" - }, - "volumeName": { - "description": "The name of a volume already created in the ScaleIO system that is associated with this volume source.", - "type": "string" - } - }, - "required": [ - "gateway", - "system", - "secretRef" - ], - "type": "object" - }, - "io.k8s.api.core.v1.ScopeSelector": { - "description": "A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.", - "properties": { - "matchExpressions": { - "description": "A list of scope selector requirements by scope of the resources.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ScopedResourceSelectorRequirement" - }, - "type": "array" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "io.k8s.api.core.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.", - "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" - } - }, - "required": [ - "scopeName", - "operator" - ], - "type": "object" - }, - "io.k8s.api.core.v1.SeccompProfile": { - "description": "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.", - "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 only be set if type is \"Localhost\".", - "type": "string" - }, - "type": { - "description": "type indicates which kind of seccomp profile will be applied. Valid options are:\n\nLocalhost - 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" - } - } - ] - }, - "io.k8s.api.core.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.", - "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", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "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.", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Secret", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.SecretEnvSource": { - "description": "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.", - "properties": { - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret must be defined", - "type": "boolean" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.SecretKeySelector": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "io.k8s.api.core.v1.SecretList": { - "description": "SecretList is a list of Secret.", - "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": "#/definitions/io.k8s.api.core.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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "SecretList", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.SecretProjection": { - "description": "Adapts a secret into a projected volume.\n\nThe 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.", - "properties": { - "items": { - "description": "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": "#/definitions/io.k8s.api.core.v1.KeyToPath" - }, - "type": "array" - }, - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.SecretReference": { - "description": "SecretReference represents a Secret Reference. It has enough information to retrieve secret in any 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" - }, - "io.k8s.api.core.v1.SecretVolumeSource": { - "description": "Adapts a Secret into a volume.\n\nThe 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.", - "properties": { - "defaultMode": { - "description": "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": "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": "#/definitions/io.k8s.api.core.v1.KeyToPath" - }, - "type": "array" - }, - "optional": { - "description": "Specify whether the Secret or its keys must be defined", - "type": "boolean" - }, - "secretName": { - "description": "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" - }, - "io.k8s.api.core.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.", - "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", - "type": "boolean" - }, - "capabilities": { - "$ref": "#/definitions/io.k8s.api.core.v1.Capabilities", - "description": "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime." - }, - "privileged": { - "description": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false.", - "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.", - "type": "string" - }, - "readOnlyRootFilesystem": { - "description": "Whether this container has a read-only root filesystem. Default is false.", - "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.", - "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.", - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "$ref": "#/definitions/io.k8s.api.core.v1.SELinuxOptions", - "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." - }, - "seccompProfile": { - "$ref": "#/definitions/io.k8s.api.core.v1.SeccompProfile", - "description": "The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options." - }, - "windowsOptions": { - "$ref": "#/definitions/io.k8s.api.core.v1.WindowsSecurityContextOptions", - "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." - } - }, - "type": "object" - }, - "io.k8s.api.core.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.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceSpec", - "description": "Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceStatus", - "description": "Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Service", - "version": "v1" - } - ] - }, - "io.k8s.api.core.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", - "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": "#/definitions/io.k8s.api.core.v1.LocalObjectReference" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "secrets": { - "description": "Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.ServiceAccountList": { - "description": "ServiceAccountList is a list of ServiceAccount objects", - "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": "#/definitions/io.k8s.api.core.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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ServiceAccountList", - "version": "v1" - } - ] - }, - "io.k8s.api.core.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).", - "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" - }, - "io.k8s.api.core.v1.ServiceList": { - "description": "ServiceList holds a list of services.", - "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": "#/definitions/io.k8s.api.core.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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ServiceList", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.ServicePort": { - "description": "ServicePort contains information on service's port.", - "properties": { - "appProtocol": { - "description": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use 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": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", - "description": "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "io.k8s.api.core.v1.ServiceSpec": { - "description": "ServiceSpec describes the attributes that a user creates on a service.", - "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. This field is beta-level and is only honored by servers that enable the ServiceLBNodePortControl feature.", - "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.\n\nUnless the \"IPv6DualStack\" feature gate is enabled, this field is limited to one value, which must be the same as the clusterIP field. If the feature gate is enabled, 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" - }, - "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 denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. \"Local\" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. \"Cluster\" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading.", - "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).", - "format": "int32", - "type": "integer" - }, - "internalTrafficPolicy": { - "description": "InternalTrafficPolicy specifies if the cluster internal traffic should be routed to all endpoints or node-local endpoints only. \"Cluster\" routes internal traffic to a Service to all endpoints. \"Local\" routes traffic to node-local endpoints only, traffic is dropped if no node-local endpoints are ready. The default value is \"Cluster\".", - "type": "string" - }, - "ipFamilies": { - "description": "IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service, and is gated by the \"IPv6DualStack\" feature gate. 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.\n\nThis 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, and is gated by the \"IPv6DualStack\" feature gate. 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 LoadBalancer will get created with the IP specified in this field. 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.", - "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" - }, - "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": "#/definitions/io.k8s.api.core.v1.ServicePort" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "port", - "protocol" - ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "port", - "x-kubernetes-patch-strategy": "merge" - }, - "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": "#/definitions/io.k8s.api.core.v1.SessionAffinityConfig", - "description": "sessionAffinityConfig contains the configurations of session affinity." - }, - "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" - }, - "io.k8s.api.core.v1.ServiceStatus": { - "description": "ServiceStatus represents the current status of a service.", - "properties": { - "conditions": { - "description": "Current service state", - "items": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "loadBalancer": { - "$ref": "#/definitions/io.k8s.api.core.v1.LoadBalancerStatus", - "description": "LoadBalancer contains the current status of the load-balancer, if one is present." - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.SessionAffinityConfig": { - "description": "SessionAffinityConfig represents the configurations of session affinity.", - "properties": { - "clientIP": { - "$ref": "#/definitions/io.k8s.api.core.v1.ClientIPConfig", - "description": "clientIP contains the configurations of Client IP based session affinity." - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.StorageOSPersistentVolumeSource": { - "description": "Represents a StorageOS persistent volume resource.", - "properties": { - "fsType": { - "description": "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": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", - "description": "SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted." - }, - "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" - }, - "io.k8s.api.core.v1.StorageOSVolumeSource": { - "description": "Represents a StorageOS persistent volume resource.", - "properties": { - "fsType": { - "description": "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": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference", - "description": "SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted." - }, - "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" - }, - "io.k8s.api.core.v1.Sysctl": { - "description": "Sysctl defines a kernel parameter to be set", - "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" - }, - "io.k8s.api.core.v1.TCPSocketAction": { - "description": "TCPSocketAction describes an action based on opening a socket", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", - "description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "io.k8s.api.core.v1.Taint": { - "description": "The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.", - "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": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints." - }, - "value": { - "description": "The taint value corresponding to the taint key.", - "type": "string" - } - }, - "required": [ - "key", - "effect" - ], - "type": "object" - }, - "io.k8s.api.core.v1.Toleration": { - "description": "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching 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" - }, - "io.k8s.api.core.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.", - "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" - } - }, - "required": [ - "key", - "values" - ], - "type": "object" - }, - "io.k8s.api.core.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.", - "properties": { - "matchLabelExpressions": { - "description": "A list of topology selector requirements by labels.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.TopologySelectorLabelRequirement" - }, - "type": "array" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "io.k8s.api.core.v1.TopologySpreadConstraint": { - "description": "TopologySpreadConstraint specifies how to spread matching pods among the given topology.", - "properties": { - "labelSelector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain." - }, - "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. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) 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" - }, - "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. 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,\n but giving higher precedence to topologies that would help reduce the\n skew.\nA constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assigment 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" - }, - "io.k8s.api.core.v1.TypedLocalObjectReference": { - "description": "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same 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" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "io.k8s.api.core.v1.Volume": { - "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", - "properties": { - "awsElasticBlockStore": { - "$ref": "#/definitions/io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource", - "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" - }, - "azureDisk": { - "$ref": "#/definitions/io.k8s.api.core.v1.AzureDiskVolumeSource", - "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod." - }, - "azureFile": { - "$ref": "#/definitions/io.k8s.api.core.v1.AzureFileVolumeSource", - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod." - }, - "cephfs": { - "$ref": "#/definitions/io.k8s.api.core.v1.CephFSVolumeSource", - "description": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime" - }, - "cinder": { - "$ref": "#/definitions/io.k8s.api.core.v1.CinderVolumeSource", - "description": "Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md" - }, - "configMap": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapVolumeSource", - "description": "ConfigMap represents a configMap that should populate this volume" - }, - "csi": { - "$ref": "#/definitions/io.k8s.api.core.v1.CSIVolumeSource", - "description": "CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature)." - }, - "downwardAPI": { - "$ref": "#/definitions/io.k8s.api.core.v1.DownwardAPIVolumeSource", - "description": "DownwardAPI represents downward API about the pod that should populate this volume" - }, - "emptyDir": { - "$ref": "#/definitions/io.k8s.api.core.v1.EmptyDirVolumeSource", - "description": "EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir" - }, - "ephemeral": { - "$ref": "#/definitions/io.k8s.api.core.v1.EphemeralVolumeSource", - "description": "Ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed.\n\nUse this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity\n tracking are needed,\nc) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through\n a PersistentVolumeClaim (see EphemeralVolumeSource for more\n information on the connection between this volume type\n and PersistentVolumeClaim).\n\nUse PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod.\n\nUse CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information.\n\nA pod can use both types of ephemeral volumes and persistent volumes at the same time.\n\nThis is a beta feature and only available when the GenericEphemeralVolume feature gate is enabled." - }, - "fc": { - "$ref": "#/definitions/io.k8s.api.core.v1.FCVolumeSource", - "description": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod." - }, - "flexVolume": { - "$ref": "#/definitions/io.k8s.api.core.v1.FlexVolumeSource", - "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin." - }, - "flocker": { - "$ref": "#/definitions/io.k8s.api.core.v1.FlockerVolumeSource", - "description": "Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running" - }, - "gcePersistentDisk": { - "$ref": "#/definitions/io.k8s.api.core.v1.GCEPersistentDiskVolumeSource", - "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" - }, - "gitRepo": { - "$ref": "#/definitions/io.k8s.api.core.v1.GitRepoVolumeSource", - "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." - }, - "glusterfs": { - "$ref": "#/definitions/io.k8s.api.core.v1.GlusterfsVolumeSource", - "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" - }, - "hostPath": { - "$ref": "#/definitions/io.k8s.api.core.v1.HostPathVolumeSource", - "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" - }, - "iscsi": { - "$ref": "#/definitions/io.k8s.api.core.v1.ISCSIVolumeSource", - "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" - }, - "name": { - "description": "Volume's name. 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": "#/definitions/io.k8s.api.core.v1.NFSVolumeSource", - "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" - }, - "persistentVolumeClaim": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource", - "description": "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" - }, - "photonPersistentDisk": { - "$ref": "#/definitions/io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource", - "description": "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine" - }, - "portworxVolume": { - "$ref": "#/definitions/io.k8s.api.core.v1.PortworxVolumeSource", - "description": "PortworxVolume represents a portworx volume attached and mounted on kubelets host machine" - }, - "projected": { - "$ref": "#/definitions/io.k8s.api.core.v1.ProjectedVolumeSource", - "description": "Items for all in one resources secrets, configmaps, and downward API" - }, - "quobyte": { - "$ref": "#/definitions/io.k8s.api.core.v1.QuobyteVolumeSource", - "description": "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime" - }, - "rbd": { - "$ref": "#/definitions/io.k8s.api.core.v1.RBDVolumeSource", - "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" - }, - "scaleIO": { - "$ref": "#/definitions/io.k8s.api.core.v1.ScaleIOVolumeSource", - "description": "ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes." - }, - "secret": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretVolumeSource", - "description": "Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret" - }, - "storageos": { - "$ref": "#/definitions/io.k8s.api.core.v1.StorageOSVolumeSource", - "description": "StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes." - }, - "vsphereVolume": { - "$ref": "#/definitions/io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource", - "description": "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "io.k8s.api.core.v1.VolumeDevice": { - "description": "volumeDevice describes a mapping of a raw block device within a container.", - "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": [ - "name", - "devicePath" - ], - "type": "object" - }, - "io.k8s.api.core.v1.VolumeMount": { - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "mountPath": { - "description": "Path within the container at which the volume should be mounted. Must not contain ':'.", - "type": "string" - }, - "mountPropagation": { - "description": "mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10.", - "type": "string" - }, - "name": { - "description": "This must match the Name of a Volume.", - "type": "string" - }, - "readOnly": { - "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.", - "type": "boolean" - }, - "subPath": { - "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).", - "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": [ - "name", - "mountPath" - ], - "type": "object" - }, - "io.k8s.api.core.v1.VolumeNodeAffinity": { - "description": "VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.", - "properties": { - "required": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelector", - "description": "Required specifies hard node constraints that must be met." - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.VolumeProjection": { - "description": "Projection that may be projected along with other supported volume types", - "properties": { - "configMap": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapProjection", - "description": "information about the configMap data to project" - }, - "downwardAPI": { - "$ref": "#/definitions/io.k8s.api.core.v1.DownwardAPIProjection", - "description": "information about the downwardAPI data to project" - }, - "secret": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretProjection", - "description": "information about the secret data to project" - }, - "serviceAccountToken": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccountTokenProjection", - "description": "information about the serviceAccountToken data to project" - } - }, - "type": "object" - }, - "io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource": { - "description": "Represents a vSphere volume resource.", - "properties": { - "fsType": { - "description": "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": "Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.", - "type": "string" - }, - "storagePolicyName": { - "description": "Storage Policy Based Management (SPBM) profile name.", - "type": "string" - }, - "volumePath": { - "description": "Path that identifies vSphere volume vmdk", - "type": "string" - } - }, - "required": [ - "volumePath" - ], - "type": "object" - }, - "io.k8s.api.core.v1.WeightedPodAffinityTerm": { - "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", - "properties": { - "podAffinityTerm": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodAffinityTerm", - "description": "Required. A pod affinity term, associated with the corresponding weight." - }, - "weight": { - "description": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "weight", - "podAffinityTerm" - ], - "type": "object" - }, - "io.k8s.api.core.v1.WindowsSecurityContextOptions": { - "description": "WindowsSecurityContextOptions contain Windows-specific options and credentials.", - "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. This field is alpha-level and will only be honored by components that enable the WindowsHostProcessContainers feature flag. Setting this field without the feature flag will result in errors when validating the Pod. 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" - }, - "io.k8s.api.discovery.v1.Endpoint": { - "description": "Endpoint represents a single logical \"backend\" implementing a service.", - "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.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "conditions": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointConditions", - "description": "conditions contains information about the current status of the endpoint." - }, - "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": "#/definitions/io.k8s.api.discovery.v1.EndpointHints", - "description": "hints contains information associated with how an endpoint should be consumed." - }, - "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. This field can be enabled with the EndpointSliceNodeName feature gate.", - "type": "string" - }, - "targetRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", - "description": "targetRef is a reference to a Kubernetes object that represents this endpoint." - }, - "zone": { - "description": "zone is the name of the Zone this endpoint exists in.", - "type": "string" - } - }, - "required": [ - "addresses" - ], - "type": "object" - }, - "io.k8s.api.discovery.v1.EndpointConditions": { - "description": "EndpointConditions represents the current condition of an endpoint.", - "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.", - "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. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.", - "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. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.", - "type": "boolean" - } - }, - "type": "object" - }, - "io.k8s.api.discovery.v1.EndpointHints": { - "description": "EndpointHints provides hints describing how an endpoint should be consumed.", - "properties": { - "forZones": { - "description": "forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.", - "items": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.ForZone" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "io.k8s.api.discovery.v1.EndpointPort": { - "description": "EndpointPort represents a Port used by an EndpointSlice", - "properties": { - "appProtocol": { - "description": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.", - "type": "string" - }, - "name": { - "description": "The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.", - "type": "string" - }, - "port": { - "description": "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": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "io.k8s.api.discovery.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.", - "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": "#/definitions/io.k8s.api.discovery.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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata." - }, - "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": "#/definitions/io.k8s.api.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" - } - ] - }, - "io.k8s.api.discovery.v1.EndpointSliceList": { - "description": "EndpointSliceList represents a list of endpoint slices", - "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 endpoint slices", - "items": { - "$ref": "#/definitions/io.k8s.api.discovery.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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata." - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "discovery.k8s.io", - "kind": "EndpointSliceList", - "version": "v1" - } - ] - }, - "io.k8s.api.discovery.v1.ForZone": { - "description": "ForZone provides information about which zones should consume this endpoint.", - "properties": { - "name": { - "description": "name represents the name of the zone.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "io.k8s.api.discovery.v1beta1.Endpoint": { - "description": "Endpoint represents a single logical \"backend\" implementing a service.", - "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.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "conditions": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointConditions", - "description": "conditions contains information about the current status of the endpoint." - }, - "hints": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointHints", - "description": "hints contains information associated with how an endpoint should be consumed." - }, - "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. This field can be enabled with the EndpointSliceNodeName feature gate.", - "type": "string" - }, - "targetRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", - "description": "targetRef is a reference to a Kubernetes object that represents this endpoint." - }, - "topology": { - "additionalProperties": { - "type": "string" - }, - "description": "topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node\n where the endpoint is located. This should match the corresponding\n node label.\n* topology.kubernetes.io/zone: the value indicates the zone where the\n endpoint is located. This should match the corresponding node label.\n* topology.kubernetes.io/region: the value indicates the region where the\n endpoint is located. This should match the corresponding node label.\nThis field is deprecated and will be removed in future api versions.", - "type": "object" - } - }, - "required": [ - "addresses" - ], - "type": "object" - }, - "io.k8s.api.discovery.v1beta1.EndpointConditions": { - "description": "EndpointConditions represents the current condition of an endpoint.", - "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.", - "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. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.", - "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. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.", - "type": "boolean" - } - }, - "type": "object" - }, - "io.k8s.api.discovery.v1beta1.EndpointHints": { - "description": "EndpointHints provides hints describing how an endpoint should be consumed.", - "properties": { - "forZones": { - "description": "forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing. May contain a maximum of 8 entries.", - "items": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.ForZone" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "io.k8s.api.discovery.v1beta1.EndpointPort": { - "description": "EndpointPort represents a Port used by an EndpointSlice", - "properties": { - "appProtocol": { - "description": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.", - "type": "string" - }, - "name": { - "description": "The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.", - "type": "string" - }, - "port": { - "description": "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": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.discovery.v1beta1.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.", - "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": "#/definitions/io.k8s.api.discovery.v1beta1.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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata." - }, - "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": "#/definitions/io.k8s.api.discovery.v1beta1.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": "v1beta1" - } - ] - }, - "io.k8s.api.discovery.v1beta1.EndpointSliceList": { - "description": "EndpointSliceList represents a list of endpoint slices", - "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 endpoint slices", - "items": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata." - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "discovery.k8s.io", - "kind": "EndpointSliceList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.discovery.v1beta1.ForZone": { - "description": "ForZone provides information about which zones should consume this endpoint.", - "properties": { - "name": { - "description": "name represents the name of the zone.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "io.k8s.api.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.", - "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": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type." - }, - "deprecatedLastTimestamp": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type." - }, - "deprecatedSource": { - "$ref": "#/definitions/io.k8s.api.core.v1.EventSource", - "description": "deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type." - }, - "eventTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", - "description": "eventTime is the time when this Event was first observed. It is 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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "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": "#/definitions/io.k8s.api.core.v1.ObjectReference", - "description": "regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object." - }, - "related": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", - "description": "related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object." - }, - "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": "#/definitions/io.k8s.api.events.v1.EventSeries", - "description": "series is data about the Event series this event represents or nil if it's a singleton Event." - }, - "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" - } - ] - }, - "io.k8s.api.events.v1.EventList": { - "description": "EventList is a list of Event objects.", - "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": "#/definitions/io.k8s.api.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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "events.k8s.io", - "kind": "EventList", - "version": "v1" - } - ] - }, - "io.k8s.api.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.", - "properties": { - "count": { - "description": "count is the number of occurrences in this series up to the last heartbeat time.", - "format": "int32", - "type": "integer" - }, - "lastObservedTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", - "description": "lastObservedTime is the time when last Event from the series was seen before last heartbeat." - } - }, - "required": [ - "count", - "lastObservedTime" - ], - "type": "object" - }, - "io.k8s.api.events.v1beta1.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.", - "properties": { - "action": { - "description": "action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field 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": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type." - }, - "deprecatedLastTimestamp": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type." - }, - "deprecatedSource": { - "$ref": "#/definitions/io.k8s.api.core.v1.EventSource", - "description": "deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type." - }, - "eventTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", - "description": "eventTime is the time when this Event was first observed. It is 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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "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 can have at most 128 characters.", - "type": "string" - }, - "regarding": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", - "description": "regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object." - }, - "related": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", - "description": "related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object." - }, - "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": "#/definitions/io.k8s.api.events.v1beta1.EventSeries", - "description": "series is data about the Event series this event represents or nil if it's a singleton Event." - }, - "type": { - "description": "type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable.", - "type": "string" - } - }, - "required": [ - "eventTime" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.events.v1beta1.EventList": { - "description": "EventList is a list of Event objects.", - "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": "#/definitions/io.k8s.api.events.v1beta1.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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "events.k8s.io", - "kind": "EventList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.events.v1beta1.EventSeries": { - "description": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.", - "properties": { - "count": { - "description": "count is the number of occurrences in this series up to the last heartbeat time.", - "format": "int32", - "type": "integer" - }, - "lastObservedTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", - "description": "lastObservedTime is the time when last Event from the series was seen before last heartbeat." - } - }, - "required": [ - "count", - "lastObservedTime" - ], - "type": "object" - }, - "io.k8s.api.flowcontrol.v1beta1.FlowDistinguisherMethod": { - "description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", - "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" - }, - "io.k8s.api.flowcontrol.v1beta1.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\".", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchemaSpec", - "description": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchemaStatus", - "description": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.flowcontrol.v1beta1.FlowSchemaCondition": { - "description": "FlowSchemaCondition describes conditions for a FlowSchema.", - "properties": { - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." - }, - "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" - }, - "io.k8s.api.flowcontrol.v1beta1.FlowSchemaList": { - "description": "FlowSchemaList is a list of FlowSchema objects.", - "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": "#/definitions/io.k8s.api.flowcontrol.v1beta1.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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "`metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchemaList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.flowcontrol.v1beta1.FlowSchemaSpec": { - "description": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", - "properties": { - "distinguisherMethod": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowDistinguisherMethod", - "description": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string." - }, - "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": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationReference", - "description": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required." - }, - "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": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PolicyRulesWithSubjects" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "priorityLevelConfiguration" - ], - "type": "object" - }, - "io.k8s.api.flowcontrol.v1beta1.FlowSchemaStatus": { - "description": "FlowSchemaStatus represents the current state of a FlowSchema.", - "properties": { - "conditions": { - "description": "`conditions` is a list of the current states of FlowSchema.", - "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchemaCondition" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" - } - }, - "type": "object" - }, - "io.k8s.api.flowcontrol.v1beta1.GroupSubject": { - "description": "GroupSubject holds detailed information for group-kind subject.", - "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" - }, - "io.k8s.api.flowcontrol.v1beta1.LimitResponse": { - "description": "LimitResponse defines how to handle requests that can not be executed right now.", - "properties": { - "queuing": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.QueuingConfiguration", - "description": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`." - }, - "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" - } - } - ] - }, - "io.k8s.api.flowcontrol.v1beta1.LimitedPriorityLevelConfiguration": { - "description": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n * How are requests for this priority level limited?\n * What should be done with requests that exceed the limit?", - "properties": { - "assuredConcurrencyShares": { - "description": "`assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level:\n\n ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) )\n\nbigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30.", - "format": "int32", - "type": "integer" - }, - "limitResponse": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.LimitResponse", - "description": "`limitResponse` indicates what to do with requests that can not be executed right now" - } - }, - "type": "object" - }, - "io.k8s.api.flowcontrol.v1beta1.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.", - "properties": { - "nonResourceURLs": { - "description": "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\n - \"/healthz\" is legal\n - \"/hea*\" is illegal\n - \"/hea\" is legal but matches nothing\n - \"/hea/*\" also matches nothing\n - \"/healthz/*\" matches all per-component health checks.\n\"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "verbs": { - "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - } - }, - "required": [ - "verbs", - "nonResourceURLs" - ], - "type": "object" - }, - "io.k8s.api.flowcontrol.v1beta1.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.", - "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": "#/definitions/io.k8s.api.flowcontrol.v1beta1.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": "#/definitions/io.k8s.api.flowcontrol.v1beta1.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": "#/definitions/io.k8s.api.flowcontrol.v1beta1.Subject" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "subjects" - ], - "type": "object" - }, - "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration": { - "description": "PriorityLevelConfiguration represents the configuration of a priority level.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationSpec", - "description": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationStatus", - "description": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationCondition": { - "description": "PriorityLevelConfigurationCondition defines the condition of priority level.", - "properties": { - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." - }, - "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" - }, - "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList": { - "description": "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.", - "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": "#/definitions/io.k8s.api.flowcontrol.v1beta1.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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfigurationList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationReference": { - "description": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", - "properties": { - "name": { - "description": "`name` is the name of the priority level configuration being referenced Required.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationSpec": { - "description": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.", - "properties": { - "limited": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.LimitedPriorityLevelConfiguration", - "description": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`." - }, - "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": { - "limited": "Limited" - } - } - ] - }, - "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationStatus": { - "description": "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".", - "properties": { - "conditions": { - "description": "`conditions` is the current state of \"request-priority\".", - "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationCondition" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" - } - }, - "type": "object" - }, - "io.k8s.api.flowcontrol.v1beta1.QueuingConfiguration": { - "description": "QueuingConfiguration holds the configuration parameters for queuing", - "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" - } - }, - "type": "object" - }, - "io.k8s.api.flowcontrol.v1beta1.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) least one member of namespaces matches the request.", - "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": [ - "verbs", - "apiGroups", - "resources" - ], - "type": "object" - }, - "io.k8s.api.flowcontrol.v1beta1.ServiceAccountSubject": { - "description": "ServiceAccountSubject holds detailed information for service-account-kind subject.", - "properties": { - "name": { - "description": "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.", - "type": "string" - }, - "namespace": { - "description": "`namespace` is the namespace of matching ServiceAccount objects. Required.", - "type": "string" - } - }, - "required": [ - "namespace", - "name" - ], - "type": "object" - }, - "io.k8s.api.flowcontrol.v1beta1.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.", - "properties": { - "group": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.GroupSubject", - "description": "`group` matches based on user group name." - }, - "kind": { - "description": "`kind` indicates which one of the other fields is non-empty. Required", - "type": "string" - }, - "serviceAccount": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.ServiceAccountSubject", - "description": "`serviceAccount` matches ServiceAccounts." - }, - "user": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.UserSubject", - "description": "`user` matches based on username." - } - }, - "required": [ - "kind" - ], - "type": "object", - "x-kubernetes-unions": [ - { - "discriminator": "kind", - "fields-to-discriminateBy": { - "group": "Group", - "serviceAccount": "ServiceAccount", - "user": "User" - } - } - ] - }, - "io.k8s.api.flowcontrol.v1beta1.UserSubject": { - "description": "UserSubject holds detailed information for user-kind subject.", - "properties": { - "name": { - "description": "`name` is the username that matches, or \"*\" to match all usernames. Required.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "io.k8s.api.networking.v1.HTTPIngressPath": { - "description": "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.", - "properties": { - "backend": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressBackend", - "description": "Backend defines the referenced service endpoint to which the traffic will be forwarded to." - }, - "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" - }, - "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\n done on a path element by element basis. A path element refers is the\n list of labels in the path split by the '/' separator. A request is a\n match for path p if every p is an element-wise prefix of p of the\n request path. Note that if the last element of the path is a substring\n of the last element in request path, it is not a match (e.g. /foo/bar\n matches /foo/bar/baz, but does not match /foo/barbaz).\n* ImplementationSpecific: Interpretation of the Path matching is up to\n the IngressClass. Implementations can treat this as a separate PathType\n or treat it identically to Prefix or Exact path types.\nImplementations are required to support all path types.", - "type": "string" - } - }, - "required": [ - "pathType", - "backend" - ], - "type": "object" - }, - "io.k8s.api.networking.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 '#'.", - "properties": { - "paths": { - "description": "A collection of paths that map requests to backends.", - "items": { - "$ref": "#/definitions/io.k8s.api.networking.v1.HTTPIngressPath" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "paths" - ], - "type": "object" - }, - "io.k8s.api.networking.v1.IPBlock": { - "description": "IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\",\"2001:db9::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.", - "properties": { - "cidr": { - "description": "CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\" or \"2001:db9::/64\"", - "type": "string" - }, - "except": { - "description": "Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" or \"2001:db9::/64\" Except values will be rejected if they are outside the CIDR range", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "cidr" - ], - "type": "object" - }, - "io.k8s.api.networking.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.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressSpec", - "description": "Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressStatus", - "description": "Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - } - ] - }, - "io.k8s.api.networking.v1.IngressBackend": { - "description": "IngressBackend describes all endpoints for a given service and port.", - "properties": { - "resource": { - "$ref": "#/definitions/io.k8s.api.core.v1.TypedLocalObjectReference", - "description": "Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with \"Service\"." - }, - "service": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressServiceBackend", - "description": "Service references a Service as a Backend. This is a mutually exclusive setting with \"Resource\"." - } - }, - "type": "object" - }, - "io.k8s.api.networking.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.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClassSpec", - "description": "Spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" - } - ] - }, - "io.k8s.api.networking.v1.IngressClassList": { - "description": "IngressClassList is a collection of IngressClasses.", - "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 IngressClasses.", - "items": { - "$ref": "#/definitions/io.k8s.api.networking.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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata." - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "networking.k8s.io", - "kind": "IngressClassList", - "version": "v1" - } - ] - }, - "io.k8s.api.networking.v1.IngressClassParametersReference": { - "description": "IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.", - "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 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\". Field can be enabled with IngressClassNamespacedParams feature gate.", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object" - }, - "io.k8s.api.networking.v1.IngressClassSpec": { - "description": "IngressClassSpec provides information about the class of an Ingress.", - "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": "#/definitions/io.k8s.api.networking.v1.IngressClassParametersReference", - "description": "Parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters." - } - }, - "type": "object" - }, - "io.k8s.api.networking.v1.IngressList": { - "description": "IngressList is a collection of Ingress.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of Ingress.", - "items": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "networking.k8s.io", - "kind": "IngressList", - "version": "v1" - } - ] - }, - "io.k8s.api.networking.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.", - "properties": { - "host": { - "description": "Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to\n the IP in the Spec of the parent Ingress.\n2. The `:` delimiter is not respected because ports are not allowed.\n\t Currently the port of an Ingress is implicitly :80 for http and\n\t :443 for https.\nBoth these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.\n\nHost can be \"precise\" which is a domain name without the terminating dot of a network host (e.g. \"foo.bar.com\") or \"wildcard\", which is a domain name prefixed with a single wildcard label (e.g. \"*.foo.com\"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == \"*\"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.", - "type": "string" - }, - "http": { - "$ref": "#/definitions/io.k8s.api.networking.v1.HTTPIngressRuleValue" - } - }, - "type": "object" - }, - "io.k8s.api.networking.v1.IngressServiceBackend": { - "description": "IngressServiceBackend references a Kubernetes Service as a Backend.", - "properties": { - "name": { - "description": "Name is the referenced service. The service must exist in the same namespace as the Ingress object.", - "type": "string" - }, - "port": { - "$ref": "#/definitions/io.k8s.api.networking.v1.ServiceBackendPort", - "description": "Port of the referenced service. A port name or port number is required for a IngressServiceBackend." - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "io.k8s.api.networking.v1.IngressSpec": { - "description": "IngressSpec describes the Ingress the user wishes to exist.", - "properties": { - "defaultBackend": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressBackend", - "description": "DefaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller." - }, - "ingressClassName": { - "description": "IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation.", - "type": "string" - }, - "rules": { - "description": "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": "#/definitions/io.k8s.api.networking.v1.IngressRule" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "tls": { - "description": "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": "#/definitions/io.k8s.api.networking.v1.IngressTLS" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "io.k8s.api.networking.v1.IngressStatus": { - "description": "IngressStatus describe the current state of the Ingress.", - "properties": { - "loadBalancer": { - "$ref": "#/definitions/io.k8s.api.core.v1.LoadBalancerStatus", - "description": "LoadBalancer contains the current status of the load-balancer." - } - }, - "type": "object" - }, - "io.k8s.api.networking.v1.IngressTLS": { - "description": "IngressTLS describes the transport layer security associated with an Ingress.", - "properties": { - "hosts": { - "description": "Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "secretName": { - "description": "SecretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.networking.v1.NetworkPolicy": { - "description": "NetworkPolicy describes what network traffic is allowed for a set of Pods", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicySpec", - "description": "Specification of the desired behavior for this NetworkPolicy." - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - ] - }, - "io.k8s.api.networking.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", - "properties": { - "ports": { - "description": "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": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyPort" - }, - "type": "array" - }, - "to": { - "description": "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": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyPeer" - }, - "type": "array" - } - }, - "type": "object" - }, - "io.k8s.api.networking.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.", - "properties": { - "from": { - "description": "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": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyPeer" - }, - "type": "array" - }, - "ports": { - "description": "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": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyPort" - }, - "type": "array" - } - }, - "type": "object" - }, - "io.k8s.api.networking.v1.NetworkPolicyList": { - "description": "NetworkPolicyList is a list of NetworkPolicy objects.", - "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": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "networking.k8s.io", - "kind": "NetworkPolicyList", - "version": "v1" - } - ] - }, - "io.k8s.api.networking.v1.NetworkPolicyPeer": { - "description": "NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed", - "properties": { - "ipBlock": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IPBlock", - "description": "IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be." - }, - "namespaceSelector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces.\n\nIf PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector." - }, - "podSelector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods.\n\nIf NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace." - } - }, - "type": "object" - }, - "io.k8s.api.networking.v1.NetworkPolicyPort": { - "description": "NetworkPolicyPort describes a port to allow traffic on", - "properties": { - "endPort": { - "description": "If set, indicates that the range of ports from port to endPort, 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. This feature is in Beta state and is enabled by default. It can be disabled using the Feature Gate \"NetworkPolicyEndPort\".", - "format": "int32", - "type": "integer" - }, - "port": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", - "description": "The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched." - }, - "protocol": { - "description": "The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.networking.v1.NetworkPolicySpec": { - "description": "NetworkPolicySpec provides the specification of a NetworkPolicy", - "properties": { - "egress": { - "description": "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": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyEgressRule" - }, - "type": "array" - }, - "ingress": { - "description": "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": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyIngressRule" - }, - "type": "array" - }, - "podSelector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace." - }, - "policyTypes": { - "description": "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" - } - }, - "required": [ - "podSelector" - ], - "type": "object" - }, - "io.k8s.api.networking.v1.ServiceBackendPort": { - "description": "ServiceBackendPort is the service port being referenced.", - "properties": { - "name": { - "description": "Name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\".", - "type": "string" - }, - "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" - }, - "io.k8s.api.node.v1.Overhead": { - "description": "Overhead structure represents the resource overhead associated with running a pod.", - "properties": { - "podFixed": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - }, - "description": "PodFixed represents the fixed resource overhead associated with running a pod.", - "type": "object" - } - }, - "type": "object" - }, - "io.k8s.api.node.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/", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "overhead": { - "$ref": "#/definitions/io.k8s.api.node.v1.Overhead", - "description": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see\n https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/\nThis field is in beta starting v1.18 and is only honored by servers that enable the PodOverhead feature." - }, - "scheduling": { - "$ref": "#/definitions/io.k8s.api.node.v1.Scheduling", - "description": "Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes." - } - }, - "required": [ - "handler" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1" - } - ] - }, - "io.k8s.api.node.v1.RuntimeClassList": { - "description": "RuntimeClassList is a list of RuntimeClass objects.", - "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": "#/definitions/io.k8s.api.node.v1.RuntimeClass" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "node.k8s.io", - "kind": "RuntimeClassList", - "version": "v1" - } - ] - }, - "io.k8s.api.node.v1.Scheduling": { - "description": "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.", - "properties": { - "nodeSelector": { - "additionalProperties": { - "type": "string" - }, - "description": "nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "tolerations": { - "description": "tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Toleration" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "io.k8s.api.node.v1alpha1.Overhead": { - "description": "Overhead structure represents the resource overhead associated with running a pod.", - "properties": { - "podFixed": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - }, - "description": "PodFixed represents the fixed resource overhead associated with running a pod.", - "type": "object" - } - }, - "type": "object" - }, - "io.k8s.api.node.v1alpha1.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 (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.node.v1alpha1.RuntimeClassSpec", - "description": "Specification of the RuntimeClass More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "required": [ - "spec" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1alpha1" - } - ] - }, - "io.k8s.api.node.v1alpha1.RuntimeClassList": { - "description": "RuntimeClassList is a list of RuntimeClass objects.", - "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": "#/definitions/io.k8s.api.node.v1alpha1.RuntimeClass" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "node.k8s.io", - "kind": "RuntimeClassList", - "version": "v1alpha1" - } - ] - }, - "io.k8s.api.node.v1alpha1.RuntimeClassSpec": { - "description": "RuntimeClassSpec is a specification of a RuntimeClass. It contains parameters that are required to describe the RuntimeClass to the Container Runtime Interface (CRI) implementation, as well as any other components that need to understand how the pod will be run. The RuntimeClassSpec is immutable.", - "properties": { - "overhead": { - "$ref": "#/definitions/io.k8s.api.node.v1alpha1.Overhead", - "description": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature." - }, - "runtimeHandler": { - "description": "RuntimeHandler 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 RuntimeHandler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.", - "type": "string" - }, - "scheduling": { - "$ref": "#/definitions/io.k8s.api.node.v1alpha1.Scheduling", - "description": "Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes." - } - }, - "required": [ - "runtimeHandler" - ], - "type": "object" - }, - "io.k8s.api.node.v1alpha1.Scheduling": { - "description": "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.", - "properties": { - "nodeSelector": { - "additionalProperties": { - "type": "string" - }, - "description": "nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "tolerations": { - "description": "tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Toleration" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "io.k8s.api.node.v1beta1.Overhead": { - "description": "Overhead structure represents the resource overhead associated with running a pod.", - "properties": { - "podFixed": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - }, - "description": "PodFixed represents the fixed resource overhead associated with running a pod.", - "type": "object" - } - }, - "type": "object" - }, - "io.k8s.api.node.v1beta1.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 (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "overhead": { - "$ref": "#/definitions/io.k8s.api.node.v1beta1.Overhead", - "description": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature." - }, - "scheduling": { - "$ref": "#/definitions/io.k8s.api.node.v1beta1.Scheduling", - "description": "Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes." - } - }, - "required": [ - "handler" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.node.v1beta1.RuntimeClassList": { - "description": "RuntimeClassList is a list of RuntimeClass objects.", - "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": "#/definitions/io.k8s.api.node.v1beta1.RuntimeClass" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "node.k8s.io", - "kind": "RuntimeClassList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.node.v1beta1.Scheduling": { - "description": "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.", - "properties": { - "nodeSelector": { - "additionalProperties": { - "type": "string" - }, - "description": "nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "tolerations": { - "description": "tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Toleration" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "io.k8s.api.policy.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.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions", - "description": "DeleteOptions may be provided" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "ObjectMeta describes the pod that is being evicted." - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "policy", - "kind": "Eviction", - "version": "v1" - } - ] - }, - "io.k8s.api.policy.v1.PodDisruptionBudget": { - "description": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudgetSpec", - "description": "Specification of the desired behavior of the PodDisruptionBudget." - }, - "status": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudgetStatus", - "description": "Most recently observed status of the PodDisruptionBudget." - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" - } - ] - }, - "io.k8s.api.policy.v1.PodDisruptionBudgetList": { - "description": "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.", - "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 PodDisruptionBudgets", - "items": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "policy", - "kind": "PodDisruptionBudgetList", - "version": "v1" - } - ] - }, - "io.k8s.api.policy.v1.PodDisruptionBudgetSpec": { - "description": "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.", - "properties": { - "maxUnavailable": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", - "description": "An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\"." - }, - "minAvailable": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", - "description": "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\"." - }, - "selector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.", - "x-kubernetes-patch-strategy": "replace" - } - }, - "type": "object" - }, - "io.k8s.api.policy.v1.PodDisruptionBudgetStatus": { - "description": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", - "properties": { - "conditions": { - "description": "Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute\n the number of allowed disruptions. Therefore no disruptions are\n allowed and the status of the condition will be False.\n- InsufficientPods: The number of pods are either at or below the number\n required by the PodDisruptionBudget. No disruptions are\n allowed and the status of the condition will be False.\n- SufficientPods: There are more pods than required by the PodDisruptionBudget.\n The condition will be True, and the number of allowed\n disruptions are provided by the disruptionsAllowed property.", - "items": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "currentHealthy": { - "description": "current number of healthy pods", - "format": "int32", - "type": "integer" - }, - "desiredHealthy": { - "description": "minimum desired number of healthy pods", - "format": "int32", - "type": "integer" - }, - "disruptedPods": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "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": [ - "disruptionsAllowed", - "currentHealthy", - "desiredHealthy", - "expectedPods" - ], - "type": "object" - }, - "io.k8s.api.policy.v1beta1.AllowedCSIDriver": { - "description": "AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used.", - "properties": { - "name": { - "description": "Name is the registered name of the CSI driver", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "io.k8s.api.policy.v1beta1.AllowedFlexVolume": { - "description": "AllowedFlexVolume represents a single Flexvolume that is allowed to be used.", - "properties": { - "driver": { - "description": "driver is the name of the Flexvolume driver.", - "type": "string" - } - }, - "required": [ - "driver" - ], - "type": "object" - }, - "io.k8s.api.policy.v1beta1.AllowedHostPath": { - "description": "AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined.", - "properties": { - "pathPrefix": { - "description": "pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path.\n\nExamples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`", - "type": "string" - }, - "readOnly": { - "description": "when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.", - "type": "boolean" - } - }, - "type": "object" - }, - "io.k8s.api.policy.v1beta1.FSGroupStrategyOptions": { - "description": "FSGroupStrategyOptions defines the strategy type and options used to create the strategy.", - "properties": { - "ranges": { - "description": "ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs.", - "items": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.IDRange" - }, - "type": "array" - }, - "rule": { - "description": "rule is the strategy that will dictate what FSGroup is used in the SecurityContext.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.policy.v1beta1.HostPortRange": { - "description": "HostPortRange defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined.", - "properties": { - "max": { - "description": "max is the end of the range, inclusive.", - "format": "int32", - "type": "integer" - }, - "min": { - "description": "min is the start of the range, inclusive.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "min", - "max" - ], - "type": "object" - }, - "io.k8s.api.policy.v1beta1.IDRange": { - "description": "IDRange provides a min/max of an allowed range of IDs.", - "properties": { - "max": { - "description": "max is the end of the range, inclusive.", - "format": "int64", - "type": "integer" - }, - "min": { - "description": "min is the start of the range, inclusive.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "min", - "max" - ], - "type": "object" - }, - "io.k8s.api.policy.v1beta1.PodDisruptionBudget": { - "description": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudgetSpec", - "description": "Specification of the desired behavior of the PodDisruptionBudget." - }, - "status": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudgetStatus", - "description": "Most recently observed status of the PodDisruptionBudget." - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.policy.v1beta1.PodDisruptionBudgetList": { - "description": "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.", - "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 list individual PodDisruptionBudget objects", - "items": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "policy", - "kind": "PodDisruptionBudgetList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.policy.v1beta1.PodDisruptionBudgetSpec": { - "description": "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.", - "properties": { - "maxUnavailable": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", - "description": "An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\"." - }, - "minAvailable": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString", - "description": "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\"." - }, - "selector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "Label query over pods whose evictions are managed by the disruption budget. A null selector selects no pods. An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods. In policy/v1, an empty selector will select all pods in the namespace.", - "x-kubernetes-patch-strategy": "replace" - } - }, - "type": "object" - }, - "io.k8s.api.policy.v1beta1.PodDisruptionBudgetStatus": { - "description": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", - "properties": { - "conditions": { - "description": "Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute\n the number of allowed disruptions. Therefore no disruptions are\n allowed and the status of the condition will be False.\n- InsufficientPods: The number of pods are either at or below the number\n required by the PodDisruptionBudget. No disruptions are\n allowed and the status of the condition will be False.\n- SufficientPods: There are more pods than required by the PodDisruptionBudget.\n The condition will be True, and the number of allowed\n disruptions are provided by the disruptionsAllowed property.", - "items": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "currentHealthy": { - "description": "current number of healthy pods", - "format": "int32", - "type": "integer" - }, - "desiredHealthy": { - "description": "minimum desired number of healthy pods", - "format": "int32", - "type": "integer" - }, - "disruptedPods": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "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": [ - "disruptionsAllowed", - "currentHealthy", - "desiredHealthy", - "expectedPods" - ], - "type": "object" - }, - "io.k8s.api.policy.v1beta1.PodSecurityPolicy": { - "description": "PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. Deprecated in 1.21.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicySpec", - "description": "spec defines the policy enforced." - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.policy.v1beta1.PodSecurityPolicyList": { - "description": "PodSecurityPolicyList is a list of PodSecurityPolicy objects.", - "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": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicy" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "policy", - "kind": "PodSecurityPolicyList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.policy.v1beta1.PodSecurityPolicySpec": { - "description": "PodSecurityPolicySpec defines the policy enforced.", - "properties": { - "allowPrivilegeEscalation": { - "description": "allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true.", - "type": "boolean" - }, - "allowedCSIDrivers": { - "description": "AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.", - "items": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.AllowedCSIDriver" - }, - "type": "array" - }, - "allowedCapabilities": { - "description": "allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities.", - "items": { - "type": "string" - }, - "type": "array" - }, - "allowedFlexVolumes": { - "description": "allowedFlexVolumes is an allowlist of Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field.", - "items": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.AllowedFlexVolume" - }, - "type": "array" - }, - "allowedHostPaths": { - "description": "allowedHostPaths is an allowlist of host paths. Empty indicates that all host paths may be used.", - "items": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.AllowedHostPath" - }, - "type": "array" - }, - "allowedProcMountTypes": { - "description": "AllowedProcMountTypes is an allowlist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled.", - "items": { - "type": "string" - }, - "type": "array" - }, - "allowedUnsafeSysctls": { - "description": "allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection.\n\nExamples: e.g. \"foo/*\" allows \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" allows \"foo.bar\", \"foo.baz\", etc.", - "items": { - "type": "string" - }, - "type": "array" - }, - "defaultAddCapabilities": { - "description": "defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list.", - "items": { - "type": "string" - }, - "type": "array" - }, - "defaultAllowPrivilegeEscalation": { - "description": "defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process.", - "type": "boolean" - }, - "forbiddenSysctls": { - "description": "forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.\n\nExamples: e.g. \"foo/*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc.", - "items": { - "type": "string" - }, - "type": "array" - }, - "fsGroup": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.FSGroupStrategyOptions", - "description": "fsGroup is the strategy that will dictate what fs group is used by the SecurityContext." - }, - "hostIPC": { - "description": "hostIPC determines if the policy allows the use of HostIPC in the pod spec.", - "type": "boolean" - }, - "hostNetwork": { - "description": "hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.", - "type": "boolean" - }, - "hostPID": { - "description": "hostPID determines if the policy allows the use of HostPID in the pod spec.", - "type": "boolean" - }, - "hostPorts": { - "description": "hostPorts determines which host port ranges are allowed to be exposed.", - "items": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.HostPortRange" - }, - "type": "array" - }, - "privileged": { - "description": "privileged determines if a pod can request to be run as privileged.", - "type": "boolean" - }, - "readOnlyRootFilesystem": { - "description": "readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to.", - "type": "boolean" - }, - "requiredDropCapabilities": { - "description": "requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added.", - "items": { - "type": "string" - }, - "type": "array" - }, - "runAsGroup": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.RunAsGroupStrategyOptions", - "description": "RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled." - }, - "runAsUser": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.RunAsUserStrategyOptions", - "description": "runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set." - }, - "runtimeClass": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.RuntimeClassStrategyOptions", - "description": "runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled." - }, - "seLinux": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.SELinuxStrategyOptions", - "description": "seLinux is the strategy that will dictate the allowable labels that may be set." - }, - "supplementalGroups": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.SupplementalGroupsStrategyOptions", - "description": "supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext." - }, - "volumes": { - "description": "volumes is an allowlist of volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "seLinux", - "runAsUser", - "supplementalGroups", - "fsGroup" - ], - "type": "object" - }, - "io.k8s.api.policy.v1beta1.RunAsGroupStrategyOptions": { - "description": "RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy.", - "properties": { - "ranges": { - "description": "ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.", - "items": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.IDRange" - }, - "type": "array" - }, - "rule": { - "description": "rule is the strategy that will dictate the allowable RunAsGroup values that may be set.", - "type": "string" - } - }, - "required": [ - "rule" - ], - "type": "object" - }, - "io.k8s.api.policy.v1beta1.RunAsUserStrategyOptions": { - "description": "RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy.", - "properties": { - "ranges": { - "description": "ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs.", - "items": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.IDRange" - }, - "type": "array" - }, - "rule": { - "description": "rule is the strategy that will dictate the allowable RunAsUser values that may be set.", - "type": "string" - } - }, - "required": [ - "rule" - ], - "type": "object" - }, - "io.k8s.api.policy.v1beta1.RuntimeClassStrategyOptions": { - "description": "RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod.", - "properties": { - "allowedRuntimeClassNames": { - "description": "allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset.", - "items": { - "type": "string" - }, - "type": "array" - }, - "defaultRuntimeClassName": { - "description": "defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod.", - "type": "string" - } - }, - "required": [ - "allowedRuntimeClassNames" - ], - "type": "object" - }, - "io.k8s.api.policy.v1beta1.SELinuxStrategyOptions": { - "description": "SELinuxStrategyOptions defines the strategy type and any options used to create the strategy.", - "properties": { - "rule": { - "description": "rule is the strategy that will dictate the allowable labels that may be set.", - "type": "string" - }, - "seLinuxOptions": { - "$ref": "#/definitions/io.k8s.api.core.v1.SELinuxOptions", - "description": "seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/" - } - }, - "required": [ - "rule" - ], - "type": "object" - }, - "io.k8s.api.policy.v1beta1.SupplementalGroupsStrategyOptions": { - "description": "SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy.", - "properties": { - "ranges": { - "description": "ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs.", - "items": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.IDRange" - }, - "type": "array" - }, - "rule": { - "description": "rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.rbac.v1.AggregationRule": { - "description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole", - "properties": { - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" - }, - "type": "array" - } - }, - "type": "object" - }, - "io.k8s.api.rbac.v1.ClusterRole": { - "description": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", - "properties": { - "aggregationRule": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.AggregationRule", - "description": "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller." - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata." - }, - "rules": { - "description": "Rules holds all the PolicyRules for this ClusterRole", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.PolicyRule" - }, - "type": "array" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - ] - }, - "io.k8s.api.rbac.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.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata." - }, - "roleRef": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleRef", - "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error." - }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Subject" - }, - "type": "array" - } - }, - "required": [ - "roleRef" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - ] - }, - "io.k8s.api.rbac.v1.ClusterRoleBindingList": { - "description": "ClusterRoleBindingList is a collection of ClusterRoleBindings", - "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 ClusterRoleBindings", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard object's metadata." - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBindingList", - "version": "v1" - } - ] - }, - "io.k8s.api.rbac.v1.ClusterRoleList": { - "description": "ClusterRoleList is a collection of ClusterRoles", - "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 ClusterRoles", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard object's metadata." - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleList", - "version": "v1" - } - ] - }, - "io.k8s.api.rbac.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.", - "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.", - "items": { - "type": "string" - }, - "type": "array" - }, - "nonResourceURLs": { - "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" - }, - "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" - }, - "resources": { - "description": "Resources is a list of resources this rule applies to. '*' represents all resources.", - "items": { - "type": "string" - }, - "type": "array" - }, - "verbs": { - "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. '*' represents all verbs.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "verbs" - ], - "type": "object" - }, - "io.k8s.api.rbac.v1.Role": { - "description": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata." - }, - "rules": { - "description": "Rules holds all the PolicyRules for this Role", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.PolicyRule" - }, - "type": "array" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - ] - }, - "io.k8s.api.rbac.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.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata." - }, - "roleRef": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleRef", - "description": "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error." - }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Subject" - }, - "type": "array" - } - }, - "required": [ - "roleRef" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - ] - }, - "io.k8s.api.rbac.v1.RoleBindingList": { - "description": "RoleBindingList is a collection of RoleBindings", - "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": "#/definitions/io.k8s.api.rbac.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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard object's metadata." - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBindingList", - "version": "v1" - } - ] - }, - "io.k8s.api.rbac.v1.RoleList": { - "description": "RoleList is a collection of Roles", - "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 Roles", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard object's metadata." - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "RoleList", - "version": "v1" - } - ] - }, - "io.k8s.api.rbac.v1.RoleRef": { - "description": "RoleRef contains information that points to the role being used", - "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" - }, - "io.k8s.api.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.", - "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" - }, - "io.k8s.api.rbac.v1alpha1.AggregationRule": { - "description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole", - "properties": { - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" - }, - "type": "array" - } - }, - "type": "object" - }, - "io.k8s.api.rbac.v1alpha1.ClusterRole": { - "description": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.22.", - "properties": { - "aggregationRule": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.AggregationRule", - "description": "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller." - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata." - }, - "rules": { - "description": "Rules holds all the PolicyRules for this ClusterRole", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.PolicyRule" - }, - "type": "array" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - ] - }, - "io.k8s.api.rbac.v1alpha1.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. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.22.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata." - }, - "roleRef": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleRef", - "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error." - }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Subject" - }, - "type": "array" - } - }, - "required": [ - "roleRef" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - ] - }, - "io.k8s.api.rbac.v1alpha1.ClusterRoleBindingList": { - "description": "ClusterRoleBindingList is a collection of ClusterRoleBindings. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindings, and will no longer be served in v1.22.", - "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 ClusterRoleBindings", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleBinding" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard object's metadata." - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBindingList", - "version": "v1alpha1" - } - ] - }, - "io.k8s.api.rbac.v1alpha1.ClusterRoleList": { - "description": "ClusterRoleList is a collection of ClusterRoles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.22.", - "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 ClusterRoles", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRole" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard object's metadata." - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleList", - "version": "v1alpha1" - } - ] - }, - "io.k8s.api.rbac.v1alpha1.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.", - "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.", - "items": { - "type": "string" - }, - "type": "array" - }, - "nonResourceURLs": { - "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" - }, - "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" - }, - "resources": { - "description": "Resources is a list of resources this rule applies to. '*' represents all resources.", - "items": { - "type": "string" - }, - "type": "array" - }, - "verbs": { - "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. '*' represents all verbs.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "verbs" - ], - "type": "object" - }, - "io.k8s.api.rbac.v1alpha1.Role": { - "description": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.22.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata." - }, - "rules": { - "description": "Rules holds all the PolicyRules for this Role", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.PolicyRule" - }, - "type": "array" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - ] - }, - "io.k8s.api.rbac.v1alpha1.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. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.22.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata." - }, - "roleRef": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleRef", - "description": "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error." - }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Subject" - }, - "type": "array" - } - }, - "required": [ - "roleRef" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - ] - }, - "io.k8s.api.rbac.v1alpha1.RoleBindingList": { - "description": "RoleBindingList is a collection of RoleBindings Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.22.", - "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": "#/definitions/io.k8s.api.rbac.v1alpha1.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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard object's metadata." - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBindingList", - "version": "v1alpha1" - } - ] - }, - "io.k8s.api.rbac.v1alpha1.RoleList": { - "description": "RoleList is a collection of Roles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.22.", - "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 Roles", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Role" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard object's metadata." - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "RoleList", - "version": "v1alpha1" - } - ] - }, - "io.k8s.api.rbac.v1alpha1.RoleRef": { - "description": "RoleRef contains information that points to the role being used", - "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" - }, - "io.k8s.api.rbac.v1alpha1.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.", - "properties": { - "apiVersion": { - "description": "APIVersion holds the API group and version of the referenced subject. Defaults to \"v1\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io/v1alpha1\" 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" - }, - "io.k8s.api.scheduling.v1.PriorityClass": { - "description": "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.", - "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" - }, - "description": { - "description": "description is an arbitrary string that usually provides guidelines on when this priority class should be used.", - "type": "string" - }, - "globalDefault": { - "description": "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "preemptionPolicy": { - "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate.", - "type": "string" - }, - "value": { - "description": "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "value" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" - } - ] - }, - "io.k8s.api.scheduling.v1.PriorityClassList": { - "description": "PriorityClassList is a collection of priority classes.", - "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 PriorityClasses", - "items": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "scheduling.k8s.io", - "kind": "PriorityClassList", - "version": "v1" - } - ] - }, - "io.k8s.api.scheduling.v1alpha1.PriorityClass": { - "description": "DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.", - "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" - }, - "description": { - "description": "description is an arbitrary string that usually provides guidelines on when this priority class should be used.", - "type": "string" - }, - "globalDefault": { - "description": "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "preemptionPolicy": { - "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate.", - "type": "string" - }, - "value": { - "description": "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "value" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - ] - }, - "io.k8s.api.scheduling.v1alpha1.PriorityClassList": { - "description": "PriorityClassList is a collection of priority classes.", - "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 PriorityClasses", - "items": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha1.PriorityClass" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "scheduling.k8s.io", - "kind": "PriorityClassList", - "version": "v1alpha1" - } - ] - }, - "io.k8s.api.storage.v1.CSIDriver": { - "description": "CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriverSpec", - "description": "Specification of the CSI Driver." - } - }, - "required": [ - "spec" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "CSIDriver", - "version": "v1" - } - ] - }, - "io.k8s.api.storage.v1.CSIDriverList": { - "description": "CSIDriverList is a collection of CSIDriver objects.", - "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 CSIDriver", - "items": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "CSIDriverList", - "version": "v1" - } - ] - }, - "io.k8s.api.storage.v1.CSIDriverSpec": { - "description": "CSIDriverSpec is the specification of a CSIDriver.", - "properties": { - "attachRequired": { - "description": "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.\n\nThis field is immutable.", - "type": "boolean" - }, - "fsGroupPolicy": { - "description": "Defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details. This field is beta, and is only honored by servers that enable the CSIVolumeFSGroupPolicy feature gate.\n\nThis field is immutable.\n\nDefaults 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.", - "type": "string" - }, - "podInfoOnMount": { - "description": "If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) \"csi.storage.k8s.io/ephemeral\": \"true\" if the volume is an ephemeral inline volume\n defined by a CSIVolumeSource, otherwise \"false\"\n\n\"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.\n\nThis field is immutable.", - "type": "boolean" - }, - "requiresRepublish": { - "description": "RequiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false.\n\nNote: 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.", - "type": "boolean" - }, - "storageCapacity": { - "description": "If set to true, 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.\n\nThe 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.\n\nAlternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.\n\nThis field is immutable.\n\nThis is a beta field and only available when the CSIStorageCapacity feature is enabled. The default is false.", - "type": "boolean" - }, - "tokenRequests": { - "description": "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\": {\n \"\": {\n \"token\": ,\n \"expirationTimestamp\": ,\n },\n ...\n}\n\nNote: 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.", - "items": { - "$ref": "#/definitions/io.k8s.api.storage.v1.TokenRequest" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "volumeLifecycleModes": { - "description": "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.\n\nThis field is immutable.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - } - }, - "type": "object" - }, - "io.k8s.api.storage.v1.CSINode": { - "description": "CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "metadata.name must be the Kubernetes node name." - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSINodeSpec", - "description": "spec is the specification of CSINode" - } - }, - "required": [ - "spec" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "CSINode", - "version": "v1" - } - ] - }, - "io.k8s.api.storage.v1.CSINodeDriver": { - "description": "CSINodeDriver holds information about the specification of one CSI driver installed on a node", - "properties": { - "allocatable": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeNodeResources", - "description": "allocatable represents the volume resources of a node that are available for scheduling. This field is beta." - }, - "name": { - "description": "This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.", - "type": "string" - }, - "nodeID": { - "description": "nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \"node1\", but the storage system may refer to the same node as \"nodeA\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \"nodeA\" instead of \"node1\". This field is required.", - "type": "string" - }, - "topologyKeys": { - "description": "topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "name", - "nodeID" - ], - "type": "object" - }, - "io.k8s.api.storage.v1.CSINodeList": { - "description": "CSINodeList is a collection of CSINode objects.", - "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 CSINode", - "items": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "CSINodeList", - "version": "v1" - } - ] - }, - "io.k8s.api.storage.v1.CSINodeSpec": { - "description": "CSINodeSpec holds information about the specification of all CSI drivers installed on a node", - "properties": { - "drivers": { - "description": "drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.", - "items": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSINodeDriver" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" - } - }, - "required": [ - "drivers" - ], - "type": "object" - }, - "io.k8s.api.storage.v1.StorageClass": { - "description": "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.\n\nStorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.", - "properties": { - "allowVolumeExpansion": { - "description": "AllowVolumeExpansion shows whether the storage class allow volume expand", - "type": "boolean" - }, - "allowedTopologies": { - "description": "Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.TopologySelectorTerm" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "mountOptions": { - "description": "Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid.", - "items": { - "type": "string" - }, - "type": "array" - }, - "parameters": { - "additionalProperties": { - "type": "string" - }, - "description": "Parameters holds the parameters for the provisioner that should create volumes of this storage class.", - "type": "object" - }, - "provisioner": { - "description": "Provisioner indicates the type of the provisioner.", - "type": "string" - }, - "reclaimPolicy": { - "description": "Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.", - "type": "string" - }, - "volumeBindingMode": { - "description": "VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.", - "type": "string" - } - }, - "required": [ - "provisioner" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - ] - }, - "io.k8s.api.storage.v1.StorageClassList": { - "description": "StorageClassList is a collection of storage classes.", - "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 StorageClasses", - "items": { - "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "StorageClassList", - "version": "v1" - } - ] - }, - "io.k8s.api.storage.v1.TokenRequest": { - "description": "TokenRequest contains parameters of a service account token.", - "properties": { - "audience": { - "description": "Audience is the intended audience of the token in \"TokenRequestSpec\". It will default to the audiences of kube apiserver.", - "type": "string" - }, - "expirationSeconds": { - "description": "ExpirationSeconds is the duration of validity of the token in \"TokenRequestSpec\". It has the same default value of \"ExpirationSeconds\" in \"TokenRequestSpec\".", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "audience" - ], - "type": "object" - }, - "io.k8s.api.storage.v1.VolumeAttachment": { - "description": "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node.\n\nVolumeAttachment objects are non-namespaced.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachmentSpec", - "description": "Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system." - }, - "status": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachmentStatus", - "description": "Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher." - } - }, - "required": [ - "spec" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1" - } - ] - }, - "io.k8s.api.storage.v1.VolumeAttachmentList": { - "description": "VolumeAttachmentList is a collection of VolumeAttachment objects.", - "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 VolumeAttachments", - "items": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "VolumeAttachmentList", - "version": "v1" - } - ] - }, - "io.k8s.api.storage.v1.VolumeAttachmentSource": { - "description": "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.", - "properties": { - "inlineVolumeSpec": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeSpec", - "description": "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature." - }, - "persistentVolumeName": { - "description": "Name of the persistent volume to attach.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.storage.v1.VolumeAttachmentSpec": { - "description": "VolumeAttachmentSpec is the specification of a VolumeAttachment request.", - "properties": { - "attacher": { - "description": "Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().", - "type": "string" - }, - "nodeName": { - "description": "The node that the volume should be attached to.", - "type": "string" - }, - "source": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachmentSource", - "description": "Source represents the volume that should be attached." - } - }, - "required": [ - "attacher", - "source", - "nodeName" - ], - "type": "object" - }, - "io.k8s.api.storage.v1.VolumeAttachmentStatus": { - "description": "VolumeAttachmentStatus is the status of a VolumeAttachment request.", - "properties": { - "attachError": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeError", - "description": "The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher." - }, - "attached": { - "description": "Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", - "type": "boolean" - }, - "attachmentMetadata": { - "additionalProperties": { - "type": "string" - }, - "description": "Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", - "type": "object" - }, - "detachError": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeError", - "description": "The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher." - } - }, - "required": [ - "attached" - ], - "type": "object" - }, - "io.k8s.api.storage.v1.VolumeError": { - "description": "VolumeError captures an error encountered during a volume operation.", - "properties": { - "message": { - "description": "String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.", - "type": "string" - }, - "time": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Time the error was encountered." - } - }, - "type": "object" - }, - "io.k8s.api.storage.v1.VolumeNodeResources": { - "description": "VolumeNodeResources is a set of resource limits for scheduling of volumes.", - "properties": { - "count": { - "description": "Maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "io.k8s.api.storage.v1alpha1.CSIStorageCapacity": { - "description": "CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes.\n\nFor example this can express things like: - StorageClass \"standard\" has \"1234 GiB\" available in \"topology.kubernetes.io/zone=us-east1\" - StorageClass \"localssd\" has \"10 GiB\" available in \"kubernetes.io/hostname=knode-abc123\"\n\nThe following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero\n\nThe producer of these objects can decide which approach is more suitable.\n\nThey are consumed by the kube-scheduler if the CSIStorageCapacity beta feature gate is enabled there and a CSI driver opts into capacity-aware scheduling with CSIDriver.StorageCapacity.", - "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" - }, - "capacity": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "Capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThe semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable and treated like zero capacity." - }, - "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" - }, - "maximumVolumeSize": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThis is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim." - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. The name has no particular meaning. It must be be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "nodeTopology": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "NodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable." - }, - "storageClassName": { - "description": "The name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable.", - "type": "string" - } - }, - "required": [ - "storageClassName" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1alpha1" - } - ] - }, - "io.k8s.api.storage.v1alpha1.CSIStorageCapacityList": { - "description": "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.", - "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 CSIStorageCapacity objects.", - "items": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.CSIStorageCapacity" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacityList", - "version": "v1alpha1" - } - ] - }, - "io.k8s.api.storage.v1alpha1.VolumeAttachment": { - "description": "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node.\n\nVolumeAttachment objects are non-namespaced.", - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttachmentSpec", - "description": "Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system." - }, - "status": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttachmentStatus", - "description": "Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher." - } - }, - "required": [ - "spec" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1alpha1" - } - ] - }, - "io.k8s.api.storage.v1alpha1.VolumeAttachmentList": { - "description": "VolumeAttachmentList is a collection of VolumeAttachment objects.", - "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 VolumeAttachments", - "items": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttachment" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "VolumeAttachmentList", - "version": "v1alpha1" - } - ] - }, - "io.k8s.api.storage.v1alpha1.VolumeAttachmentSource": { - "description": "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.", - "properties": { - "inlineVolumeSpec": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeSpec", - "description": "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature." - }, - "persistentVolumeName": { - "description": "Name of the persistent volume to attach.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.storage.v1alpha1.VolumeAttachmentSpec": { - "description": "VolumeAttachmentSpec is the specification of a VolumeAttachment request.", - "properties": { - "attacher": { - "description": "Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().", - "type": "string" - }, - "nodeName": { - "description": "The node that the volume should be attached to.", - "type": "string" - }, - "source": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttachmentSource", - "description": "Source represents the volume that should be attached." - } - }, - "required": [ - "attacher", - "source", - "nodeName" - ], - "type": "object" - }, - "io.k8s.api.storage.v1alpha1.VolumeAttachmentStatus": { - "description": "VolumeAttachmentStatus is the status of a VolumeAttachment request.", - "properties": { - "attachError": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeError", - "description": "The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher." - }, - "attached": { - "description": "Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", - "type": "boolean" - }, - "attachmentMetadata": { - "additionalProperties": { - "type": "string" - }, - "description": "Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", - "type": "object" - }, - "detachError": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeError", - "description": "The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher." - } - }, - "required": [ - "attached" - ], - "type": "object" - }, - "io.k8s.api.storage.v1alpha1.VolumeError": { - "description": "VolumeError captures an error encountered during a volume operation.", - "properties": { - "message": { - "description": "String detailing the error encountered during Attach or Detach operation. This string maybe logged, so it should not contain sensitive information.", - "type": "string" - }, - "time": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Time the error was encountered." - } - }, - "type": "object" - }, - "io.k8s.api.storage.v1beta1.CSIStorageCapacity": { - "description": "CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes.\n\nFor example this can express things like: - StorageClass \"standard\" has \"1234 GiB\" available in \"topology.kubernetes.io/zone=us-east1\" - StorageClass \"localssd\" has \"10 GiB\" available in \"kubernetes.io/hostname=knode-abc123\"\n\nThe following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero\n\nThe producer of these objects can decide which approach is more suitable.\n\nThey are consumed by the kube-scheduler if the CSIStorageCapacity beta feature gate is enabled there and a CSI driver opts into capacity-aware scheduling with CSIDriver.StorageCapacity.", - "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" - }, - "capacity": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "Capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThe semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable and treated like zero capacity." - }, - "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" - }, - "maximumVolumeSize": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThis is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim." - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. The name has no particular meaning. It must be be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "nodeTopology": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "NodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable." - }, - "storageClassName": { - "description": "The name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable.", - "type": "string" - } - }, - "required": [ - "storageClassName" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.storage.v1beta1.CSIStorageCapacityList": { - "description": "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.", - "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 CSIStorageCapacity objects.", - "items": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.CSIStorageCapacity" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacityList", - "version": "v1beta1" - } - ] - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition": { - "description": "CustomResourceColumnDefinition specifies a column for server side printing.", - "properties": { - "description": { - "description": "description is a human readable description of this column.", - "type": "string" - }, - "format": { - "description": "format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.", - "type": "string" - }, - "jsonPath": { - "description": "jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column.", - "type": "string" - }, - "name": { - "description": "name is a human readable name for the column.", - "type": "string" - }, - "priority": { - "description": "priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0.", - "format": "int32", - "type": "integer" - }, - "type": { - "description": "type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.", - "type": "string" - } - }, - "required": [ - "name", - "type", - "jsonPath" - ], - "type": "object" - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceConversion": { - "description": "CustomResourceConversion describes how to convert different versions of a CR.", - "properties": { - "strategy": { - "description": "strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information\n is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set.", - "type": "string" - }, - "webhook": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion", - "description": "webhook describes how to call the conversion webhook. Required when `strategy` is set to `Webhook`." - } - }, - "required": [ - "strategy" - ], - "type": "object" - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition": { - "description": "CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.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" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec", - "description": "spec describes how the user wants the resources to appear" - }, - "status": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionStatus", - "description": "status indicates the actual state of the CustomResourceDefinition" - } - }, - "required": [ - "spec" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" - } - ] - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionCondition": { - "description": "CustomResourceDefinitionCondition contains details for the current condition of this pod.", - "properties": { - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "lastTransitionTime last time the condition transitioned from one status to another." - }, - "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.", - "type": "string" - }, - "type": { - "description": "type is the type of the condition. Types include Established, NamesAccepted and Terminating.", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList": { - "description": "CustomResourceDefinitionList is a list of CustomResourceDefinition objects.", - "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 list individual CustomResourceDefinition objects", - "items": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinitionList", - "version": "v1" - } - ] - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames": { - "description": "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition", - "properties": { - "categories": { - "description": "categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.", - "items": { - "type": "string" - }, - "type": "array" - }, - "kind": { - "description": "kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.", - "type": "string" - }, - "listKind": { - "description": "listKind is the serialized kind of the list for this resource. Defaults to \"`kind`List\".", - "type": "string" - }, - "plural": { - "description": "plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase.", - "type": "string" - }, - "shortNames": { - "description": "shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase.", - "items": { - "type": "string" - }, - "type": "array" - }, - "singular": { - "description": "singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.", - "type": "string" - } - }, - "required": [ - "plural", - "kind" - ], - "type": "object" - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec": { - "description": "CustomResourceDefinitionSpec describes how a user wants their resource to appear", - "properties": { - "conversion": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceConversion", - "description": "conversion defines conversion settings for the CRD." - }, - "group": { - "description": "group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`).", - "type": "string" - }, - "names": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames", - "description": "names specify the resource and kind names for the custom resource." - }, - "preserveUnknownFields": { - "description": "preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details.", - "type": "boolean" - }, - "scope": { - "description": "scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`.", - "type": "string" - }, - "versions": { - "description": "versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.", - "items": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion" - }, - "type": "array" - } - }, - "required": [ - "group", - "names", - "scope", - "versions" - ], - "type": "object" - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionStatus": { - "description": "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition", - "properties": { - "acceptedNames": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames", - "description": "acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec." - }, - "conditions": { - "description": "conditions indicate state for particular aspects of a CustomResourceDefinition", - "items": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionCondition" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" - }, - "storedVersions": { - "description": "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.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion": { - "description": "CustomResourceDefinitionVersion describes a version for CRD.", - "properties": { - "additionalPrinterColumns": { - "description": "additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used.", - "items": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition" - }, - "type": "array" - }, - "deprecated": { - "description": "deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false.", - "type": "boolean" - }, - "deprecationWarning": { - "description": "deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists.", - "type": "string" - }, - "name": { - "description": "name is the version name, e.g. \u201cv1\u201d, \u201cv2beta1\u201d, etc. The custom resources are served under this version at `/apis///...` if `served` is true.", - "type": "string" - }, - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceValidation", - "description": "schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource." - }, - "served": { - "description": "served is a flag enabling/disabling this version from being served via REST APIs", - "type": "boolean" - }, - "storage": { - "description": "storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.", - "type": "boolean" - }, - "subresources": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresources", - "description": "subresources specify what subresources this version of the defined custom resource have." - } - }, - "required": [ - "name", - "served", - "storage" - ], - "type": "object" - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale": { - "description": "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.", - "properties": { - "labelSelectorPath": { - "description": "labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string.", - "type": "string" - }, - "specReplicasPath": { - "description": "specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET.", - "type": "string" - }, - "statusReplicasPath": { - "description": "statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0.", - "type": "string" - } - }, - "required": [ - "specReplicasPath", - "statusReplicasPath" - ], - "type": "object" - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceStatus": { - "description": "CustomResourceSubresourceStatus defines how to serve the status subresource for CustomResources. Status is represented by the `.status` JSON path inside of a CustomResource. When set, * exposes a /status subresource for the custom resource * PUT requests to the /status subresource take a custom resource object, and ignore changes to anything except the status stanza * PUT/POST/PATCH requests to the custom resource ignore changes to the status stanza", - "type": "object" - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresources": { - "description": "CustomResourceSubresources defines the status and scale subresources for CustomResources.", - "properties": { - "scale": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale", - "description": "scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object." - }, - "status": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceStatus", - "description": "status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object." - } - }, - "type": "object" - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceValidation": { - "description": "CustomResourceValidation is a list of validation methods for CustomResources.", - "properties": { - "openAPIV3Schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps", - "description": "openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning." - } - }, - "type": "object" - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ExternalDocumentation": { - "description": "ExternalDocumentation allows referencing an external resource for extended documentation.", - "properties": { - "description": { - "type": "string" - }, - "url": { - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSON": { - "description": "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil." - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps": { - "description": "JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).", - "properties": { - "$ref": { - "type": "string" - }, - "$schema": { - "type": "string" - }, - "additionalItems": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrBool" - }, - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrBool" - }, - "allOf": { - "items": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" - }, - "type": "array" - }, - "anyOf": { - "items": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" - }, - "type": "array" - }, - "default": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSON", - "description": "default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false." - }, - "definitions": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" - }, - "type": "object" - }, - "dependencies": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrStringArray" - }, - "type": "object" - }, - "description": { - "type": "string" - }, - "enum": { - "items": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSON" - }, - "type": "array" - }, - "example": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSON" - }, - "exclusiveMaximum": { - "type": "boolean" - }, - "exclusiveMinimum": { - "type": "boolean" - }, - "externalDocs": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ExternalDocumentation" - }, - "format": { - "description": "format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:\n\n- 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.", - "type": "string" - }, - "id": { - "type": "string" - }, - "items": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrArray" - }, - "maxItems": { - "format": "int64", - "type": "integer" - }, - "maxLength": { - "format": "int64", - "type": "integer" - }, - "maxProperties": { - "format": "int64", - "type": "integer" - }, - "maximum": { - "format": "double", - "type": "number" - }, - "minItems": { - "format": "int64", - "type": "integer" - }, - "minLength": { - "format": "int64", - "type": "integer" - }, - "minProperties": { - "format": "int64", - "type": "integer" - }, - "minimum": { - "format": "double", - "type": "number" - }, - "multipleOf": { - "format": "double", - "type": "number" - }, - "not": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" - }, - "nullable": { - "type": "boolean" - }, - "oneOf": { - "items": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" - }, - "type": "array" - }, - "pattern": { - "type": "string" - }, - "patternProperties": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" - }, - "type": "object" - }, - "properties": { - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" - }, - "type": "object" - }, - "required": { - "items": { - "type": "string" - }, - "type": "array" - }, - "title": { - "type": "string" - }, - "type": { - "type": "string" - }, - "uniqueItems": { - "type": "boolean" - }, - "x-kubernetes-embedded-resource": { - "description": "x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata).", - "type": "boolean" - }, - "x-kubernetes-int-or-string": { - "description": "x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns:\n\n1) anyOf:\n - type: integer\n - type: string\n2) allOf:\n - anyOf:\n - type: integer\n - type: string\n - ... zero or more", - "type": "boolean" - }, - "x-kubernetes-list-map-keys": { - "description": "x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map.\n\nThis tag MUST only be used on lists that have the \"x-kubernetes-list-type\" extension set to \"map\". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported).\n\nThe properties specified must either be required or have a default value, to ensure those properties are present for all list items.", - "items": { - "type": "string" - }, - "type": "array" - }, - "x-kubernetes-list-type": { - "description": "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:\n\n1) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic lists will be entirely replaced when updated. This extension\n may be used on any type of list (struct, scalar, ...).\n2) `set`:\n Sets are lists that must not have multiple items with the same value. Each\n value must be a scalar, an object with x-kubernetes-map-type `atomic` or an\n array with x-kubernetes-list-type `atomic`.\n3) `map`:\n These lists are like maps in that their elements have a non-index key\n used to identify them. Order is preserved upon merge. The map tag\n must only be used on a list with elements of type object.\nDefaults to atomic for arrays.", - "type": "string" - }, - "x-kubernetes-map-type": { - "description": "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:\n\n1) `granular`:\n These maps are actual maps (key-value pairs) and each fields are independent\n from each other (they can each be manipulated by separate actors). This is\n the default behaviour for all maps.\n2) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic maps will be entirely replaced when updated.", - "type": "string" - }, - "x-kubernetes-preserve-unknown-fields": { - "description": "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.", - "type": "boolean" - } - }, - "type": "object" - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrArray": { - "description": "JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes." - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrBool": { - "description": "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property." - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrStringArray": { - "description": "JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array." - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ServiceReference": { - "description": "ServiceReference holds a reference to Service.legacy.k8s.io", - "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 at which the webhook will be contacted.", - "type": "string" - }, - "port": { - "description": "port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "namespace", - "name" - ], - "type": "object" - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookClientConfig": { - "description": "WebhookClientConfig contains the information to make a TLS connection with the webhook.", - "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", - "type": "string" - }, - "service": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ServiceReference", - "description": "service is a reference to the service for this webhook. Either service or url must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." - }, - "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.\n\nThe `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.\n\nPlease 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.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA 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.\n\nAttempting 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" - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion": { - "description": "WebhookConversion describes how to call a conversion webhook", - "properties": { - "clientConfig": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookClientConfig", - "description": "clientConfig is the instructions for how to call the webhook if strategy is `Webhook`." - }, - "conversionReviewVersions": { - "description": "conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "conversionReviewVersions" - ], - "type": "object" - }, - "io.k8s.apimachinery.pkg.api.resource.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 (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\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 a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 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.", - "type": "string" - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup": { - "description": "APIGroup contains the name, the supported versions, and the preferred version of a 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" - }, - "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" - }, - "name": { - "description": "name is the name of the group.", - "type": "string" - }, - "preferredVersion": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery", - "description": "preferredVersion is the version preferred by the API server, which probably is the storage version." - }, - "serverAddressByClientCIDRs": { - "description": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", - "items": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR" - }, - "type": "array" - }, - "versions": { - "description": "versions are the versions supported in this group.", - "items": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery" - }, - "type": "array" - } - }, - "required": [ - "name", - "versions" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "APIGroup", - "version": "v1" - } - ] - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.APIGroupList": { - "description": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", - "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" - }, - "groups": { - "description": "groups is a list of APIGroup.", - "items": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - }, - "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" - } - }, - "required": [ - "groups" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "APIGroupList", - "version": "v1" - } - ] - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.APIResource": { - "description": "APIResource specifies the name of a resource and whether it is namespaced.", - "properties": { - "categories": { - "description": "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", - "items": { - "type": "string" - }, - "type": "array" - }, - "group": { - "description": "group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\".", - "type": "string" - }, - "kind": { - "description": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", - "type": "string" - }, - "name": { - "description": "name is the plural name of the resource.", - "type": "string" - }, - "namespaced": { - "description": "namespaced indicates if a resource is namespaced or not.", - "type": "boolean" - }, - "shortNames": { - "description": "shortNames is a list of suggested short names of the resource.", - "items": { - "type": "string" - }, - "type": "array" - }, - "singularName": { - "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.", - "type": "string" - }, - "storageVersionHash": { - "description": "The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.", - "type": "string" - }, - "verbs": { - "description": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", - "items": { - "type": "string" - }, - "type": "array" - }, - "version": { - "description": "version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\".", - "type": "string" - } - }, - "required": [ - "name", - "singularName", - "namespaced", - "kind", - "verbs" - ], - "type": "object" - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList": { - "description": "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.", - "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" - }, - "groupVersion": { - "description": "groupVersion is the group and version this APIResourceList is for.", - "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" - }, - "resources": { - "description": "resources contains the name of the resources and if they are namespaced.", - "items": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResource" - }, - "type": "array" - } - }, - "required": [ - "groupVersion", - "resources" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "APIResourceList", - "version": "v1" - } - ] - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.APIVersions": { - "description": "APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.", - "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" - }, - "serverAddressByClientCIDRs": { - "description": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", - "items": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR" - }, - "type": "array" - }, - "versions": { - "description": "versions are the api versions that are available.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "versions", - "serverAddressByClientCIDRs" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "APIVersions", - "version": "v1" - } - ] - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.Condition": { - "description": "Condition contains details for one aspect of the current state of this API Resource.", - "properties": { - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable." - }, - "message": { - "description": "message is a human readable message indicating details about the transition. This may be an empty string.", - "type": "string" - }, - "observedGeneration": { - "description": "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.", - "format": "int64", - "type": "integer" - }, - "reason": { - "description": "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.", - "type": "string" - }, - "status": { - "description": "status of the condition, one of True, False, Unknown.", - "type": "string" - }, - "type": { - "description": "type of condition in CamelCase or in foo.example.com/CamelCase.", - "type": "string" - } - }, - "required": [ - "type", - "status", - "lastTransitionTime", - "reason", - "message" - ], - "type": "object" - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions": { - "description": "DeleteOptions may be provided when deleting an API object.", - "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" - }, - "dryRun": { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "items": { - "type": "string" - }, - "type": "array" - }, - "gracePeriodSeconds": { - "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.", - "format": "int64", - "type": "integer" - }, - "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" - }, - "orphanDependents": { - "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": "boolean" - }, - "preconditions": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions", - "description": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned." - }, - "propagationPolicy": { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "admission.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "admission.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "admissionregistration.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "admissionregistration.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "apiextensions.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "apiextensions.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "apiregistration.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "apiregistration.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "apps", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "apps", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "apps", - "kind": "DeleteOptions", - "version": "v1beta2" - }, - { - "group": "authentication.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "authentication.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "authorization.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "authorization.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "autoscaling", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "autoscaling", - "kind": "DeleteOptions", - "version": "v2beta1" - }, - { - "group": "autoscaling", - "kind": "DeleteOptions", - "version": "v2beta2" - }, - { - "group": "batch", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "batch", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "certificates.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "certificates.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "coordination.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "coordination.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "discovery.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "discovery.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "events.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "events.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "extensions", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" - }, - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "imagepolicy.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" - }, - { - "group": "internal.apiserver.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" - }, - { - "group": "networking.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "networking.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "node.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "node.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" - }, - { - "group": "node.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "policy", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "policy", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "rbac.authorization.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "rbac.authorization.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" - }, - { - "group": "rbac.authorization.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "scheduling.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "scheduling.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" - }, - { - "group": "scheduling.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "storage.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "storage.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" - }, - { - "group": "storage.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - } - ] - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.FieldsV1": { - "description": "FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\n\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:', where is the name of a field in a struct, or key in a map 'v:', where is the exact json formatted value of a list item 'i:', where is position of a item in a list 'k:', where is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff", - "type": "object" - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery": { - "description": "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", - "properties": { - "groupVersion": { - "description": "groupVersion specifies the API group and version in the form \"group/version\"", - "type": "string" - }, - "version": { - "description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", - "type": "string" - } - }, - "required": [ - "groupVersion", - "version" - ], - "type": "object" - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector": { - "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement" - }, - "type": "array" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "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.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string", - "x-kubernetes-patch-merge-key": "key", - "x-kubernetes-patch-strategy": "merge" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "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.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta": { - "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", - "properties": { - "continue": { - "description": "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.", - "type": "string" - }, - "remainingItemCount": { - "description": "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.", - "format": "int64", - "type": "integer" - }, - "resourceVersion": { - "description": "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", - "type": "string" - }, - "selfLink": { - "description": "selfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry": { - "description": "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.", - "type": "string" - }, - "fieldsType": { - "description": "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"", - "type": "string" - }, - "fieldsV1": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.FieldsV1", - "description": "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type." - }, - "manager": { - "description": "Manager is an identifier of the workflow managing these fields.", - "type": "string" - }, - "operation": { - "description": "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.", - "type": "string" - }, - "subresource": { - "description": "Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.", - "type": "string" - }, - "time": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply'" - } - }, - "type": "object" - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime": { - "description": "MicroTime is version of Time with microsecond level precision.", - "format": "date-time", - "type": "string" - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta": { - "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "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", - "type": "object" - }, - "clusterName": { - "description": "The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.", - "type": "string" - }, - "creationTimestamp": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "deletionGracePeriodSeconds": { - "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", - "format": "int64", - "type": "integer" - }, - "deletionTimestamp": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "finalizers": { - "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-patch-strategy": "merge" - }, - "generateName": { - "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", - "type": "string" - }, - "generation": { - "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", - "format": "int64", - "type": "integer" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "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", - "type": "object" - }, - "managedFields": { - "description": "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.", - "items": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry" - }, - "type": "array" - }, - "name": { - "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "namespace": { - "description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces", - "type": "string" - }, - "ownerReferences": { - "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", - "items": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "uid", - "x-kubernetes-patch-strategy": "merge" - }, - "resourceVersion": { - "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "selfLink": { - "description": "SelfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release.", - "type": "string" - }, - "uid": { - "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference": { - "description": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.", - "properties": { - "apiVersion": { - "description": "API version of the referent.", - "type": "string" - }, - "blockOwnerDeletion": { - "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", - "type": "boolean" - }, - "controller": { - "description": "If true, this reference points to the managing controller.", - "type": "boolean" - }, - "kind": { - "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "uid": { - "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" - } - }, - "required": [ - "apiVersion", - "kind", - "name", - "uid" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.Patch": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions": { - "description": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", - "properties": { - "resourceVersion": { - "description": "Specifies the target ResourceVersion", - "type": "string" - }, - "uid": { - "description": "Specifies the target UID.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR": { - "description": "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", - "properties": { - "clientCIDR": { - "description": "The CIDR with which clients can match their IP to figure out the server address that they should use.", - "type": "string" - }, - "serverAddress": { - "description": "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.", - "type": "string" - } - }, - "required": [ - "clientCIDR", - "serverAddress" - ], - "type": "object" - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.Status": { - "description": "Status is a return value for calls that don't return other objects.", - "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" - }, - "code": { - "description": "Suggested HTTP return code for this status, 0 if not set.", - "format": "int32", - "type": "integer" - }, - "details": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails", - "description": "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type." - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "message": { - "description": "A human-readable description of the status of this operation.", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - }, - "reason": { - "description": "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.", - "type": "string" - }, - "status": { - "description": "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", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Status", - "version": "v1" - } - ] - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause": { - "description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", - "properties": { - "field": { - "description": "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.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"", - "type": "string" - }, - "message": { - "description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", - "type": "string" - }, - "reason": { - "description": "A machine-readable description of the cause of the error. If this value is empty there is no information available.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails": { - "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.", - "properties": { - "causes": { - "description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", - "items": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause" - }, - "type": "array" - }, - "group": { - "description": "The group attribute of the resource associated with the status StatusReason.", - "type": "string" - }, - "kind": { - "description": "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", - "type": "string" - }, - "name": { - "description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", - "type": "string" - }, - "retryAfterSeconds": { - "description": "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.", - "format": "int32", - "type": "integer" - }, - "uid": { - "description": "UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.Time": { - "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" - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent": { - "description": "Event represents a single event to a watched resource.", - "properties": { - "object": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.runtime.RawExtension", - "description": "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n depending on context." - }, - "type": { - "type": "string" - } - }, - "required": [ - "type", - "object" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "admission.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "admission.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "admissionregistration.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "admissionregistration.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "apiextensions.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "apiextensions.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "apiregistration.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "apiregistration.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "apps", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "apps", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "apps", - "kind": "WatchEvent", - "version": "v1beta2" - }, - { - "group": "authentication.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "authentication.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "authorization.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "authorization.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "autoscaling", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "autoscaling", - "kind": "WatchEvent", - "version": "v2beta1" - }, - { - "group": "autoscaling", - "kind": "WatchEvent", - "version": "v2beta2" - }, - { - "group": "batch", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "batch", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "certificates.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "certificates.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "coordination.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "coordination.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "discovery.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "discovery.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "events.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "events.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "extensions", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "WatchEvent", - "version": "v1alpha1" - }, - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "imagepolicy.k8s.io", - "kind": "WatchEvent", - "version": "v1alpha1" - }, - { - "group": "internal.apiserver.k8s.io", - "kind": "WatchEvent", - "version": "v1alpha1" - }, - { - "group": "networking.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "networking.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "node.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "node.k8s.io", - "kind": "WatchEvent", - "version": "v1alpha1" - }, - { - "group": "node.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "policy", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "policy", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "rbac.authorization.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "rbac.authorization.k8s.io", - "kind": "WatchEvent", - "version": "v1alpha1" - }, - { - "group": "rbac.authorization.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "scheduling.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "scheduling.k8s.io", - "kind": "WatchEvent", - "version": "v1alpha1" - }, - { - "group": "scheduling.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "storage.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "storage.k8s.io", - "kind": "WatchEvent", - "version": "v1alpha1" - }, - { - "group": "storage.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - } - ] - }, - "io.k8s.apimachinery.pkg.runtime.RawExtension": { - "description": "RawExtension is used to hold extensions in external versions.\n\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package: type MyAPIObject struct {\n\truntime.TypeMeta `json:\",inline\"`\n\tMyPlugin runtime.Object `json:\"myPlugin\"`\n} type PluginA struct {\n\tAOption string `json:\"aOption\"`\n}\n\n// External package: type MyAPIObject struct {\n\truntime.TypeMeta `json:\",inline\"`\n\tMyPlugin runtime.RawExtension `json:\"myPlugin\"`\n} type PluginA struct {\n\tAOption string `json:\"aOption\"`\n}\n\n// On the wire, the JSON will look something like this: {\n\t\"kind\":\"MyAPIObject\",\n\t\"apiVersion\":\"v1\",\n\t\"myPlugin\": {\n\t\t\"kind\":\"PluginA\",\n\t\t\"aOption\":\"foo\",\n\t},\n}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)", - "type": "object" - }, - "io.k8s.apimachinery.pkg.util.intstr.IntOrString": { - "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" - }, - "io.k8s.apimachinery.pkg.version.Info": { - "description": "Info contains versioning information. how we'll want to distribute that information.", - "properties": { - "buildDate": { - "type": "string" - }, - "compiler": { - "type": "string" - }, - "gitCommit": { - "type": "string" - }, - "gitTreeState": { - "type": "string" - }, - "gitVersion": { - "type": "string" - }, - "goVersion": { - "type": "string" - }, - "major": { - "type": "string" - }, - "minor": { - "type": "string" - }, - "platform": { - "type": "string" - } - }, - "required": [ - "major", - "minor", - "gitVersion", - "gitCommit", - "gitTreeState", - "buildDate", - "goVersion", - "compiler", - "platform" - ], - "type": "object" - }, - "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService": { - "description": "APIService represents a server for a particular GroupVersion. Name must be \"version.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" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec", - "description": "Spec contains information for locating and communicating with a server" - }, - "status": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceStatus", - "description": "Status contains derived information about an API server" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" - } - ] - }, - "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceCondition": { - "description": "APIServiceCondition describes the state of an APIService at a particular point", - "properties": { - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "Last time the condition transitioned from one status to another." - }, - "message": { - "description": "Human-readable message indicating details about last transition.", - "type": "string" - }, - "reason": { - "description": "Unique, one-word, CamelCase reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "Status is the status of the condition. Can be True, False, Unknown.", - "type": "string" - }, - "type": { - "description": "Type is the type of the condition.", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList": { - "description": "APIServiceList is a list of APIService objects.", - "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 APIService", - "items": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" - }, - "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": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "apiregistration.k8s.io", - "kind": "APIServiceList", - "version": "v1" - } - ] - }, - "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec": { - "description": "APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.", - "properties": { - "caBundle": { - "description": "CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used.", - "format": "byte", - "type": "string", - "x-kubernetes-list-type": "atomic" - }, - "group": { - "description": "Group is the API group name this server hosts", - "type": "string" - }, - "groupPriorityMinimum": { - "description": "GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s", - "format": "int32", - "type": "integer" - }, - "insecureSkipTLSVerify": { - "description": "InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead.", - "type": "boolean" - }, - "service": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.ServiceReference", - "description": "Service is a reference to the service for this API server. It must communicate on port 443. If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled." - }, - "version": { - "description": "Version is the API version this server hosts. For example, \"v1\"", - "type": "string" - }, - "versionPriority": { - "description": "VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "groupPriorityMinimum", - "versionPriority" - ], - "type": "object" - }, - "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceStatus": { - "description": "APIServiceStatus contains derived information about an API server", - "properties": { - "conditions": { - "description": "Current service state of apiService.", - "items": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceCondition" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - } - }, - "type": "object" - }, - "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.ServiceReference": { - "description": "ServiceReference holds a reference to Service.legacy.k8s.io", - "properties": { - "name": { - "description": "Name is the name of the service", - "type": "string" - }, - "namespace": { - "description": "Namespace is the namespace of the 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" - } - }, - "type": "object" - } - }, - "info": { - "title": "Kubernetes", - "version": "unversioned" - }, - "paths": { - "/.well-known/openid-configuration/": { - "get": { - "description": "get service account issuer OpenID configuration, also known as the 'OIDC discovery doc'", - "operationId": "getServiceAccountIssuerOpenIDConfiguration", - "produces": [ - "application/json" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "WellKnown" - ] - } - }, - "/api/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available API versions", - "operationId": "getCoreAPIVersions", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIVersions" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core" - ] - } - }, - "/api/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getCoreV1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ] - } - }, - "/api/v1/componentstatuses": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list objects of kind ComponentStatus", - "operationId": "listCoreV1ComponentStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ComponentStatusList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ComponentStatus", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/componentstatuses/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified ComponentStatus", - "operationId": "readCoreV1ComponentStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ComponentStatus" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ComponentStatus", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the ComponentStatus", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ] - }, - "/api/v1/configmaps": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind ConfigMap", - "operationId": "listCoreV1ConfigMapForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/endpoints": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Endpoints", - "operationId": "listCoreV1EndpointsForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.EndpointsList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/events": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Event", - "operationId": "listCoreV1EventForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.EventList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/limitranges": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind LimitRange", - "operationId": "listCoreV1LimitRangeForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRangeList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/namespaces": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Namespace", - "operationId": "listCoreV1Namespace", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.NamespaceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a Namespace", - "operationId": "createCoreV1Namespace", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/bindings": { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a Binding", - "operationId": "createCoreV1NamespacedBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Binding" - } - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Binding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Binding" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Binding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Binding", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/configmaps": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of ConfigMap", - "operationId": "deleteCoreV1CollectionNamespacedConfigMap", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind ConfigMap", - "operationId": "listCoreV1NamespacedConfigMap", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a ConfigMap", - "operationId": "createCoreV1NamespacedConfigMap", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/configmaps/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a ConfigMap", - "operationId": "deleteCoreV1NamespacedConfigMap", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified ConfigMap", - "operationId": "readCoreV1NamespacedConfigMap", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the ConfigMap", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified ConfigMap", - "operationId": "patchCoreV1NamespacedConfigMap", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified ConfigMap", - "operationId": "replaceCoreV1NamespacedConfigMap", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/endpoints": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of Endpoints", - "operationId": "deleteCoreV1CollectionNamespacedEndpoints", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Endpoints", - "operationId": "listCoreV1NamespacedEndpoints", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.EndpointsList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create Endpoints", - "operationId": "createCoreV1NamespacedEndpoints", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/endpoints/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete Endpoints", - "operationId": "deleteCoreV1NamespacedEndpoints", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified Endpoints", - "operationId": "readCoreV1NamespacedEndpoints", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Endpoints", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified Endpoints", - "operationId": "patchCoreV1NamespacedEndpoints", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified Endpoints", - "operationId": "replaceCoreV1NamespacedEndpoints", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/events": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of Event", - "operationId": "deleteCoreV1CollectionNamespacedEvent", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Event", - "operationId": "listCoreV1NamespacedEvent", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.EventList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create an Event", - "operationId": "createCoreV1NamespacedEvent", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Event" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Event" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Event" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/events/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete an Event", - "operationId": "deleteCoreV1NamespacedEvent", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified Event", - "operationId": "readCoreV1NamespacedEvent", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Event", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified Event", - "operationId": "patchCoreV1NamespacedEvent", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Event" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified Event", - "operationId": "replaceCoreV1NamespacedEvent", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Event" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Event" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/limitranges": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of LimitRange", - "operationId": "deleteCoreV1CollectionNamespacedLimitRange", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind LimitRange", - "operationId": "listCoreV1NamespacedLimitRange", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRangeList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a LimitRange", - "operationId": "createCoreV1NamespacedLimitRange", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/limitranges/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a LimitRange", - "operationId": "deleteCoreV1NamespacedLimitRange", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified LimitRange", - "operationId": "readCoreV1NamespacedLimitRange", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the LimitRange", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified LimitRange", - "operationId": "patchCoreV1NamespacedLimitRange", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified LimitRange", - "operationId": "replaceCoreV1NamespacedLimitRange", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/persistentvolumeclaims": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of PersistentVolumeClaim", - "operationId": "deleteCoreV1CollectionNamespacedPersistentVolumeClaim", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PersistentVolumeClaim", - "operationId": "listCoreV1NamespacedPersistentVolumeClaim", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a PersistentVolumeClaim", - "operationId": "createCoreV1NamespacedPersistentVolumeClaim", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a PersistentVolumeClaim", - "operationId": "deleteCoreV1NamespacedPersistentVolumeClaim", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified PersistentVolumeClaim", - "operationId": "readCoreV1NamespacedPersistentVolumeClaim", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the PersistentVolumeClaim", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified PersistentVolumeClaim", - "operationId": "patchCoreV1NamespacedPersistentVolumeClaim", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified PersistentVolumeClaim", - "operationId": "replaceCoreV1NamespacedPersistentVolumeClaim", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified PersistentVolumeClaim", - "operationId": "readCoreV1NamespacedPersistentVolumeClaimStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the PersistentVolumeClaim", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified PersistentVolumeClaim", - "operationId": "patchCoreV1NamespacedPersistentVolumeClaimStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified PersistentVolumeClaim", - "operationId": "replaceCoreV1NamespacedPersistentVolumeClaimStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/pods": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of Pod", - "operationId": "deleteCoreV1CollectionNamespacedPod", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Pod", - "operationId": "listCoreV1NamespacedPod", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a Pod", - "operationId": "createCoreV1NamespacedPod", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/pods/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a Pod", - "operationId": "deleteCoreV1NamespacedPod", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified Pod", - "operationId": "readCoreV1NamespacedPod", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Pod", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified Pod", - "operationId": "patchCoreV1NamespacedPod", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified Pod", - "operationId": "replaceCoreV1NamespacedPod", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/pods/{name}/attach": { - "get": { - "consumes": [ - "*/*" - ], - "description": "connect GET requests to attach of Pod", - "operationId": "connectCoreV1GetNamespacedPodAttach", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodAttachOptions", - "version": "v1" - } - }, - "parameters": [ - { - "description": "The container in which to execute the command. Defaults to only container if there is only one container in the pod.", - "in": "query", - "name": "container", - "type": "string", - "uniqueItems": true - }, - { - "description": "name of the PodAttachOptions", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true.", - "in": "query", - "name": "stderr", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false.", - "in": "query", - "name": "stdin", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true.", - "in": "query", - "name": "stdout", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false.", - "in": "query", - "name": "tty", - "type": "boolean", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "connect POST requests to attach of Pod", - "operationId": "connectCoreV1PostNamespacedPodAttach", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodAttachOptions", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/pods/{name}/binding": { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "name of the Binding", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create binding of a Pod", - "operationId": "createCoreV1NamespacedPodBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Binding" - } - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Binding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Binding" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Binding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Binding", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read ephemeralcontainers of the specified Pod", - "operationId": "readCoreV1NamespacedPodEphemeralcontainers", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Pod", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update ephemeralcontainers of the specified Pod", - "operationId": "patchCoreV1NamespacedPodEphemeralcontainers", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace ephemeralcontainers of the specified Pod", - "operationId": "replaceCoreV1NamespacedPodEphemeralcontainers", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/pods/{name}/eviction": { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "name of the Eviction", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create eviction of a Pod", - "operationId": "createCoreV1NamespacedPodEviction", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.Eviction" - } - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.Eviction" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.Eviction" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.Eviction" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "Eviction", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/pods/{name}/exec": { - "get": { - "consumes": [ - "*/*" - ], - "description": "connect GET requests to exec of Pod", - "operationId": "connectCoreV1GetNamespacedPodExec", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodExecOptions", - "version": "v1" - } - }, - "parameters": [ - { - "description": "Command is the remote command to execute. argv array. Not executed within a shell.", - "in": "query", - "name": "command", - "type": "string", - "uniqueItems": true - }, - { - "description": "Container in which to execute the command. Defaults to only container if there is only one container in the pod.", - "in": "query", - "name": "container", - "type": "string", - "uniqueItems": true - }, - { - "description": "name of the PodExecOptions", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "Redirect the standard error stream of the pod for this call. Defaults to true.", - "in": "query", - "name": "stderr", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Redirect the standard input stream of the pod for this call. Defaults to false.", - "in": "query", - "name": "stdin", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Redirect the standard output stream of the pod for this call. Defaults to true.", - "in": "query", - "name": "stdout", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.", - "in": "query", - "name": "tty", - "type": "boolean", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "connect POST requests to exec of Pod", - "operationId": "connectCoreV1PostNamespacedPodExec", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodExecOptions", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/pods/{name}/log": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read log of the specified Pod", - "operationId": "readCoreV1NamespacedPodLog", - "produces": [ - "text/plain", - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "description": "The container for which to stream logs. Defaults to only container if there is one container in the pod.", - "in": "query", - "name": "container", - "type": "string", - "uniqueItems": true - }, - { - "description": "Follow the log stream of the pod. Defaults to false.", - "in": "query", - "name": "follow", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet).", - "in": "query", - "name": "insecureSkipTLSVerifyBackend", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.", - "in": "query", - "name": "limitBytes", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Pod", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "Return previous terminated container logs. Defaults to false.", - "in": "query", - "name": "previous", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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.", - "in": "query", - "name": "sinceSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "in": "query", - "name": "tailLines", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", - "in": "query", - "name": "timestamps", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/portforward": { - "get": { - "consumes": [ - "*/*" - ], - "description": "connect GET requests to portforward of Pod", - "operationId": "connectCoreV1GetNamespacedPodPortforward", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodPortForwardOptions", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the PodPortForwardOptions", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "List of ports to forward Required when using WebSockets", - "in": "query", - "name": "ports", - "type": "integer", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "connect POST requests to portforward of Pod", - "operationId": "connectCoreV1PostNamespacedPodPortforward", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodPortForwardOptions", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/pods/{name}/proxy": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "connect DELETE requests to proxy of Pod", - "operationId": "connectCoreV1DeleteNamespacedPodProxy", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodProxyOptions", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "connect GET requests to proxy of Pod", - "operationId": "connectCoreV1GetNamespacedPodProxy", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodProxyOptions", - "version": "v1" - } - }, - "head": { - "consumes": [ - "*/*" - ], - "description": "connect HEAD requests to proxy of Pod", - "operationId": "connectCoreV1HeadNamespacedPodProxy", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodProxyOptions", - "version": "v1" - } - }, - "options": { - "consumes": [ - "*/*" - ], - "description": "connect OPTIONS requests to proxy of Pod", - "operationId": "connectCoreV1OptionsNamespacedPodProxy", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodProxyOptions", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the PodProxyOptions", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "Path is the URL path to use for the current proxy request to pod.", - "in": "query", - "name": "path", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "*/*" - ], - "description": "connect PATCH requests to proxy of Pod", - "operationId": "connectCoreV1PatchNamespacedPodProxy", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodProxyOptions", - "version": "v1" - } - }, - "post": { - "consumes": [ - "*/*" - ], - "description": "connect POST requests to proxy of Pod", - "operationId": "connectCoreV1PostNamespacedPodProxy", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodProxyOptions", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "connect PUT requests to proxy of Pod", - "operationId": "connectCoreV1PutNamespacedPodProxy", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodProxyOptions", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "connect DELETE requests to proxy of Pod", - "operationId": "connectCoreV1DeleteNamespacedPodProxyWithPath", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodProxyOptions", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "connect GET requests to proxy of Pod", - "operationId": "connectCoreV1GetNamespacedPodProxyWithPath", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodProxyOptions", - "version": "v1" - } - }, - "head": { - "consumes": [ - "*/*" - ], - "description": "connect HEAD requests to proxy of Pod", - "operationId": "connectCoreV1HeadNamespacedPodProxyWithPath", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodProxyOptions", - "version": "v1" - } - }, - "options": { - "consumes": [ - "*/*" - ], - "description": "connect OPTIONS requests to proxy of Pod", - "operationId": "connectCoreV1OptionsNamespacedPodProxyWithPath", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodProxyOptions", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the PodProxyOptions", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "path to the resource", - "in": "path", - "name": "path", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "Path is the URL path to use for the current proxy request to pod.", - "in": "query", - "name": "path", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "*/*" - ], - "description": "connect PATCH requests to proxy of Pod", - "operationId": "connectCoreV1PatchNamespacedPodProxyWithPath", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodProxyOptions", - "version": "v1" - } - }, - "post": { - "consumes": [ - "*/*" - ], - "description": "connect POST requests to proxy of Pod", - "operationId": "connectCoreV1PostNamespacedPodProxyWithPath", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodProxyOptions", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "connect PUT requests to proxy of Pod", - "operationId": "connectCoreV1PutNamespacedPodProxyWithPath", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodProxyOptions", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/pods/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified Pod", - "operationId": "readCoreV1NamespacedPodStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Pod", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified Pod", - "operationId": "patchCoreV1NamespacedPodStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified Pod", - "operationId": "replaceCoreV1NamespacedPodStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/podtemplates": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of PodTemplate", - "operationId": "deleteCoreV1CollectionNamespacedPodTemplate", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PodTemplate", - "operationId": "listCoreV1NamespacedPodTemplate", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a PodTemplate", - "operationId": "createCoreV1NamespacedPodTemplate", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/podtemplates/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a PodTemplate", - "operationId": "deleteCoreV1NamespacedPodTemplate", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified PodTemplate", - "operationId": "readCoreV1NamespacedPodTemplate", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the PodTemplate", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified PodTemplate", - "operationId": "patchCoreV1NamespacedPodTemplate", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified PodTemplate", - "operationId": "replaceCoreV1NamespacedPodTemplate", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/replicationcontrollers": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of ReplicationController", - "operationId": "deleteCoreV1CollectionNamespacedReplicationController", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind ReplicationController", - "operationId": "listCoreV1NamespacedReplicationController", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationControllerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a ReplicationController", - "operationId": "createCoreV1NamespacedReplicationController", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a ReplicationController", - "operationId": "deleteCoreV1NamespacedReplicationController", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified ReplicationController", - "operationId": "readCoreV1NamespacedReplicationController", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the ReplicationController", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified ReplicationController", - "operationId": "patchCoreV1NamespacedReplicationController", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified ReplicationController", - "operationId": "replaceCoreV1NamespacedReplicationController", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read scale of the specified ReplicationController", - "operationId": "readCoreV1NamespacedReplicationControllerScale", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Scale", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update scale of the specified ReplicationController", - "operationId": "patchCoreV1NamespacedReplicationControllerScale", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace scale of the specified ReplicationController", - "operationId": "replaceCoreV1NamespacedReplicationControllerScale", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified ReplicationController", - "operationId": "readCoreV1NamespacedReplicationControllerStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the ReplicationController", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified ReplicationController", - "operationId": "patchCoreV1NamespacedReplicationControllerStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified ReplicationController", - "operationId": "replaceCoreV1NamespacedReplicationControllerStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/resourcequotas": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of ResourceQuota", - "operationId": "deleteCoreV1CollectionNamespacedResourceQuota", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind ResourceQuota", - "operationId": "listCoreV1NamespacedResourceQuota", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuotaList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a ResourceQuota", - "operationId": "createCoreV1NamespacedResourceQuota", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/resourcequotas/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a ResourceQuota", - "operationId": "deleteCoreV1NamespacedResourceQuota", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified ResourceQuota", - "operationId": "readCoreV1NamespacedResourceQuota", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the ResourceQuota", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified ResourceQuota", - "operationId": "patchCoreV1NamespacedResourceQuota", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified ResourceQuota", - "operationId": "replaceCoreV1NamespacedResourceQuota", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/resourcequotas/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified ResourceQuota", - "operationId": "readCoreV1NamespacedResourceQuotaStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the ResourceQuota", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified ResourceQuota", - "operationId": "patchCoreV1NamespacedResourceQuotaStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified ResourceQuota", - "operationId": "replaceCoreV1NamespacedResourceQuotaStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/secrets": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of Secret", - "operationId": "deleteCoreV1CollectionNamespacedSecret", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Secret", - "operationId": "listCoreV1NamespacedSecret", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a Secret", - "operationId": "createCoreV1NamespacedSecret", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Secret" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Secret" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Secret" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Secret" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/secrets/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a Secret", - "operationId": "deleteCoreV1NamespacedSecret", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified Secret", - "operationId": "readCoreV1NamespacedSecret", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Secret" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Secret", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified Secret", - "operationId": "patchCoreV1NamespacedSecret", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Secret" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Secret" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified Secret", - "operationId": "replaceCoreV1NamespacedSecret", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Secret" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Secret" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Secret" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/serviceaccounts": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of ServiceAccount", - "operationId": "deleteCoreV1CollectionNamespacedServiceAccount", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind ServiceAccount", - "operationId": "listCoreV1NamespacedServiceAccount", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccountList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a ServiceAccount", - "operationId": "createCoreV1NamespacedServiceAccount", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/serviceaccounts/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a ServiceAccount", - "operationId": "deleteCoreV1NamespacedServiceAccount", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified ServiceAccount", - "operationId": "readCoreV1NamespacedServiceAccount", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the ServiceAccount", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified ServiceAccount", - "operationId": "patchCoreV1NamespacedServiceAccount", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified ServiceAccount", - "operationId": "replaceCoreV1NamespacedServiceAccount", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/serviceaccounts/{name}/token": { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "name of the TokenRequest", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create token of a ServiceAccount", - "operationId": "createCoreV1NamespacedServiceAccountToken", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenRequest" - } - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenRequest" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authentication.k8s.io", - "kind": "TokenRequest", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/services": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Service", - "operationId": "listCoreV1NamespacedService", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a Service", - "operationId": "createCoreV1NamespacedService", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/services/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a Service", - "operationId": "deleteCoreV1NamespacedService", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified Service", - "operationId": "readCoreV1NamespacedService", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Service", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified Service", - "operationId": "patchCoreV1NamespacedService", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified Service", - "operationId": "replaceCoreV1NamespacedService", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/services/{name}/proxy": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "connect DELETE requests to proxy of Service", - "operationId": "connectCoreV1DeleteNamespacedServiceProxy", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceProxyOptions", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "connect GET requests to proxy of Service", - "operationId": "connectCoreV1GetNamespacedServiceProxy", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceProxyOptions", - "version": "v1" - } - }, - "head": { - "consumes": [ - "*/*" - ], - "description": "connect HEAD requests to proxy of Service", - "operationId": "connectCoreV1HeadNamespacedServiceProxy", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceProxyOptions", - "version": "v1" - } - }, - "options": { - "consumes": [ - "*/*" - ], - "description": "connect OPTIONS requests to proxy of Service", - "operationId": "connectCoreV1OptionsNamespacedServiceProxy", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceProxyOptions", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the ServiceProxyOptions", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", - "in": "query", - "name": "path", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "*/*" - ], - "description": "connect PATCH requests to proxy of Service", - "operationId": "connectCoreV1PatchNamespacedServiceProxy", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceProxyOptions", - "version": "v1" - } - }, - "post": { - "consumes": [ - "*/*" - ], - "description": "connect POST requests to proxy of Service", - "operationId": "connectCoreV1PostNamespacedServiceProxy", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceProxyOptions", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "connect PUT requests to proxy of Service", - "operationId": "connectCoreV1PutNamespacedServiceProxy", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceProxyOptions", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "connect DELETE requests to proxy of Service", - "operationId": "connectCoreV1DeleteNamespacedServiceProxyWithPath", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceProxyOptions", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "connect GET requests to proxy of Service", - "operationId": "connectCoreV1GetNamespacedServiceProxyWithPath", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceProxyOptions", - "version": "v1" - } - }, - "head": { - "consumes": [ - "*/*" - ], - "description": "connect HEAD requests to proxy of Service", - "operationId": "connectCoreV1HeadNamespacedServiceProxyWithPath", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceProxyOptions", - "version": "v1" - } - }, - "options": { - "consumes": [ - "*/*" - ], - "description": "connect OPTIONS requests to proxy of Service", - "operationId": "connectCoreV1OptionsNamespacedServiceProxyWithPath", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceProxyOptions", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the ServiceProxyOptions", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "path to the resource", - "in": "path", - "name": "path", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", - "in": "query", - "name": "path", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "*/*" - ], - "description": "connect PATCH requests to proxy of Service", - "operationId": "connectCoreV1PatchNamespacedServiceProxyWithPath", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceProxyOptions", - "version": "v1" - } - }, - "post": { - "consumes": [ - "*/*" - ], - "description": "connect POST requests to proxy of Service", - "operationId": "connectCoreV1PostNamespacedServiceProxyWithPath", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceProxyOptions", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "connect PUT requests to proxy of Service", - "operationId": "connectCoreV1PutNamespacedServiceProxyWithPath", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceProxyOptions", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{namespace}/services/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified Service", - "operationId": "readCoreV1NamespacedServiceStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Service", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified Service", - "operationId": "patchCoreV1NamespacedServiceStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified Service", - "operationId": "replaceCoreV1NamespacedServiceStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a Namespace", - "operationId": "deleteCoreV1Namespace", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified Namespace", - "operationId": "readCoreV1Namespace", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Namespace", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified Namespace", - "operationId": "patchCoreV1Namespace", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified Namespace", - "operationId": "replaceCoreV1Namespace", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{name}/finalize": { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "name of the Namespace", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "put": { - "consumes": [ - "*/*" - ], - "description": "replace finalize of the specified Namespace", - "operationId": "replaceCoreV1NamespaceFinalize", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - } - }, - "/api/v1/namespaces/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified Namespace", - "operationId": "readCoreV1NamespaceStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Namespace", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified Namespace", - "operationId": "patchCoreV1NamespaceStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified Namespace", - "operationId": "replaceCoreV1NamespaceStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - } - }, - "/api/v1/nodes": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of Node", - "operationId": "deleteCoreV1CollectionNode", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Node", - "operationId": "listCoreV1Node", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a Node", - "operationId": "createCoreV1Node", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - } - }, - "/api/v1/nodes/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a Node", - "operationId": "deleteCoreV1Node", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified Node", - "operationId": "readCoreV1Node", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Node", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified Node", - "operationId": "patchCoreV1Node", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified Node", - "operationId": "replaceCoreV1Node", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - } - }, - "/api/v1/nodes/{name}/proxy": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "connect DELETE requests to proxy of Node", - "operationId": "connectCoreV1DeleteNodeProxy", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "NodeProxyOptions", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "connect GET requests to proxy of Node", - "operationId": "connectCoreV1GetNodeProxy", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "NodeProxyOptions", - "version": "v1" - } - }, - "head": { - "consumes": [ - "*/*" - ], - "description": "connect HEAD requests to proxy of Node", - "operationId": "connectCoreV1HeadNodeProxy", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "NodeProxyOptions", - "version": "v1" - } - }, - "options": { - "consumes": [ - "*/*" - ], - "description": "connect OPTIONS requests to proxy of Node", - "operationId": "connectCoreV1OptionsNodeProxy", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "NodeProxyOptions", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the NodeProxyOptions", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "Path is the URL path to use for the current proxy request to node.", - "in": "query", - "name": "path", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "*/*" - ], - "description": "connect PATCH requests to proxy of Node", - "operationId": "connectCoreV1PatchNodeProxy", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "NodeProxyOptions", - "version": "v1" - } - }, - "post": { - "consumes": [ - "*/*" - ], - "description": "connect POST requests to proxy of Node", - "operationId": "connectCoreV1PostNodeProxy", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "NodeProxyOptions", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "connect PUT requests to proxy of Node", - "operationId": "connectCoreV1PutNodeProxy", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "NodeProxyOptions", - "version": "v1" - } - } - }, - "/api/v1/nodes/{name}/proxy/{path}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "connect DELETE requests to proxy of Node", - "operationId": "connectCoreV1DeleteNodeProxyWithPath", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "NodeProxyOptions", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "connect GET requests to proxy of Node", - "operationId": "connectCoreV1GetNodeProxyWithPath", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "NodeProxyOptions", - "version": "v1" - } - }, - "head": { - "consumes": [ - "*/*" - ], - "description": "connect HEAD requests to proxy of Node", - "operationId": "connectCoreV1HeadNodeProxyWithPath", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "NodeProxyOptions", - "version": "v1" - } - }, - "options": { - "consumes": [ - "*/*" - ], - "description": "connect OPTIONS requests to proxy of Node", - "operationId": "connectCoreV1OptionsNodeProxyWithPath", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "NodeProxyOptions", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the NodeProxyOptions", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "path to the resource", - "in": "path", - "name": "path", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "Path is the URL path to use for the current proxy request to node.", - "in": "query", - "name": "path", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "*/*" - ], - "description": "connect PATCH requests to proxy of Node", - "operationId": "connectCoreV1PatchNodeProxyWithPath", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "NodeProxyOptions", - "version": "v1" - } - }, - "post": { - "consumes": [ - "*/*" - ], - "description": "connect POST requests to proxy of Node", - "operationId": "connectCoreV1PostNodeProxyWithPath", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "NodeProxyOptions", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "connect PUT requests to proxy of Node", - "operationId": "connectCoreV1PutNodeProxyWithPath", - "produces": [ - "*/*" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "NodeProxyOptions", - "version": "v1" - } - } - }, - "/api/v1/nodes/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified Node", - "operationId": "readCoreV1NodeStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Node", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified Node", - "operationId": "patchCoreV1NodeStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified Node", - "operationId": "replaceCoreV1NodeStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - } - }, - "/api/v1/persistentvolumeclaims": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PersistentVolumeClaim", - "operationId": "listCoreV1PersistentVolumeClaimForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/persistentvolumes": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of PersistentVolume", - "operationId": "deleteCoreV1CollectionPersistentVolume", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PersistentVolume", - "operationId": "listCoreV1PersistentVolume", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a PersistentVolume", - "operationId": "createCoreV1PersistentVolume", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - } - }, - "/api/v1/persistentvolumes/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a PersistentVolume", - "operationId": "deleteCoreV1PersistentVolume", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified PersistentVolume", - "operationId": "readCoreV1PersistentVolume", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the PersistentVolume", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified PersistentVolume", - "operationId": "patchCoreV1PersistentVolume", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified PersistentVolume", - "operationId": "replaceCoreV1PersistentVolume", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - } - }, - "/api/v1/persistentvolumes/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified PersistentVolume", - "operationId": "readCoreV1PersistentVolumeStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the PersistentVolume", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified PersistentVolume", - "operationId": "patchCoreV1PersistentVolumeStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified PersistentVolume", - "operationId": "replaceCoreV1PersistentVolumeStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - } - }, - "/api/v1/pods": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Pod", - "operationId": "listCoreV1PodForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/podtemplates": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PodTemplate", - "operationId": "listCoreV1PodTemplateForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/replicationcontrollers": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind ReplicationController", - "operationId": "listCoreV1ReplicationControllerForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationControllerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/resourcequotas": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind ResourceQuota", - "operationId": "listCoreV1ResourceQuotaForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuotaList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/secrets": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Secret", - "operationId": "listCoreV1SecretForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/serviceaccounts": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind ServiceAccount", - "operationId": "listCoreV1ServiceAccountForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccountList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/services": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Service", - "operationId": "listCoreV1ServiceForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/configmaps": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ConfigMap. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1ConfigMapListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/endpoints": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Endpoints. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1EndpointsListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/events": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1EventListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/limitranges": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of LimitRange. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1LimitRangeListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Namespace. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1NamespaceList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/configmaps": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ConfigMap. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1NamespacedConfigMapList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/configmaps/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind ConfigMap. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCoreV1NamespacedConfigMap", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ConfigMap", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/endpoints": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Endpoints. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1NamespacedEndpointsList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/endpoints/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind Endpoints. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCoreV1NamespacedEndpoints", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Endpoints", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/events": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1NamespacedEventList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/events/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind Event. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCoreV1NamespacedEvent", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Event", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/limitranges": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of LimitRange. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1NamespacedLimitRangeList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/limitranges/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind LimitRange. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCoreV1NamespacedLimitRange", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the LimitRange", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of PersistentVolumeClaim. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1NamespacedPersistentVolumeClaimList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind PersistentVolumeClaim. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCoreV1NamespacedPersistentVolumeClaim", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the PersistentVolumeClaim", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/pods": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Pod. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1NamespacedPodList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/pods/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind Pod. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCoreV1NamespacedPod", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Pod", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/podtemplates": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of PodTemplate. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1NamespacedPodTemplateList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/podtemplates/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind PodTemplate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCoreV1NamespacedPodTemplate", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the PodTemplate", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/replicationcontrollers": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ReplicationController. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1NamespacedReplicationControllerList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind ReplicationController. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCoreV1NamespacedReplicationController", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ReplicationController", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/resourcequotas": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ResourceQuota. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1NamespacedResourceQuotaList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/resourcequotas/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind ResourceQuota. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCoreV1NamespacedResourceQuota", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ResourceQuota", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/secrets": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Secret. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1NamespacedSecretList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/secrets/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind Secret. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCoreV1NamespacedSecret", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Secret", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/serviceaccounts": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1NamespacedServiceAccountList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/serviceaccounts/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCoreV1NamespacedServiceAccount", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ServiceAccount", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/services": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Service. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1NamespacedServiceList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/services/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind Service. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCoreV1NamespacedService", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Service", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind Namespace. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCoreV1Namespace", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Namespace", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/nodes": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Node. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1NodeList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/nodes/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind Node. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCoreV1Node", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Node", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/persistentvolumeclaims": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of PersistentVolumeClaim. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1PersistentVolumeClaimListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/persistentvolumes": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of PersistentVolume. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1PersistentVolumeList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/persistentvolumes/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind PersistentVolume. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCoreV1PersistentVolume", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the PersistentVolume", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/pods": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Pod. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1PodListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/podtemplates": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of PodTemplate. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1PodTemplateListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/replicationcontrollers": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ReplicationController. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1ReplicationControllerListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/resourcequotas": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ResourceQuota. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1ResourceQuotaListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/secrets": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Secret. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1SecretListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/serviceaccounts": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1ServiceAccountListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/services": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Service. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1ServiceListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available API versions", - "operationId": "getAPIVersions", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroupList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apis" - ] - } - }, - "/apis/admissionregistration.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getAdmissionregistrationAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration" - ] - } - }, - "/apis/admissionregistration.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAdmissionregistrationV1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1" - ] - } - }, - "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of MutatingWebhookConfiguration", - "operationId": "deleteAdmissionregistrationV1CollectionMutatingWebhookConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "MutatingWebhookConfiguration", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind MutatingWebhookConfiguration", - "operationId": "listAdmissionregistrationV1MutatingWebhookConfiguration", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "MutatingWebhookConfiguration", - "version": "v1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a MutatingWebhookConfiguration", - "operationId": "createAdmissionregistrationV1MutatingWebhookConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "MutatingWebhookConfiguration", - "version": "v1" - } - } - }, - "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a MutatingWebhookConfiguration", - "operationId": "deleteAdmissionregistrationV1MutatingWebhookConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "MutatingWebhookConfiguration", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified MutatingWebhookConfiguration", - "operationId": "readAdmissionregistrationV1MutatingWebhookConfiguration", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "MutatingWebhookConfiguration", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the MutatingWebhookConfiguration", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified MutatingWebhookConfiguration", - "operationId": "patchAdmissionregistrationV1MutatingWebhookConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "MutatingWebhookConfiguration", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified MutatingWebhookConfiguration", - "operationId": "replaceAdmissionregistrationV1MutatingWebhookConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "MutatingWebhookConfiguration", - "version": "v1" - } - } - }, - "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of ValidatingWebhookConfiguration", - "operationId": "deleteAdmissionregistrationV1CollectionValidatingWebhookConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ValidatingWebhookConfiguration", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind ValidatingWebhookConfiguration", - "operationId": "listAdmissionregistrationV1ValidatingWebhookConfiguration", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ValidatingWebhookConfiguration", - "version": "v1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a ValidatingWebhookConfiguration", - "operationId": "createAdmissionregistrationV1ValidatingWebhookConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ValidatingWebhookConfiguration", - "version": "v1" - } - } - }, - "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a ValidatingWebhookConfiguration", - "operationId": "deleteAdmissionregistrationV1ValidatingWebhookConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ValidatingWebhookConfiguration", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified ValidatingWebhookConfiguration", - "operationId": "readAdmissionregistrationV1ValidatingWebhookConfiguration", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ValidatingWebhookConfiguration", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the ValidatingWebhookConfiguration", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified ValidatingWebhookConfiguration", - "operationId": "patchAdmissionregistrationV1ValidatingWebhookConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ValidatingWebhookConfiguration", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified ValidatingWebhookConfiguration", - "operationId": "replaceAdmissionregistrationV1ValidatingWebhookConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ValidatingWebhookConfiguration", - "version": "v1" - } - } - }, - "/apis/admissionregistration.k8s.io/v1/watch/mutatingwebhookconfigurations": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of MutatingWebhookConfiguration. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAdmissionregistrationV1MutatingWebhookConfigurationList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "MutatingWebhookConfiguration", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/admissionregistration.k8s.io/v1/watch/mutatingwebhookconfigurations/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind MutatingWebhookConfiguration. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchAdmissionregistrationV1MutatingWebhookConfiguration", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "MutatingWebhookConfiguration", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the MutatingWebhookConfiguration", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/admissionregistration.k8s.io/v1/watch/validatingwebhookconfigurations": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ValidatingWebhookConfiguration. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAdmissionregistrationV1ValidatingWebhookConfigurationList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ValidatingWebhookConfiguration", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/admissionregistration.k8s.io/v1/watch/validatingwebhookconfigurations/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind ValidatingWebhookConfiguration. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchAdmissionregistrationV1ValidatingWebhookConfiguration", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ValidatingWebhookConfiguration", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ValidatingWebhookConfiguration", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apiextensions.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getApiextensionsAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiextensions" - ] - } - }, - "/apis/apiextensions.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getApiextensionsV1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1" - ] - } - }, - "/apis/apiextensions.k8s.io/v1/customresourcedefinitions": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of CustomResourceDefinition", - "operationId": "deleteApiextensionsV1CollectionCustomResourceDefinition", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind CustomResourceDefinition", - "operationId": "listApiextensionsV1CustomResourceDefinition", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a CustomResourceDefinition", - "operationId": "createApiextensionsV1CustomResourceDefinition", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" - } - } - }, - "/apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a CustomResourceDefinition", - "operationId": "deleteApiextensionsV1CustomResourceDefinition", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified CustomResourceDefinition", - "operationId": "readApiextensionsV1CustomResourceDefinition", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the CustomResourceDefinition", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified CustomResourceDefinition", - "operationId": "patchApiextensionsV1CustomResourceDefinition", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified CustomResourceDefinition", - "operationId": "replaceApiextensionsV1CustomResourceDefinition", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" - } - } - }, - "/apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified CustomResourceDefinition", - "operationId": "readApiextensionsV1CustomResourceDefinitionStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the CustomResourceDefinition", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified CustomResourceDefinition", - "operationId": "patchApiextensionsV1CustomResourceDefinitionStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified CustomResourceDefinition", - "operationId": "replaceApiextensionsV1CustomResourceDefinitionStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" - } - } - }, - "/apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of CustomResourceDefinition. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchApiextensionsV1CustomResourceDefinitionList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind CustomResourceDefinition. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchApiextensionsV1CustomResourceDefinition", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the CustomResourceDefinition", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apiregistration.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getApiregistrationAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiregistration" - ] - } - }, - "/apis/apiregistration.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getApiregistrationV1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1" - ] - } - }, - "/apis/apiregistration.k8s.io/v1/apiservices": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of APIService", - "operationId": "deleteApiregistrationV1CollectionAPIService", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind APIService", - "operationId": "listApiregistrationV1APIService", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create an APIService", - "operationId": "createApiregistrationV1APIService", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" - } - } - }, - "/apis/apiregistration.k8s.io/v1/apiservices/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete an APIService", - "operationId": "deleteApiregistrationV1APIService", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified APIService", - "operationId": "readApiregistrationV1APIService", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the APIService", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified APIService", - "operationId": "patchApiregistrationV1APIService", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified APIService", - "operationId": "replaceApiregistrationV1APIService", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" - } - } - }, - "/apis/apiregistration.k8s.io/v1/apiservices/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified APIService", - "operationId": "readApiregistrationV1APIServiceStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the APIService", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified APIService", - "operationId": "patchApiregistrationV1APIServiceStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified APIService", - "operationId": "replaceApiregistrationV1APIServiceStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" - } - } - }, - "/apis/apiregistration.k8s.io/v1/watch/apiservices": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of APIService. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchApiregistrationV1APIServiceList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apiregistration.k8s.io/v1/watch/apiservices/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind APIService. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchApiregistrationV1APIService", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the APIService", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getAppsAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps" - ] - } - }, - "/apis/apps/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAppsV1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ] - } - }, - "/apis/apps/v1/controllerrevisions": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind ControllerRevision", - "operationId": "listAppsV1ControllerRevisionForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevisionList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/daemonsets": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind DaemonSet", - "operationId": "listAppsV1DaemonSetForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/deployments": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Deployment", - "operationId": "listAppsV1DeploymentForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DeploymentList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/namespaces/{namespace}/controllerrevisions": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of ControllerRevision", - "operationId": "deleteAppsV1CollectionNamespacedControllerRevision", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind ControllerRevision", - "operationId": "listAppsV1NamespacedControllerRevision", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevisionList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a ControllerRevision", - "operationId": "createAppsV1NamespacedControllerRevision", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1" - } - } - }, - "/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a ControllerRevision", - "operationId": "deleteAppsV1NamespacedControllerRevision", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified ControllerRevision", - "operationId": "readAppsV1NamespacedControllerRevision", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the ControllerRevision", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified ControllerRevision", - "operationId": "patchAppsV1NamespacedControllerRevision", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified ControllerRevision", - "operationId": "replaceAppsV1NamespacedControllerRevision", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1" - } - } - }, - "/apis/apps/v1/namespaces/{namespace}/daemonsets": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of DaemonSet", - "operationId": "deleteAppsV1CollectionNamespacedDaemonSet", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind DaemonSet", - "operationId": "listAppsV1NamespacedDaemonSet", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a DaemonSet", - "operationId": "createAppsV1NamespacedDaemonSet", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" - } - } - }, - "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a DaemonSet", - "operationId": "deleteAppsV1NamespacedDaemonSet", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified DaemonSet", - "operationId": "readAppsV1NamespacedDaemonSet", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the DaemonSet", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified DaemonSet", - "operationId": "patchAppsV1NamespacedDaemonSet", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified DaemonSet", - "operationId": "replaceAppsV1NamespacedDaemonSet", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" - } - } - }, - "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified DaemonSet", - "operationId": "readAppsV1NamespacedDaemonSetStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the DaemonSet", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified DaemonSet", - "operationId": "patchAppsV1NamespacedDaemonSetStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified DaemonSet", - "operationId": "replaceAppsV1NamespacedDaemonSetStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" - } - } - }, - "/apis/apps/v1/namespaces/{namespace}/deployments": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of Deployment", - "operationId": "deleteAppsV1CollectionNamespacedDeployment", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Deployment", - "operationId": "listAppsV1NamespacedDeployment", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.DeploymentList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a Deployment", - "operationId": "createAppsV1NamespacedDeployment", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1" - } - } - }, - "/apis/apps/v1/namespaces/{namespace}/deployments/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a Deployment", - "operationId": "deleteAppsV1NamespacedDeployment", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified Deployment", - "operationId": "readAppsV1NamespacedDeployment", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Deployment", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified Deployment", - "operationId": "patchAppsV1NamespacedDeployment", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified Deployment", - "operationId": "replaceAppsV1NamespacedDeployment", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1" - } - } - }, - "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read scale of the specified Deployment", - "operationId": "readAppsV1NamespacedDeploymentScale", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Scale", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update scale of the specified Deployment", - "operationId": "patchAppsV1NamespacedDeploymentScale", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace scale of the specified Deployment", - "operationId": "replaceAppsV1NamespacedDeploymentScale", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - } - } - }, - "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified Deployment", - "operationId": "readAppsV1NamespacedDeploymentStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Deployment", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified Deployment", - "operationId": "patchAppsV1NamespacedDeploymentStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified Deployment", - "operationId": "replaceAppsV1NamespacedDeploymentStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1" - } - } - }, - "/apis/apps/v1/namespaces/{namespace}/replicasets": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of ReplicaSet", - "operationId": "deleteAppsV1CollectionNamespacedReplicaSet", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind ReplicaSet", - "operationId": "listAppsV1NamespacedReplicaSet", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a ReplicaSet", - "operationId": "createAppsV1NamespacedReplicaSet", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1" - } - } - }, - "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a ReplicaSet", - "operationId": "deleteAppsV1NamespacedReplicaSet", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified ReplicaSet", - "operationId": "readAppsV1NamespacedReplicaSet", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the ReplicaSet", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified ReplicaSet", - "operationId": "patchAppsV1NamespacedReplicaSet", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified ReplicaSet", - "operationId": "replaceAppsV1NamespacedReplicaSet", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1" - } - } - }, - "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read scale of the specified ReplicaSet", - "operationId": "readAppsV1NamespacedReplicaSetScale", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Scale", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update scale of the specified ReplicaSet", - "operationId": "patchAppsV1NamespacedReplicaSetScale", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace scale of the specified ReplicaSet", - "operationId": "replaceAppsV1NamespacedReplicaSetScale", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - } - } - }, - "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified ReplicaSet", - "operationId": "readAppsV1NamespacedReplicaSetStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the ReplicaSet", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified ReplicaSet", - "operationId": "patchAppsV1NamespacedReplicaSetStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified ReplicaSet", - "operationId": "replaceAppsV1NamespacedReplicaSetStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1" - } - } - }, - "/apis/apps/v1/namespaces/{namespace}/statefulsets": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of StatefulSet", - "operationId": "deleteAppsV1CollectionNamespacedStatefulSet", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind StatefulSet", - "operationId": "listAppsV1NamespacedStatefulSet", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a StatefulSet", - "operationId": "createAppsV1NamespacedStatefulSet", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1" - } - } - }, - "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a StatefulSet", - "operationId": "deleteAppsV1NamespacedStatefulSet", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified StatefulSet", - "operationId": "readAppsV1NamespacedStatefulSet", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the StatefulSet", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified StatefulSet", - "operationId": "patchAppsV1NamespacedStatefulSet", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified StatefulSet", - "operationId": "replaceAppsV1NamespacedStatefulSet", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1" - } - } - }, - "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read scale of the specified StatefulSet", - "operationId": "readAppsV1NamespacedStatefulSetScale", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Scale", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update scale of the specified StatefulSet", - "operationId": "patchAppsV1NamespacedStatefulSetScale", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace scale of the specified StatefulSet", - "operationId": "replaceAppsV1NamespacedStatefulSetScale", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - } - } - }, - "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified StatefulSet", - "operationId": "readAppsV1NamespacedStatefulSetStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the StatefulSet", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified StatefulSet", - "operationId": "patchAppsV1NamespacedStatefulSetStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified StatefulSet", - "operationId": "replaceAppsV1NamespacedStatefulSetStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1" - } - } - }, - "/apis/apps/v1/replicasets": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind ReplicaSet", - "operationId": "listAppsV1ReplicaSetForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/statefulsets": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind StatefulSet", - "operationId": "listAppsV1StatefulSetForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/watch/controllerrevisions": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ControllerRevision. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAppsV1ControllerRevisionListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/watch/daemonsets": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of DaemonSet. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAppsV1DaemonSetListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/watch/deployments": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Deployment. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAppsV1DeploymentListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ControllerRevision. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAppsV1NamespacedControllerRevisionList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind ControllerRevision. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchAppsV1NamespacedControllerRevision", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ControllerRevision", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/watch/namespaces/{namespace}/daemonsets": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of DaemonSet. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAppsV1NamespacedDaemonSetList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/watch/namespaces/{namespace}/daemonsets/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind DaemonSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchAppsV1NamespacedDaemonSet", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the DaemonSet", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/watch/namespaces/{namespace}/deployments": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Deployment. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAppsV1NamespacedDeploymentList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/watch/namespaces/{namespace}/deployments/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind Deployment. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchAppsV1NamespacedDeployment", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Deployment", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/watch/namespaces/{namespace}/replicasets": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ReplicaSet. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAppsV1NamespacedReplicaSetList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/watch/namespaces/{namespace}/replicasets/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind ReplicaSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchAppsV1NamespacedReplicaSet", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ReplicaSet", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/watch/namespaces/{namespace}/statefulsets": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of StatefulSet. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAppsV1NamespacedStatefulSetList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/watch/namespaces/{namespace}/statefulsets/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind StatefulSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchAppsV1NamespacedStatefulSet", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the StatefulSet", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/watch/replicasets": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ReplicaSet. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAppsV1ReplicaSetListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/watch/statefulsets": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of StatefulSet. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAppsV1StatefulSetListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/authentication.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getAuthenticationAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "authentication" - ] - } - }, - "/apis/authentication.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAuthenticationV1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "authentication_v1" - ] - } - }, - "/apis/authentication.k8s.io/v1/tokenreviews": { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a TokenReview", - "operationId": "createAuthenticationV1TokenReview", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReview" - } - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReview" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReview" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "authentication_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authentication.k8s.io", - "kind": "TokenReview", - "version": "v1" - } - } - }, - "/apis/authorization.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getAuthorizationAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "authorization" - ] - } - }, - "/apis/authorization.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAuthorizationV1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ] - } - }, - "/apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews": { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a LocalSubjectAccessReview", - "operationId": "createAuthorizationV1NamespacedLocalSubjectAccessReview", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.LocalSubjectAccessReview" - } - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.LocalSubjectAccessReview" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.LocalSubjectAccessReview" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.LocalSubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "LocalSubjectAccessReview", - "version": "v1" - } - } - }, - "/apis/authorization.k8s.io/v1/selfsubjectaccessreviews": { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a SelfSubjectAccessReview", - "operationId": "createAuthorizationV1SelfSubjectAccessReview", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectAccessReview" - } - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectAccessReview" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectAccessReview" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "SelfSubjectAccessReview", - "version": "v1" - } - } - }, - "/apis/authorization.k8s.io/v1/selfsubjectrulesreviews": { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a SelfSubjectRulesReview", - "operationId": "createAuthorizationV1SelfSubjectRulesReview", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectRulesReview" - } - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectRulesReview" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectRulesReview" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectRulesReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "SelfSubjectRulesReview", - "version": "v1" - } - } - }, - "/apis/authorization.k8s.io/v1/subjectaccessreviews": { - "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", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a SubjectAccessReview", - "operationId": "createAuthorizationV1SubjectAccessReview", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReview" - } - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReview" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReview" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "SubjectAccessReview", - "version": "v1" - } - } - }, - "/apis/autoscaling/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getAutoscalingAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling" - ] - } - }, - "/apis/autoscaling/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAutoscalingV1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ] - } - }, - "/apis/autoscaling/v1/horizontalpodautoscalers": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listAutoscalingV1HorizontalPodAutoscalerForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of HorizontalPodAutoscaler", - "operationId": "deleteAutoscalingV1CollectionNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listAutoscalingV1NamespacedHorizontalPodAutoscaler", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a HorizontalPodAutoscaler", - "operationId": "createAutoscalingV1NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - } - }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a HorizontalPodAutoscaler", - "operationId": "deleteAutoscalingV1NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified HorizontalPodAutoscaler", - "operationId": "readAutoscalingV1NamespacedHorizontalPodAutoscaler", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the HorizontalPodAutoscaler", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified HorizontalPodAutoscaler", - "operationId": "patchAutoscalingV1NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified HorizontalPodAutoscaler", - "operationId": "replaceAutoscalingV1NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - } - }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified HorizontalPodAutoscaler", - "operationId": "readAutoscalingV1NamespacedHorizontalPodAutoscalerStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the HorizontalPodAutoscaler", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified HorizontalPodAutoscaler", - "operationId": "patchAutoscalingV1NamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified HorizontalPodAutoscaler", - "operationId": "replaceAutoscalingV1NamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - } - }, - "/apis/autoscaling/v1/watch/horizontalpodautoscalers": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAutoscalingV1HorizontalPodAutoscalerListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAutoscalingV1NamespacedHorizontalPodAutoscalerList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchAutoscalingV1NamespacedHorizontalPodAutoscaler", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the HorizontalPodAutoscaler", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v2beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAutoscalingV2beta1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ] - } - }, - "/apis/autoscaling/v2beta1/horizontalpodautoscalers": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listAutoscalingV2beta1HorizontalPodAutoscalerForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of HorizontalPodAutoscaler", - "operationId": "deleteAutoscalingV2beta1CollectionNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listAutoscalingV2beta1NamespacedHorizontalPodAutoscaler", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a HorizontalPodAutoscaler", - "operationId": "createAutoscalingV2beta1NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - } - }, - "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a HorizontalPodAutoscaler", - "operationId": "deleteAutoscalingV2beta1NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified HorizontalPodAutoscaler", - "operationId": "readAutoscalingV2beta1NamespacedHorizontalPodAutoscaler", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "parameters": [ - { - "description": "name of the HorizontalPodAutoscaler", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified HorizontalPodAutoscaler", - "operationId": "patchAutoscalingV2beta1NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified HorizontalPodAutoscaler", - "operationId": "replaceAutoscalingV2beta1NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - } - }, - "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified HorizontalPodAutoscaler", - "operationId": "readAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "parameters": [ - { - "description": "name of the HorizontalPodAutoscaler", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified HorizontalPodAutoscaler", - "operationId": "patchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified HorizontalPodAutoscaler", - "operationId": "replaceAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - } - }, - "/apis/autoscaling/v2beta1/watch/horizontalpodautoscalers": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAutoscalingV2beta1HorizontalPodAutoscalerListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v2beta1/watch/namespaces/{namespace}/horizontalpodautoscalers": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v2beta1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchAutoscalingV2beta1NamespacedHorizontalPodAutoscaler", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the HorizontalPodAutoscaler", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v2beta2/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAutoscalingV2beta2APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ] - } - }, - "/apis/autoscaling/v2beta2/horizontalpodautoscalers": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listAutoscalingV2beta2HorizontalPodAutoscalerForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of HorizontalPodAutoscaler", - "operationId": "deleteAutoscalingV2beta2CollectionNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listAutoscalingV2beta2NamespacedHorizontalPodAutoscaler", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a HorizontalPodAutoscaler", - "operationId": "createAutoscalingV2beta2NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - } - }, - "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a HorizontalPodAutoscaler", - "operationId": "deleteAutoscalingV2beta2NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified HorizontalPodAutoscaler", - "operationId": "readAutoscalingV2beta2NamespacedHorizontalPodAutoscaler", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "parameters": [ - { - "description": "name of the HorizontalPodAutoscaler", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified HorizontalPodAutoscaler", - "operationId": "patchAutoscalingV2beta2NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified HorizontalPodAutoscaler", - "operationId": "replaceAutoscalingV2beta2NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - } - }, - "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified HorizontalPodAutoscaler", - "operationId": "readAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "parameters": [ - { - "description": "name of the HorizontalPodAutoscaler", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified HorizontalPodAutoscaler", - "operationId": "patchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified HorizontalPodAutoscaler", - "operationId": "replaceAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - } - }, - "/apis/autoscaling/v2beta2/watch/horizontalpodautoscalers": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAutoscalingV2beta2HorizontalPodAutoscalerListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchAutoscalingV2beta2NamespacedHorizontalPodAutoscaler", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the HorizontalPodAutoscaler", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/batch/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getBatchAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch" - ] - } - }, - "/apis/batch/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getBatchV1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ] - } - }, - "/apis/batch/v1/cronjobs": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind CronJob", - "operationId": "listBatchV1CronJobForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/batch/v1/jobs": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Job", - "operationId": "listBatchV1JobForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.JobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/batch/v1/namespaces/{namespace}/cronjobs": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of CronJob", - "operationId": "deleteBatchV1CollectionNamespacedCronJob", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind CronJob", - "operationId": "listBatchV1NamespacedCronJob", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a CronJob", - "operationId": "createBatchV1NamespacedCronJob", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1" - } - } - }, - "/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a CronJob", - "operationId": "deleteBatchV1NamespacedCronJob", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified CronJob", - "operationId": "readBatchV1NamespacedCronJob", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the CronJob", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified CronJob", - "operationId": "patchBatchV1NamespacedCronJob", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified CronJob", - "operationId": "replaceBatchV1NamespacedCronJob", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1" - } - } - }, - "/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified CronJob", - "operationId": "readBatchV1NamespacedCronJobStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the CronJob", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified CronJob", - "operationId": "patchBatchV1NamespacedCronJobStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified CronJob", - "operationId": "replaceBatchV1NamespacedCronJobStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1" - } - } - }, - "/apis/batch/v1/namespaces/{namespace}/jobs": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of Job", - "operationId": "deleteBatchV1CollectionNamespacedJob", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Job", - "operationId": "listBatchV1NamespacedJob", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.JobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a Job", - "operationId": "createBatchV1NamespacedJob", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - } - }, - "/apis/batch/v1/namespaces/{namespace}/jobs/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a Job", - "operationId": "deleteBatchV1NamespacedJob", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified Job", - "operationId": "readBatchV1NamespacedJob", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Job", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified Job", - "operationId": "patchBatchV1NamespacedJob", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified Job", - "operationId": "replaceBatchV1NamespacedJob", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - } - }, - "/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified Job", - "operationId": "readBatchV1NamespacedJobStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Job", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified Job", - "operationId": "patchBatchV1NamespacedJobStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified Job", - "operationId": "replaceBatchV1NamespacedJobStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - } - }, - "/apis/batch/v1/watch/cronjobs": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of CronJob. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchBatchV1CronJobListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/batch/v1/watch/jobs": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Job. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchBatchV1JobListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/batch/v1/watch/namespaces/{namespace}/cronjobs": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of CronJob. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchBatchV1NamespacedCronJobList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/batch/v1/watch/namespaces/{namespace}/cronjobs/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind CronJob. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchBatchV1NamespacedCronJob", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the CronJob", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/batch/v1/watch/namespaces/{namespace}/jobs": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Job. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchBatchV1NamespacedJobList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind Job. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchBatchV1NamespacedJob", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Job", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/batch/v1beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getBatchV1beta1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ] - } - }, - "/apis/batch/v1beta1/cronjobs": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind CronJob", - "operationId": "listBatchV1beta1CronJobForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of CronJob", - "operationId": "deleteBatchV1beta1CollectionNamespacedCronJob", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind CronJob", - "operationId": "listBatchV1beta1NamespacedCronJob", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a CronJob", - "operationId": "createBatchV1beta1NamespacedCronJob", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - } - }, - "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a CronJob", - "operationId": "deleteBatchV1beta1NamespacedCronJob", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified CronJob", - "operationId": "readBatchV1beta1NamespacedCronJob", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the CronJob", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified CronJob", - "operationId": "patchBatchV1beta1NamespacedCronJob", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified CronJob", - "operationId": "replaceBatchV1beta1NamespacedCronJob", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - } - }, - "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified CronJob", - "operationId": "readBatchV1beta1NamespacedCronJobStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the CronJob", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified CronJob", - "operationId": "patchBatchV1beta1NamespacedCronJobStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified CronJob", - "operationId": "replaceBatchV1beta1NamespacedCronJobStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - } - }, - "/apis/batch/v1beta1/watch/cronjobs": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of CronJob. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchBatchV1beta1CronJobListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/batch/v1beta1/watch/namespaces/{namespace}/cronjobs": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of CronJob. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchBatchV1beta1NamespacedCronJobList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/batch/v1beta1/watch/namespaces/{namespace}/cronjobs/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind CronJob. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchBatchV1beta1NamespacedCronJob", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the CronJob", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/certificates.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getCertificatesAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates" - ] - } - }, - "/apis/certificates.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getCertificatesV1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ] - } - }, - "/apis/certificates.k8s.io/v1/certificatesigningrequests": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of CertificateSigningRequest", - "operationId": "deleteCertificatesV1CollectionCertificateSigningRequest", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind CertificateSigningRequest", - "operationId": "listCertificatesV1CertificateSigningRequest", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequestList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a CertificateSigningRequest", - "operationId": "createCertificatesV1CertificateSigningRequest", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - } - }, - "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a CertificateSigningRequest", - "operationId": "deleteCertificatesV1CertificateSigningRequest", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified CertificateSigningRequest", - "operationId": "readCertificatesV1CertificateSigningRequest", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the CertificateSigningRequest", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified CertificateSigningRequest", - "operationId": "patchCertificatesV1CertificateSigningRequest", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified CertificateSigningRequest", - "operationId": "replaceCertificatesV1CertificateSigningRequest", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - } - }, - "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read approval of the specified CertificateSigningRequest", - "operationId": "readCertificatesV1CertificateSigningRequestApproval", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the CertificateSigningRequest", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update approval of the specified CertificateSigningRequest", - "operationId": "patchCertificatesV1CertificateSigningRequestApproval", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace approval of the specified CertificateSigningRequest", - "operationId": "replaceCertificatesV1CertificateSigningRequestApproval", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - } - }, - "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified CertificateSigningRequest", - "operationId": "readCertificatesV1CertificateSigningRequestStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the CertificateSigningRequest", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified CertificateSigningRequest", - "operationId": "patchCertificatesV1CertificateSigningRequestStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified CertificateSigningRequest", - "operationId": "replaceCertificatesV1CertificateSigningRequestStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - } - }, - "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of CertificateSigningRequest. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCertificatesV1CertificateSigningRequestList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind CertificateSigningRequest. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCertificatesV1CertificateSigningRequest", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the CertificateSigningRequest", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/coordination.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getCoordinationAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination" - ] - } - }, - "/apis/coordination.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getCoordinationV1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1" - ] - } - }, - "/apis/coordination.k8s.io/v1/leases": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Lease", - "operationId": "listCoordinationV1LeaseForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.LeaseList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of Lease", - "operationId": "deleteCoordinationV1CollectionNamespacedLease", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Lease", - "operationId": "listCoordinationV1NamespacedLease", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.LeaseList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a Lease", - "operationId": "createCoordinationV1NamespacedLease", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - } - }, - "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a Lease", - "operationId": "deleteCoordinationV1NamespacedLease", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified Lease", - "operationId": "readCoordinationV1NamespacedLease", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Lease", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified Lease", - "operationId": "patchCoordinationV1NamespacedLease", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified Lease", - "operationId": "replaceCoordinationV1NamespacedLease", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - } - }, - "/apis/coordination.k8s.io/v1/watch/leases": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Lease. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoordinationV1LeaseListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Lease. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoordinationV1NamespacedLeaseList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind Lease. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchCoordinationV1NamespacedLease", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Lease", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/discovery.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getDiscoveryAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery" - ] - } - }, - "/apis/discovery.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getDiscoveryV1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1" - ] - } - }, - "/apis/discovery.k8s.io/v1/endpointslices": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind EndpointSlice", - "operationId": "listDiscoveryV1EndpointSliceForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSliceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of EndpointSlice", - "operationId": "deleteDiscoveryV1CollectionNamespacedEndpointSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind EndpointSlice", - "operationId": "listDiscoveryV1NamespacedEndpointSlice", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSliceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create an EndpointSlice", - "operationId": "createDiscoveryV1NamespacedEndpointSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" - } - } - }, - "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete an EndpointSlice", - "operationId": "deleteDiscoveryV1NamespacedEndpointSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified EndpointSlice", - "operationId": "readDiscoveryV1NamespacedEndpointSlice", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the EndpointSlice", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified EndpointSlice", - "operationId": "patchDiscoveryV1NamespacedEndpointSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified EndpointSlice", - "operationId": "replaceDiscoveryV1NamespacedEndpointSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" - } - } - }, - "/apis/discovery.k8s.io/v1/watch/endpointslices": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of EndpointSlice. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchDiscoveryV1EndpointSliceListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of EndpointSlice. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchDiscoveryV1NamespacedEndpointSliceList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind EndpointSlice. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchDiscoveryV1NamespacedEndpointSlice", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the EndpointSlice", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/discovery.k8s.io/v1beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getDiscoveryV1beta1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1beta1" - ] - } - }, - "/apis/discovery.k8s.io/v1beta1/endpointslices": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind EndpointSlice", - "operationId": "listDiscoveryV1beta1EndpointSliceForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointSliceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of EndpointSlice", - "operationId": "deleteDiscoveryV1beta1CollectionNamespacedEndpointSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind EndpointSlice", - "operationId": "listDiscoveryV1beta1NamespacedEndpointSlice", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointSliceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create an EndpointSlice", - "operationId": "createDiscoveryV1beta1NamespacedEndpointSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointSlice" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointSlice" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointSlice" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - } - }, - "/apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete an EndpointSlice", - "operationId": "deleteDiscoveryV1beta1NamespacedEndpointSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified EndpointSlice", - "operationId": "readDiscoveryV1beta1NamespacedEndpointSlice", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointSlice" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the EndpointSlice", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified EndpointSlice", - "operationId": "patchDiscoveryV1beta1NamespacedEndpointSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointSlice" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified EndpointSlice", - "operationId": "replaceDiscoveryV1beta1NamespacedEndpointSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointSlice" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointSlice" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - } - }, - "/apis/discovery.k8s.io/v1beta1/watch/endpointslices": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of EndpointSlice. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchDiscoveryV1beta1EndpointSliceListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/discovery.k8s.io/v1beta1/watch/namespaces/{namespace}/endpointslices": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of EndpointSlice. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchDiscoveryV1beta1NamespacedEndpointSliceList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/discovery.k8s.io/v1beta1/watch/namespaces/{namespace}/endpointslices/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind EndpointSlice. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchDiscoveryV1beta1NamespacedEndpointSlice", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the EndpointSlice", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/events.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getEventsAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events" - ] - } - }, - "/apis/events.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getEventsV1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1" - ] - } - }, - "/apis/events.k8s.io/v1/events": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Event", - "operationId": "listEventsV1EventForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.EventList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/events.k8s.io/v1/namespaces/{namespace}/events": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of Event", - "operationId": "deleteEventsV1CollectionNamespacedEvent", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Event", - "operationId": "listEventsV1NamespacedEvent", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.EventList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create an Event", - "operationId": "createEventsV1NamespacedEvent", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" - } - } - }, - "/apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete an Event", - "operationId": "deleteEventsV1NamespacedEvent", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified Event", - "operationId": "readEventsV1NamespacedEvent", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Event", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified Event", - "operationId": "patchEventsV1NamespacedEvent", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified Event", - "operationId": "replaceEventsV1NamespacedEvent", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" - } - } - }, - "/apis/events.k8s.io/v1/watch/events": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchEventsV1EventListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchEventsV1NamespacedEventList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind Event. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchEventsV1NamespacedEvent", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Event", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/events.k8s.io/v1beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getEventsV1beta1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ] - } - }, - "/apis/events.k8s.io/v1beta1/events": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Event", - "operationId": "listEventsV1beta1EventForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1beta1.EventList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of Event", - "operationId": "deleteEventsV1beta1CollectionNamespacedEvent", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Event", - "operationId": "listEventsV1beta1NamespacedEvent", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1beta1.EventList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create an Event", - "operationId": "createEventsV1beta1NamespacedEvent", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1beta1.Event" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1beta1.Event" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1beta1.Event" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1beta1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - } - }, - "/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete an Event", - "operationId": "deleteEventsV1beta1NamespacedEvent", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified Event", - "operationId": "readEventsV1beta1NamespacedEvent", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1beta1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the Event", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified Event", - "operationId": "patchEventsV1beta1NamespacedEvent", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1beta1.Event" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1beta1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified Event", - "operationId": "replaceEventsV1beta1NamespacedEvent", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1beta1.Event" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1beta1.Event" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.events.v1beta1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - } - }, - "/apis/events.k8s.io/v1beta1/watch/events": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchEventsV1beta1EventListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/events.k8s.io/v1beta1/watch/namespaces/{namespace}/events": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchEventsV1beta1NamespacedEventList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/events.k8s.io/v1beta1/watch/namespaces/{namespace}/events/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind Event. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchEventsV1beta1NamespacedEvent", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Event", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/flowcontrol.apiserver.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getFlowcontrolApiserverAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver" - ] - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getFlowcontrolApiserverV1beta1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ] - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of FlowSchema", - "operationId": "deleteFlowcontrolApiserverV1beta1CollectionFlowSchema", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind FlowSchema", - "operationId": "listFlowcontrolApiserverV1beta1FlowSchema", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchemaList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a FlowSchema", - "operationId": "createFlowcontrolApiserverV1beta1FlowSchema", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a FlowSchema", - "operationId": "deleteFlowcontrolApiserverV1beta1FlowSchema", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified FlowSchema", - "operationId": "readFlowcontrolApiserverV1beta1FlowSchema", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the FlowSchema", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified FlowSchema", - "operationId": "patchFlowcontrolApiserverV1beta1FlowSchema", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified FlowSchema", - "operationId": "replaceFlowcontrolApiserverV1beta1FlowSchema", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified FlowSchema", - "operationId": "readFlowcontrolApiserverV1beta1FlowSchemaStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the FlowSchema", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified FlowSchema", - "operationId": "patchFlowcontrolApiserverV1beta1FlowSchemaStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified FlowSchema", - "operationId": "replaceFlowcontrolApiserverV1beta1FlowSchemaStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of PriorityLevelConfiguration", - "operationId": "deleteFlowcontrolApiserverV1beta1CollectionPriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PriorityLevelConfiguration", - "operationId": "listFlowcontrolApiserverV1beta1PriorityLevelConfiguration", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a PriorityLevelConfiguration", - "operationId": "createFlowcontrolApiserverV1beta1PriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a PriorityLevelConfiguration", - "operationId": "deleteFlowcontrolApiserverV1beta1PriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified PriorityLevelConfiguration", - "operationId": "readFlowcontrolApiserverV1beta1PriorityLevelConfiguration", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the PriorityLevelConfiguration", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified PriorityLevelConfiguration", - "operationId": "patchFlowcontrolApiserverV1beta1PriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified PriorityLevelConfiguration", - "operationId": "replaceFlowcontrolApiserverV1beta1PriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified PriorityLevelConfiguration", - "operationId": "readFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the PriorityLevelConfiguration", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified PriorityLevelConfiguration", - "operationId": "patchFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified PriorityLevelConfiguration", - "operationId": "replaceFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/flowschemas": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of FlowSchema. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchFlowcontrolApiserverV1beta1FlowSchemaList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/flowschemas/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind FlowSchema. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchFlowcontrolApiserverV1beta1FlowSchema", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the FlowSchema", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/prioritylevelconfigurations": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of PriorityLevelConfiguration. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchFlowcontrolApiserverV1beta1PriorityLevelConfigurationList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/prioritylevelconfigurations/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind PriorityLevelConfiguration. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchFlowcontrolApiserverV1beta1PriorityLevelConfiguration", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the PriorityLevelConfiguration", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/internal.apiserver.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getInternalApiserverAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver" - ] - } - }, - "/apis/internal.apiserver.k8s.io/v1alpha1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getInternalApiserverV1alpha1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ] - } - }, - "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of StorageVersion", - "operationId": "deleteInternalApiserverV1alpha1CollectionStorageVersion", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind StorageVersion", - "operationId": "listInternalApiserverV1alpha1StorageVersion", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a StorageVersion", - "operationId": "createInternalApiserverV1alpha1StorageVersion", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" - } - } - }, - "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a StorageVersion", - "operationId": "deleteInternalApiserverV1alpha1StorageVersion", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified StorageVersion", - "operationId": "readInternalApiserverV1alpha1StorageVersion", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "description": "name of the StorageVersion", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified StorageVersion", - "operationId": "patchInternalApiserverV1alpha1StorageVersion", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified StorageVersion", - "operationId": "replaceInternalApiserverV1alpha1StorageVersion", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" - } - } - }, - "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified StorageVersion", - "operationId": "readInternalApiserverV1alpha1StorageVersionStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "description": "name of the StorageVersion", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified StorageVersion", - "operationId": "patchInternalApiserverV1alpha1StorageVersionStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified StorageVersion", - "operationId": "replaceInternalApiserverV1alpha1StorageVersionStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" - } - } - }, - "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of StorageVersion. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchInternalApiserverV1alpha1StorageVersionList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind StorageVersion. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchInternalApiserverV1alpha1StorageVersion", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the StorageVersion", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getNetworkingAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking" - ] - } - }, - "/apis/networking.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getNetworkingV1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ] - } - }, - "/apis/networking.k8s.io/v1/ingressclasses": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of IngressClass", - "operationId": "deleteNetworkingV1CollectionIngressClass", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind IngressClass", - "operationId": "listNetworkingV1IngressClass", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClassList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create an IngressClass", - "operationId": "createNetworkingV1IngressClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" - } - } - }, - "/apis/networking.k8s.io/v1/ingressclasses/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete an IngressClass", - "operationId": "deleteNetworkingV1IngressClass", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified IngressClass", - "operationId": "readNetworkingV1IngressClass", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the IngressClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified IngressClass", - "operationId": "patchNetworkingV1IngressClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified IngressClass", - "operationId": "replaceNetworkingV1IngressClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" - } - } - }, - "/apis/networking.k8s.io/v1/ingresses": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Ingress", - "operationId": "listNetworkingV1IngressForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of Ingress", - "operationId": "deleteNetworkingV1CollectionNamespacedIngress", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Ingress", - "operationId": "listNetworkingV1NamespacedIngress", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.IngressList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create an Ingress", - "operationId": "createNetworkingV1NamespacedIngress", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - } - } - }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete an Ingress", - "operationId": "deleteNetworkingV1NamespacedIngress", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified Ingress", - "operationId": "readNetworkingV1NamespacedIngress", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Ingress", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified Ingress", - "operationId": "patchNetworkingV1NamespacedIngress", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified Ingress", - "operationId": "replaceNetworkingV1NamespacedIngress", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - } - } - }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified Ingress", - "operationId": "readNetworkingV1NamespacedIngressStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Ingress", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified Ingress", - "operationId": "patchNetworkingV1NamespacedIngressStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified Ingress", - "operationId": "replaceNetworkingV1NamespacedIngressStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - } - } - }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of NetworkPolicy", - "operationId": "deleteNetworkingV1CollectionNamespacedNetworkPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind NetworkPolicy", - "operationId": "listNetworkingV1NamespacedNetworkPolicy", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a NetworkPolicy", - "operationId": "createNetworkingV1NamespacedNetworkPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - } - }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a NetworkPolicy", - "operationId": "deleteNetworkingV1NamespacedNetworkPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified NetworkPolicy", - "operationId": "readNetworkingV1NamespacedNetworkPolicy", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the NetworkPolicy", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified NetworkPolicy", - "operationId": "patchNetworkingV1NamespacedNetworkPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified NetworkPolicy", - "operationId": "replaceNetworkingV1NamespacedNetworkPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - } - }, - "/apis/networking.k8s.io/v1/networkpolicies": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind NetworkPolicy", - "operationId": "listNetworkingV1NetworkPolicyForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1/watch/ingressclasses": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of IngressClass. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNetworkingV1IngressClassList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1/watch/ingressclasses/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind IngressClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchNetworkingV1IngressClass", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the IngressClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1/watch/ingresses": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Ingress. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNetworkingV1IngressListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Ingress. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNetworkingV1NamespacedIngressList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind Ingress. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchNetworkingV1NamespacedIngress", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Ingress", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of NetworkPolicy. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNetworkingV1NamespacedNetworkPolicyList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind NetworkPolicy. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchNetworkingV1NamespacedNetworkPolicy", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the NetworkPolicy", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1/watch/networkpolicies": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of NetworkPolicy. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNetworkingV1NetworkPolicyListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/node.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getNodeAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node" - ] - } - }, - "/apis/node.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getNodeV1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1" - ] - } - }, - "/apis/node.k8s.io/v1/runtimeclasses": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of RuntimeClass", - "operationId": "deleteNodeV1CollectionRuntimeClass", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind RuntimeClass", - "operationId": "listNodeV1RuntimeClass", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClassList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a RuntimeClass", - "operationId": "createNodeV1RuntimeClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1" - } - } - }, - "/apis/node.k8s.io/v1/runtimeclasses/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a RuntimeClass", - "operationId": "deleteNodeV1RuntimeClass", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified RuntimeClass", - "operationId": "readNodeV1RuntimeClass", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the RuntimeClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified RuntimeClass", - "operationId": "patchNodeV1RuntimeClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified RuntimeClass", - "operationId": "replaceNodeV1RuntimeClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1" - } - } - }, - "/apis/node.k8s.io/v1/watch/runtimeclasses": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of RuntimeClass. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNodeV1RuntimeClassList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/node.k8s.io/v1/watch/runtimeclasses/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind RuntimeClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchNodeV1RuntimeClass", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the RuntimeClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/node.k8s.io/v1alpha1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getNodeV1alpha1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1alpha1" - ] - } - }, - "/apis/node.k8s.io/v1alpha1/runtimeclasses": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of RuntimeClass", - "operationId": "deleteNodeV1alpha1CollectionRuntimeClass", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1alpha1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1alpha1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind RuntimeClass", - "operationId": "listNodeV1alpha1RuntimeClass", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1alpha1.RuntimeClassList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1alpha1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a RuntimeClass", - "operationId": "createNodeV1alpha1RuntimeClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1alpha1.RuntimeClass" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1alpha1.RuntimeClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1alpha1.RuntimeClass" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1alpha1.RuntimeClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1alpha1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1alpha1" - } - } - }, - "/apis/node.k8s.io/v1alpha1/runtimeclasses/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a RuntimeClass", - "operationId": "deleteNodeV1alpha1RuntimeClass", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1alpha1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1alpha1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified RuntimeClass", - "operationId": "readNodeV1alpha1RuntimeClass", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1alpha1.RuntimeClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1alpha1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "description": "name of the RuntimeClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified RuntimeClass", - "operationId": "patchNodeV1alpha1RuntimeClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1alpha1.RuntimeClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1alpha1.RuntimeClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1alpha1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1alpha1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified RuntimeClass", - "operationId": "replaceNodeV1alpha1RuntimeClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1alpha1.RuntimeClass" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1alpha1.RuntimeClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1alpha1.RuntimeClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1alpha1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1alpha1" - } - } - }, - "/apis/node.k8s.io/v1alpha1/watch/runtimeclasses": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of RuntimeClass. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNodeV1alpha1RuntimeClassList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1alpha1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1alpha1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/node.k8s.io/v1alpha1/watch/runtimeclasses/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind RuntimeClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchNodeV1alpha1RuntimeClass", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1alpha1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1alpha1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the RuntimeClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/node.k8s.io/v1beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getNodeV1beta1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1beta1" - ] - } - }, - "/apis/node.k8s.io/v1beta1/runtimeclasses": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of RuntimeClass", - "operationId": "deleteNodeV1beta1CollectionRuntimeClass", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind RuntimeClass", - "operationId": "listNodeV1beta1RuntimeClass", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1beta1.RuntimeClassList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a RuntimeClass", - "operationId": "createNodeV1beta1RuntimeClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1beta1.RuntimeClass" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1beta1.RuntimeClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1beta1.RuntimeClass" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1beta1.RuntimeClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - } - } - }, - "/apis/node.k8s.io/v1beta1/runtimeclasses/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a RuntimeClass", - "operationId": "deleteNodeV1beta1RuntimeClass", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified RuntimeClass", - "operationId": "readNodeV1beta1RuntimeClass", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1beta1.RuntimeClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the RuntimeClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified RuntimeClass", - "operationId": "patchNodeV1beta1RuntimeClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1beta1.RuntimeClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1beta1.RuntimeClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified RuntimeClass", - "operationId": "replaceNodeV1beta1RuntimeClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1beta1.RuntimeClass" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1beta1.RuntimeClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.node.v1beta1.RuntimeClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - } - } - }, - "/apis/node.k8s.io/v1beta1/watch/runtimeclasses": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of RuntimeClass. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNodeV1beta1RuntimeClassList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/node.k8s.io/v1beta1/watch/runtimeclasses/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind RuntimeClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchNodeV1beta1RuntimeClass", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1beta1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the RuntimeClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/policy/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getPolicyAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy" - ] - } - }, - "/apis/policy/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getPolicyV1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ] - } - }, - "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of PodDisruptionBudget", - "operationId": "deletePolicyV1CollectionNamespacedPodDisruptionBudget", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PodDisruptionBudget", - "operationId": "listPolicyV1NamespacedPodDisruptionBudget", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudgetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a PodDisruptionBudget", - "operationId": "createPolicyV1NamespacedPodDisruptionBudget", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" - } - } - }, - "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a PodDisruptionBudget", - "operationId": "deletePolicyV1NamespacedPodDisruptionBudget", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified PodDisruptionBudget", - "operationId": "readPolicyV1NamespacedPodDisruptionBudget", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the PodDisruptionBudget", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified PodDisruptionBudget", - "operationId": "patchPolicyV1NamespacedPodDisruptionBudget", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified PodDisruptionBudget", - "operationId": "replacePolicyV1NamespacedPodDisruptionBudget", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" - } - } - }, - "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified PodDisruptionBudget", - "operationId": "readPolicyV1NamespacedPodDisruptionBudgetStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the PodDisruptionBudget", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified PodDisruptionBudget", - "operationId": "patchPolicyV1NamespacedPodDisruptionBudgetStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified PodDisruptionBudget", - "operationId": "replacePolicyV1NamespacedPodDisruptionBudgetStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" - } - } - }, - "/apis/policy/v1/poddisruptionbudgets": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PodDisruptionBudget", - "operationId": "listPolicyV1PodDisruptionBudgetForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudgetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchPolicyV1NamespacedPodDisruptionBudgetList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchPolicyV1NamespacedPodDisruptionBudget", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the PodDisruptionBudget", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/policy/v1/watch/poddisruptionbudgets": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchPolicyV1PodDisruptionBudgetListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/policy/v1beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getPolicyV1beta1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ] - } - }, - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of PodDisruptionBudget", - "operationId": "deletePolicyV1beta1CollectionNamespacedPodDisruptionBudget", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PodDisruptionBudget", - "operationId": "listPolicyV1beta1NamespacedPodDisruptionBudget", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudgetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a PodDisruptionBudget", - "operationId": "createPolicyV1beta1NamespacedPodDisruptionBudget", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - } - }, - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a PodDisruptionBudget", - "operationId": "deletePolicyV1beta1NamespacedPodDisruptionBudget", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified PodDisruptionBudget", - "operationId": "readPolicyV1beta1NamespacedPodDisruptionBudget", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the PodDisruptionBudget", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified PodDisruptionBudget", - "operationId": "patchPolicyV1beta1NamespacedPodDisruptionBudget", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified PodDisruptionBudget", - "operationId": "replacePolicyV1beta1NamespacedPodDisruptionBudget", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - } - }, - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified PodDisruptionBudget", - "operationId": "readPolicyV1beta1NamespacedPodDisruptionBudgetStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the PodDisruptionBudget", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified PodDisruptionBudget", - "operationId": "patchPolicyV1beta1NamespacedPodDisruptionBudgetStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified PodDisruptionBudget", - "operationId": "replacePolicyV1beta1NamespacedPodDisruptionBudgetStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - } - }, - "/apis/policy/v1beta1/poddisruptionbudgets": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PodDisruptionBudget", - "operationId": "listPolicyV1beta1PodDisruptionBudgetForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudgetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/policy/v1beta1/podsecuritypolicies": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of PodSecurityPolicy", - "operationId": "deletePolicyV1beta1CollectionPodSecurityPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PodSecurityPolicy", - "operationId": "listPolicyV1beta1PodSecurityPolicy", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicyList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a PodSecurityPolicy", - "operationId": "createPolicyV1beta1PodSecurityPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicy" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicy" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - } - }, - "/apis/policy/v1beta1/podsecuritypolicies/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a PodSecurityPolicy", - "operationId": "deletePolicyV1beta1PodSecurityPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicy" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified PodSecurityPolicy", - "operationId": "readPolicyV1beta1PodSecurityPolicy", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the PodSecurityPolicy", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified PodSecurityPolicy", - "operationId": "patchPolicyV1beta1PodSecurityPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified PodSecurityPolicy", - "operationId": "replacePolicyV1beta1PodSecurityPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicy" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - } - }, - "/apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchPolicyV1beta1NamespacedPodDisruptionBudgetList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchPolicyV1beta1NamespacedPodDisruptionBudget", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the PodDisruptionBudget", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/policy/v1beta1/watch/poddisruptionbudgets": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchPolicyV1beta1PodDisruptionBudgetListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/policy/v1beta1/watch/podsecuritypolicies": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of PodSecurityPolicy. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchPolicyV1beta1PodSecurityPolicyList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/policy/v1beta1/watch/podsecuritypolicies/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind PodSecurityPolicy. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchPolicyV1beta1PodSecurityPolicy", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the PodSecurityPolicy", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getRbacAuthorizationAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization" - ] - } - }, - "/apis/rbac.authorization.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getRbacAuthorizationV1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ] - } - }, - "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of ClusterRoleBinding", - "operationId": "deleteRbacAuthorizationV1CollectionClusterRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind ClusterRoleBinding", - "operationId": "listRbacAuthorizationV1ClusterRoleBinding", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a ClusterRoleBinding", - "operationId": "createRbacAuthorizationV1ClusterRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - } - }, - "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a ClusterRoleBinding", - "operationId": "deleteRbacAuthorizationV1ClusterRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified ClusterRoleBinding", - "operationId": "readRbacAuthorizationV1ClusterRoleBinding", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the ClusterRoleBinding", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified ClusterRoleBinding", - "operationId": "patchRbacAuthorizationV1ClusterRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified ClusterRoleBinding", - "operationId": "replaceRbacAuthorizationV1ClusterRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - } - }, - "/apis/rbac.authorization.k8s.io/v1/clusterroles": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of ClusterRole", - "operationId": "deleteRbacAuthorizationV1CollectionClusterRole", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind ClusterRole", - "operationId": "listRbacAuthorizationV1ClusterRole", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a ClusterRole", - "operationId": "createRbacAuthorizationV1ClusterRole", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - } - }, - "/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a ClusterRole", - "operationId": "deleteRbacAuthorizationV1ClusterRole", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified ClusterRole", - "operationId": "readRbacAuthorizationV1ClusterRole", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the ClusterRole", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified ClusterRole", - "operationId": "patchRbacAuthorizationV1ClusterRole", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified ClusterRole", - "operationId": "replaceRbacAuthorizationV1ClusterRole", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - } - }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of RoleBinding", - "operationId": "deleteRbacAuthorizationV1CollectionNamespacedRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind RoleBinding", - "operationId": "listRbacAuthorizationV1NamespacedRoleBinding", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a RoleBinding", - "operationId": "createRbacAuthorizationV1NamespacedRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - } - }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a RoleBinding", - "operationId": "deleteRbacAuthorizationV1NamespacedRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified RoleBinding", - "operationId": "readRbacAuthorizationV1NamespacedRoleBinding", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the RoleBinding", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified RoleBinding", - "operationId": "patchRbacAuthorizationV1NamespacedRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified RoleBinding", - "operationId": "replaceRbacAuthorizationV1NamespacedRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - } - }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of Role", - "operationId": "deleteRbacAuthorizationV1CollectionNamespacedRole", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Role", - "operationId": "listRbacAuthorizationV1NamespacedRole", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a Role", - "operationId": "createRbacAuthorizationV1NamespacedRole", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - } - }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a Role", - "operationId": "deleteRbacAuthorizationV1NamespacedRole", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified Role", - "operationId": "readRbacAuthorizationV1NamespacedRole", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Role", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified Role", - "operationId": "patchRbacAuthorizationV1NamespacedRole", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified Role", - "operationId": "replaceRbacAuthorizationV1NamespacedRole", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - } - }, - "/apis/rbac.authorization.k8s.io/v1/rolebindings": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind RoleBinding", - "operationId": "listRbacAuthorizationV1RoleBindingForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/roles": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Role", - "operationId": "listRbacAuthorizationV1RoleForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1ClusterRoleBindingList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchRbacAuthorizationV1ClusterRoleBinding", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ClusterRoleBinding", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ClusterRole. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1ClusterRoleList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind ClusterRole. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchRbacAuthorizationV1ClusterRole", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ClusterRole", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1NamespacedRoleBindingList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind RoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchRbacAuthorizationV1NamespacedRoleBinding", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the RoleBinding", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1NamespacedRoleList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind Role. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchRbacAuthorizationV1NamespacedRole", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Role", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/rolebindings": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1RoleBindingListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/roles": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1RoleListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getRbacAuthorizationV1alpha1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ] - } - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of ClusterRoleBinding", - "operationId": "deleteRbacAuthorizationV1alpha1CollectionClusterRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind ClusterRoleBinding", - "operationId": "listRbacAuthorizationV1alpha1ClusterRoleBinding", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a ClusterRoleBinding", - "operationId": "createRbacAuthorizationV1alpha1ClusterRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleBinding" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleBinding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleBinding" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - } - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a ClusterRoleBinding", - "operationId": "deleteRbacAuthorizationV1alpha1ClusterRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified ClusterRoleBinding", - "operationId": "readRbacAuthorizationV1alpha1ClusterRoleBinding", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "description": "name of the ClusterRoleBinding", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified ClusterRoleBinding", - "operationId": "patchRbacAuthorizationV1alpha1ClusterRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleBinding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified ClusterRoleBinding", - "operationId": "replaceRbacAuthorizationV1alpha1ClusterRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleBinding" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleBinding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - } - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of ClusterRole", - "operationId": "deleteRbacAuthorizationV1alpha1CollectionClusterRole", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind ClusterRole", - "operationId": "listRbacAuthorizationV1alpha1ClusterRole", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a ClusterRole", - "operationId": "createRbacAuthorizationV1alpha1ClusterRole", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRole" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRole" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRole" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - } - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a ClusterRole", - "operationId": "deleteRbacAuthorizationV1alpha1ClusterRole", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified ClusterRole", - "operationId": "readRbacAuthorizationV1alpha1ClusterRole", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "description": "name of the ClusterRole", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified ClusterRole", - "operationId": "patchRbacAuthorizationV1alpha1ClusterRole", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRole" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified ClusterRole", - "operationId": "replaceRbacAuthorizationV1alpha1ClusterRole", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRole" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRole" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - } - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of RoleBinding", - "operationId": "deleteRbacAuthorizationV1alpha1CollectionNamespacedRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind RoleBinding", - "operationId": "listRbacAuthorizationV1alpha1NamespacedRoleBinding", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a RoleBinding", - "operationId": "createRbacAuthorizationV1alpha1NamespacedRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleBinding" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleBinding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleBinding" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - } - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a RoleBinding", - "operationId": "deleteRbacAuthorizationV1alpha1NamespacedRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified RoleBinding", - "operationId": "readRbacAuthorizationV1alpha1NamespacedRoleBinding", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "description": "name of the RoleBinding", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified RoleBinding", - "operationId": "patchRbacAuthorizationV1alpha1NamespacedRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleBinding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified RoleBinding", - "operationId": "replaceRbacAuthorizationV1alpha1NamespacedRoleBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleBinding" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleBinding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - } - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of Role", - "operationId": "deleteRbacAuthorizationV1alpha1CollectionNamespacedRole", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Role", - "operationId": "listRbacAuthorizationV1alpha1NamespacedRole", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a Role", - "operationId": "createRbacAuthorizationV1alpha1NamespacedRole", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Role" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Role" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Role" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - } - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a Role", - "operationId": "deleteRbacAuthorizationV1alpha1NamespacedRole", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified Role", - "operationId": "readRbacAuthorizationV1alpha1NamespacedRole", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "description": "name of the Role", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified Role", - "operationId": "patchRbacAuthorizationV1alpha1NamespacedRole", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Role" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified Role", - "operationId": "replaceRbacAuthorizationV1alpha1NamespacedRole", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Role" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Role" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - } - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/rolebindings": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind RoleBinding", - "operationId": "listRbacAuthorizationV1alpha1RoleBindingForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/roles": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Role", - "operationId": "listRbacAuthorizationV1alpha1RoleForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1alpha1ClusterRoleBindingList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchRbacAuthorizationV1alpha1ClusterRoleBinding", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ClusterRoleBinding", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of ClusterRole. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1alpha1ClusterRoleList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind ClusterRole. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchRbacAuthorizationV1alpha1ClusterRole", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ClusterRole", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1alpha1NamespacedRoleBindingList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind RoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchRbacAuthorizationV1alpha1NamespacedRoleBinding", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the RoleBinding", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1alpha1NamespacedRoleList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind Role. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchRbacAuthorizationV1alpha1NamespacedRole", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Role", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/rolebindings": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1alpha1RoleBindingListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/roles": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchRbacAuthorizationV1alpha1RoleListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/scheduling.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getSchedulingAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling" - ] - } - }, - "/apis/scheduling.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getSchedulingV1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1" - ] - } - }, - "/apis/scheduling.k8s.io/v1/priorityclasses": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of PriorityClass", - "operationId": "deleteSchedulingV1CollectionPriorityClass", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PriorityClass", - "operationId": "listSchedulingV1PriorityClass", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClassList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a PriorityClass", - "operationId": "createSchedulingV1PriorityClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" - } - } - }, - "/apis/scheduling.k8s.io/v1/priorityclasses/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a PriorityClass", - "operationId": "deleteSchedulingV1PriorityClass", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified PriorityClass", - "operationId": "readSchedulingV1PriorityClass", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the PriorityClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified PriorityClass", - "operationId": "patchSchedulingV1PriorityClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified PriorityClass", - "operationId": "replaceSchedulingV1PriorityClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" - } - } - }, - "/apis/scheduling.k8s.io/v1/watch/priorityclasses": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of PriorityClass. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchSchedulingV1PriorityClassList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind PriorityClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchSchedulingV1PriorityClass", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the PriorityClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/scheduling.k8s.io/v1alpha1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getSchedulingV1alpha1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ] - } - }, - "/apis/scheduling.k8s.io/v1alpha1/priorityclasses": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of PriorityClass", - "operationId": "deleteSchedulingV1alpha1CollectionPriorityClass", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PriorityClass", - "operationId": "listSchedulingV1alpha1PriorityClass", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha1.PriorityClassList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a PriorityClass", - "operationId": "createSchedulingV1alpha1PriorityClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha1.PriorityClass" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha1.PriorityClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha1.PriorityClass" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha1.PriorityClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - } - }, - "/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a PriorityClass", - "operationId": "deleteSchedulingV1alpha1PriorityClass", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified PriorityClass", - "operationId": "readSchedulingV1alpha1PriorityClass", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha1.PriorityClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "description": "name of the PriorityClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified PriorityClass", - "operationId": "patchSchedulingV1alpha1PriorityClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha1.PriorityClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha1.PriorityClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified PriorityClass", - "operationId": "replaceSchedulingV1alpha1PriorityClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha1.PriorityClass" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha1.PriorityClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha1.PriorityClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - } - }, - "/apis/scheduling.k8s.io/v1alpha1/watch/priorityclasses": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of PriorityClass. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchSchedulingV1alpha1PriorityClassList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/scheduling.k8s.io/v1alpha1/watch/priorityclasses/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind PriorityClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchSchedulingV1alpha1PriorityClass", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the PriorityClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/storage.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getStorageAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage" - ] - } - }, - "/apis/storage.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getStorageV1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ] - } - }, - "/apis/storage.k8s.io/v1/csidrivers": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of CSIDriver", - "operationId": "deleteStorageV1CollectionCSIDriver", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIDriver", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind CSIDriver", - "operationId": "listStorageV1CSIDriver", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriverList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIDriver", - "version": "v1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a CSIDriver", - "operationId": "createStorageV1CSIDriver", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIDriver", - "version": "v1" - } - } - }, - "/apis/storage.k8s.io/v1/csidrivers/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a CSIDriver", - "operationId": "deleteStorageV1CSIDriver", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIDriver", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified CSIDriver", - "operationId": "readStorageV1CSIDriver", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIDriver", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the CSIDriver", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified CSIDriver", - "operationId": "patchStorageV1CSIDriver", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIDriver", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified CSIDriver", - "operationId": "replaceStorageV1CSIDriver", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIDriver", - "version": "v1" - } - } - }, - "/apis/storage.k8s.io/v1/csinodes": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of CSINode", - "operationId": "deleteStorageV1CollectionCSINode", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSINode", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind CSINode", - "operationId": "listStorageV1CSINode", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSINodeList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSINode", - "version": "v1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a CSINode", - "operationId": "createStorageV1CSINode", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSINode", - "version": "v1" - } - } - }, - "/apis/storage.k8s.io/v1/csinodes/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a CSINode", - "operationId": "deleteStorageV1CSINode", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSINode", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified CSINode", - "operationId": "readStorageV1CSINode", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSINode", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the CSINode", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified CSINode", - "operationId": "patchStorageV1CSINode", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSINode", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified CSINode", - "operationId": "replaceStorageV1CSINode", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSINode", - "version": "v1" - } - } - }, - "/apis/storage.k8s.io/v1/storageclasses": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of StorageClass", - "operationId": "deleteStorageV1CollectionStorageClass", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind StorageClass", - "operationId": "listStorageV1StorageClass", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClassList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a StorageClass", - "operationId": "createStorageV1StorageClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - } - }, - "/apis/storage.k8s.io/v1/storageclasses/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a StorageClass", - "operationId": "deleteStorageV1StorageClass", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified StorageClass", - "operationId": "readStorageV1StorageClass", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the StorageClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified StorageClass", - "operationId": "patchStorageV1StorageClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified StorageClass", - "operationId": "replaceStorageV1StorageClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - } - }, - "/apis/storage.k8s.io/v1/volumeattachments": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of VolumeAttachment", - "operationId": "deleteStorageV1CollectionVolumeAttachment", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind VolumeAttachment", - "operationId": "listStorageV1VolumeAttachment", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachmentList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a VolumeAttachment", - "operationId": "createStorageV1VolumeAttachment", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1" - } - } - }, - "/apis/storage.k8s.io/v1/volumeattachments/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a VolumeAttachment", - "operationId": "deleteStorageV1VolumeAttachment", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified VolumeAttachment", - "operationId": "readStorageV1VolumeAttachment", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the VolumeAttachment", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified VolumeAttachment", - "operationId": "patchStorageV1VolumeAttachment", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified VolumeAttachment", - "operationId": "replaceStorageV1VolumeAttachment", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1" - } - } - }, - "/apis/storage.k8s.io/v1/volumeattachments/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified VolumeAttachment", - "operationId": "readStorageV1VolumeAttachmentStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the VolumeAttachment", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified VolumeAttachment", - "operationId": "patchStorageV1VolumeAttachmentStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified VolumeAttachment", - "operationId": "replaceStorageV1VolumeAttachmentStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1" - } - } - }, - "/apis/storage.k8s.io/v1/watch/csidrivers": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of CSIDriver. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchStorageV1CSIDriverList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIDriver", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/storage.k8s.io/v1/watch/csidrivers/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind CSIDriver. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchStorageV1CSIDriver", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIDriver", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the CSIDriver", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/storage.k8s.io/v1/watch/csinodes": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of CSINode. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchStorageV1CSINodeList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSINode", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/storage.k8s.io/v1/watch/csinodes/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind CSINode. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchStorageV1CSINode", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSINode", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the CSINode", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/storage.k8s.io/v1/watch/storageclasses": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of StorageClass. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchStorageV1StorageClassList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/storage.k8s.io/v1/watch/storageclasses/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind StorageClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchStorageV1StorageClass", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the StorageClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/storage.k8s.io/v1/watch/volumeattachments": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of VolumeAttachment. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchStorageV1VolumeAttachmentList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/storage.k8s.io/v1/watch/volumeattachments/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind VolumeAttachment. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchStorageV1VolumeAttachment", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the VolumeAttachment", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/storage.k8s.io/v1alpha1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getStorageV1alpha1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1alpha1" - ] - } - }, - "/apis/storage.k8s.io/v1alpha1/csistoragecapacities": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind CSIStorageCapacity", - "operationId": "listStorageV1alpha1CSIStorageCapacityForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.CSIStorageCapacityList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1alpha1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1alpha1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/storage.k8s.io/v1alpha1/namespaces/{namespace}/csistoragecapacities": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of CSIStorageCapacity", - "operationId": "deleteStorageV1alpha1CollectionNamespacedCSIStorageCapacity", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1alpha1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1alpha1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind CSIStorageCapacity", - "operationId": "listStorageV1alpha1NamespacedCSIStorageCapacity", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.CSIStorageCapacityList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1alpha1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a CSIStorageCapacity", - "operationId": "createStorageV1alpha1NamespacedCSIStorageCapacity", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.CSIStorageCapacity" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.CSIStorageCapacity" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.CSIStorageCapacity" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.CSIStorageCapacity" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1alpha1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1alpha1" - } - } - }, - "/apis/storage.k8s.io/v1alpha1/namespaces/{namespace}/csistoragecapacities/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a CSIStorageCapacity", - "operationId": "deleteStorageV1alpha1NamespacedCSIStorageCapacity", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1alpha1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1alpha1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified CSIStorageCapacity", - "operationId": "readStorageV1alpha1NamespacedCSIStorageCapacity", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.CSIStorageCapacity" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1alpha1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "description": "name of the CSIStorageCapacity", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified CSIStorageCapacity", - "operationId": "patchStorageV1alpha1NamespacedCSIStorageCapacity", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.CSIStorageCapacity" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.CSIStorageCapacity" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1alpha1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1alpha1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified CSIStorageCapacity", - "operationId": "replaceStorageV1alpha1NamespacedCSIStorageCapacity", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.CSIStorageCapacity" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.CSIStorageCapacity" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.CSIStorageCapacity" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1alpha1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1alpha1" - } - } - }, - "/apis/storage.k8s.io/v1alpha1/volumeattachments": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of VolumeAttachment", - "operationId": "deleteStorageV1alpha1CollectionVolumeAttachment", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1alpha1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1alpha1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind VolumeAttachment", - "operationId": "listStorageV1alpha1VolumeAttachment", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttachmentList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1alpha1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a VolumeAttachment", - "operationId": "createStorageV1alpha1VolumeAttachment", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttachment" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttachment" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttachment" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttachment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1alpha1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1alpha1" - } - } - }, - "/apis/storage.k8s.io/v1alpha1/volumeattachments/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a VolumeAttachment", - "operationId": "deleteStorageV1alpha1VolumeAttachment", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttachment" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttachment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1alpha1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1alpha1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified VolumeAttachment", - "operationId": "readStorageV1alpha1VolumeAttachment", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttachment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1alpha1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "description": "name of the VolumeAttachment", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified VolumeAttachment", - "operationId": "patchStorageV1alpha1VolumeAttachment", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttachment" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttachment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1alpha1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1alpha1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified VolumeAttachment", - "operationId": "replaceStorageV1alpha1VolumeAttachment", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttachment" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttachment" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttachment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1alpha1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1alpha1" - } - } - }, - "/apis/storage.k8s.io/v1alpha1/watch/csistoragecapacities": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of CSIStorageCapacity. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchStorageV1alpha1CSIStorageCapacityListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1alpha1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1alpha1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/storage.k8s.io/v1alpha1/watch/namespaces/{namespace}/csistoragecapacities": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of CSIStorageCapacity. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchStorageV1alpha1NamespacedCSIStorageCapacityList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1alpha1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1alpha1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/storage.k8s.io/v1alpha1/watch/namespaces/{namespace}/csistoragecapacities/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind CSIStorageCapacity. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchStorageV1alpha1NamespacedCSIStorageCapacity", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1alpha1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1alpha1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the CSIStorageCapacity", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/storage.k8s.io/v1alpha1/watch/volumeattachments": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of VolumeAttachment. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchStorageV1alpha1VolumeAttachmentList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1alpha1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1alpha1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/storage.k8s.io/v1alpha1/watch/volumeattachments/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind VolumeAttachment. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchStorageV1alpha1VolumeAttachment", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1alpha1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1alpha1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the VolumeAttachment", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/storage.k8s.io/v1beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getStorageV1beta1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ] - } - }, - "/apis/storage.k8s.io/v1beta1/csistoragecapacities": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind CSIStorageCapacity", - "operationId": "listStorageV1beta1CSIStorageCapacityForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.CSIStorageCapacityList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/storage.k8s.io/v1beta1/namespaces/{namespace}/csistoragecapacities": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of CSIStorageCapacity", - "operationId": "deleteStorageV1beta1CollectionNamespacedCSIStorageCapacity", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind CSIStorageCapacity", - "operationId": "listStorageV1beta1NamespacedCSIStorageCapacity", - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.CSIStorageCapacityList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a CSIStorageCapacity", - "operationId": "createStorageV1beta1NamespacedCSIStorageCapacity", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.CSIStorageCapacity" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.CSIStorageCapacity" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.CSIStorageCapacity" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.CSIStorageCapacity" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1beta1" - } - } - }, - "/apis/storage.k8s.io/v1beta1/namespaces/{namespace}/csistoragecapacities/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a CSIStorageCapacity", - "operationId": "deleteStorageV1beta1NamespacedCSIStorageCapacity", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": 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", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified CSIStorageCapacity", - "operationId": "readStorageV1beta1NamespacedCSIStorageCapacity", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.CSIStorageCapacity" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the CSIStorageCapacity", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified CSIStorageCapacity", - "operationId": "patchStorageV1beta1NamespacedCSIStorageCapacity", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.CSIStorageCapacity" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.CSIStorageCapacity" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified CSIStorageCapacity", - "operationId": "replaceStorageV1beta1NamespacedCSIStorageCapacity", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.CSIStorageCapacity" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "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", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.CSIStorageCapacity" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.CSIStorageCapacity" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1beta1" - } - } - }, - "/apis/storage.k8s.io/v1beta1/watch/csistoragecapacities": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of CSIStorageCapacity. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchStorageV1beta1CSIStorageCapacityListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/storage.k8s.io/v1beta1/watch/namespaces/{namespace}/csistoragecapacities": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of CSIStorageCapacity. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchStorageV1beta1NamespacedCSIStorageCapacityList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/storage.k8s.io/v1beta1/watch/namespaces/{namespace}/csistoragecapacities/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind CSIStorageCapacity. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchStorageV1beta1NamespacedCSIStorageCapacity", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1beta1" - } - }, - "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", - "type": "boolean", - "uniqueItems": 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\".\n\nThis field is not 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", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": 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.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the CSIStorageCapacity", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": 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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "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", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/logs/": { - "get": { - "operationId": "logFileListHandler", - "responses": { - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "logs" - ] - } - }, - "/logs/{logpath}": { - "get": { - "operationId": "logFileHandler", - "responses": { - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "logs" - ] - }, - "parameters": [ - { - "description": "path to the log", - "in": "path", - "name": "logpath", - "required": true, - "type": "string", - "uniqueItems": true - } - ] - }, - "/openid/v1/jwks/": { - "get": { - "description": "get service account issuer OpenID JSON Web Key Set (contains public token verification keys)", - "operationId": "getServiceAccountIssuerOpenIDKeyset", - "produces": [ - "application/jwk-set+json" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "openid" - ] - } - }, - "/version/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get the code version", - "operationId": "getCodeVersion", - "produces": [ - "application/json" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.version.Info" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "version" - ] - } - } - }, - "security": [ - { - "BearerToken": [] - } - ], - "securityDefinitions": { - "BearerToken": { - "description": "Bearer Token authentication", - "in": "header", - "name": "authorization", - "type": "apiKey" - } - }, - "swagger": "2.0" -} \ No newline at end of file diff --git a/src/LibKubernetesGenerator/ApiGenerator.cs b/src/LibKubernetesGenerator/ApiGenerator.cs new file mode 100644 index 000000000..37f135db5 --- /dev/null +++ b/src/LibKubernetesGenerator/ApiGenerator.cs @@ -0,0 +1,78 @@ +using CaseExtensions; +using Microsoft.CodeAnalysis; +using NSwag; +using System.Collections.Generic; +using System.Linq; + +namespace LibKubernetesGenerator +{ + internal class ApiGenerator + { + private readonly ScriptObjectFactory scriptObjectFactory; + + public ApiGenerator(ScriptObjectFactory scriptObjectFactory) + { + this.scriptObjectFactory = scriptObjectFactory; + } + + public void Generate(OpenApiDocument swagger, IncrementalGeneratorPostInitializationContext context) + { + var data = swagger.Operations + .Where(o => o.Method != OpenApiOperationMethod.Options) + .Select(o => + { + var ps = o.Operation.ActualParameters.OrderBy(p => !p.IsRequired).ToArray(); + + o.Operation.Parameters.Clear(); + + var name = new HashSet(); + + var i = 1; + foreach (var p in ps) + { + if (name.Contains(p.Name)) + { + p.Name = p.Name + i++; + } + + o.Operation.Parameters.Add(p); + name.Add(p.Name); + } + + return o; + }) + .Select(o => + { + o.Path = o.Path.TrimStart('/'); + o.Method = char.ToUpper(o.Method[0]) + o.Method.Substring(1); + return o; + }) + .ToArray(); + + var sc = scriptObjectFactory.CreateScriptObject(); + + var groups = new List(); + + foreach (var grouped in data.GroupBy(d => d.Operation.Tags.First())) + { + var name = grouped.Key.ToPascalCase(); + groups.Add(name); + + var apis = grouped.ToArray(); + + sc.SetValue("name", name, true); + sc.SetValue("apis", apis, true); + + context.RenderToContext($"IOperations.cs.template", sc, $"I{name}Operations.g.cs"); + context.RenderToContext("Operations.cs.template", sc, $"{name}Operations.g.cs"); + context.RenderToContext("OperationsExtensions.cs.template", sc, $"{name}OperationsExtensions.g.cs"); + } + + sc = scriptObjectFactory.CreateScriptObject(); + sc.SetValue("groups", groups, true); + + context.RenderToContext($"IKubernetes.cs.template", sc, $"IKubernetes.g.cs"); + context.RenderToContext($"AbstractKubernetes.cs.template", sc, $"AbstractKubernetes.g.cs"); + } + } +} diff --git a/src/LibKubernetesGenerator/ClassNameHelper.cs b/src/LibKubernetesGenerator/ClassNameHelper.cs new file mode 100644 index 000000000..a3b012f29 --- /dev/null +++ b/src/LibKubernetesGenerator/ClassNameHelper.cs @@ -0,0 +1,90 @@ +using CaseExtensions; +using NJsonSchema; +using NSwag; +using Scriban.Runtime; +using System; +using System.Collections.Generic; +using System.Linq; + +namespace LibKubernetesGenerator +{ + internal class ClassNameHelper : IScriptObjectHelper + { + private readonly Dictionary classNameMap; + private readonly Dictionary schemaToNameMapCooked; + + public ClassNameHelper(OpenApiDocument swagger) + { + classNameMap = InitClassNameMap(swagger); + schemaToNameMapCooked = GenerateSchemaToNameMapCooked(swagger); + } + + + public void RegisterHelper(ScriptObject scriptObject) + { + scriptObject.Import(nameof(GetClassName), new Func(GetClassNameForSchemaDefinition)); + } + + private static Dictionary GenerateSchemaToNameMapCooked(OpenApiDocument swagger) + { + return swagger.Definitions.ToDictionary(x => x.Value, x => x.Key.Replace(".", "").ToPascalCase()); + } + + private Dictionary InitClassNameMap(OpenApiDocument doc) + { + var map = new Dictionary(); + foreach (var kv in doc.Definitions) + { + var k = kv.Key; + var v = kv.Value; + if (v.ExtensionData?.TryGetValue("x-kubernetes-group-version-kind", out _) == true) + { + var groupVersionKindElements = (object[])v.ExtensionData["x-kubernetes-group-version-kind"]; + var groupVersionKind = (Dictionary)groupVersionKindElements[0]; + + var group = (string)groupVersionKind["group"]; + var kind = (string)groupVersionKind["kind"]; + var version = (string)groupVersionKind["version"]; + map[$"{group}_{kind}_{version}"] = k.Replace(".", "").ToPascalCase(); + } + } + + return map; + } + + private string GetClassName(Dictionary groupVersionKind) + { + var group = (string)groupVersionKind["group"]; + var kind = (string)groupVersionKind["kind"]; + var version = (string)groupVersionKind["version"]; + + return classNameMap[$"{group}_{kind}_{version}"]; + } + + public string GetClassName(JsonSchema definition) + { + var groupVersionKindElements = (object[])definition.ExtensionData["x-kubernetes-group-version-kind"]; + var groupVersionKind = (Dictionary)groupVersionKindElements[0]; + + return GetClassName(groupVersionKind); + } + + public string GetClassNameForSchemaDefinition(JsonSchema definition) + { + if (definition.ExtensionData != null && + definition.ExtensionData.ContainsKey("x-kubernetes-group-version-kind")) + { + return GetClassName(definition); + } + + + if (definition.Format == "int-or-string") + { + return "IntOrString"; + } + + + return schemaToNameMapCooked[definition]; + } + } +} diff --git a/src/LibKubernetesGenerator/ClientSetGenerator.cs b/src/LibKubernetesGenerator/ClientSetGenerator.cs new file mode 100644 index 000000000..a0b392d8b --- /dev/null +++ b/src/LibKubernetesGenerator/ClientSetGenerator.cs @@ -0,0 +1,103 @@ +using CaseExtensions; +using Microsoft.CodeAnalysis; +using NSwag; +using System.Collections.Generic; +using System.Linq; + +namespace LibKubernetesGenerator +{ + internal class ClientSetGenerator + { + private readonly ScriptObjectFactory _scriptObjectFactory; + + public ClientSetGenerator(ScriptObjectFactory scriptObjectFactory) + { + _scriptObjectFactory = scriptObjectFactory; + } + + public void Generate(OpenApiDocument swagger, IncrementalGeneratorPostInitializationContext context) + { + var data = swagger.Operations + .Where(o => o.Method != OpenApiOperationMethod.Options) + .Select(o => + { + var ps = o.Operation.ActualParameters.OrderBy(p => !p.IsRequired).ToArray(); + + o.Operation.Parameters.Clear(); + + var name = new HashSet(); + + var i = 1; + foreach (var p in ps) + { + if (name.Contains(p.Name)) + { + p.Name += i++; + } + + o.Operation.Parameters.Add(p); + name.Add(p.Name); + } + + return o; + }) + .Select(o => + { + o.Path = o.Path.TrimStart('/'); + o.Method = char.ToUpper(o.Method[0]) + o.Method.Substring(1); + return o; + }) + .ToArray(); + + var sc = _scriptObjectFactory.CreateScriptObject(); + + var groups = new List(); + var apiGroups = new Dictionary(); + + foreach (var grouped in data.Where(d => HasKubernetesAction(d.Operation?.ExtensionData)) + .GroupBy(d => d.Operation.Tags.First())) + { + var clients = new List(); + var name = grouped.Key.ToPascalCase(); + groups.Add(name); + var apis = grouped.Select(x => + { + var groupVersionKindElements = x.Operation?.ExtensionData?["x-kubernetes-group-version-kind"]; + var groupVersionKind = (Dictionary)groupVersionKindElements; + + return new { Kind = groupVersionKind?["kind"] as string, Api = x }; + }); + + foreach (var item in apis.GroupBy(x => x.Kind)) + { + var kind = item.Key; + apiGroups[kind] = item.Select(x => x.Api).ToArray(); + clients.Add(kind); + } + + sc.SetValue("clients", clients, true); + sc.SetValue("name", name, true); + context.RenderToContext("GroupClient.cs.template", sc, $"{name}GroupClient.g.cs"); + } + + foreach (var apiGroup in apiGroups) + { + var name = apiGroup.Key; + var apis = apiGroup.Value.ToArray(); + var group = apis.Select(x => x.Operation.Tags[0]).First(); + sc.SetValue("apis", apis, true); + sc.SetValue("name", name, true); + sc.SetValue("group", group.ToPascalCase(), true); + context.RenderToContext("Client.cs.template", sc, $"{name}Client.g.cs"); + } + + sc = _scriptObjectFactory.CreateScriptObject(); + sc.SetValue("groups", groups, true); + + context.RenderToContext("ClientSet.cs.template", sc, $"ClientSet.g.cs"); + } + + private bool HasKubernetesAction(IDictionary extensionData) => + extensionData?.ContainsKey("x-kubernetes-action") ?? false; + } +} diff --git a/src/LibKubernetesGenerator/EmbedResource.cs b/src/LibKubernetesGenerator/EmbedResource.cs new file mode 100644 index 000000000..85a6dda86 --- /dev/null +++ b/src/LibKubernetesGenerator/EmbedResource.cs @@ -0,0 +1,18 @@ +using System.IO; +using System.Reflection; + +namespace LibKubernetesGenerator; + +internal static class EmbedResource +{ + public static string GetResource(string name) + { + var assembly = Assembly.GetExecutingAssembly(); + + var resourceName = assembly.GetName().Name + "." + name; + + using var stream = assembly.GetManifestResourceStream(resourceName); + using var reader = new StreamReader(stream ?? throw new FileNotFoundException(resourceName)); + return reader.ReadToEnd(); + } +} diff --git a/src/LibKubernetesGenerator/GeneralNameHelper.cs b/src/LibKubernetesGenerator/GeneralNameHelper.cs new file mode 100644 index 000000000..2d4f646f7 --- /dev/null +++ b/src/LibKubernetesGenerator/GeneralNameHelper.cs @@ -0,0 +1,188 @@ +using CaseExtensions; +using NJsonSchema; +using NSwag; +using Scriban.Runtime; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text.RegularExpressions; + +namespace LibKubernetesGenerator +{ + internal class GeneralNameHelper : IScriptObjectHelper + { + private readonly ClassNameHelper classNameHelper; + + public GeneralNameHelper(ClassNameHelper classNameHelper) + { + this.classNameHelper = classNameHelper; + } + + public void RegisterHelper(ScriptObject scriptObject) + { + scriptObject.Import(nameof(GetInterfaceName), new Func(GetInterfaceName)); + scriptObject.Import(nameof(GetOperationId), new Func(GetOperationId)); + scriptObject.Import(nameof(GetActionName), new Func(GetActionName)); + scriptObject.Import(nameof(GetDotNetName), new Func(GetDotNetName)); + scriptObject.Import(nameof(GetDotNetNameOpenApiParameter), new Func(GetDotNetNameOpenApiParameter)); + } + + private string GetInterfaceName(JsonSchema definition) + { + var interfaces = new List(); + if (definition.Properties.TryGetValue("metadata", out var metadataProperty)) + { + interfaces.Add( + $"IKubernetesObject<{classNameHelper.GetClassNameForSchemaDefinition(metadataProperty.Reference)}>"); + } + else + { + interfaces.Add("IKubernetesObject"); + } + + if (definition.Properties.TryGetValue("items", out var itemsProperty)) + { + var schema = itemsProperty.Type == JsonObjectType.Object + ? itemsProperty.Reference + : itemsProperty.Item.Reference; + interfaces.Add($"IItems<{classNameHelper.GetClassNameForSchemaDefinition(schema)}>"); + } + + if (definition.Properties.TryGetValue("spec", out var specProperty)) + { + // ignore empty spec placeholder + if (specProperty.Reference?.ActualProperties.Any() == true) + { + interfaces.Add($"ISpec<{classNameHelper.GetClassNameForSchemaDefinition(specProperty.Reference)}>"); + } + } + + return string.Join(", ", interfaces); + } + + public string GetDotNetNameOpenApiParameter(OpenApiParameter parameter, string init) + { + var name = GetDotNetName(parameter.Name); + + if (init == "true" && !parameter.IsRequired) + { + name += " = default"; + } + + return name; + } + + public string GetDotNetName(string jsonName, string style = "parameter") + { + switch (style) + { + case "parameter": + switch (jsonName) + { + case "namespace": + return "namespaceParameter"; + case "continue": + return "continueParameter"; + default: + break; + } + + break; + + case "fieldctor": + + switch (jsonName) + { + case "namespace": + return "namespaceProperty"; + case "continue": + return "continueProperty"; + case "$ref": + return "refProperty"; + case "default": + return "defaultProperty"; + case "operator": + return "operatorProperty"; + case "$schema": + return "schema"; + case "enum": + return "enumProperty"; + case "object": + return "objectProperty"; + case "readOnly": + return "readOnlyProperty"; + case "from": + return "fromProperty"; + case "int": + return "intValue"; + case "bool": + return "boolValue"; + case "string": + return "stringValue"; + + default: + break; + } + + if (jsonName.Contains("-")) + { + return jsonName.ToCamelCase(); + } + + break; + case "field": + return GetDotNetName(jsonName, "fieldctor").ToPascalCase(); + } + + return jsonName.ToCamelCase(); + } + + public static string GetOperationId(OpenApiOperation watchOperation, string suffix) + { + var tag = watchOperation.Tags[0]; + tag = tag.Replace("_", string.Empty); + + var methodName = watchOperation.OperationId.ToPascalCase(); + + switch (suffix) + { + case "": + case "Async": + case "WithHttpMessagesAsync": + methodName += suffix; + break; + + default: + // This tries to remove the version from the method name, e.g. watchCoreV1NamespacedPod => WatchNamespacedPod + methodName = Regex.Replace(methodName, tag, string.Empty, RegexOptions.IgnoreCase); + methodName += "Async"; + break; + } + + return methodName; + } + + public static string GetActionName(OpenApiOperation apiOperation, string resource, string suffix) + { + var operationId = apiOperation.OperationId.ToPascalCase(); + var replacements = new Dictionary(StringComparer.OrdinalIgnoreCase) + { + { "Replace", "Update" }, + { "Read", "Get" }, + }; + + foreach (var replacement in replacements) + { + operationId = Regex.Replace(operationId, replacement.Key, replacement.Value, RegexOptions.IgnoreCase); + } + + var resources = new[] { resource, "ForAllNamespaces", "Namespaced" }; + var pattern = string.Join("|", Array.ConvertAll(resources, Regex.Escape)); + var actionName = pattern.Length > 0 + ? Regex.Replace(operationId, pattern, string.Empty, RegexOptions.IgnoreCase) + : operationId; + + return $"{actionName}{suffix}"; + } + } +} diff --git a/src/LibKubernetesGenerator/GeneratorExecutionContextExt.cs b/src/LibKubernetesGenerator/GeneratorExecutionContextExt.cs new file mode 100644 index 000000000..6c3653721 --- /dev/null +++ b/src/LibKubernetesGenerator/GeneratorExecutionContextExt.cs @@ -0,0 +1,29 @@ +using Microsoft.CodeAnalysis; +using Microsoft.CodeAnalysis.Text; +using Microsoft.CodeAnalysis.CSharp; +using Scriban; +using Scriban.Runtime; +using System.Text; + +namespace LibKubernetesGenerator +{ + internal static class GeneratorExecutionContextExt + { + public static void RenderToContext(this IncrementalGeneratorPostInitializationContext context, string templatefile, ScriptObject sc, string generatedfile) + { + var tc = new TemplateContext(); + tc.PushGlobal(sc); + context.RenderToContext(templatefile, tc, generatedfile); + } + + public static void RenderToContext(this IncrementalGeneratorPostInitializationContext context, string templatefile, TemplateContext tc, string generatedfile) + { + var template = Template.Parse(EmbedResource.GetResource(templatefile)); + var generated = template.Render(tc); + + var syntaxTree = CSharpSyntaxTree.ParseText(generated); + var normalized = syntaxTree.GetRoot().NormalizeWhitespace().ToFullString(); + context.AddSource(generatedfile, SourceText.From(normalized, Encoding.UTF8)); + } + } +} diff --git a/src/LibKubernetesGenerator/IScriptObjectHelper.cs b/src/LibKubernetesGenerator/IScriptObjectHelper.cs new file mode 100644 index 000000000..99dc9fe77 --- /dev/null +++ b/src/LibKubernetesGenerator/IScriptObjectHelper.cs @@ -0,0 +1,8 @@ +using Scriban.Runtime; + +namespace LibKubernetesGenerator; + +internal interface IScriptObjectHelper +{ + void RegisterHelper(ScriptObject scriptObject); +} diff --git a/src/LibKubernetesGenerator/KubernetesClientSourceGenerator.cs b/src/LibKubernetesGenerator/KubernetesClientSourceGenerator.cs new file mode 100644 index 000000000..fd2713260 --- /dev/null +++ b/src/LibKubernetesGenerator/KubernetesClientSourceGenerator.cs @@ -0,0 +1,88 @@ +using Autofac; +using Microsoft.CodeAnalysis; +using NSwag; + +namespace LibKubernetesGenerator +{ + [Generator] + public class KubernetesClientSourceGenerator : IIncrementalGenerator + { + private static (OpenApiDocument, IContainer) BuildContainer() + { + var swagger = OpenApiDocument.FromJsonAsync(EmbedResource.GetResource("swagger.json")).GetAwaiter().GetResult(); + var container = BuildContainer(swagger); + return (swagger, container); + } + + private static IContainer BuildContainer(OpenApiDocument swagger) + { + var builder = new ContainerBuilder(); + + builder.RegisterType() + .WithParameter(new NamedParameter(nameof(swagger), swagger)) + .AsSelf() + .AsImplementedInterfaces() + ; + + builder.RegisterType() + .AsImplementedInterfaces() + ; + + builder.RegisterType() + .AsImplementedInterfaces() + ; + + builder.RegisterType() + .WithParameter(new TypedParameter(typeof(OpenApiDocument), swagger)) + .AsImplementedInterfaces() + ; + + builder.RegisterType() + .AsSelf() + .AsImplementedInterfaces() + ; + + builder.RegisterType() + .AsSelf() + .AsImplementedInterfaces() + ; + + builder.RegisterType() + .AsImplementedInterfaces() + ; + + builder.RegisterType() + .AsImplementedInterfaces() + ; + + builder.RegisterType() + ; + + builder.RegisterType(); + builder.RegisterType(); + builder.RegisterType(); + builder.RegisterType(); + builder.RegisterType(); + + return builder.Build(); + } + + public void Initialize(IncrementalGeneratorInitializationContext generatorContext) + { +#if GENERATE_BASIC + generatorContext.RegisterPostInitializationOutput(ctx => + { + var (swagger, container) = BuildContainer(); + + container.Resolve().Generate(swagger, ctx); + + container.Resolve().Generate(swagger, ctx); + container.Resolve().Generate(swagger, ctx); + container.Resolve().Generate(swagger, ctx); + container.Resolve().Generate(swagger, ctx); + }); +#endif + + } + } +} diff --git a/src/LibKubernetesGenerator/LibKubernetesGenerator.target b/src/LibKubernetesGenerator/LibKubernetesGenerator.target new file mode 100644 index 000000000..80a9cd252 --- /dev/null +++ b/src/LibKubernetesGenerator/LibKubernetesGenerator.target @@ -0,0 +1,62 @@ + + + netstandard2.0 + true + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + $(GetTargetPathDependsOn);GetDependencyTargetPaths + + + + + + + + + + + + + + + + + + + + diff --git a/src/LibKubernetesGenerator/MetaHelper.cs b/src/LibKubernetesGenerator/MetaHelper.cs new file mode 100644 index 000000000..72fdb462e --- /dev/null +++ b/src/LibKubernetesGenerator/MetaHelper.cs @@ -0,0 +1,56 @@ +using NJsonSchema; +using NSwag; +using Scriban.Runtime; +using System; +using System.Collections.Generic; + +namespace LibKubernetesGenerator +{ + internal class MetaHelper : IScriptObjectHelper + { + public void RegisterHelper(ScriptObject scriptObject) + { + scriptObject.Import(nameof(GetGroup), GetGroup); + scriptObject.Import(nameof(GetApiVersion), GetApiVersion); + scriptObject.Import(nameof(GetKind), GetKind); + scriptObject.Import(nameof(GetPathExpression), GetPathExpression); + } + + private static string GetKind(JsonSchema definition) + { + var groupVersionKindElements = (object[])definition.ExtensionData["x-kubernetes-group-version-kind"]; + var groupVersionKind = (Dictionary)groupVersionKindElements[0]; + + return groupVersionKind["kind"] as string; + } + + private static string GetGroup(JsonSchema definition) + { + var groupVersionKindElements = (object[])definition.ExtensionData["x-kubernetes-group-version-kind"]; + var groupVersionKind = (Dictionary)groupVersionKindElements[0]; + + return groupVersionKind["group"] as string; + } + + private static string GetApiVersion(JsonSchema definition) + { + var groupVersionKindElements = (object[])definition.ExtensionData["x-kubernetes-group-version-kind"]; + var groupVersionKind = (Dictionary)groupVersionKindElements[0]; + + return groupVersionKind["version"] as string; + } + + private static string GetPathExpression(OpenApiOperationDescription operation) + { + var pathExpression = operation.Path; + + if (pathExpression.StartsWith("/", StringComparison.InvariantCulture)) + { + pathExpression = pathExpression.Substring(1); + } + + pathExpression = pathExpression.Replace("{namespace}", "{namespaceParameter}"); + return pathExpression; + } + } +} diff --git a/src/LibKubernetesGenerator/ModelGenerator.cs b/src/LibKubernetesGenerator/ModelGenerator.cs new file mode 100644 index 000000000..df9f8d3ea --- /dev/null +++ b/src/LibKubernetesGenerator/ModelGenerator.cs @@ -0,0 +1,70 @@ +using System.Collections.Generic; +using Microsoft.CodeAnalysis; +using NSwag; + +namespace LibKubernetesGenerator +{ + internal class ModelGenerator + { + private readonly ClassNameHelper classNameHelper; + private readonly ScriptObjectFactory scriptObjectFactory; + + public ModelGenerator(ClassNameHelper classNameHelper, ScriptObjectFactory scriptObjectFactory) + { + this.classNameHelper = classNameHelper; + this.scriptObjectFactory = scriptObjectFactory; + } + + public void Generate(OpenApiDocument swagger, IncrementalGeneratorPostInitializationContext context) + { + var sc = scriptObjectFactory.CreateScriptObject(); + + var genSkippedTypes = new HashSet + { + "IntOrString", + "ResourceQuantity", + "V1Patch", + }; + + var extSkippedTypes = new HashSet + { + "V1WatchEvent", + }; + + var typeOverrides = new Dictionary + { + // not used at the moment + }; + + foreach (var kv in swagger.Definitions) + { + var def = kv.Value; + var clz = classNameHelper.GetClassNameForSchemaDefinition(def); + + if (genSkippedTypes.Contains(clz)) + { + continue; + } + + var hasExt = def.ExtensionData != null + && def.ExtensionData.ContainsKey("x-kubernetes-group-version-kind") + && !extSkippedTypes.Contains(clz); + + + var typ = "record"; + if (typeOverrides.TryGetValue(clz, out var to)) + { + typ = to; + } + + sc.SetValue("clz", clz, true); + sc.SetValue("def", def, true); + sc.SetValue("properties", def.Properties.Values, true); + sc.SetValue("typ", typ, true); + sc.SetValue("hasExt", hasExt, true); + + context.RenderToContext("Model.cs.template", sc, $"Models_{clz}.g.cs"); + } + } + } +} diff --git a/src/LibKubernetesGenerator/ParamHelper.cs b/src/LibKubernetesGenerator/ParamHelper.cs new file mode 100644 index 000000000..fcaf030d9 --- /dev/null +++ b/src/LibKubernetesGenerator/ParamHelper.cs @@ -0,0 +1,80 @@ +using NJsonSchema; +using NSwag; +using Scriban.Runtime; +using System; +using System.Linq; +using System.Collections.Generic; + +namespace LibKubernetesGenerator +{ + internal class ParamHelper : IScriptObjectHelper + { + private readonly GeneralNameHelper generalNameHelper; + private readonly TypeHelper typeHelper; + + public ParamHelper(GeneralNameHelper generalNameHelper, TypeHelper typeHelper) + { + this.generalNameHelper = generalNameHelper; + this.typeHelper = typeHelper; + } + + public void RegisterHelper(ScriptObject scriptObject) + { + scriptObject.Import(nameof(GetModelCtorParam), new Func(GetModelCtorParam)); + scriptObject.Import(nameof(IfParamContains), IfParamContains); + scriptObject.Import(nameof(FilterParameters), FilterParameters); + scriptObject.Import(nameof(GetParameterValueForWatch), new Func(GetParameterValueForWatch)); + } + + public static bool IfParamContains(OpenApiOperation operation, string name) + { + var found = false; + + foreach (var param in operation.Parameters) + { + if (param.Name == name) + { + found = true; + break; + } + } + + return found; + } + + public static IEnumerable FilterParameters(OpenApiOperation operation, string excludeParam) + { + return operation.Parameters.Where(p => p.Name != excludeParam); + } + + public string GetParameterValueForWatch(OpenApiParameter parameter, bool watch, string init = "false") + { + if (parameter.Name == "watch") + { + return watch ? "true" : "false"; + } + else + { + return generalNameHelper.GetDotNetNameOpenApiParameter(parameter, init); + } + } + + public string GetModelCtorParam(JsonSchema schema) + { + return string.Join(", ", schema.Properties.Values + .OrderBy(p => !p.IsRequired) + .Select(p => + { + var sp = + $"{typeHelper.GetDotNetType(p)} {generalNameHelper.GetDotNetName(p.Name, "fieldctor")}"; + + if (!p.IsRequired) + { + sp = $"{sp} = null"; + } + + return sp; + })); + } + } +} \ No newline at end of file diff --git a/gen/KubernetesGenerator/PluralHelper.cs b/src/LibKubernetesGenerator/PluralHelper.cs similarity index 67% rename from gen/KubernetesGenerator/PluralHelper.cs rename to src/LibKubernetesGenerator/PluralHelper.cs index 7a2d1cb99..81091f88c 100644 --- a/gen/KubernetesGenerator/PluralHelper.cs +++ b/src/LibKubernetesGenerator/PluralHelper.cs @@ -1,16 +1,22 @@ +using NJsonSchema; +using NSwag; +using Scriban.Runtime; using System; using System.Collections.Generic; using System.Linq; -using NJsonSchema; -using NSwag; -using Nustache.Core; -namespace KubernetesGenerator +namespace LibKubernetesGenerator { - internal class PluralHelper : INustacheHelper + internal class PluralHelper : IScriptObjectHelper { private readonly Dictionary _classNameToPluralMap; private readonly ClassNameHelper classNameHelper; + private readonly HashSet opblackList = + [ + "listClusterCustomObject", + "listNamespacedCustomObject", + "listCustomObjectForAllNamespaces", + ]; public PluralHelper(ClassNameHelper classNameHelper, OpenApiDocument swagger) { @@ -18,41 +24,30 @@ public PluralHelper(ClassNameHelper classNameHelper, OpenApiDocument swagger) _classNameToPluralMap = InitClassNameToPluralMap(swagger); } - public void RegisterHelper() + public void RegisterHelper(ScriptObject scriptObject) { - Helpers.Register(nameof(GetPlural), GetPlural); + scriptObject.Import(nameof(GetPlural), new Func(GetPlural)); } - public void GetPlural(RenderContext context, IList arguments, IDictionary options, - RenderBlock fn, RenderBlock inverse) + public string GetPlural(JsonSchema definition) { - if (arguments != null && arguments.Count > 0 && arguments[0] != null && arguments[0] is JsonSchema) + var className = classNameHelper.GetClassNameForSchemaDefinition(definition); + if (_classNameToPluralMap.TryGetValue(className, out var plural)) { - var plural = GetPlural(arguments[0] as JsonSchema); - if (plural != null) - { - context.Write($"\"{plural}\""); - } - else - { - context.Write("null"); - } + return plural; } - } - public string GetPlural(JsonSchema definition) - { - var className = classNameHelper.GetClassNameForSchemaDefinition(definition); - return _classNameToPluralMap.GetValueOrDefault(className, null); + return null; } private Dictionary InitClassNameToPluralMap(OpenApiDocument swagger) { var classNameToPluralMap = swagger.Operations .Where(x => x.Operation.OperationId.StartsWith("list", StringComparison.InvariantCulture)) + .Where(x => !opblackList.Contains(x.Operation.OperationId)) .Select(x => new { - PluralName = x.Path.Split("/").Last(), + PluralName = x.Path.Split('/').Last(), ClassName = classNameHelper.GetClassNameForSchemaDefinition(x.Operation.Responses["200"] .ActualResponse.Schema.ActualSchema), }) diff --git a/src/LibKubernetesGenerator/ScriptObjectFactory.cs b/src/LibKubernetesGenerator/ScriptObjectFactory.cs new file mode 100644 index 000000000..9e2fcd608 --- /dev/null +++ b/src/LibKubernetesGenerator/ScriptObjectFactory.cs @@ -0,0 +1,26 @@ +using Scriban.Runtime; +using System.Collections.Generic; +using System.Linq; + +namespace LibKubernetesGenerator; + +internal class ScriptObjectFactory +{ + private readonly List scriptObjectHelpers; + + public ScriptObjectFactory(IEnumerable scriptObjectHelpers) + { + this.scriptObjectHelpers = scriptObjectHelpers.ToList(); + } + + public ScriptObject CreateScriptObject() + { + var scriptObject = new ScriptObject(); + foreach (var helper in scriptObjectHelpers) + { + helper.RegisterHelper(scriptObject); + } + + return scriptObject; + } +} diff --git a/src/LibKubernetesGenerator/SourceGenerationContextGenerator.cs b/src/LibKubernetesGenerator/SourceGenerationContextGenerator.cs new file mode 100644 index 000000000..c73c020a1 --- /dev/null +++ b/src/LibKubernetesGenerator/SourceGenerationContextGenerator.cs @@ -0,0 +1,24 @@ +using Microsoft.CodeAnalysis; +using NSwag; + +namespace LibKubernetesGenerator +{ + internal class SourceGenerationContextGenerator + { + private readonly ScriptObjectFactory scriptObjectFactory; + + public SourceGenerationContextGenerator(ScriptObjectFactory scriptObjectFactory) + { + this.scriptObjectFactory = scriptObjectFactory; + } + + public void Generate(OpenApiDocument swagger, IncrementalGeneratorPostInitializationContext context) + { + var definitions = swagger.Definitions.Values; + var sc = scriptObjectFactory.CreateScriptObject(); + sc.SetValue("definitions", definitions, true); + + context.RenderToContext("SourceGenerationContext.cs.template", sc, "SourceGenerationContext.g.cs"); + } + } +} diff --git a/src/LibKubernetesGenerator/StringHelpers.cs b/src/LibKubernetesGenerator/StringHelpers.cs new file mode 100644 index 000000000..7fd50eac5 --- /dev/null +++ b/src/LibKubernetesGenerator/StringHelpers.cs @@ -0,0 +1,109 @@ +using NJsonSchema; +using Scriban.Runtime; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Security; +using System.Text; +using System.Text.RegularExpressions; + +namespace LibKubernetesGenerator +{ + internal class StringHelpers : IScriptObjectHelper + { + private readonly GeneralNameHelper generalNameHelper; + + public StringHelpers(GeneralNameHelper generalNameHelper) + { + this.generalNameHelper = generalNameHelper; + } + + public void RegisterHelper(ScriptObject scriptObject) + { + scriptObject.Import(nameof(ToXmlDoc), new Func(ToXmlDoc)); + scriptObject.Import(nameof(ToInterpolationPathString), ToInterpolationPathString); + scriptObject.Import(nameof(IfGroupPathParamContainsGroup), IfGroupPathParamContainsGroup); + } + + public static string ToXmlDoc(string arg) + { + if (arg == null) + { + return ""; + } + + var first = true; + var sb = new StringBuilder(); + + using (var reader = new StringReader(arg)) + { + string line = null; + while ((line = reader.ReadLine()) != null) + { + foreach (var wline in WordWrap(line, 80)) + { + if (!first) + { + sb.Append("\n"); + sb.Append(" /// "); + } + else + { + first = false; + } + + sb.Append(SecurityElement.Escape(wline)); + } + } + } + + return sb.ToString(); + } + + private static IEnumerable WordWrap(string text, int width) + { + var lines = text.Split(new[] { "\r\n", "\r", "\n" }, StringSplitOptions.None); + foreach (var line in lines) + { + var processedLine = line.Trim(); + + // yield empty lines as they are (probably) intensional + if (processedLine.Length == 0) + { + yield return processedLine; + } + + // feast on the line until it's gone + while (processedLine.Length > 0) + { + // determine potential wrapping points + var whitespacePositions = Enumerable + .Range(0, processedLine.Length) + .Where(i => char.IsWhiteSpace(processedLine[i])) + .Concat(new[] { processedLine.Length }) + .Cast(); + var preWidthWrapAt = whitespacePositions.LastOrDefault(i => i <= width); + var postWidthWrapAt = whitespacePositions.FirstOrDefault(i => i > width); + + // choose preferred wrapping point + var wrapAt = preWidthWrapAt ?? postWidthWrapAt ?? processedLine.Length; + + // wrap + yield return processedLine.Substring(0, wrapAt); + processedLine = processedLine.Substring(wrapAt).Trim(); + } + } + } + + public string ToInterpolationPathString(string arg) + { + return Regex.Replace(arg, "{(.+?)}", (m) => "{" + generalNameHelper.GetDotNetName(m.Groups[1].Value) + "}"); + } + + public static bool IfGroupPathParamContainsGroup(string arg) + { + return arg.StartsWith("apis/{group}"); + } + } +} diff --git a/gen/KubernetesGenerator/TypeHelper.cs b/src/LibKubernetesGenerator/TypeHelper.cs similarity index 58% rename from gen/KubernetesGenerator/TypeHelper.cs rename to src/LibKubernetesGenerator/TypeHelper.cs index 1da4e5da0..db27dab97 100644 --- a/gen/KubernetesGenerator/TypeHelper.cs +++ b/src/LibKubernetesGenerator/TypeHelper.cs @@ -1,13 +1,11 @@ -using System; -using System.Collections.Generic; -using System.Linq; using NJsonSchema; using NSwag; -using Nustache.Core; +using Scriban.Runtime; +using System; -namespace KubernetesGenerator +namespace LibKubernetesGenerator { - internal class TypeHelper : INustacheHelper + internal class TypeHelper : IScriptObjectHelper { private readonly ClassNameHelper classNameHelper; @@ -16,57 +14,13 @@ public TypeHelper(ClassNameHelper classNameHelper) this.classNameHelper = classNameHelper; } - public void RegisterHelper() + public void RegisterHelper(ScriptObject scriptObject) { - Helpers.Register(nameof(GetDotNetType), GetDotNetType); - Helpers.Register(nameof(GetReturnType), GetReturnType); - Helpers.Register(nameof(IfReturnType), IfReturnType); - Helpers.Register(nameof(IfType), IfType); - } - - public void GetDotNetType(RenderContext context, IList arguments, - IDictionary options, - RenderBlock fn, RenderBlock inverse) - { - if (arguments != null && arguments.Count > 0 && arguments[0] != null && arguments[0] is OpenApiParameter) - { - var parameter = arguments[0] as OpenApiParameter; - - if (parameter.Schema?.Reference != null) - { - context.Write(classNameHelper.GetClassNameForSchemaDefinition(parameter.Schema.Reference)); - } - else if (parameter.Schema != null) - { - context.Write(GetDotNetType(parameter.Schema.Type, parameter.Name, parameter.IsRequired, - parameter.Schema.Format)); - } - else - { - context.Write(GetDotNetType(parameter.Type, parameter.Name, parameter.IsRequired, - parameter.Format)); - } - } - else if (arguments != null && arguments.Count > 0 && arguments[0] != null && arguments[0] is JsonSchemaProperty) - { - var property = arguments[0] as JsonSchemaProperty; - context.Write(GetDotNetType(property)); - } - else if (arguments != null && arguments.Count > 2 && arguments[0] != null && arguments[1] != null && - arguments[2] != null && arguments[0] is JsonObjectType && arguments[1] is string && - arguments[2] is bool) - { - context.Write(GetDotNetType((JsonObjectType)arguments[0], (string)arguments[1], (bool)arguments[2], - (string)arguments[3])); - } - else if (arguments != null && arguments.Count > 0 && arguments[0] != null) - { - context.Write($"ERROR: Expected OpenApiParameter but got {arguments[0].GetType().FullName}"); - } - else - { - context.Write("ERROR: Expected a OpenApiParameter argument but got none."); - } + scriptObject.Import(nameof(GetDotNetType), new Func(GetDotNetType)); + scriptObject.Import(nameof(GetDotNetTypeOpenApiParameter), new Func(GetDotNetTypeOpenApiParameter)); + scriptObject.Import(nameof(GetReturnType), new Func(GetReturnType)); + scriptObject.Import(nameof(IfReturnType), new Func(IfReturnType)); + scriptObject.Import(nameof(IfType), new Func(IfType)); } private string GetDotNetType(JsonObjectType jsonType, string name, bool required, string format) @@ -129,6 +83,13 @@ private string GetDotNetType(JsonObjectType jsonType, string name, bool required case "byte": return "byte[]"; case "date-time": + + // eventTime is required but should be optional, see https://github.com/kubernetes-client/csharp/issues/1197 + if (name == "eventTime") + { + return "System.DateTime?"; + } + if (required) { return "System.DateTime"; @@ -161,7 +122,6 @@ private string GetDotNetType(JsonSchema schema, JsonSchemaProperty parent) return $"IDictionary"; } - if (schema?.Reference != null) { return classNameHelper.GetClassNameForSchemaDefinition(schema.Reference); @@ -197,20 +157,21 @@ public string GetDotNetType(JsonSchemaProperty p) return GetDotNetType(p.Type, p.Name, p.IsRequired, p.Format); } - public void GetReturnType(RenderContext context, IList arguments, - IDictionary options, - RenderBlock fn, RenderBlock inverse) + public string GetDotNetTypeOpenApiParameter(OpenApiParameter parameter) { - var operation = arguments?.FirstOrDefault() as OpenApiOperation; - if (operation != null) + if (parameter.Schema?.Reference != null) { - string style = null; - if (arguments.Count > 1) - { - style = arguments[1] as string; - } - - context.Write(GetReturnType(operation, style)); + return classNameHelper.GetClassNameForSchemaDefinition(parameter.Schema.Reference); + } + else if (parameter.Schema != null) + { + return (GetDotNetType(parameter.Schema.Type, parameter.Name, parameter.IsRequired, + parameter.Schema.Format)); + } + else + { + return (GetDotNetType(parameter.Type, parameter.Name, parameter.IsRequired, + parameter.Format)); } } @@ -283,62 +244,74 @@ string toType() } break; + case "T": + var itemType = TryGetItemTypeFromSchema(response); + if (itemType != null) + { + return itemType; + } + + break; + case "TList": + return t; } return t; } - public void IfReturnType(RenderContext context, IList arguments, - IDictionary options, - RenderBlock fn, RenderBlock inverse) + public bool IfReturnType(OpenApiOperation operation, string type) { - var operation = arguments?.FirstOrDefault() as OpenApiOperation; - if (operation != null) + var rt = GetReturnType(operation, "void"); + if (type == "any" && rt != "void") { - string type = null; - if (arguments.Count > 1) - { - type = arguments[1] as string; - } + return true; + } + else if (string.Equals(type, rt.ToLower(), StringComparison.OrdinalIgnoreCase)) + { + return true; + } + else if (type == "obj" && rt != "void" && rt != "Stream") + { + return true; + } - var rt = GetReturnType(operation, "void"); - if (type == "any" && rt != "void") - { - fn(null); - } - else if (string.Equals(type, rt.ToLower(), StringComparison.OrdinalIgnoreCase)) - { - fn(null); - } - else if (type == "obj" && rt != "void" && rt != "Stream") - { - fn(null); - } + return false; + } + + public static bool IfType(JsonSchemaProperty property, string type) + { + if (type == "object" && property.Reference != null && !property.IsArray && + property.AdditionalPropertiesSchema == null) + { + return true; + } + else if (type == "objectarray" && property.IsArray && property.Item?.Reference != null) + { + return true; } + + return false; } - public static void IfType(RenderContext context, IList arguments, IDictionary options, - RenderBlock fn, RenderBlock inverse) + private string TryGetItemTypeFromSchema(OpenApiResponse response) { - var property = arguments?.FirstOrDefault() as JsonSchemaProperty; - if (property != null) + var listSchema = response?.Schema?.Reference; + if (listSchema?.Properties?.TryGetValue("items", out var itemsProperty) != true) { - string type = null; - if (arguments.Count > 1) - { - type = arguments[1] as string; - } + return null; + } - if (type == "object" && property.Reference != null && !property.IsArray && - property.AdditionalPropertiesSchema == null) - { - fn(null); - } - else if (type == "objectarray" && property.IsArray && property.Item?.Reference != null) - { - fn(null); - } + if (itemsProperty.Reference != null) + { + return classNameHelper.GetClassNameForSchemaDefinition(itemsProperty.Reference); } + + if (itemsProperty.Item?.Reference != null) + { + return classNameHelper.GetClassNameForSchemaDefinition(itemsProperty.Item.Reference); + } + + return null; } } -} +} \ No newline at end of file diff --git a/src/LibKubernetesGenerator/UtilHelper.cs b/src/LibKubernetesGenerator/UtilHelper.cs new file mode 100644 index 000000000..e11e1acc0 --- /dev/null +++ b/src/LibKubernetesGenerator/UtilHelper.cs @@ -0,0 +1,30 @@ +using NSwag; +using Scriban.Runtime; + +namespace LibKubernetesGenerator +{ + internal class UtilHelper : IScriptObjectHelper + { + public void RegisterHelper(ScriptObject scriptObject) + { + scriptObject.Import(nameof(IfKindIs), IfKindIs); + } + + public static bool IfKindIs(OpenApiParameter parameter, string kind) + { + if (parameter != null) + { + if (kind == "query" && parameter.Kind == OpenApiParameterKind.Query) + { + return true; + } + else if (kind == "path" && parameter.Kind == OpenApiParameterKind.Path) + { + return true; + } + } + + return false; + } + } +} diff --git a/src/LibKubernetesGenerator/VersionGenerator.cs b/src/LibKubernetesGenerator/VersionGenerator.cs new file mode 100644 index 000000000..d621349ab --- /dev/null +++ b/src/LibKubernetesGenerator/VersionGenerator.cs @@ -0,0 +1,12 @@ +using Microsoft.CodeAnalysis; +using NSwag; + +namespace LibKubernetesGenerator; + +internal class VersionGenerator +{ + public void Generate(OpenApiDocument swagger, IncrementalGeneratorPostInitializationContext context) + { + context.AddSource("k8sver.cs", $"// \n" + "internal static partial class ThisAssembly { internal const string KubernetesSwaggerVersion = \"" + swagger.Info.Version + "\";}"); + } +} diff --git a/src/LibKubernetesGenerator/generators/LibKubernetesGenerator/LibKubernetesGenerator.csproj b/src/LibKubernetesGenerator/generators/LibKubernetesGenerator/LibKubernetesGenerator.csproj new file mode 100644 index 000000000..95f30efee --- /dev/null +++ b/src/LibKubernetesGenerator/generators/LibKubernetesGenerator/LibKubernetesGenerator.csproj @@ -0,0 +1,8 @@ + + + $(DefineConstants);GENERATE_BASIC; + + + + + diff --git a/src/LibKubernetesGenerator/templates/AbstractKubernetes.cs.template b/src/LibKubernetesGenerator/templates/AbstractKubernetes.cs.template new file mode 100644 index 000000000..94a607608 --- /dev/null +++ b/src/LibKubernetesGenerator/templates/AbstractKubernetes.cs.template @@ -0,0 +1,16 @@ +// +// Code generated by https://github.com/kubernetes-client/csharp/tree/master/src/LibKubernetesGenerator +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace k8s; + +/// +/// +public abstract partial class AbstractKubernetes +{ + {{for group in groups}} + public I{{group}}Operations {{group}} => this; + {{end}} +} diff --git a/src/LibKubernetesGenerator/templates/Client.cs.template b/src/LibKubernetesGenerator/templates/Client.cs.template new file mode 100644 index 000000000..f9ce845e5 --- /dev/null +++ b/src/LibKubernetesGenerator/templates/Client.cs.template @@ -0,0 +1,165 @@ +// +// Code generated by https://github.com/kubernetes-client/csharp/tree/master/src/LibKubernetesGenerator +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// +using System.Net.Http; +using System.Net.Http.Headers; + +namespace k8s.ClientSets; + +/// +/// +public partial class {{name}}Client : ResourceClient +{ + public {{name}}Client(Kubernetes kubernetes) : base(kubernetes) + { + } + + {{for api in apis }} + {{~ $filteredParams = FilterParameters api.operation "watch" ~}} + /// + /// {{ToXmlDoc api.operation.description}} + /// + {{ for parameter in $filteredParams}} + /// + /// {{ToXmlDoc parameter.description}} + /// + {{end}} + /// + /// A which can be used to cancel the asynchronous operation. + /// + public async Task{{GetReturnType api.operation "<>"}} {{GetActionName api.operation name "Async"}}( + {{ for parameter in $filteredParams}} + {{GetDotNetTypeOpenApiParameter parameter}} {{GetDotNetNameOpenApiParameter parameter "true"}}, + {{ end }} + CancellationToken cancellationToken = default(CancellationToken)) + { + {{if IfReturnType api.operation "stream"}} + var _result = await Client.{{group}}.{{GetOperationId api.operation "WithHttpMessagesAsync"}}( + {{ for parameter in api.operation.parameters}} + {{GetParameterValueForWatch parameter false}}, + {{end}} + null, + cancellationToken); + _result.Request.Dispose(); + {{GetReturnType api.operation "_result.Body"}}; + {{end}} + {{if IfReturnType api.operation "obj"}} + using (var _result = await Client.{{group}}.{{GetOperationId api.operation "WithHttpMessagesAsync"}}( + {{ for parameter in api.operation.parameters}} + {{GetParameterValueForWatch parameter false}}, + {{end}} + null, + cancellationToken).ConfigureAwait(false)) + { + {{GetReturnType api.operation "_result.Body"}}; + } + {{end}} + {{if IfReturnType api.operation "void"}} + using (var _result = await Client.{{group}}.{{GetOperationId api.operation "WithHttpMessagesAsync"}}( + {{ for parameter in api.operation.parameters}} + {{GetParameterValueForWatch parameter false}}, + {{end}} + null, + cancellationToken).ConfigureAwait(false)) + { + } + {{end}} + } + + {{if IfReturnType api.operation "object"}} + /// + /// {{ToXmlDoc api.operation.description}} + /// + {{ for parameter in $filteredParams}} + /// + /// {{ToXmlDoc parameter.description}} + /// + {{end}} + /// + /// A which can be used to cancel the asynchronous operation. + /// + public async Task {{GetActionName api.operation name "Async"}}( + {{ for parameter in $filteredParams}} + {{GetDotNetTypeOpenApiParameter parameter}} {{GetDotNetNameOpenApiParameter parameter "false"}}, + {{ end }} + CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await Client.{{group}}.{{GetOperationId api.operation "WithHttpMessagesAsync"}}( + {{ for parameter in api.operation.parameters}} + {{GetParameterValueForWatch parameter false}}, + {{end}} + null, + cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + {{end}} + +#if !K8S_AOT + {{if IfParamContains api.operation "watch"}} + /// + /// Watch {{ToXmlDoc api.operation.description}} + /// + {{ for parameter in $filteredParams}} + /// + /// {{ToXmlDoc parameter.description}} + /// + {{ end }} + /// Callback when any event raised from api server + /// Callback when any exception was caught during watching + /// Callback when the server closes the connection + public Watcher<{{GetReturnType api.operation "T"}}> Watch{{GetActionName api.operation name ""}}( + {{ for parameter in $filteredParams}} + {{GetDotNetTypeOpenApiParameter parameter}} {{GetDotNetNameOpenApiParameter parameter "true"}}, + {{ end }} + Action onEvent = null, + Action onError = null, + Action onClosed = null) + { + if (onEvent == null) throw new ArgumentNullException(nameof(onEvent)); + + var responseTask = Client.{{group}}.{{GetOperationId api.operation "WithHttpMessagesAsync"}}( + {{ for parameter in api.operation.parameters}} + {{GetParameterValueForWatch parameter true}}, + {{ end }} + null, + CancellationToken.None); + + return responseTask.Watch<{{GetReturnType api.operation "T"}}, {{GetReturnType api.operation "TList"}}>( + onEvent, onError, onClosed); + } + + /// + /// Watch {{ToXmlDoc api.operation.description}} as async enumerable + /// + {{ for parameter in $filteredParams}} + /// + /// {{ToXmlDoc parameter.description}} + /// + {{ end }} + /// Callback when any exception was caught during watching + /// Cancellation token + public IAsyncEnumerable<(WatchEventType, {{GetReturnType api.operation "T"}})> Watch{{GetActionName api.operation name "Async"}}( + {{ for parameter in $filteredParams}} + {{GetDotNetTypeOpenApiParameter parameter}} {{GetDotNetNameOpenApiParameter parameter "true"}}, + {{ end }} + Action onError = null, + CancellationToken cancellationToken = default) + { + var responseTask = Client.{{group}}.{{GetOperationId api.operation "WithHttpMessagesAsync"}}( + {{ for parameter in api.operation.parameters}} + {{GetParameterValueForWatch parameter true}}, + {{ end }} + null, + cancellationToken); + + return responseTask.WatchAsync<{{GetReturnType api.operation "T"}}, {{GetReturnType api.operation "TList"}}>( + onError, cancellationToken); + } + {{end}} +#endif + {{end}} +} \ No newline at end of file diff --git a/src/LibKubernetesGenerator/templates/ClientSet.cs.template b/src/LibKubernetesGenerator/templates/ClientSet.cs.template new file mode 100644 index 000000000..c358b2b3c --- /dev/null +++ b/src/LibKubernetesGenerator/templates/ClientSet.cs.template @@ -0,0 +1,16 @@ +// +// Code generated by https://github.com/kubernetes-client/csharp/tree/master/src/LibKubernetesGenerator +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace k8s.ClientSets; + +/// +/// +public partial class ClientSet +{ + {{for group in groups}} + public {{group}}GroupClient {{group}} => new {{group}}GroupClient(_kubernetes); + {{end}} +} diff --git a/src/LibKubernetesGenerator/templates/GroupClient.cs.template b/src/LibKubernetesGenerator/templates/GroupClient.cs.template new file mode 100644 index 000000000..45f219e55 --- /dev/null +++ b/src/LibKubernetesGenerator/templates/GroupClient.cs.template @@ -0,0 +1,24 @@ +// +// Code generated by https://github.com/kubernetes-client/csharp/tree/master/src/LibKubernetesGenerator +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace k8s.ClientSets; + + +/// +/// +public partial class {{name}}GroupClient +{ + private readonly Kubernetes _kubernetes; + + {{for client in clients}} + public {{client}}Client {{client}} => new {{client}}Client(_kubernetes); + {{end}} + + public {{name}}GroupClient(Kubernetes kubernetes) + { + _kubernetes = kubernetes; + } +} diff --git a/src/LibKubernetesGenerator/templates/IKubernetes.cs.template b/src/LibKubernetesGenerator/templates/IKubernetes.cs.template new file mode 100644 index 000000000..68e92500d --- /dev/null +++ b/src/LibKubernetesGenerator/templates/IKubernetes.cs.template @@ -0,0 +1,16 @@ +// +// Code generated by https://github.com/kubernetes-client/csharp/tree/master/src/LibKubernetesGenerator +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace k8s; + +/// +/// +public partial interface IKubernetes +{ + {{for group in groups}} + I{{group}}Operations {{group}} { get; } + {{end}} +} \ No newline at end of file diff --git a/src/LibKubernetesGenerator/templates/IOperations.cs.template b/src/LibKubernetesGenerator/templates/IOperations.cs.template new file mode 100644 index 000000000..6904b8b91 --- /dev/null +++ b/src/LibKubernetesGenerator/templates/IOperations.cs.template @@ -0,0 +1,59 @@ +// +// Code generated by https://github.com/kubernetes-client/csharp/tree/master/src/LibKubernetesGenerator +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace k8s; + +/// +/// +public partial interface I{{name}}Operations +{ + {{for api in apis }} + /// + /// {{ToXmlDoc api.operation.description}} + /// + {{ for parameter in api.operation.parameters}} + /// + /// {{ToXmlDoc parameter.description}} + /// + {{ end }} + /// + /// The headers that will be added to request. + /// + /// + /// A which can be used to cancel the asynchronous operation. + /// + Task"}}> {{GetOperationId api.operation "WithHttpMessagesAsync"}}( +{{ for parameter in api.operation.parameters}} + {{GetDotNetTypeOpenApiParameter parameter}} {{GetDotNetNameOpenApiParameter parameter "true"}}, +{{ end }} + IReadOnlyDictionary> customHeaders = null, + CancellationToken cancellationToken = default); + + {{if IfReturnType api.operation "object"}} + /// + /// {{ToXmlDoc api.operation.description}} + /// + {{ for parameter in api.operation.parameters}} + /// + /// {{ToXmlDoc parameter.description}} + /// + {{ end }} + /// + /// The headers that will be added to request. + /// + /// + /// A which can be used to cancel the asynchronous operation. + /// + Task> {{GetOperationId api.operation "WithHttpMessagesAsync"}}( +{{ for parameter in api.operation.parameters}} + {{GetDotNetTypeOpenApiParameter parameter}} {{GetDotNetNameOpenApiParameter parameter "true"}}, +{{ end }} + IReadOnlyDictionary> customHeaders = null, + CancellationToken cancellationToken = default); + {{ end }} + + {{ end }} +} diff --git a/src/LibKubernetesGenerator/templates/Model.cs.template b/src/LibKubernetesGenerator/templates/Model.cs.template new file mode 100644 index 000000000..721709f1e --- /dev/null +++ b/src/LibKubernetesGenerator/templates/Model.cs.template @@ -0,0 +1,32 @@ +// +// Code generated by https://github.com/kubernetes-client/csharp/tree/master/src/LibKubernetesGenerator +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace k8s.Models; + +/// +/// {{ToXmlDoc def.description}} +/// +{{ if hasExt }} +[KubernetesEntity(Group=KubeGroup, Kind=KubeKind, ApiVersion=KubeApiVersion, PluralName=KubePluralName)] +{{ end }} +public partial {{typ}} {{clz}} {{ if hasExt }} : {{ GetInterfaceName def }} {{ end }} +{ + {{ if hasExt}} + public const string KubeApiVersion = "{{ GetApiVersion def }}"; + public const string KubeKind = "{{ GetKind def }}"; + public const string KubeGroup = "{{ GetGroup def }}"; + public const string KubePluralName = "{{ GetPlural def }}"; + {{ end }} + + {{ for property in properties }} + /// + /// {{ToXmlDoc property.description}} + /// + [JsonPropertyName("{{property.name}}")] + public {{ if property.IsRequired }} required {{ end }} {{GetDotNetType property}} {{GetDotNetName property.name "field"}} { get; set; } + {{ end }} +} + diff --git a/src/LibKubernetesGenerator/templates/Operations.cs.template b/src/LibKubernetesGenerator/templates/Operations.cs.template new file mode 100644 index 000000000..d98337ada --- /dev/null +++ b/src/LibKubernetesGenerator/templates/Operations.cs.template @@ -0,0 +1,144 @@ +// +// Code generated by https://github.com/kubernetes-client/csharp/tree/master/src/LibKubernetesGenerator +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace k8s; + +public partial class AbstractKubernetes : I{{name}}Operations +{ + {{for api in apis }} + {{if IfReturnType api.operation "void"}} + private async Task I{{name}}Operations_{{GetOperationId api.operation "WithHttpMessagesAsync"}}( + {{end}} + {{if IfReturnType api.operation "obj"}} + private async Task> I{{name}}Operations_{{GetOperationId api.operation "WithHttpMessagesAsync"}}( + {{end}} + {{if IfReturnType api.operation "stream"}} + private async Task> I{{name}}Operations_{{GetOperationId api.operation "WithHttpMessagesAsync"}}( + {{end}} +{{ for parameter in api.operation.parameters}} + {{GetDotNetTypeOpenApiParameter parameter}} {{GetDotNetNameOpenApiParameter parameter "false"}}, +{{end}} + IReadOnlyDictionary> customHeaders, + CancellationToken cancellationToken) + { + using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); + cts.CancelAfter(HttpClientTimeout); + {{if IfParamContains api.operation "watch"}} + if (watch == true) + { + cts.CancelAfter(Timeout.InfiniteTimeSpan); + } + {{end}} + cancellationToken = cts.Token; + + {{ for parameter in api.operation.parameters}} + {{ if parameter.IsRequired}} + if ({{GetDotNetName parameter.name}} == null) + { + throw new ArgumentNullException("{{GetDotNetName parameter.name}}"); + } + {{end}} + {{end}} + + // Construct URL + var url = $"{{ToInterpolationPathString api.path}}"; + {{if IfGroupPathParamContainsGroup api.path}} + url = url.Replace("apis//", "api/"); + {{end}} + {{if (array.size api.operation.parameters) > 0}} + var q = new QueryBuilder(); + {{ for parameter in api.operation.parameters}} + {{if IfKindIs parameter "query"}} + q.Append("{{parameter.name}}", {{GetDotNetName parameter.name}}); + {{end}} + {{end}} + url += q.ToString(); + {{end}} + + // Create HTTP transport + {{if IfParamContains api.operation "body"}} + var httpResponse = await SendRequest(url, HttpMethods.{{api.method}}, customHeaders, body, cancellationToken); + {{ else }} + var httpResponse = await SendRequest(url, HttpMethods.{{api.method}}, customHeaders, null, cancellationToken); + {{end}} + // Create Result + var httpRequest = httpResponse.RequestMessage; + {{if IfReturnType api.operation "void"}} + HttpOperationResponse result = new HttpOperationResponse() { Request = httpRequest, Response = httpResponse }; + {{end}} + {{if IfReturnType api.operation "obj"}} + var result = await CreateResultAsync( + httpRequest, + httpResponse, + {{if IfParamContains api.operation "watch"}} + watch, + {{else}} + false, + {{end}} + cancellationToken); + {{end}} + {{if IfReturnType api.operation "stream"}} + var result = new HttpOperationResponse() { + Request = httpRequest, + Response = httpResponse, + Body = await httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false) }; + {{end}} + return result; + } + + /// + async Task"}}> I{{name}}Operations.{{GetOperationId api.operation "WithHttpMessagesAsync"}}( +{{ for parameter in api.operation.parameters}} + {{GetDotNetTypeOpenApiParameter parameter}} {{GetDotNetNameOpenApiParameter parameter "false"}}, +{{end}} + IReadOnlyDictionary> customHeaders, + CancellationToken cancellationToken) + { + {{if IfReturnType api.operation "void"}} + return await I{{name}}Operations_{{GetOperationId api.operation "WithHttpMessagesAsync"}}( +{{ for parameter in api.operation.parameters}} + {{GetDotNetNameOpenApiParameter parameter "false"}}, +{{end}} + customHeaders, + cancellationToken).ConfigureAwait(false); + {{end}} + {{if IfReturnType api.operation "obj"}} + return await I{{name}}Operations_{{GetOperationId api.operation "WithHttpMessagesAsync"}}{{GetReturnType api.operation "<>"}}( +{{ for parameter in api.operation.parameters}} + {{GetDotNetNameOpenApiParameter parameter "false"}}, +{{end}} + customHeaders, + cancellationToken).ConfigureAwait(false); + {{end}} + {{if IfReturnType api.operation "stream"}} + return await I{{name}}Operations_{{GetOperationId api.operation "WithHttpMessagesAsync"}}( +{{ for parameter in api.operation.parameters}} + {{GetDotNetNameOpenApiParameter parameter "false"}}, +{{end}} + customHeaders, + cancellationToken).ConfigureAwait(false); + {{end}} + } + + {{if IfReturnType api.operation "object"}} + /// + async Task> I{{name}}Operations.{{GetOperationId api.operation "WithHttpMessagesAsync"}}( +{{ for parameter in api.operation.parameters}} + {{GetDotNetTypeOpenApiParameter parameter}} {{GetDotNetNameOpenApiParameter parameter "false"}}, +{{end}} + IReadOnlyDictionary> customHeaders, + CancellationToken cancellationToken) + { + return await I{{name}}Operations_{{GetOperationId api.operation "WithHttpMessagesAsync"}}( +{{ for parameter in api.operation.parameters}} + {{GetDotNetNameOpenApiParameter parameter "false"}}, +{{end}} + customHeaders, + cancellationToken).ConfigureAwait(false); + } + {{end}} + {{end}} +} diff --git a/src/LibKubernetesGenerator/templates/OperationsExtensions.cs.template b/src/LibKubernetesGenerator/templates/OperationsExtensions.cs.template new file mode 100644 index 000000000..7544d235d --- /dev/null +++ b/src/LibKubernetesGenerator/templates/OperationsExtensions.cs.template @@ -0,0 +1,231 @@ +// +// Code generated by https://github.com/kubernetes-client/csharp/tree/master/src/LibKubernetesGenerator +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace k8s; + +/// +/// Extension methods for Kubernetes. +/// +public static partial class {{name}}OperationsExtensions +{ + {{for api in apis }} + {{~ $filteredParams = FilterParameters api.operation "watch" ~}} + /// + /// {{ToXmlDoc api.operation.description}} + /// + /// + /// The operations group for this extension method. + /// + {{ for parameter in $filteredParams}} + /// + /// {{ToXmlDoc parameter.description}} + /// + {{ end }} + public static {{GetReturnType api.operation "void"}} {{GetOperationId api.operation ""}}( + this I{{name}}Operations operations +{{ for parameter in $filteredParams}} + ,{{GetDotNetTypeOpenApiParameter parameter}} {{GetDotNetNameOpenApiParameter parameter "true"}} +{{end}} + ) + { + {{GetReturnType api.operation "return"}} operations.{{GetOperationId api.operation "Async"}}( +{{ for parameter in $filteredParams}} + {{GetDotNetNameOpenApiParameter parameter "false"}}, +{{end}} + CancellationToken.None + ).GetAwaiter().GetResult(); + } + + {{if IfReturnType api.operation "object"}} + /// + /// {{ToXmlDoc api.operation.description}} + /// + /// + /// The operations group for this extension method. + /// + {{ for parameter in $filteredParams}} + /// + /// {{ToXmlDoc parameter.description}} + /// + {{end}} + public static T {{GetOperationId api.operation ""}}( + this I{{name}}Operations operations +{{ for parameter in $filteredParams}} + ,{{GetDotNetTypeOpenApiParameter parameter}} {{GetDotNetNameOpenApiParameter parameter "true"}} +{{end}} + ) + { + return operations.{{GetOperationId api.operation "Async"}}( +{{ for parameter in $filteredParams}} + {{GetDotNetNameOpenApiParameter parameter "false"}}, +{{end}} + CancellationToken.None + ).GetAwaiter().GetResult(); + } + {{end}} + + /// + /// {{ToXmlDoc api.operation.description}} + /// + /// + /// The operations group for this extension method. + /// + {{ for parameter in $filteredParams}} + /// + /// {{ToXmlDoc parameter.description}} + /// + {{end}} + /// + /// A which can be used to cancel the asynchronous operation. + /// + public static async Task{{GetReturnType api.operation "<>"}} {{GetOperationId api.operation "Async"}}( + this I{{name}}Operations operations, +{{ for parameter in $filteredParams}} + {{GetDotNetTypeOpenApiParameter parameter}} {{GetDotNetNameOpenApiParameter parameter "true"}}, +{{ end }} + CancellationToken cancellationToken = default(CancellationToken)) + { + {{if IfReturnType api.operation "stream"}} + var _result = await operations.{{GetOperationId api.operation "WithHttpMessagesAsync"}}( +{{ for parameter in api.operation.parameters}} + {{GetParameterValueForWatch parameter false}}, +{{end}} + null, + cancellationToken); + _result.Request.Dispose(); + {{GetReturnType api.operation "_result.Body"}}; + {{end}} + {{if IfReturnType api.operation "obj"}} + using (var _result = await operations.{{GetOperationId api.operation "WithHttpMessagesAsync"}}( +{{ for parameter in api.operation.parameters}} + {{GetParameterValueForWatch parameter false}}, +{{end}} + null, + cancellationToken).ConfigureAwait(false)) + { + {{GetReturnType api.operation "_result.Body"}}; + } + {{end}} + {{if IfReturnType api.operation "void"}} + using (var _result = await operations.{{GetOperationId api.operation "WithHttpMessagesAsync"}}( +{{ for parameter in api.operation.parameters}} + {{GetParameterValueForWatch parameter false}}, +{{end}} + null, + cancellationToken).ConfigureAwait(false)) + { + } + {{end}} + } + + {{if IfReturnType api.operation "object"}} + /// + /// {{ToXmlDoc api.operation.description}} + /// + /// + /// The operations group for this extension method. + /// + {{ for parameter in $filteredParams}} + /// + /// {{ToXmlDoc parameter.description}} + /// + {{end}} + /// + /// A which can be used to cancel the asynchronous operation. + /// + public static async Task {{GetOperationId api.operation "Async"}}( + this I{{name}}Operations operations, +{{ for parameter in $filteredParams}} + {{GetDotNetTypeOpenApiParameter parameter}} {{GetDotNetNameOpenApiParameter parameter "true"}}, +{{ end }} + CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.{{GetOperationId api.operation "WithHttpMessagesAsync"}}( +{{ for parameter in api.operation.parameters}} + {{GetParameterValueForWatch parameter false}}, +{{end}} + null, + cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + {{end}} + +#if !K8S_AOT +{{if IfParamContains api.operation "watch"}} +{{~ $filteredParams = FilterParameters api.operation "watch" ~}} +/// +/// Watch {{ToXmlDoc api.operation.description}} +/// +/// +/// The operations group for this extension method. +/// +{{ for parameter in $filteredParams}} +/// +/// {{ToXmlDoc parameter.description}} +/// +{{ end }} +/// Callback when any event raised from api server +/// Callback when any exception was caught during watching +/// Callback when the server closes the connection +public static Watcher<{{GetReturnType api.operation "T"}}> Watch{{GetOperationId api.operation ""}}( + this I{{name}}Operations operations, +{{ for parameter in $filteredParams}} + {{GetDotNetTypeOpenApiParameter parameter}} {{GetDotNetNameOpenApiParameter parameter "true"}}, +{{end}} + Action onEvent = null, + Action onError = null, + Action onClosed = null) +{ + if (onEvent == null) throw new ArgumentNullException(nameof(onEvent)); + + var responseTask = operations.{{GetOperationId api.operation "WithHttpMessagesAsync"}}( +{{ for parameter in api.operation.parameters}} + {{GetParameterValueForWatch parameter true}}, +{{end}} + null, + CancellationToken.None); + + return responseTask.Watch<{{GetReturnType api.operation "T"}}, {{GetReturnType api.operation "TList"}}>( + onEvent, onError, onClosed); +} + +/// +/// Watch {{ToXmlDoc api.operation.description}} as async enumerable +/// +/// +/// The operations group for this extension method. +/// +{{ for parameter in $filteredParams}} +/// +/// {{ToXmlDoc parameter.description}} +/// +{{ end }} +/// Callback when any exception was caught during watching +/// Cancellation token +public static IAsyncEnumerable<(WatchEventType, {{GetReturnType api.operation "T"}})> Watch{{GetOperationId api.operation "Async"}}( + this I{{name}}Operations operations, +{{ for parameter in $filteredParams}} + {{GetDotNetTypeOpenApiParameter parameter}} {{GetDotNetNameOpenApiParameter parameter "true"}}, +{{end}} + Action onError = null, + CancellationToken cancellationToken = default) +{ + var responseTask = operations.{{GetOperationId api.operation "WithHttpMessagesAsync"}}( +{{ for parameter in api.operation.parameters}} + {{GetParameterValueForWatch parameter true}}, +{{end}} + null, + cancellationToken); + + return responseTask.WatchAsync<{{GetReturnType api.operation "T"}}, {{GetReturnType api.operation "TList"}}>( + onError, cancellationToken); +} +{{end}} +#endif + {{end}} +} \ No newline at end of file diff --git a/src/LibKubernetesGenerator/templates/SourceGenerationContext.cs.template b/src/LibKubernetesGenerator/templates/SourceGenerationContext.cs.template new file mode 100644 index 000000000..0a5113981 --- /dev/null +++ b/src/LibKubernetesGenerator/templates/SourceGenerationContext.cs.template @@ -0,0 +1,15 @@ +// +// Code generated by https://github.com/kubernetes-client/csharp/tree/master/src/LibKubernetesGenerator +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// +#if NET8_0_OR_GREATER +namespace k8s +{ + {{ for definition in definitions }} + [JsonSerializable(typeof({{ GetClassName definition }}))] + {{ end }} + public partial class SourceGenerationContext : JsonSerializerContext + { + } +} +#endif diff --git a/src/nuget.proj b/src/nuget.proj new file mode 100644 index 000000000..1f4213256 --- /dev/null +++ b/src/nuget.proj @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/KubernetesClient/generated/swagger.json b/swagger.json similarity index 59% rename from src/KubernetesClient/generated/swagger.json rename to swagger.json index b9b9abb45..2cc381669 100644 --- a/src/KubernetesClient/generated/swagger.json +++ b/swagger.json @@ -1,133 +1,174 @@ { "definitions": { - "v1.SelfSubjectRulesReview": { - "description": "SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.", + "v1.AuditAnnotation": { + "description": "AuditAnnotation describes how to produce an audit annotation for an API request.", "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", + "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.\n\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\".\n\nIf 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.\n\nRequired.", "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", + "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.\n\nIf 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.\n\nRequired.", "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1.SelfSubjectRulesReviewSpec", - "description": "Spec holds information about the request being evaluated." - }, - "status": { - "$ref": "#/definitions/v1.SubjectRulesReviewStatus", - "description": "Status is filled in by the server and indicates the set of actions a user can perform." } }, "required": [ - "spec" + "key", + "valueExpression" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "authorization.k8s.io", - "kind": "SelfSubjectRulesReview", - "version": "v1" - } - ] + "type": "object" }, - "v1.FlockerVolumeSource": { - "description": "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.", + "v1.ExpressionWarning": { + "description": "ExpressionWarning is a warning information that targets a specific expression.", "properties": { - "datasetName": { - "description": "Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated", + "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" }, - "datasetUUID": { - "description": "UUID of the dataset. This is unique identifier of a Flocker dataset", + "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.DeploymentCondition": { - "description": "DeploymentCondition describes the state of a deployment at a certain point.", + "v1.MatchCondition": { + "description": "MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook.", "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "format": "date-time", - "type": "string" - }, - "lastUpdateTime": { - "description": "The last time this condition was updated.", - "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.", + "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:\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 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.\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.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", "type": "string" }, - "type": { - "description": "Type of deployment condition.", + "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')\n\nRequired.", "type": "string" } }, "required": [ - "type", - "status" + "name", + "expression" ], "type": "object" }, - "v1.SecretReference": { - "description": "SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace", + "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)", "properties": { - "name": { - "description": "Name is unique within a namespace to reference a secret resource.", - "type": "string" + "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": "#/definitions/v1.NamedRuleWithOperations" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "namespace": { - "description": "Namespace defines the space within which the secret name must be unique.", + "matchPolicy": { + "description": "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- 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.\n\n- 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.\n\nDefaults to \"Equivalent\"", "type": "string" + }, + "namespaceSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "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": "#/definitions/v1.NamedRuleWithOperations" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "type": "object", "x-kubernetes-map-type": "atomic" }, - "v1.CinderPersistentVolumeSource": { - "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", + "v1.MutatingWebhook": { + "description": "MutatingWebhook describes an admission webhook and the resources and operations it applies to.", "properties": { - "fsType": { - "description": "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", + "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": "#/definitions/admissionregistration.v1.WebhookClientConfig", + "description": "ClientConfig defines how to communicate with the hook. Required" + }, + "failurePolicy": { + "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.", "type": "string" }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "boolean" + "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.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped", + "items": { + "$ref": "#/definitions/v1.MatchCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" }, - "secretRef": { - "$ref": "#/definitions/v1.SecretReference", - "description": "Optional: points to a secret object containing parameters used to connect to OpenStack." + "matchPolicy": { + "description": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- 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.\n\n- 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.\n\nDefaults to \"Equivalent\"", + "type": "string" }, - "volumeID": { - "description": "volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "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": "#/definitions/v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "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\".\n\nNever: the webhook will not be called more than once in a single admission evaluation.\n\nIfNeeded: 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.\n\nDefaults 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": "#/definitions/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": [ - "volumeID" + "name", + "clientConfig", + "sideEffects", + "admissionReviewVersions" ], "type": "object" }, - "v1.StatefulSet": { - "description": "StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.", + "v1.MutatingWebhookConfiguration": { + "description": "MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.", "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", @@ -139,169 +180,240 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1.StatefulSetSpec", - "description": "Spec defines the desired identities of pods in this set." + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." }, - "status": { - "$ref": "#/definitions/v1.StatefulSetStatus", - "description": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time." + "webhooks": { + "description": "Webhooks is a list of webhooks and the affected resources and operations.", + "items": { + "$ref": "#/definitions/v1.MutatingWebhook" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" } }, "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "apps", - "kind": "StatefulSet", + "group": "admissionregistration.k8s.io", + "kind": "MutatingWebhookConfiguration", "version": "v1" } ] }, - "v1.NodeStatus": { - "description": "NodeStatus is information about the current status of a node.", + "v1.MutatingWebhookConfigurationList": { + "description": "MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.", "properties": { - "addresses": { - "description": "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See http://pr.k8s.io/79391 for an example.", + "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": "#/definitions/v1.NodeAddress" + "$ref": "#/definitions/v1.MutatingWebhookConfiguration" }, - "type": "array", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" + "type": "array" }, - "allocatable": { - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - }, - "description": "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.", - "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" }, - "capacity": { - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "MutatingWebhookConfigurationList", + "version": "v1" + } + ] + }, + "v1.NamedRuleWithOperations": { + "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", + "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" }, - "description": "Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", - "type": "object" + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "conditions": { - "description": "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition", + "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": { - "$ref": "#/definitions/v1.NodeCondition" + "type": "string" }, "type": "array", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "config": { - "$ref": "#/definitions/v1.NodeConfigStatus", - "description": "Status of the config assigned to the node via the dynamic Kubelet config feature." - }, - "daemonEndpoints": { - "$ref": "#/definitions/v1.NodeDaemonEndpoints", - "description": "Endpoints of daemons running on the Node." + "x-kubernetes-list-type": "atomic" }, - "images": { - "description": "List of container images on this node", + "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": { - "$ref": "#/definitions/v1.ContainerImage" + "type": "string" }, - "type": "array" - }, - "nodeInfo": { - "$ref": "#/definitions/v1.NodeSystemInfo", - "description": "Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info" - }, - "phase": { - "description": "NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated.", - "type": "string" + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "volumesAttached": { - "description": "List of volumes that are attached to the node.", + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", "items": { - "$ref": "#/definitions/v1.AttachedVolume" + "type": "string" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "volumesInUse": { - "description": "List of attachable volumes in use (mounted) by the node.", + "resources": { + "description": "Resources is a list of resources this rule applies to.\n\nFor 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.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", "items": { "type": "string" }, - "type": "array" + "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" + "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.ParamKind": { + "description": "ParamKind is a tuple of Group Kind and Version.", "properties": { - "operator": { - "description": "Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.", + "apiVersion": { + "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", "type": "string" }, - "scopeName": { - "description": "The name of the scope that the selector applies to.", + "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.", + "properties": { + "name": { + "description": "name is the name of the resource being referenced.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.\n\nA 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" }, - "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" + "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.\n\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\n\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\n\n- 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.\n\nAllowed values are `Allow` or `Deny`\n\nRequired", + "type": "string" + }, + "selector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.\n\nIf multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset." } }, - "required": [ - "scopeName", - "operator" - ], - "type": "object" + "type": "object", + "x-kubernetes-map-type": "atomic" }, - "v1.AggregationRule": { - "description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole", + "v1.RuleWithOperations": { + "description": "RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.", "properties": { - "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", + "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": { - "$ref": "#/definitions/v1.LabelSelector" + "type": "string" }, - "type": "array" + "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.\n\nFor 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.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending 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" }, - "v1.VolumeAttachmentStatus": { - "description": "VolumeAttachmentStatus is the status of a VolumeAttachment request.", + "admissionregistration.v1.ServiceReference": { + "description": "ServiceReference holds a reference to Service.legacy.k8s.io", "properties": { - "attachError": { - "$ref": "#/definitions/v1.VolumeError", - "description": "The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher." + "name": { + "description": "`name` is the name of the service. Required", + "type": "string" }, - "attached": { - "description": "Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", - "type": "boolean" + "namespace": { + "description": "`namespace` is the namespace of the service. Required", + "type": "string" }, - "attachmentMetadata": { - "additionalProperties": { - "type": "string" - }, - "description": "Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", - "type": "object" + "path": { + "description": "`path` is an optional URL path which will be sent in any request to this service.", + "type": "string" }, - "detachError": { - "$ref": "#/definitions/v1.VolumeError", - "description": "The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher." + "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": [ - "attached" + "namespace", + "name" ], "type": "object" }, - "v1beta1.PodDisruptionBudget": { - "description": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods", + "v1.TypeChecking": { + "description": "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy", + "properties": { + "expressionWarnings": { + "description": "The type checking warnings for each expression.", + "items": { + "$ref": "#/definitions/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.", "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", @@ -313,139 +425,127 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." }, "spec": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudgetSpec", - "description": "Specification of the desired behavior of the PodDisruptionBudget." + "$ref": "#/definitions/v1.ValidatingAdmissionPolicySpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicy." }, "status": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudgetStatus", - "description": "Most recently observed status of the PodDisruptionBudget." + "$ref": "#/definitions/v1.ValidatingAdmissionPolicyStatus", + "description": "The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only." } }, "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1" } ] }, - "v2beta2.ObjectMetricStatus": { - "description": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", + "v1.ValidatingAdmissionPolicyBinding": { + "description": "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.\n\nFor 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.\n\nThe 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": { - "current": { - "$ref": "#/definitions/v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" + "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" }, - "describedObject": { - "$ref": "#/definitions/v2beta2.CrossVersionObjectReference" + "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" }, - "metric": { - "$ref": "#/definitions/v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBindingSpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding." } }, - "required": [ - "metric", - "current", - "describedObject" - ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1" + } + ] }, - "v1.CephFSVolumeSource": { - "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", + "v1.ValidatingAdmissionPolicyBindingList": { + "description": "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.", "properties": { - "monitors": { - "description": "Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "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": { - "type": "string" + "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBinding" }, "type": "array" }, - "path": { - "description": "Optional: Used as the mounted root, rather than the full Ceph tree, default is /", - "type": "string" - }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "boolean" - }, - "secretFile": { - "description": "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", + "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" }, - "secretRef": { - "$ref": "#/definitions/v1.LocalObjectReference", - "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" - }, - "user": { - "description": "Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "string" + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ - "monitors" + "items" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBindingList", + "version": "v1" + } + ] }, - "v1.ProjectedVolumeSource": { - "description": "Represents a projected volume source", + "v1.ValidatingAdmissionPolicyBindingSpec": { + "description": "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.", "properties": { - "defaultMode": { - "description": "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" + "matchResources": { + "$ref": "#/definitions/v1.MatchResources", + "description": "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required." }, - "sources": { - "description": "list of volume projections", + "paramRef": { + "$ref": "#/definitions/v1.ParamRef", + "description": "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param." + }, + "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.\n\nFailures 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.\n\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\n\nThe supported actions values are:\n\n\"Deny\" specifies that a validation failure results in a denied request.\n\n\"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.\n\n\"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\\\"]}]\"`\n\nClients should expect to handle additional values by ignoring any values not recognized.\n\n\"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.\n\nRequired.", "items": { - "$ref": "#/definitions/v1.VolumeProjection" + "type": "string" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "set" } }, "type": "object" }, - "v1.StorageOSVolumeSource": { - "description": "Represents a StorageOS persistent volume resource.", + "v1.ValidatingAdmissionPolicyList": { + "description": "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.", "properties": { - "fsType": { - "description": "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": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "$ref": "#/definitions/v1.LocalObjectReference", - "description": "SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted." - }, - "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.PodList": { - "description": "PodList is a list of Pods.", - "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", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { - "description": "List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md", + "description": "List of ValidatingAdmissionPolicy.", "items": { - "$ref": "#/definitions/v1.Pod" + "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" }, "type": "array" }, @@ -464,137 +564,171 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "", - "kind": "PodList", + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyList", "version": "v1" } ] }, - "v1.ContainerStateRunning": { - "description": "ContainerStateRunning is a running state of a container.", - "properties": { - "startedAt": { - "description": "Time at which the container was last (re-)started", - "format": "date-time", - "type": "string" - } - }, - "type": "object" - }, - "v1.CustomResourceDefinitionNames": { - "description": "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition", + "v1.ValidatingAdmissionPolicySpec": { + "description": "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.", "properties": { - "categories": { - "description": "categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.", + "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": { - "type": "string" + "$ref": "#/definitions/v1.AuditAnnotation" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "kind": { - "description": "kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.", + "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.\n\nA 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.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nWhen failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.\n\nAllowed values are Ignore or Fail. Defaults to Fail.", "type": "string" }, - "listKind": { - "description": "listKind is the serialized kind of the list for this resource. Defaults to \"`kind`List\".", - "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.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", + "items": { + "$ref": "#/definitions/v1.MatchCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" }, - "plural": { - "description": "plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase.", - "type": "string" + "matchConstraints": { + "$ref": "#/definitions/v1.MatchResources", + "description": "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required." }, - "shortNames": { - "description": "shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase.", + "paramKind": { + "$ref": "#/definitions/v1.ParamKind", + "description": "ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null." + }, + "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": { - "type": "string" + "$ref": "#/definitions/v1.Validation" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "singular": { - "description": "singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.", - "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.\n\nThe 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": "#/definitions/v1.Variable" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" } }, - "required": [ - "plural", - "kind" - ], "type": "object" }, - "v1.IngressSpec": { - "description": "IngressSpec describes the Ingress the user wishes to exist.", + "v1.ValidatingAdmissionPolicyStatus": { + "description": "ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.", "properties": { - "defaultBackend": { - "$ref": "#/definitions/v1.IngressBackend", - "description": "DefaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller." + "conditions": { + "description": "The conditions represent the latest available observations of a policy's current state.", + "items": { + "$ref": "#/definitions/v1.Condition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" }, - "ingressClassName": { - "description": "IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation.", - "type": "string" + "observedGeneration": { + "description": "The generation observed by the controller.", + "format": "int64", + "type": "integer" }, - "rules": { - "description": "A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.", + "typeChecking": { + "$ref": "#/definitions/v1.TypeChecking", + "description": "The results of type checking for each expression. Presence of this field indicates the completion of the type checking." + } + }, + "type": "object" + }, + "v1.ValidatingWebhook": { + "description": "ValidatingWebhook describes an admission webhook and the resources and operations it applies to.", + "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": { - "$ref": "#/definitions/v1.IngressRule" + "type": "string" }, "type": "array", "x-kubernetes-list-type": "atomic" }, - "tls": { - "description": "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.", + "clientConfig": { + "$ref": "#/definitions/admissionregistration.v1.WebhookClientConfig", + "description": "ClientConfig defines how to communicate with the hook. Required" + }, + "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.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped", "items": { - "$ref": "#/definitions/v1.IngressTLS" + "$ref": "#/definitions/v1.MatchCondition" }, "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "v1alpha1.PriorityClass": { - "description": "DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.", - "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-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- 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.\n\n- 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.\n\nDefaults to \"Equivalent\"", "type": "string" }, - "description": { - "description": "description is an arbitrary string that usually provides guidelines on when this priority class should be used.", + "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" }, - "globalDefault": { - "description": "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.", - "type": "boolean" + "namespaceSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." }, - "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" + "objectSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "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": "#/definitions/v1.RuleWithOperations" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "preemptionPolicy": { - "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate.", + "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" }, - "value": { - "description": "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.", + "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": [ - "value" + "name", + "clientConfig", + "sideEffects", + "admissionReviewVersions" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - ] + "type": "object" }, "v1.ValidatingWebhookConfiguration": { "description": "ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.", @@ -617,6 +751,10 @@ "$ref": "#/definitions/v1.ValidatingWebhook" }, "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "name", "x-kubernetes-patch-strategy": "merge" } @@ -630,188 +768,179 @@ } ] }, - "v1.CephFSPersistentVolumeSource": { - "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", + "v1.ValidatingWebhookConfigurationList": { + "description": "ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.", "properties": { - "monitors": { - "description": "Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "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": { - "type": "string" + "$ref": "#/definitions/v1.ValidatingWebhookConfiguration" }, "type": "array" }, - "path": { - "description": "Optional: Used as the mounted root, rather than the full Ceph tree, default is /", - "type": "string" - }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "boolean" - }, - "secretFile": { - "description": "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", + "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" }, - "secretRef": { - "$ref": "#/definitions/v1.SecretReference", - "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" - }, - "user": { - "description": "Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "string" + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ - "monitors" + "items" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingWebhookConfigurationList", + "version": "v1" + } + ] }, - "v1.NodeSystemInfo": { - "description": "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.", + "v1.Validation": { + "description": "Validation specifies the CEL expression which is used to apply the validation.", "properties": { - "architecture": { - "description": "The Architecture reported by the node", - "type": "string" - }, - "bootID": { - "description": "Boot ID reported by the node.", + "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" }, - "containerRuntimeVersion": { - "description": "ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).", + "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" }, - "kernelVersion": { - "description": "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).", + "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" }, - "kubeProxyVersion": { - "description": "KubeProxy Version reported by the node.", + "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" - }, - "kubeletVersion": { - "description": "Kubelet Version reported by the node.", + } + }, + "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.", + "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" }, - "machineID": { - "description": "MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html", + "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" - }, - "operatingSystem": { - "description": "The Operating System reported by the node", + } + }, + "required": [ + "name", + "expression" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "admissionregistration.v1.WebhookClientConfig": { + "description": "WebhookClientConfig contains the information to make a TLS connection with the webhook", + "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", "type": "string" }, - "osImage": { - "description": "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).", - "type": "string" + "service": { + "$ref": "#/definitions/admissionregistration.v1.ServiceReference", + "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." }, - "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", + "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.\n\nThe `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.\n\nPlease 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.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA 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.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", "type": "string" } }, - "required": [ - "machineID", - "systemUUID", - "bootID", - "kernelVersion", - "osImage", - "containerRuntimeVersion", - "kubeletVersion", - "kubeProxyVersion", - "operatingSystem", - "architecture" - ], "type": "object" }, - "v1.Capabilities": { - "description": "Adds and removes POSIX capabilities from running containers.", + "v1alpha1.ApplyConfiguration": { + "description": "ApplyConfiguration defines the desired configuration values of an object.", "properties": { - "add": { - "description": "Added capabilities", - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "description": "Removed capabilities", - "items": { - "type": "string" - }, - "type": "array" + "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" }, - "v2beta2.ObjectMetricSource": { - "description": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", + "v1alpha1.JSONPatch": { + "description": "JSONPatch defines a JSON Patch.", "properties": { - "describedObject": { - "$ref": "#/definitions/v2beta2.CrossVersionObjectReference" - }, - "metric": { - "$ref": "#/definitions/v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" - }, - "target": { - "$ref": "#/definitions/v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" + "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" } }, - "required": [ - "describedObject", - "target", - "metric" - ], "type": "object" }, - "v1beta1.PriorityLevelConfigurationReference": { - "description": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", + "v1alpha1.MatchCondition": { "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:\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 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.\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.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", + "type": "string" + }, "name": { - "description": "`name` is the name of the priority level configuration being referenced Required.", + "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')\n\nRequired.", "type": "string" } }, "required": [ - "name" + "name", + "expression" ], "type": "object" }, - "v1beta1.EndpointConditions": { - "description": "EndpointConditions represents the current condition of an endpoint.", + "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)", "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.", - "type": "boolean" + "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": "#/definitions/v1alpha1.NamedRuleWithOperations" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "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. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.", - "type": "boolean" + "matchPolicy": { + "description": "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- 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.\n\n- 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.\n\nDefaults to \"Equivalent\"", + "type": "string" }, - "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. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.", - "type": "boolean" - } - }, - "type": "object" - }, - "v1.StorageClass": { - "description": "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.\n\nStorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.", - "properties": { - "allowVolumeExpansion": { - "description": "AllowVolumeExpansion shows whether the storage class allow volume expand", - "type": "boolean" + "namespaceSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." }, - "allowedTopologies": { - "description": "Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.", + "objectSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "ObjectSelector decides whether to run the policy based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the policy's expression (CEL), and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "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": "#/definitions/v1.TopologySelectorTerm" + "$ref": "#/definitions/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.", + "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" @@ -822,107 +951,115 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "mountOptions": { - "description": "Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid.", - "items": { - "type": "string" - }, - "type": "array" - }, - "parameters": { - "additionalProperties": { - "type": "string" - }, - "description": "Parameters holds the parameters for the provisioner that should create volumes of this storage class.", - "type": "object" + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." }, - "provisioner": { - "description": "Provisioner indicates the type of the provisioner.", + "spec": { + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicySpec", + "description": "Specification of the desired behavior of the MutatingAdmissionPolicy." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicy", + "version": "v1alpha1" + } + ] + }, + "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.\n\nFor 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).\n\nAdding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.", + "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" }, - "reclaimPolicy": { - "description": "Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.", + "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" }, - "volumeBindingMode": { - "description": "VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.", - "type": "string" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyBindingSpec", + "description": "Specification of the desired behavior of the MutatingAdmissionPolicyBinding." } }, - "required": [ - "provisioner" - ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyBinding", + "version": "v1alpha1" } ] }, - "v1.LabelSelectorRequirement": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "v1alpha1.MutatingAdmissionPolicyBindingList": { + "description": "MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding.", "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string", - "x-kubernetes-patch-merge-key": "key", - "x-kubernetes-patch-strategy": "merge" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and 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" }, - "values": { - "description": "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.", + "items": { + "description": "List of PolicyBinding.", "items": { - "type": "string" + "$ref": "#/definitions/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": "#/definitions/v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ - "key", - "operator" + "items" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyBindingList", + "version": "v1alpha1" + } + ] }, - "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.", + "v1alpha1.MutatingAdmissionPolicyBindingSpec": { + "description": "MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.", "properties": { - "hostname": { - "description": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)", - "type": "string" + "matchResources": { + "$ref": "#/definitions/v1alpha1.MatchResources", + "description": "matchResources limits what resources match this binding and may be mutated by it. Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and matchConditions before the resource may be mutated. When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints and matchConditions must match for the resource to be mutated. Additionally, matchResources.resourceRules are optional and do not constraint matching when unset. Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT." }, - "ip": { - "description": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)", - "type": "string" + "paramRef": { + "$ref": "#/definitions/v1alpha1.ParamRef", + "description": "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param." }, - "ports": { - "description": "Ports is a list of records of service ports If used, every port defined in the service should have an entry in it", - "items": { - "$ref": "#/definitions/v1.PortStatus" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "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.PriorityLevelConfigurationList": { - "description": "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.", + "v1alpha1.MutatingAdmissionPolicyList": { + "description": "MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.", "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.", + "description": "List of ValidatingAdmissionPolicy.", "items": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicy" }, "type": "array" }, @@ -932,7 +1069,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ @@ -941,433 +1078,333 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfigurationList", - "version": "v1beta1" + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyList", + "version": "v1alpha1" } ] }, - "v1.ResourceAttributes": { - "description": "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface", + "v1alpha1.MutatingAdmissionPolicySpec": { + "description": "MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy.", "properties": { - "group": { - "description": "Group is the API Group of the Resource. \"*\" means all.", + "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.\n\nA policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nAllowed values are Ignore or Fail. Defaults to Fail.", "type": "string" }, - "name": { - "description": "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.", - "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.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", + "items": { + "$ref": "#/definitions/v1alpha1.MatchCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" }, - "namespace": { - "description": "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", - "type": "string" + "matchConstraints": { + "$ref": "#/definitions/v1alpha1.MatchResources", + "description": "matchConstraints specifies what resources this policy is designed to validate. The MutatingAdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT. Required." }, - "resource": { - "description": "Resource is one of the existing resource types. \"*\" means all.", - "type": "string" + "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": "#/definitions/v1alpha1.Mutation" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "subresource": { - "description": "Subresource is one of the existing resource types. \"\" means none.", - "type": "string" + "paramKind": { + "$ref": "#/definitions/v1alpha1.ParamKind", + "description": "paramKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If paramKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in MutatingAdmissionPolicyBinding, the params variable will be null." }, - "verb": { - "description": "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", + "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\".\n\nNever: These mutations will not be called more than once per binding in a single admission evaluation.\n\nIfNeeded: 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" }, - "version": { - "description": "Version is the API Version of the Resource. \"*\" means all.", - "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.\n\nThe 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": "#/definitions/v1alpha1.Variable" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "type": "object" }, - "v1.ServicePort": { - "description": "ServicePort contains information on service's port.", + "v1alpha1.Mutation": { + "description": "Mutation specifies the CEL expression which is used to apply the Mutation.", "properties": { - "appProtocol": { - "description": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use 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" + "applyConfiguration": { + "$ref": "#/definitions/v1alpha1.ApplyConfiguration", + "description": "applyConfiguration defines the desired configuration values of an object. The configuration is applied to the admission object using [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff). A CEL expression is used to create apply configuration." }, - "port": { - "description": "The port that will be exposed by this service.", - "format": "int32", - "type": "integer" + "jsonPatch": { + "$ref": "#/definitions/v1alpha1.JSONPatch", + "description": "jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object. A CEL expression is used to create the JSON patch." }, - "protocol": { - "description": "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.", + "patchType": { + "description": "patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required.", "type": "string" - }, - "targetPort": { - "$ref": "#/definitions/intstr.IntOrString", - "description": "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service" } }, "required": [ - "port" + "patchType" ], "type": "object" }, - "v1.ReplicationControllerList": { - "description": "ReplicationControllerList is a collection of replication controllers.", + "v1alpha1.NamedRuleWithOperations": { + "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", "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" + "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" }, - "items": { - "description": "List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", + "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": { - "$ref": "#/definitions/v1.ReplicationController" + "type": "string" }, - "type": "array" + "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" + "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" }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + "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.\n\nFor 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.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending 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" } }, - "required": [ - "items" - ], "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ReplicationControllerList", - "version": "v1" - } - ] + "x-kubernetes-map-type": "atomic" }, - "v2beta2.HorizontalPodAutoscalerCondition": { - "description": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.", + "v1alpha1.ParamKind": { + "description": "ParamKind is a tuple of Group Kind and Version.", "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 explanation containing details about the transition", - "type": "string" - }, - "reason": { - "description": "reason is the reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "status is the status of the condition (True, False, Unknown)", + "apiVersion": { + "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", "type": "string" }, - "type": { - "description": "type describes the current condition", + "kind": { + "description": "Kind is the API kind the resources belong to. Required.", "type": "string" } }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "v1.RollingUpdateStatefulSetStrategy": { - "description": "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.", - "properties": { - "partition": { - "description": "Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" + "type": "object", + "x-kubernetes-map-type": "atomic" }, - "v1.CrossVersionObjectReference": { - "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", + "v1alpha1.ParamRef": { + "description": "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.", "properties": { - "apiVersion": { - "description": "API version of the referent", + "name": { + "description": "`name` is the name of the resource being referenced.\n\n`name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.", "type": "string" }, - "kind": { - "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"", + "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.\n\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\n\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\n\n- 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" }, - "name": { - "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "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.\n\nAllowed values are `Allow` or `Deny` Default to `Deny`", "type": "string" + }, + "selector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.\n\nIf multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset." } }, - "required": [ - "kind", - "name" - ], "type": "object", "x-kubernetes-map-type": "atomic" }, - "v1beta1.CSIStorageCapacityList": { - "description": "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.", + "v1alpha1.Variable": { + "description": "Variable is the definition of a variable that is used for composition.", "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", + "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" }, - "items": { - "description": "Items is the list of CSIStorageCapacity objects.", - "items": { - "$ref": "#/definitions/v1beta1.CSIStorageCapacity" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "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", + "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" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ - "items" + "name", + "expression" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacityList", - "version": "v1beta1" - } - ] + "type": "object" }, - "v1.IngressBackend": { - "description": "IngressBackend describes all endpoints for a given service and port.", + "v1beta1.ApplyConfiguration": { + "description": "ApplyConfiguration defines the desired configuration values of an object.", "properties": { - "resource": { - "$ref": "#/definitions/v1.TypedLocalObjectReference", - "description": "Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with \"Service\"." - }, - "service": { - "$ref": "#/definitions/v1.IngressServiceBackend", - "description": "Service references a Service as a Backend. This is a mutually exclusive setting with \"Resource\"." + "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" }, - "v1.SelfSubjectAccessReviewSpec": { - "description": "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", + "v1beta1.JSONPatch": { + "description": "JSONPatch defines a JSON Patch.", "properties": { - "nonResourceAttributes": { - "$ref": "#/definitions/v1.NonResourceAttributes", - "description": "NonResourceAttributes describes information for a non-resource access request" - }, - "resourceAttributes": { - "$ref": "#/definitions/v1.ResourceAttributes", - "description": "ResourceAuthorizationAttributes describes information for a resource access request" + "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" }, - "v1.DeploymentStatus": { - "description": "DeploymentStatus is the most recently observed status of the Deployment.", + "v1beta1.MatchCondition": { + "description": "MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook.", "properties": { - "availableReplicas": { - "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", - "format": "int32", - "type": "integer" - }, - "collisionCount": { - "description": "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.", - "format": "int32", - "type": "integer" - }, - "conditions": { - "description": "Represents the latest available observations of a deployment's current state.", - "items": { - "$ref": "#/definitions/v1.DeploymentCondition" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "observedGeneration": { - "description": "The generation observed by the deployment controller.", - "format": "int64", - "type": "integer" - }, - "readyReplicas": { - "description": "Total number of ready pods targeted by this deployment.", - "format": "int32", - "type": "integer" - }, - "replicas": { - "description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", - "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 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.", - "format": "int32", - "type": "integer" + "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:\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 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.\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.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", + "type": "string" }, - "updatedReplicas": { - "description": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", - "format": "int32", - "type": "integer" + "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')\n\nRequired.", + "type": "string" } }, + "required": [ + "name", + "expression" + ], "type": "object" }, - "v1.ManagedFieldsEntry": { - "description": "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.", + "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)", "properties": { - "apiVersion": { - "description": "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.", - "type": "string" - }, - "fieldsType": { - "description": "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"", - "type": "string" - }, - "fieldsV1": { - "description": "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.", - "type": "object" + "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": "#/definitions/v1beta1.NamedRuleWithOperations" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "manager": { - "description": "Manager is an identifier of the workflow managing these fields.", + "matchPolicy": { + "description": "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- 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.\n\n- 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.\n\nDefaults to \"Equivalent\"", "type": "string" }, - "operation": { - "description": "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.", - "type": "string" + "namespaceSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." }, - "subresource": { - "description": "Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.", - "type": "string" + "objectSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." }, - "time": { - "description": "Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply'", - "format": "date-time", - "type": "string" + "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": "#/definitions/v1beta1.NamedRuleWithOperations" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, - "type": "object" + "type": "object", + "x-kubernetes-map-type": "atomic" }, - "v1.ClusterRoleList": { - "description": "ClusterRoleList is a collection of ClusterRoles", + "v1beta1.MutatingAdmissionPolicy": { + "description": "MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.", "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 ClusterRoles", - "items": { - "$ref": "#/definitions/v1.ClusterRole" - }, - "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": "#/definitions/v1.ListMeta", - "description": "Standard object's metadata." + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicySpec", + "description": "Specification of the desired behavior of the MutatingAdmissionPolicy." } }, - "required": [ - "items" - ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleList", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicy", + "version": "v1beta1" } ] }, - "v1.GroupVersionForDiscovery": { - "description": "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", + "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.\n\nFor 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).\n\nAdding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.", "properties": { - "groupVersion": { - "description": "groupVersion specifies the API group and version in the form \"group/version\"", + "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" }, - "version": { - "description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", - "type": "string" - } - }, - "required": [ - "groupVersion", - "version" - ], - "type": "object" - }, - "v1.SecretKeySelector": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", + "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" }, - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" + "spec": { + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBindingSpec", + "description": "Specification of the desired behavior of the MutatingAdmissionPolicyBinding." } }, - "required": [ - "key" - ], "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "v1.RollingUpdateDeployment": { - "description": "Spec to control the desired behavior of rolling update.", - "properties": { - "maxSurge": { - "$ref": "#/definitions/intstr.IntOrString", - "description": "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods." - }, - "maxUnavailable": { - "$ref": "#/definitions/intstr.IntOrString", - "description": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods." + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyBinding", + "version": "v1beta1" } - }, - "type": "object" + ] }, - "v1alpha1.VolumeAttachmentList": { - "description": "VolumeAttachmentList is a collection of VolumeAttachment objects.", + "v1beta1.MutatingAdmissionPolicyBindingList": { + "description": "MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding.", "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 VolumeAttachments", + "description": "List of PolicyBinding.", "items": { - "$ref": "#/definitions/v1alpha1.VolumeAttachment" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBinding" }, "type": "array" }, @@ -1377,7 +1414,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ @@ -1386,59 +1423,41 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "VolumeAttachmentList", - "version": "v1alpha1" + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyBindingList", + "version": "v1beta1" } ] }, - "v1.ClusterRole": { - "description": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", + "v1beta1.MutatingAdmissionPolicyBindingSpec": { + "description": "MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.", "properties": { - "aggregationRule": { - "$ref": "#/definitions/v1.AggregationRule", - "description": "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller." + "matchResources": { + "$ref": "#/definitions/v1beta1.MatchResources", + "description": "matchResources limits what resources match this binding and may be mutated by it. Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and matchConditions before the resource may be mutated. When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints and matchConditions must match for the resource to be mutated. Additionally, matchResources.resourceRules are optional and do not constraint matching when unset. Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT." }, - "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" + "paramRef": { + "$ref": "#/definitions/v1beta1.ParamRef", + "description": "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param." }, - "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", + "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" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata." - }, - "rules": { - "description": "Rules holds all the PolicyRules for this ClusterRole", - "items": { - "$ref": "#/definitions/v1.PolicyRule" - }, - "type": "array" } }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - ] + "type": "object" }, - "v1.ComponentStatusList": { - "description": "Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+", + "v1beta1.MutatingAdmissionPolicyList": { + "description": "MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { - "description": "List of ComponentStatus objects.", + "description": "List of ValidatingAdmissionPolicy.", "items": { - "$ref": "#/definitions/v1.ComponentStatus" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicy" }, "type": "array" }, @@ -1457,188 +1476,308 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "", - "kind": "ComponentStatusList", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyList", + "version": "v1beta1" } ] }, - "v1.PodAntiAffinity": { - "description": "Pod anti affinity is a group of inter pod anti affinity scheduling rules.", + "v1beta1.MutatingAdmissionPolicySpec": { + "description": "MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy.", "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", + "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.\n\nA policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nAllowed 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.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", "items": { - "$ref": "#/definitions/v1.WeightedPodAffinityTerm" + "$ref": "#/definitions/v1beta1.MatchCondition" }, - "type": "array" + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "description": "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "matchConstraints": { + "$ref": "#/definitions/v1beta1.MatchResources", + "description": "matchConstraints specifies what resources this policy is designed to validate. The MutatingAdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT. Required." + }, + "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": "#/definitions/v1.PodAffinityTerm" + "$ref": "#/definitions/v1beta1.Mutation" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "paramKind": { + "$ref": "#/definitions/v1beta1.ParamKind", + "description": "paramKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If paramKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in MutatingAdmissionPolicyBinding, the params variable will be null." + }, + "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\".\n\nNever: These mutations will not be called more than once per binding in a single admission evaluation.\n\nIfNeeded: 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.\n\nThe 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": "#/definitions/v1beta1.Variable" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "type": "object" }, - "v1.TokenRequestSpec": { - "description": "TokenRequestSpec contains client provided parameters of a token request.", + "v1beta1.Mutation": { + "description": "Mutation specifies the CEL expression which is used to apply the Mutation.", "properties": { - "audiences": { - "description": "Audiences are the intendend audiences of the token. A recipient of a token must identitfy themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.", - "items": { - "type": "string" - }, - "type": "array" + "applyConfiguration": { + "$ref": "#/definitions/v1beta1.ApplyConfiguration", + "description": "applyConfiguration defines the desired configuration values of an object. The configuration is applied to the admission object using [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff). A CEL expression is used to create apply configuration." }, - "boundObjectRef": { - "$ref": "#/definitions/v1.BoundObjectReference", - "description": "BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation." + "jsonPatch": { + "$ref": "#/definitions/v1beta1.JSONPatch", + "description": "jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object. A CEL expression is used to create the JSON patch." }, - "expirationSeconds": { - "description": "ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.", - "format": "int64", - "type": "integer" + "patchType": { + "description": "patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required.", + "type": "string" } }, "required": [ - "audiences" + "patchType" ], "type": "object" }, - "v1.HostAlias": { - "description": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.", + "v1beta1.NamedRuleWithOperations": { + "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", "properties": { - "hostnames": { - "description": "Hostnames for the above IP address.", + "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" + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "ip": { - "description": "IP address of the host file entry.", + "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.\n\nFor 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.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending 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" + "type": "object", + "x-kubernetes-map-type": "atomic" }, - "events.v1.EventSeries": { - "description": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in \"k8s.io/client-go/tools/events/event_broadcaster.go\" shows how this struct is updated on heartbeats and can guide customized reporter implementations.", + "v1beta1.ParamKind": { + "description": "ParamKind is a tuple of Group Kind and Version.", "properties": { - "count": { - "description": "count is the number of occurrences in this series up to the last heartbeat time.", - "format": "int32", - "type": "integer" + "apiVersion": { + "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", + "type": "string" }, - "lastObservedTime": { - "description": "lastObservedTime is the time when last Event from the series was seen before last heartbeat.", - "format": "date-time", + "kind": { + "description": "Kind is the API kind the resources belong to. Required.", "type": "string" } }, - "required": [ - "count", - "lastObservedTime" - ], - "type": "object" + "type": "object", + "x-kubernetes-map-type": "atomic" }, - "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.", + "v1beta1.ParamRef": { + "description": "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.", "properties": { - "exec": { - "$ref": "#/definitions/v1.ExecAction", - "description": "One and only one of the following should be specified. Exec specifies the action to take." - }, - "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" + "name": { + "description": "name is the name of the resource being referenced.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.\n\nA 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" }, - "httpGet": { - "$ref": "#/definitions/v1.HTTPGetAction", - "description": "HTTPGet specifies the http request to perform." + "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.\n\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\n\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\n\n- 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" }, - "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" + "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.\n\nAllowed values are `Allow` or `Deny`\n\nRequired", + "type": "string" }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "format": "int32", - "type": "integer" + "selector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.\n\nIf multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset." + } + }, + "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.", + "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" }, - "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" + "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": [ + "name", + "expression" + ], + "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.", + "properties": { + "apiServerID": { + "description": "The ID of the reporting API server.", + "type": "string" }, - "tcpSocket": { - "$ref": "#/definitions/v1.TCPSocketAction", - "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported" + "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" }, - "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" + "encodingVersion": { + "description": "The API server encodes the object to this version when persisting it in the backend (e.g., etcd).", + "type": "string" }, - "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" + "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" }, - "v1.RoleBindingList": { - "description": "RoleBindingList is a collection of RoleBindings", + "v1alpha1.StorageVersion": { + "description": "Storage version of a specific resource.", "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": "#/definitions/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": "#/definitions/v1.ListMeta", - "description": "Standard object's metadata." + "$ref": "#/definitions/v1.ObjectMeta", + "description": "The name is .." + }, + "spec": { + "description": "Spec is an empty spec. It is here to comply with Kubernetes API style.", + "type": "object" + }, + "status": { + "$ref": "#/definitions/v1alpha1.StorageVersionStatus", + "description": "API server instances report the version they can decode and the version they encode objects to when persisting objects in the backend." } }, "required": [ - "items" + "spec", + "status" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBindingList", - "version": "v1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" } ] }, - "v1.CronJobList": { - "description": "CronJobList is a collection of cron jobs.", + "v1alpha1.StorageVersionCondition": { + "description": "Describes the state of the storageVersion at a certain point.", + "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": [ + "type", + "status", + "reason", + "message" + ], + "type": "object" + }, + "v1alpha1.StorageVersionList": { + "description": "A list of StorageVersions.", "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 CronJobs.", + "description": "Items holds a list of StorageVersion", "items": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1alpha1.StorageVersion" }, "type": "array" }, @@ -1657,102 +1796,54 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "batch", - "kind": "CronJobList", - "version": "v1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersionList", + "version": "v1alpha1" } ] }, - "v1.SelfSubjectRulesReviewSpec": { - "description": "SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.", - "properties": { - "namespace": { - "description": "Namespace to evaluate rules for. Required.", - "type": "string" - } - }, - "type": "object" - }, - "v1.CinderVolumeSource": { - "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", + "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.", "properties": { - "fsType": { - "description": "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", + "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" }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "boolean" - }, - "secretRef": { - "$ref": "#/definitions/v1.LocalObjectReference", - "description": "Optional: points to a secret object containing parameters used to connect to OpenStack." - }, - "volumeID": { - "description": "volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "string" - } - }, - "required": [ - "volumeID" - ], - "type": "object" - }, - "v1.NodeSelectorTerm": { - "description": "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.", - "properties": { - "matchExpressions": { - "description": "A list of node selector requirements by node's labels.", + "conditions": { + "description": "The latest available observations of the storageVersion's state.", "items": { - "$ref": "#/definitions/v1.NodeSelectorRequirement" + "$ref": "#/definitions/v1alpha1.StorageVersionCondition" }, - "type": "array" + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" }, - "matchFields": { - "description": "A list of node selector requirements by node's fields.", + "storageVersions": { + "description": "The reported versions per API server instance.", "items": { - "$ref": "#/definitions/v1.NodeSelectorRequirement" + "$ref": "#/definitions/v1alpha1.ServerStorageVersion" }, - "type": "array" + "type": "array", + "x-kubernetes-list-map-keys": [ + "apiServerID" + ], + "x-kubernetes-list-type": "map" } }, - "type": "object", - "x-kubernetes-map-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.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.", "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": "#/definitions/v1.EventSource", - "description": "deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type." - }, - "eventTime": { - "description": "eventTime is the time when this Event was first observed. It is required.", - "format": "date-time", - "type": "string" + "data": { + "description": "Data is the serialized representation of the state.", + "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", @@ -1762,105 +1853,35 @@ "$ref": "#/definitions/v1.ObjectMeta", "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "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": "#/definitions/v1.ObjectReference", - "description": "regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object." - }, - "related": { - "$ref": "#/definitions/v1.ObjectReference", - "description": "related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object." - }, - "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": "#/definitions/events.v1.EventSeries", - "description": "series is data about the Event series this event represents or nil if it's a singleton Event." - }, - "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" + "revision": { + "description": "Revision indicates the revision of the state represented by Data.", + "format": "int64", + "type": "integer" } }, "required": [ - "eventTime" + "revision" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "events.k8s.io", - "kind": "Event", + "group": "apps", + "kind": "ControllerRevision", "version": "v1" } ] }, - "v1.ReplicationControllerStatus": { - "description": "ReplicationControllerStatus represents the current status of a replication controller.", - "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": "#/definitions/v1.ReplicationControllerCondition" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "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 oberved 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" - }, - "v2beta1.HorizontalPodAutoscalerList": { - "description": "HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects.", + "v1.ControllerRevisionList": { + "description": "ControllerRevisionList is a resource containing a list of ControllerRevision objects.", "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 horizontal pod autoscaler objects.", + "description": "Items is the list of ControllerRevisions", "items": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.ControllerRevision" }, "type": "array" }, @@ -1870,7 +1891,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "metadata is the standard list metadata." + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ @@ -1879,72 +1900,87 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "autoscaling", - "kind": "HorizontalPodAutoscalerList", - "version": "v2beta1" + "group": "apps", + "kind": "ControllerRevisionList", + "version": "v1" } ] }, - "v1.ScaleStatus": { - "description": "ScaleStatus represents the current status of a scale subresource.", + "v1.DaemonSet": { + "description": "DaemonSet represents the configuration of a daemon set.", "properties": { - "replicas": { - "description": "actual number of observed instances of the scaled object.", - "format": "int32", - "type": "integer" + "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" }, - "selector": { - "description": "label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors", + "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": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1.DaemonSetSpec", + "description": "The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/v1.DaemonSetStatus", + "description": "The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, - "required": [ - "replicas" - ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + ] }, - "v1.ConfigMapNodeConfigSource": { - "description": "ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration", + "v1.DaemonSetCondition": { + "description": "DaemonSetCondition describes the state of a DaemonSet at a certain point.", "properties": { - "kubeletConfigKey": { - "description": "KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.", + "lastTransitionTime": { + "description": "Last time the condition transitioned from one status to another.", + "format": "date-time", "type": "string" }, - "name": { - "description": "Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.", + "message": { + "description": "A human readable message indicating details about the transition.", "type": "string" }, - "namespace": { - "description": "Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.", + "reason": { + "description": "The reason for the condition's last transition.", "type": "string" }, - "resourceVersion": { - "description": "ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", + "status": { + "description": "Status of the condition, one of True, False, Unknown.", "type": "string" }, - "uid": { - "description": "UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", + "type": { + "description": "Type of DaemonSet condition.", "type": "string" } }, "required": [ - "namespace", - "name", - "kubeletConfigKey" + "type", + "status" ], "type": "object" }, - "events.v1.EventList": { - "description": "EventList is a list of Event objects.", + "v1.DaemonSetList": { + "description": "DaemonSetList is a collection of daemon sets.", "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.", + "description": "A list of daemon sets.", "items": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1.DaemonSet" }, "type": "array" }, @@ -1963,293 +1999,296 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "events.k8s.io", - "kind": "EventList", + "group": "apps", + "kind": "DaemonSetList", "version": "v1" } ] }, - "v1.CronJobStatus": { - "description": "CronJobStatus represents the current state of a cron job.", - "properties": { - "active": { - "description": "A list of pointers to currently running jobs.", - "items": { - "$ref": "#/definitions/v1.ObjectReference" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "lastScheduleTime": { - "description": "Information when was the last time the job was successfully scheduled.", - "format": "date-time", - "type": "string" - }, - "lastSuccessfulTime": { - "description": "Information when was the last time the job successfully completed.", - "format": "date-time", - "type": "string" - } - }, - "type": "object" - }, - "v1.NonResourceAttributes": { - "description": "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface", + "v1.DaemonSetSpec": { + "description": "DaemonSetSpec is the specification of a daemon set.", "properties": { - "path": { - "description": "Path is the URL path of the request", - "type": "string" + "minReadySeconds": { + "description": "The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).", + "format": "int32", + "type": "integer" }, - "verb": { - "description": "Verb is the standard HTTP verb", - "type": "string" - } - }, - "type": "object" - }, - "v1alpha1.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.", - "properties": { - "apiVersion": { - "description": "APIVersion holds the API group and version of the referenced subject. Defaults to \"v1\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io/v1alpha1\" for User and Group subjects.", - "type": "string" + "revisionHistoryLimit": { + "description": "The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.", + "format": "int32", + "type": "integer" }, - "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" + "selector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" }, - "name": { - "description": "Name of the object being referenced.", - "type": "string" + "template": { + "$ref": "#/definitions/v1.PodTemplateSpec", + "description": "An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). The only allowed template.spec.restartPolicy value is \"Always\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template" }, - "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" + "updateStrategy": { + "$ref": "#/definitions/v1.DaemonSetUpdateStrategy", + "description": "An update strategy to replace existing DaemonSet pods with new pods." } }, "required": [ - "kind", - "name" + "selector", + "template" ], "type": "object" }, - "v1.ResourceQuotaSpec": { - "description": "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.", - "properties": { - "hard": { - "additionalProperties": { - "$ref": "#/definitions/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": "#/definitions/v1.ScopeSelector", - "description": "scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched." - }, - "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" - } - }, - "type": "object" - }, - "v1.CustomResourceDefinitionStatus": { - "description": "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition", + "v1.DaemonSetStatus": { + "description": "DaemonSetStatus represents the current status of a daemon set.", "properties": { - "acceptedNames": { - "$ref": "#/definitions/v1.CustomResourceDefinitionNames", - "description": "acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec." + "collisionCount": { + "description": "Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.", + "format": "int32", + "type": "integer" }, "conditions": { - "description": "conditions indicate state for particular aspects of a CustomResourceDefinition", + "description": "Represents the latest available observations of a DaemonSet's current state.", "items": { - "$ref": "#/definitions/v1.CustomResourceDefinitionCondition" + "$ref": "#/definitions/v1.DaemonSetCondition" }, "type": "array", "x-kubernetes-list-map-keys": [ "type" ], - "x-kubernetes-list-type": "map" + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" }, - "storedVersions": { - "description": "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.", - "items": { - "type": "string" - }, - "type": "array" + "currentNumberScheduled": { + "description": "The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", + "format": "int32", + "type": "integer" + }, + "desiredNumberScheduled": { + "description": "The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", + "format": "int32", + "type": "integer" + }, + "numberAvailable": { + "description": "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)", + "format": "int32", + "type": "integer" + }, + "numberMisscheduled": { + "description": "The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", + "format": "int32", + "type": "integer" + }, + "numberReady": { + "description": "numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition.", + "format": "int32", + "type": "integer" + }, + "numberUnavailable": { + "description": "The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)", + "format": "int32", + "type": "integer" + }, + "observedGeneration": { + "description": "The most recent generation observed by the daemon set controller.", + "format": "int64", + "type": "integer" + }, + "updatedNumberScheduled": { + "description": "The total number of nodes that are running updated daemon pod", + "format": "int32", + "type": "integer" } }, + "required": [ + "currentNumberScheduled", + "numberMisscheduled", + "desiredNumberScheduled", + "numberReady" + ], "type": "object" }, - "v1.DownwardAPIProjection": { - "description": "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.", + "v1.DaemonSetUpdateStrategy": { + "description": "DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.", "properties": { - "items": { - "description": "Items is a list of DownwardAPIVolume file", - "items": { - "$ref": "#/definitions/v1.DownwardAPIVolumeFile" - }, - "type": "array" + "rollingUpdate": { + "$ref": "#/definitions/v1.RollingUpdateDaemonSet", + "description": "Rolling update config params. Present only if type = \"RollingUpdate\"." + }, + "type": { + "description": "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate.", + "type": "string" } }, "type": "object" }, - "v1beta1.LimitResponse": { - "description": "LimitResponse defines how to handle requests that can not be executed right now.", + "v1.Deployment": { + "description": "Deployment enables declarative updates for Pods and ReplicaSets.", "properties": { - "queuing": { - "$ref": "#/definitions/v1beta1.QueuingConfiguration", - "description": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`." + "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 \"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": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1.DeploymentSpec", + "description": "Specification of the desired behavior of the Deployment." + }, + "status": { + "$ref": "#/definitions/v1.DeploymentStatus", + "description": "Most recently observed status of the Deployment." } }, - "required": [ - "type" - ], "type": "object", - "x-kubernetes-unions": [ + "x-kubernetes-group-version-kind": [ { - "discriminator": "type", - "fields-to-discriminateBy": { - "queuing": "Queuing" - } + "group": "apps", + "kind": "Deployment", + "version": "v1" } ] }, - "v1beta1.FlowSchemaSpec": { - "description": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", + "v1.DeploymentCondition": { + "description": "DeploymentCondition describes the state of a deployment at a certain point.", "properties": { - "distinguisherMethod": { - "$ref": "#/definitions/v1beta1.FlowDistinguisherMethod", - "description": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string." + "lastTransitionTime": { + "description": "Last time the condition transitioned from one status to another.", + "format": "date-time", + "type": "string" }, - "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" + "lastUpdateTime": { + "description": "The last time this condition was updated.", + "format": "date-time", + "type": "string" }, - "priorityLevelConfiguration": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfigurationReference", - "description": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required." + "message": { + "description": "A human readable message indicating details about the transition.", + "type": "string" }, - "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": "#/definitions/v1beta1.PolicyRulesWithSubjects" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "priorityLevelConfiguration" - ], - "type": "object" - }, - "v1beta1.GroupSubject": { - "description": "GroupSubject holds detailed information for group-kind subject.", - "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.", + "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 deployment condition.", "type": "string" } }, "required": [ - "name" + "type", + "status" ], "type": "object" }, - "apiextensions.v1.ServiceReference": { - "description": "ServiceReference holds a reference to Service.legacy.k8s.io", + "v1.DeploymentList": { + "description": "DeploymentList is a list of Deployments.", "properties": { - "name": { - "description": "name is the name of the service. 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" }, - "namespace": { - "description": "namespace is the namespace of the service. Required", - "type": "string" + "items": { + "description": "Items is the list of Deployments.", + "items": { + "$ref": "#/definitions/v1.Deployment" + }, + "type": "array" }, - "path": { - "description": "path is an optional URL path at which the webhook will be contacted.", + "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" }, - "port": { - "description": "port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.", - "format": "int32", - "type": "integer" + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata." } }, "required": [ - "namespace", - "name" + "items" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "DeploymentList", + "version": "v1" + } + ] }, - "v1.ContainerStatus": { - "description": "ContainerStatus contains details for the current status of this container.", + "v1.DeploymentSpec": { + "description": "DeploymentSpec is the specification of the desired behavior of the Deployment.", "properties": { - "containerID": { - "description": "Container's ID in the format 'docker://'.", - "type": "string" - }, - "image": { - "description": "The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images", - "type": "string" - }, - "imageID": { - "description": "ImageID of the container's image.", - "type": "string" + "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" }, - "lastState": { - "$ref": "#/definitions/v1.ContainerState", - "description": "Details about the container's last termination condition." + "paused": { + "description": "Indicates that the deployment is paused.", + "type": "boolean" }, - "name": { - "description": "This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated.", - "type": "string" + "progressDeadlineSeconds": { + "description": "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.", + "format": "int32", + "type": "integer" }, - "ready": { - "description": "Specifies whether the container has passed its readiness probe.", - "type": "boolean" + "replicas": { + "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", + "format": "int32", + "type": "integer" }, - "restartCount": { - "description": "The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC.", + "revisionHistoryLimit": { + "description": "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.", "format": "int32", "type": "integer" }, - "started": { - "description": "Specifies whether the container has 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. Is always true when no startupProbe is defined.", - "type": "boolean" + "selector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels." }, - "state": { - "$ref": "#/definitions/v1.ContainerState", - "description": "Details about the container's current condition." + "strategy": { + "$ref": "#/definitions/v1.DeploymentStrategy", + "description": "The deployment strategy to use to replace existing pods with new ones.", + "x-kubernetes-patch-strategy": "retainKeys" + }, + "template": { + "$ref": "#/definitions/v1.PodTemplateSpec", + "description": "Template describes the pods that will be created. The only allowed template.spec.restartPolicy value is \"Always\"." } }, "required": [ - "name", - "ready", - "restartCount", - "image", - "imageID" + "selector", + "template" ], "type": "object" }, - "v1beta1.PodDisruptionBudgetStatus": { - "description": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", + "v1.DeploymentStatus": { + "description": "DeploymentStatus is the most recently observed status of the Deployment.", "properties": { + "availableReplicas": { + "description": "Total number of available non-terminating pods (ready for at least minReadySeconds) targeted by this deployment.", + "format": "int32", + "type": "integer" + }, + "collisionCount": { + "description": "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.", + "format": "int32", + "type": "integer" + }, "conditions": { - "description": "Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute\n the number of allowed disruptions. Therefore no disruptions are\n allowed and the status of the condition will be False.\n- InsufficientPods: The number of pods are either at or below the number\n required by the PodDisruptionBudget. No disruptions are\n allowed and the status of the condition will be False.\n- SufficientPods: There are more pods than required by the PodDisruptionBudget.\n The condition will be True, and the number of allowed\n disruptions are provided by the disruptionsAllowed property.", + "description": "Represents the latest available observations of a deployment's current state.", "items": { - "$ref": "#/definitions/v1.Condition" + "$ref": "#/definitions/v1.DeploymentCondition" }, "type": "array", "x-kubernetes-list-map-keys": [ @@ -2259,156 +2298,128 @@ "x-kubernetes-patch-merge-key": "type", "x-kubernetes-patch-strategy": "merge" }, - "currentHealthy": { - "description": "current number of healthy pods", - "format": "int32", + "observedGeneration": { + "description": "The generation observed by the deployment controller.", + "format": "int64", "type": "integer" }, - "desiredHealthy": { - "description": "minimum desired number of healthy pods", + "readyReplicas": { + "description": "Total number of non-terminating pods targeted by this Deployment with a Ready Condition.", "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" + "replicas": { + "description": "Total number of non-terminating pods targeted by this deployment (their labels match the selector).", + "format": "int32", + "type": "integer" }, - "disruptionsAllowed": { - "description": "Number of pod disruptions that are currently allowed.", + "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.\n\nThis is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.", "format": "int32", "type": "integer" }, - "expectedPods": { - "description": "total number of pods counted by this disruption budget", + "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 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.", "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", + "updatedReplicas": { + "description": "Total number of non-terminating pods targeted by this deployment that have the desired template spec.", + "format": "int32", "type": "integer" } }, - "required": [ - "disruptionsAllowed", - "currentHealthy", - "desiredHealthy", - "expectedPods" - ], "type": "object" }, - "v1beta1.IDRange": { - "description": "IDRange provides a min/max of an allowed range of IDs.", + "v1.DeploymentStrategy": { + "description": "DeploymentStrategy describes how to replace existing pods with new ones.", "properties": { - "max": { - "description": "max is the end of the range, inclusive.", - "format": "int64", - "type": "integer" + "rollingUpdate": { + "$ref": "#/definitions/v1.RollingUpdateDeployment", + "description": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate." }, - "min": { - "description": "min is the start of the range, inclusive.", - "format": "int64", - "type": "integer" + "type": { + "description": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", + "type": "string" } }, - "required": [ - "min", - "max" - ], "type": "object" }, - "v2beta2.HorizontalPodAutoscalerList": { - "description": "HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.", + "v1.ReplicaSet": { + "description": "ReplicaSet ensures that a specified number of pod replicas are running at any given time.", "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 horizontal pod autoscaler objects.", - "items": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" - }, - "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": "#/definitions/v1.ListMeta", - "description": "metadata is the standard list metadata." + "$ref": "#/definitions/v1.ObjectMeta", + "description": "If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1.ReplicaSetSpec", + "description": "Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/v1.ReplicaSetStatus", + "description": "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, - "required": [ - "items" - ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "autoscaling", - "kind": "HorizontalPodAutoscalerList", - "version": "v2beta2" + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" } ] }, - "v1.CSINodeSpec": { - "description": "CSINodeSpec holds information about the specification of all CSI drivers installed on a node", - "properties": { - "drivers": { - "description": "drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.", - "items": { - "$ref": "#/definitions/v1.CSINodeDriver" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" - } - }, - "required": [ - "drivers" - ], - "type": "object" - }, - "v1alpha1.RoleRef": { - "description": "RoleRef contains information that points to the role being used", + "v1.ReplicaSetCondition": { + "description": "ReplicaSetCondition describes the state of a replica set at a certain point.", "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced", + "lastTransitionTime": { + "description": "The last time the condition transitioned from one status to another.", + "format": "date-time", "type": "string" }, - "kind": { - "description": "Kind is the type of resource being referenced", + "message": { + "description": "A human readable message indicating details about the transition.", "type": "string" }, - "name": { - "description": "Name is the name of resource being referenced", + "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 replica set condition.", "type": "string" } }, "required": [ - "apiGroup", - "kind", - "name" + "type", + "status" ], "type": "object" }, - "v1beta1.RuntimeClassList": { - "description": "RuntimeClassList is a list of RuntimeClass objects.", + "v1.ReplicaSetList": { + "description": "ReplicaSetList is a collection of ReplicaSets.", "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.", + "description": "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset", "items": { - "$ref": "#/definitions/v1beta1.RuntimeClass" + "$ref": "#/definitions/v1.ReplicaSet" }, "type": "array" }, @@ -2418,7 +2429,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ @@ -2427,32 +2438,51 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "node.k8s.io", - "kind": "RuntimeClassList", - "version": "v1beta1" + "group": "apps", + "kind": "ReplicaSetList", + "version": "v1" } ] }, - "v1.PodDNSConfigOption": { - "description": "PodDNSConfigOption defines DNS resolver options of a pod.", + "v1.ReplicaSetSpec": { + "description": "ReplicaSetSpec is the specification of a ReplicaSet.", "properties": { - "name": { - "description": "Required.", - "type": "string" + "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" }, - "value": { - "type": "string" + "replicas": { + "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/replicaset", + "format": "int32", + "type": "integer" + }, + "selector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + }, + "template": { + "$ref": "#/definitions/v1.PodTemplateSpec", + "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/#pod-template" } }, + "required": [ + "selector" + ], "type": "object" }, - "v1.ServiceStatus": { - "description": "ServiceStatus represents the current status of a service.", + "v1.ReplicaSetStatus": { + "description": "ReplicaSetStatus represents the current status of a ReplicaSet.", "properties": { + "availableReplicas": { + "description": "The number of available non-terminating pods (ready for at least minReadySeconds) for this replica set.", + "format": "int32", + "type": "integer" + }, "conditions": { - "description": "Current service state", + "description": "Represents the latest available observations of a replica set's current state.", "items": { - "$ref": "#/definitions/v1.Condition" + "$ref": "#/definitions/v1.ReplicaSetCondition" }, "type": "array", "x-kubernetes-list-map-keys": [ @@ -2462,127 +2492,155 @@ "x-kubernetes-patch-merge-key": "type", "x-kubernetes-patch-strategy": "merge" }, - "loadBalancer": { - "$ref": "#/definitions/v1.LoadBalancerStatus", - "description": "LoadBalancer contains the current status of the load-balancer, if one is present." + "fullyLabeledReplicas": { + "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": { + "description": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.", + "format": "int64", + "type": "integer" + }, + "readyReplicas": { + "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 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.\n\nThis is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.", + "format": "int32", + "type": "integer" } }, + "required": [ + "replicas" + ], "type": "object" }, - "v1.AzureDiskVolumeSource": { - "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + "v1.RollingUpdateDaemonSet": { + "description": "Spec to control the desired behavior of daemon set rolling update.", "properties": { - "cachingMode": { - "description": "Host Caching mode: None, Read Only, Read Write.", - "type": "string" - }, - "diskName": { - "description": "The Name of the data disk in the blob storage", - "type": "string" - }, - "diskURI": { - "description": "The URI the data disk in the blob storage", - "type": "string" + "maxSurge": { + "$ref": "#/definitions/intstr.IntOrString", + "description": "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediately created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption." }, - "fsType": { - "description": "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" + "maxUnavailable": { + "$ref": "#/definitions/intstr.IntOrString", + "description": "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update." + } + }, + "type": "object" + }, + "v1.RollingUpdateDeployment": { + "description": "Spec to control the desired behavior of rolling update.", + "properties": { + "maxSurge": { + "$ref": "#/definitions/intstr.IntOrString", + "description": "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods." }, - "kind": { - "description": "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", - "type": "string" + "maxUnavailable": { + "$ref": "#/definitions/intstr.IntOrString", + "description": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods." + } + }, + "type": "object" + }, + "v1.RollingUpdateStatefulSetStrategy": { + "description": "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.", + "properties": { + "maxUnavailable": { + "$ref": "#/definitions/intstr.IntOrString", + "description": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable." }, - "readOnly": { - "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" + "partition": { + "description": "Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0.", + "format": "int32", + "type": "integer" } }, - "required": [ - "diskName", - "diskURI" - ], "type": "object" }, - "v1.ResourceQuotaList": { - "description": "ResourceQuotaList is a list of ResourceQuota items.", + "v1.StatefulSet": { + "description": "StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\n\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.", "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": "#/definitions/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": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1.StatefulSetSpec", + "description": "Spec defines the desired identities of pods in this set." + }, + "status": { + "$ref": "#/definitions/v1.StatefulSetStatus", + "description": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time." } }, - "required": [ - "items" - ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "", - "kind": "ResourceQuotaList", + "group": "apps", + "kind": "StatefulSet", "version": "v1" } ] }, - "v1.RoleRef": { - "description": "RoleRef contains information that points to the role being used", + "v1.StatefulSetCondition": { + "description": "StatefulSetCondition describes the state of a statefulset at a certain point.", "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced", + "lastTransitionTime": { + "description": "Last time the condition transitioned from one status to another.", + "format": "date-time", "type": "string" }, - "kind": { - "description": "Kind is the type of resource being referenced", + "message": { + "description": "A human readable message indicating details about the transition.", "type": "string" }, - "name": { - "description": "Name is the name of resource being referenced", + "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 statefulset condition.", "type": "string" } }, "required": [ - "apiGroup", - "kind", - "name" + "type", + "status" ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "v1.VolumeNodeAffinity": { - "description": "VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.", - "properties": { - "required": { - "$ref": "#/definitions/v1.NodeSelector", - "description": "Required specifies hard node constraints that must be met." - } - }, "type": "object" }, - "v1.ReplicaSetList": { - "description": "ReplicaSetList is a collection of ReplicaSets.", + "v1.StatefulSetList": { + "description": "StatefulSetList is a collection of StatefulSets.", "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 ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", + "description": "Items is the list of stateful sets.", "items": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.StatefulSet" }, "type": "array" }, @@ -2592,7 +2650,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + "description": "Standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ @@ -2602,179 +2660,200 @@ "x-kubernetes-group-version-kind": [ { "group": "apps", - "kind": "ReplicaSetList", + "kind": "StatefulSetList", "version": "v1" } ] }, - "v1.PersistentVolumeSpec": { - "description": "PersistentVolumeSpec is the specification of a persistent volume.", + "v1.StatefulSetOrdinals": { + "description": "StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.", "properties": { - "accessModes": { - "description": "AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes", - "items": { - "type": "string" - }, - "type": "array" - }, - "awsElasticBlockStore": { - "$ref": "#/definitions/v1.AWSElasticBlockStoreVolumeSource", - "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" - }, - "azureDisk": { - "$ref": "#/definitions/v1.AzureDiskVolumeSource", - "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod." - }, - "azureFile": { - "$ref": "#/definitions/v1.AzureFilePersistentVolumeSource", - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod." - }, - "capacity": { - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - }, - "description": "A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", - "type": "object" + "start": { + "description": "start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range:\n [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).\nIf unset, defaults to 0. Replica indices will be in the range:\n [0, .spec.replicas).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "v1.StatefulSetPersistentVolumeClaimRetentionPolicy": { + "description": "StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.", + "properties": { + "whenDeleted": { + "description": "WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted.", + "type": "string" }, - "cephfs": { - "$ref": "#/definitions/v1.CephFSPersistentVolumeSource", - "description": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime" + "whenScaled": { + "description": "WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted.", + "type": "string" + } + }, + "type": "object" + }, + "v1.StatefulSetSpec": { + "description": "A StatefulSetSpec is the specification of a StatefulSet.", + "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" }, - "cinder": { - "$ref": "#/definitions/v1.CinderPersistentVolumeSource", - "description": "Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md" + "ordinals": { + "$ref": "#/definitions/v1.StatefulSetOrdinals", + "description": "ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a \"0\" index to the first replica and increments the index by one for each additional replica requested." }, - "claimRef": { - "$ref": "#/definitions/v1.ObjectReference", - "description": "ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding" + "persistentVolumeClaimRetentionPolicy": { + "$ref": "#/definitions/v1.StatefulSetPersistentVolumeClaimRetentionPolicy", + "description": "persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down." }, - "csi": { - "$ref": "#/definitions/v1.CSIPersistentVolumeSource", - "description": "CSI represents storage that is handled by an external CSI driver (Beta feature)." + "podManagementPolicy": { + "description": "podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.", + "type": "string" }, - "fc": { - "$ref": "#/definitions/v1.FCVolumeSource", - "description": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod." + "replicas": { + "description": "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.", + "format": "int32", + "type": "integer" }, - "flexVolume": { - "$ref": "#/definitions/v1.FlexPersistentVolumeSource", - "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin." + "revisionHistoryLimit": { + "description": "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.", + "format": "int32", + "type": "integer" }, - "flocker": { - "$ref": "#/definitions/v1.FlockerVolumeSource", - "description": "Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running" + "selector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" }, - "gcePersistentDisk": { - "$ref": "#/definitions/v1.GCEPersistentDiskVolumeSource", - "description": "GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk" + "serviceName": { + "description": "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.", + "type": "string" }, - "glusterfs": { - "$ref": "#/definitions/v1.GlusterfsPersistentVolumeSource", - "description": "Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md" + "template": { + "$ref": "#/definitions/v1.PodTemplateSpec", + "description": "template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. Each pod will be named with the format -. For example, a pod in a StatefulSet named \"web\" with index number \"3\" would be named \"web-3\". The only allowed template.spec.restartPolicy value is \"Always\"." }, - "hostPath": { - "$ref": "#/definitions/v1.HostPathVolumeSource", - "description": "HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath" + "updateStrategy": { + "$ref": "#/definitions/v1.StatefulSetUpdateStrategy", + "description": "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template." }, - "iscsi": { - "$ref": "#/definitions/v1.ISCSIPersistentVolumeSource", - "description": "ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin." + "volumeClaimTemplates": { + "description": "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.", + "items": { + "$ref": "#/definitions/v1.PersistentVolumeClaim" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "selector", + "template" + ], + "type": "object" + }, + "v1.StatefulSetStatus": { + "description": "StatefulSetStatus represents the current state of a StatefulSet.", + "properties": { + "availableReplicas": { + "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.", + "format": "int32", + "type": "integer" }, - "local": { - "$ref": "#/definitions/v1.LocalVolumeSource", - "description": "Local represents directly-attached storage with node affinity" + "collisionCount": { + "description": "collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.", + "format": "int32", + "type": "integer" }, - "mountOptions": { - "description": "A list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options", + "conditions": { + "description": "Represents the latest available observations of a statefulset's current state.", "items": { - "type": "string" + "$ref": "#/definitions/v1.StatefulSetCondition" }, - "type": "array" - }, - "nfs": { - "$ref": "#/definitions/v1.NFSVolumeSource", - "description": "NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs" + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" }, - "nodeAffinity": { - "$ref": "#/definitions/v1.VolumeNodeAffinity", - "description": "NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume." + "currentReplicas": { + "description": "currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.", + "format": "int32", + "type": "integer" }, - "persistentVolumeReclaimPolicy": { - "description": "What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming", + "currentRevision": { + "description": "currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).", "type": "string" }, - "photonPersistentDisk": { - "$ref": "#/definitions/v1.PhotonPersistentDiskVolumeSource", - "description": "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine" - }, - "portworxVolume": { - "$ref": "#/definitions/v1.PortworxVolumeSource", - "description": "PortworxVolume represents a portworx volume attached and mounted on kubelets host machine" - }, - "quobyte": { - "$ref": "#/definitions/v1.QuobyteVolumeSource", - "description": "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime" + "observedGeneration": { + "description": "observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server.", + "format": "int64", + "type": "integer" }, - "rbd": { - "$ref": "#/definitions/v1.RBDPersistentVolumeSource", - "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" + "readyReplicas": { + "description": "readyReplicas is the number of pods created for this StatefulSet with a Ready Condition.", + "format": "int32", + "type": "integer" }, - "scaleIO": { - "$ref": "#/definitions/v1.ScaleIOPersistentVolumeSource", - "description": "ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes." + "replicas": { + "description": "replicas is the number of Pods created by the StatefulSet controller.", + "format": "int32", + "type": "integer" }, - "storageClassName": { - "description": "Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.", + "updateRevision": { + "description": "updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)", "type": "string" }, - "storageos": { - "$ref": "#/definitions/v1.StorageOSPersistentVolumeSource", - "description": "StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md" + "updatedReplicas": { + "description": "updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "replicas" + ], + "type": "object" + }, + "v1.StatefulSetUpdateStrategy": { + "description": "StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.", + "properties": { + "rollingUpdate": { + "$ref": "#/definitions/v1.RollingUpdateStatefulSetStrategy", + "description": "RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType." }, - "volumeMode": { - "description": "volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec.", + "type": { + "description": "Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.", "type": "string" - }, - "vsphereVolume": { - "$ref": "#/definitions/v1.VsphereVirtualDiskVolumeSource", - "description": "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine" } }, "type": "object" }, - "v2beta1.HorizontalPodAutoscalerSpec": { - "description": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.", + "v1.BoundObjectReference": { + "description": "BoundObjectReference is a reference to an object that a token is bound to.", "properties": { - "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.", - "format": "int32", - "type": "integer" + "apiVersion": { + "description": "API version of the referent.", + "type": "string" }, - "metrics": { - "description": "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond.", - "items": { - "$ref": "#/definitions/v2beta1.MetricSpec" - }, - "type": "array" + "kind": { + "description": "Kind of the referent. Valid kinds are 'Pod' and 'Secret'.", + "type": "string" }, - "minReplicas": { - "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", - "format": "int32", - "type": "integer" + "name": { + "description": "Name of the referent.", + "type": "string" }, - "scaleTargetRef": { - "$ref": "#/definitions/v2beta1.CrossVersionObjectReference", - "description": "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count." + "uid": { + "description": "UID of the referent.", + "type": "string" } }, - "required": [ - "scaleTargetRef", - "maxReplicas" - ], "type": "object" }, - "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.", + "v1.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.", "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", @@ -2786,78 +2865,34 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata." - }, - "roleRef": { - "$ref": "#/definitions/v1.RoleRef", - "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error." + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "items": { - "$ref": "#/definitions/v1.Subject" - }, - "type": "array" + "status": { + "$ref": "#/definitions/v1.SelfSubjectReviewStatus", + "description": "Status is filled in by the server with the user attributes." } }, - "required": [ - "roleRef" - ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", "version": "v1" } ] }, - "v1.PodDisruptionBudgetSpec": { - "description": "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.", - "properties": { - "maxUnavailable": { - "$ref": "#/definitions/intstr.IntOrString", - "description": "An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\"." - }, - "minAvailable": { - "$ref": "#/definitions/intstr.IntOrString", - "description": "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\"." - }, - "selector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.", - "x-kubernetes-patch-strategy": "replace" - } - }, - "type": "object" - }, - "v2beta1.ExternalMetricSource": { - "description": "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). Exactly one \"target\" type should be set.", + "v1.SelfSubjectReviewStatus": { + "description": "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.", "properties": { - "metricName": { - "description": "metricName is the name of the metric in question.", - "type": "string" - }, - "metricSelector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "metricSelector is used to identify a specific time series within a given metric." - }, - "targetAverageValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue." - }, - "targetValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue." + "userInfo": { + "$ref": "#/definitions/v1.UserInfo", + "description": "User attributes of the user making this request." } }, - "required": [ - "metricName" - ], "type": "object" }, - "v1.SubjectAccessReview": { - "description": "SubjectAccessReview checks whether or not a user or group can perform an action.", + "authentication.v1.TokenRequest": { + "description": "TokenRequest requests a token for a given service account.", "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", @@ -2869,15 +2904,15 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1.SubjectAccessReviewSpec", + "$ref": "#/definitions/v1.TokenRequestSpec", "description": "Spec holds information about the request being evaluated" }, "status": { - "$ref": "#/definitions/v1.SubjectAccessReviewStatus", - "description": "Status is filled in by the server and indicates whether the request is allowed or not" + "$ref": "#/definitions/v1.TokenRequestStatus", + "description": "Status is filled in by the server and indicates whether the token can be authenticated." } }, "required": [ @@ -2886,88 +2921,59 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "authorization.k8s.io", - "kind": "SubjectAccessReview", + "group": "authentication.k8s.io", + "kind": "TokenRequest", "version": "v1" } ] }, - "v1.EndpointSliceList": { - "description": "EndpointSliceList represents a list of endpoint slices", + "v1.TokenRequestSpec": { + "description": "TokenRequestSpec contains client provided parameters of a token request.", "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 endpoint slices", + "audiences": { + "description": "Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.", "items": { - "$ref": "#/definitions/v1.EndpointSlice" + "type": "string" }, - "type": "array" + "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" + "boundObjectRef": { + "$ref": "#/definitions/v1.BoundObjectReference", + "description": "BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation." }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata." + "expirationSeconds": { + "description": "ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.", + "format": "int64", + "type": "integer" } }, "required": [ - "items" + "audiences" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "discovery.k8s.io", - "kind": "EndpointSliceList", - "version": "v1" - } - ] + "type": "object" }, - "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.", + "v1.TokenRequestStatus": { + "description": "TokenRequestStatus is the result of a token request.", "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", + "expirationTimestamp": { + "description": "ExpirationTimestamp is the time of expiration of the returned token.", + "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", + "token": { + "description": "Token is the opaque bearer token.", "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata." - }, - "roleRef": { - "$ref": "#/definitions/v1.RoleRef", - "description": "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error." - }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "items": { - "$ref": "#/definitions/v1.Subject" - }, - "type": "array" } }, "required": [ - "roleRef" + "token", + "expirationTimestamp" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - ] + "type": "object" }, - "v1.LocalSubjectAccessReview": { - "description": "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.", + "v1.TokenReview": { + "description": "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.", "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", @@ -2979,15 +2985,15 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1.SubjectAccessReviewSpec", - "description": "Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted." + "$ref": "#/definitions/v1.TokenReviewSpec", + "description": "Spec holds information about the request being evaluated" }, "status": { - "$ref": "#/definitions/v1.SubjectAccessReviewStatus", - "description": "Status is filled in by the server and indicates whether the request is allowed or not" + "$ref": "#/definitions/v1.TokenReviewStatus", + "description": "Status is filled in by the server and indicates whether the request can be authenticated." } }, "required": [ @@ -2996,556 +3002,581 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "authorization.k8s.io", - "kind": "LocalSubjectAccessReview", - "version": "v1" + "group": "authentication.k8s.io", + "kind": "TokenReview", + "version": "v1" } ] }, - "v1.PersistentVolumeList": { - "description": "PersistentVolumeList is a list of PersistentVolume items.", + "v1.TokenReviewSpec": { + "description": "TokenReviewSpec is a description of the token authentication request.", "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 persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", + "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": { - "$ref": "#/definitions/v1.PersistentVolume" + "type": "string" }, - "type": "array" + "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", + "token": { + "description": "Token is the opaque bearer token.", "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "PersistentVolumeList", - "version": "v1" - } - ] + "type": "object" }, - "v1.IngressList": { - "description": "IngressList is a collection of Ingress.", + "v1.TokenReviewStatus": { + "description": "TokenReviewStatus is the result of the token authentication request.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of Ingress.", + "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": { - "$ref": "#/definitions/v1.Ingress" + "type": "string" }, - "type": "array" + "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", + "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" }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "user": { + "$ref": "#/definitions/v1.UserInfo", + "description": "User is the UserInfo associated with the provided token." } }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "networking.k8s.io", - "kind": "IngressList", - "version": "v1" - } - ] + "type": "object" }, - "v1.JobSpec": { - "description": "JobSpec describes how the job execution will look like.", + "v1.UserInfo": { + "description": "UserInfo holds the information about the user needed to implement the user.Info interface.", "properties": { - "activeDeadlineSeconds": { - "description": "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.", - "format": "int64", - "type": "integer" + "extra": { + "additionalProperties": { + "items": { + "type": "string" + }, + "type": "array" + }, + "description": "Any additional information provided by the authenticator.", + "type": "object" }, - "backoffLimit": { - "description": "Specifies the number of retries before marking this job failed. Defaults to 6", - "format": "int32", - "type": "integer" + "groups": { + "description": "The names of groups this user is a part of.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "completionMode": { - "description": "CompletionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.\n\n`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.\n\n`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)`.\n\nThis field is beta-level. More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, the controller skips updates for the Job.", + "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" }, - "completions": { - "description": "Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/", - "format": "int32", - "type": "integer" - }, - "manualSelector": { - "description": "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", - "type": "boolean" - }, - "parallelism": { - "description": "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/", - "format": "int32", - "type": "integer" - }, - "selector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" - }, - "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 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.\n\nThis field is beta-level, gated by SuspendJob feature flag (enabled by default).", - "type": "boolean" - }, - "template": { - "$ref": "#/definitions/v1.PodTemplateSpec", - "description": "Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/" - }, - "ttlSecondsAfterFinished": { - "description": "ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature.", - "format": "int32", - "type": "integer" + "username": { + "description": "The name that uniquely identifies this user among all active users.", + "type": "string" } }, - "required": [ - "template" - ], "type": "object" }, - "v2beta2.MetricStatus": { - "description": "MetricStatus describes the last-read state of a single metric.", + "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.", "properties": { - "containerResource": { - "$ref": "#/definitions/v2beta2.ContainerResourceMetricStatus", - "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." - }, - "external": { - "$ref": "#/definitions/v2beta2.ExternalMetricStatus", - "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." - }, - "object": { - "$ref": "#/definitions/v2beta2.ObjectMetricStatus", - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." - }, - "pods": { - "$ref": "#/definitions/v2beta2.PodsMetricStatus", - "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." - }, - "resource": { - "$ref": "#/definitions/v2beta2.ResourceMetricStatus", - "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." - }, - "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", + "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": "#/definitions/v1.FieldSelectorRequirement" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, - "required": [ - "type" - ], "type": "object" }, - "v1.LeaseList": { - "description": "LeaseList is a list of Lease objects.", + "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.", "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", + "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" }, - "items": { - "description": "Items is a list of schema objects.", + "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": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1.LabelSelectorRequirement" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.LocalSubjectAccessReview": { + "description": "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.", + "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": "#/definitions/v1.ListMeta", + "$ref": "#/definitions/v1.ObjectMeta", "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1.SubjectAccessReviewSpec", + "description": "Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted." + }, + "status": { + "$ref": "#/definitions/v1.SubjectAccessReviewStatus", + "description": "Status is filled in by the server and indicates whether the request is allowed or not" } }, "required": [ - "items" + "spec" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "coordination.k8s.io", - "kind": "LeaseList", + "group": "authorization.k8s.io", + "kind": "LocalSubjectAccessReview", "version": "v1" } ] }, - "v1.StatusDetails": { - "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.", + "v1.NonResourceAttributes": { + "description": "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface", "properties": { - "causes": { - "description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", + "path": { + "description": "Path is the URL path of the request", + "type": "string" + }, + "verb": { + "description": "Verb is the standard HTTP verb", + "type": "string" + } + }, + "type": "object" + }, + "v1.NonResourceRule": { + "description": "NonResourceRule holds information that describes a rule for the non-resource", + "properties": { + "nonResourceURLs": { + "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. \"*\" means all.", "items": { - "$ref": "#/definitions/v1.StatusCause" + "type": "string" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "verbs": { + "description": "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "verbs" + ], + "type": "object" + }, + "v1.ResourceAttributes": { + "description": "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface", + "properties": { + "fieldSelector": { + "$ref": "#/definitions/v1.FieldSelectorAttributes", + "description": "fieldSelector describes the limitation on access based on field. It can only limit access, not broaden it." }, "group": { - "description": "The group attribute of the resource associated with the status StatusReason.", + "description": "Group is the API Group of the Resource. \"*\" means all.", "type": "string" }, - "kind": { - "description": "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", - "type": "string" + "labelSelector": { + "$ref": "#/definitions/v1.LabelSelectorAttributes", + "description": "labelSelector describes the limitation on access based on labels. It can only limit access, not broaden it." }, "name": { - "description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", + "description": "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.", "type": "string" }, - "retryAfterSeconds": { - "description": "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.", - "format": "int32", - "type": "integer" + "namespace": { + "description": "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", + "type": "string" }, - "uid": { - "description": "UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "resource": { + "description": "Resource is one of the existing resource types. \"*\" means all.", + "type": "string" + }, + "subresource": { + "description": "Subresource is one of the existing resource types. \"\" means none.", + "type": "string" + }, + "verb": { + "description": "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", + "type": "string" + }, + "version": { + "description": "Version is the API Version of the Resource. \"*\" means all.", "type": "string" } }, "type": "object" }, - "v1.PortStatus": { + "v1.ResourceRule": { + "description": "ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", "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\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.", - "type": "string" + "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. \"*\" means all.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "port": { - "description": "Port is the port number of the service port of which status is recorded here", - "format": "int32", - "type": "integer" + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "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" + "resources": { + "description": "Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups.\n \"*/foo\" represents the subresource 'foo' for all resources in the specified apiGroups.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "verbs": { + "description": "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "required": [ - "port", - "protocol" + "verbs" ], "type": "object" }, - "v1.PersistentVolumeClaimTemplate": { - "description": "PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.", + "v1.SelfSubjectAccessReview": { + "description": "SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action", "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": "#/definitions/v1.ObjectMeta", - "description": "May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation." + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1.PersistentVolumeClaimSpec", - "description": "The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here." + "$ref": "#/definitions/v1.SelfSubjectAccessReviewSpec", + "description": "Spec holds information about the request being evaluated. user and groups must be empty" + }, + "status": { + "$ref": "#/definitions/v1.SubjectAccessReviewStatus", + "description": "Status is filled in by the server and indicates whether the request is allowed or not" } }, "required": [ "spec" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "SelfSubjectAccessReview", + "version": "v1" + } + ] }, - "v1.ContainerStateWaiting": { - "description": "ContainerStateWaiting is a waiting state of a container.", + "v1.SelfSubjectAccessReviewSpec": { + "description": "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", "properties": { - "message": { - "description": "Message regarding why the container is not yet running.", - "type": "string" + "nonResourceAttributes": { + "$ref": "#/definitions/v1.NonResourceAttributes", + "description": "NonResourceAttributes describes information for a non-resource access request" }, - "reason": { - "description": "(brief) reason the container is not yet running.", - "type": "string" + "resourceAttributes": { + "$ref": "#/definitions/v1.ResourceAttributes", + "description": "ResourceAuthorizationAttributes describes information for a resource access request" } }, "type": "object" }, - "v1.ConfigMapKeySelector": { - "description": "Selects a key from a ConfigMap.", + "v1.SelfSubjectRulesReview": { + "description": "SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.", "properties": { - "key": { - "description": "The key to select.", + "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" }, - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "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" }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1.SelfSubjectRulesReviewSpec", + "description": "Spec holds information about the request being evaluated." + }, + "status": { + "$ref": "#/definitions/v1.SubjectRulesReviewStatus", + "description": "Status is filled in by the server and indicates the set of actions a user can perform." } }, "required": [ - "key" + "spec" ], "type": "object", - "x-kubernetes-map-type": "atomic" + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "SelfSubjectRulesReview", + "version": "v1" + } + ] }, - "v1.APIServiceStatus": { - "description": "APIServiceStatus contains derived information about an API server", + "v1.SelfSubjectRulesReviewSpec": { + "description": "SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.", "properties": { - "conditions": { - "description": "Current service state of apiService.", - "items": { - "$ref": "#/definitions/v1.APIServiceCondition" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" + "namespace": { + "description": "Namespace to evaluate rules for. Required.", + "type": "string" } }, "type": "object" }, - "v1beta1.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 (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class", + "v1.SubjectAccessReview": { + "description": "SubjectAccessReview checks whether or not a user or group can perform an 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" }, - "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": "#/definitions/v1.ObjectMeta", - "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "overhead": { - "$ref": "#/definitions/v1beta1.Overhead", - "description": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature." + "spec": { + "$ref": "#/definitions/v1.SubjectAccessReviewSpec", + "description": "Spec holds information about the request being evaluated" }, - "scheduling": { - "$ref": "#/definitions/v1beta1.Scheduling", - "description": "Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes." + "status": { + "$ref": "#/definitions/v1.SubjectAccessReviewStatus", + "description": "Status is filled in by the server and indicates whether the request is allowed or not" } }, "required": [ - "handler" + "spec" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" + "group": "authorization.k8s.io", + "kind": "SubjectAccessReview", + "version": "v1" } ] }, - "v1.PersistentVolumeClaimStatus": { - "description": "PersistentVolumeClaimStatus is the current status of a persistent volume claim.", + "v1.SubjectAccessReviewSpec": { + "description": "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", "properties": { - "accessModes": { - "description": "AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", - "items": { - "type": "string" - }, - "type": "array" - }, - "capacity": { + "extra": { "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" + "items": { + "type": "string" + }, + "type": "array" }, - "description": "Represents the actual resources of the underlying volume.", + "description": "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.", "type": "object" }, - "conditions": { - "description": "Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'.", + "groups": { + "description": "Groups is the groups you're testing for.", "items": { - "$ref": "#/definitions/v1.PersistentVolumeClaimCondition" + "type": "string" }, "type": "array", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" + "x-kubernetes-list-type": "atomic" }, - "phase": { - "description": "Phase represents the current phase of PersistentVolumeClaim.", + "nonResourceAttributes": { + "$ref": "#/definitions/v1.NonResourceAttributes", + "description": "NonResourceAttributes describes information for a non-resource access request" + }, + "resourceAttributes": { + "$ref": "#/definitions/v1.ResourceAttributes", + "description": "ResourceAuthorizationAttributes describes information for a resource access request" + }, + "uid": { + "description": "UID information about the requesting user.", + "type": "string" + }, + "user": { + "description": "User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups", "type": "string" } }, "type": "object" }, - "v1.CustomResourceDefinitionSpec": { - "description": "CustomResourceDefinitionSpec describes how a user wants their resource to appear", + "v1.SubjectAccessReviewStatus": { + "description": "SubjectAccessReviewStatus", "properties": { - "conversion": { - "$ref": "#/definitions/v1.CustomResourceConversion", - "description": "conversion defines conversion settings for the CRD." - }, - "group": { - "description": "group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`).", - "type": "string" - }, - "names": { - "$ref": "#/definitions/v1.CustomResourceDefinitionNames", - "description": "names specify the resource and kind names for the custom resource." + "allowed": { + "description": "Allowed is required. True if the action would be allowed, false otherwise.", + "type": "boolean" }, - "preserveUnknownFields": { - "description": "preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details.", + "denied": { + "description": "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.", "type": "boolean" }, - "scope": { - "description": "scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`.", + "evaluationError": { + "description": "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", "type": "string" }, - "versions": { - "description": "versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.", - "items": { - "$ref": "#/definitions/v1.CustomResourceDefinitionVersion" - }, - "type": "array" + "reason": { + "description": "Reason is optional. It indicates why a request was allowed or denied.", + "type": "string" } }, "required": [ - "group", - "names", - "scope", - "versions" + "allowed" ], "type": "object" }, - "v2beta1.HorizontalPodAutoscalerCondition": { - "description": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.", + "v1.SubjectRulesReviewStatus": { + "description": "SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete.", "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 explanation containing details about the transition", + "evaluationError": { + "description": "EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.", "type": "string" }, - "reason": { - "description": "reason is the reason for the condition's last transition.", - "type": "string" + "incomplete": { + "description": "Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.", + "type": "boolean" }, - "status": { - "description": "status is the status of the condition (True, False, Unknown)", - "type": "string" + "nonResourceRules": { + "description": "NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "items": { + "$ref": "#/definitions/v1.NonResourceRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "type": { - "description": "type describes the current condition", - "type": "string" + "resourceRules": { + "description": "ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "items": { + "$ref": "#/definitions/v1.ResourceRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "required": [ - "type", - "status" + "resourceRules", + "nonResourceRules", + "incomplete" ], "type": "object" }, - "v1.ConfigMapProjection": { - "description": "Adapts a ConfigMap into a projected volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.", + "v1.CrossVersionObjectReference": { + "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", "properties": { - "items": { - "description": "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", - "items": { - "$ref": "#/definitions/v1.KeyToPath" - }, - "type": "array" + "apiVersion": { + "description": "apiVersion is the API version of the referent", + "type": "string" }, - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "kind": { + "description": "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, - "optional": { - "description": "Specify whether the ConfigMap or its keys must be defined", - "type": "boolean" + "name": { + "description": "name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" } }, - "type": "object" + "required": [ + "kind", + "name" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" }, - "v1beta1.PodDisruptionBudgetList": { - "description": "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.", + "v1.HorizontalPodAutoscaler": { + "description": "configuration of a horizontal pod autoscaler.", "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 list individual PodDisruptionBudget objects", - "items": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - }, - "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": "#/definitions/v1.ListMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1.HorizontalPodAutoscalerSpec", + "description": "spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." + }, + "status": { + "$ref": "#/definitions/v1.HorizontalPodAutoscalerStatus", + "description": "status is the current information about the autoscaler." } }, - "required": [ - "items" - ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "policy", - "kind": "PodDisruptionBudgetList", - "version": "v1beta1" + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" } ] }, - "v1beta1.AllowedHostPath": { - "description": "AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined.", - "properties": { - "pathPrefix": { - "description": "pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path.\n\nExamples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`", - "type": "string" - }, - "readOnly": { - "description": "when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.", - "type": "boolean" - } - }, - "type": "object" - }, - "v1.PodDisruptionBudgetList": { - "description": "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.", + "v1.HorizontalPodAutoscalerList": { + "description": "list of horizontal pod autoscaler objects.", "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 PodDisruptionBudgets", + "description": "items is the list of horizontal pod autoscaler objects.", "items": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" }, "type": "array" }, @@ -3555,7 +3586,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata." } }, "required": [ @@ -3564,34 +3595,78 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "policy", - "kind": "PodDisruptionBudgetList", + "group": "autoscaling", + "kind": "HorizontalPodAutoscalerList", "version": "v1" } ] }, - "v1.PodIP": { - "description": "IP address information for entries in the (plural) PodIPs field. Each entry includes:\n IP: An IP address allocated to the pod. Routable at least within the cluster.", + "v1.HorizontalPodAutoscalerSpec": { + "description": "specification of a horizontal pod autoscaler.", "properties": { - "ip": { - "description": "ip is an IP address (IPv4 or IPv6) assigned to the pod", - "type": "string" + "maxReplicas": { + "description": "maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.", + "format": "int32", + "type": "integer" + }, + "minReplicas": { + "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", + "format": "int32", + "type": "integer" + }, + "scaleTargetRef": { + "$ref": "#/definitions/v1.CrossVersionObjectReference", + "description": "reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource." + }, + "targetCPUUtilizationPercentage": { + "description": "targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.", + "format": "int32", + "type": "integer" } }, + "required": [ + "scaleTargetRef", + "maxReplicas" + ], "type": "object" }, - "v1.IngressStatus": { - "description": "IngressStatus describe the current state of the Ingress.", + "v1.HorizontalPodAutoscalerStatus": { + "description": "current status of a horizontal pod autoscaler", "properties": { - "loadBalancer": { - "$ref": "#/definitions/v1.LoadBalancerStatus", - "description": "LoadBalancer contains the current status of the load-balancer." + "currentCPUUtilizationPercentage": { + "description": "currentCPUUtilizationPercentage is the current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.", + "format": "int32", + "type": "integer" + }, + "currentReplicas": { + "description": "currentReplicas is the current number of replicas of pods managed by this autoscaler.", + "format": "int32", + "type": "integer" + }, + "desiredReplicas": { + "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler.", + "format": "int32", + "type": "integer" + }, + "lastScaleTime": { + "description": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.", + "format": "date-time", + "type": "string" + }, + "observedGeneration": { + "description": "observedGeneration is the most recent generation observed by this autoscaler.", + "format": "int64", + "type": "integer" } }, + "required": [ + "currentReplicas", + "desiredReplicas" + ], "type": "object" }, - "v1alpha1.Role": { - "description": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.22.", + "v1.Scale": { + "description": "Scale represents a scaling request for a resource.", "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", @@ -3603,207 +3678,213 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata." + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." }, - "rules": { - "description": "Rules holds all the PolicyRules for this Role", - "items": { - "$ref": "#/definitions/v1alpha1.PolicyRule" - }, - "type": "array" + "spec": { + "$ref": "#/definitions/v1.ScaleSpec", + "description": "spec defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." + }, + "status": { + "$ref": "#/definitions/v1.ScaleStatus", + "description": "status is the current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only." } }, "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" + "group": "autoscaling", + "kind": "Scale", + "version": "v1" } ] }, - "v1.VolumeError": { - "description": "VolumeError captures an error encountered during a volume operation.", + "v1.ScaleSpec": { + "description": "ScaleSpec describes the attributes of a scale subresource.", "properties": { - "message": { - "description": "String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.", - "type": "string" - }, - "time": { - "description": "Time the error was encountered.", - "format": "date-time", - "type": "string" + "replicas": { + "description": "replicas is the desired number of instances for the scaled object.", + "format": "int32", + "type": "integer" } }, "type": "object" }, - "v1.Sysctl": { - "description": "Sysctl defines a kernel parameter to be set", + "v1.ScaleStatus": { + "description": "ScaleStatus represents the current status of a scale subresource.", "properties": { - "name": { - "description": "Name of a property to set", - "type": "string" + "replicas": { + "description": "replicas is the actual number of observed instances of the scaled object.", + "format": "int32", + "type": "integer" }, - "value": { - "description": "Value of a property to set", + "selector": { + "description": "selector is the label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/", "type": "string" } }, "required": [ - "name", - "value" + "replicas" ], "type": "object" }, - "v1beta1.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.", + "v2.ContainerResourceMetricSource": { + "description": "ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", "properties": { - "group": { - "$ref": "#/definitions/v1beta1.GroupSubject", - "description": "`group` matches based on user group name." - }, - "kind": { - "description": "`kind` indicates which one of the other fields is non-empty. Required", + "container": { + "description": "container is the name of the container in the pods of the scaling target", "type": "string" }, - "serviceAccount": { - "$ref": "#/definitions/v1beta1.ServiceAccountSubject", - "description": "`serviceAccount` matches ServiceAccounts." + "name": { + "description": "name is the name of the resource in question.", + "type": "string" }, - "user": { - "$ref": "#/definitions/v1beta1.UserSubject", - "description": "`user` matches based on username." + "target": { + "$ref": "#/definitions/v2.MetricTarget", + "description": "target specifies the target value for the given metric" } }, "required": [ - "kind" + "name", + "target", + "container" ], - "type": "object", - "x-kubernetes-unions": [ - { - "discriminator": "kind", - "fields-to-discriminateBy": { - "group": "Group", - "serviceAccount": "ServiceAccount", - "user": "User" - } - } - ] + "type": "object" }, - "v1.TopologySpreadConstraint": { - "description": "TopologySpreadConstraint specifies how to spread matching pods among the given topology.", + "v2.ContainerResourceMetricStatus": { + "description": "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", "properties": { - "labelSelector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain." - }, - "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. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) 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" - }, - "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. It's a required field.", + "container": { + "description": "container is the name of the container in the pods of the scaling target", "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,\n but giving higher precedence to topologies that would help reduce the\n skew.\nA constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assigment 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.", + "current": { + "$ref": "#/definitions/v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "name": { + "description": "name is the name of the resource in question.", "type": "string" } }, "required": [ - "maxSkew", - "topologyKey", - "whenUnsatisfiable" + "name", + "current", + "container" ], "type": "object" }, - "v1.ValidatingWebhook": { - "description": "ValidatingWebhook describes an admission webhook and the resources and operations it applies to.", + "v2.CrossVersionObjectReference": { + "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", "properties": { - "admissionReviewVersions": { - "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.", - "items": { - "type": "string" - }, - "type": "array" - }, - "clientConfig": { - "$ref": "#/definitions/admissionregistration.v1.WebhookClientConfig", - "description": "ClientConfig defines how to communicate with the hook. Required" - }, - "failurePolicy": { - "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.", + "apiVersion": { + "description": "apiVersion is the API version of the referent", "type": "string" }, - "matchPolicy": { - "description": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- 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.\n\n- 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.\n\nDefaults to \"Equivalent\"", + "kind": { + "description": "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, "name": { - "description": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", + "description": "name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object" + }, + "v2.ExternalMetricSource": { + "description": "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).", + "properties": { + "metric": { + "$ref": "#/definitions/v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" }, - "namespaceSelector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." - }, - "objectSelector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + "target": { + "$ref": "#/definitions/v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "metric", + "target" + ], + "type": "object" + }, + "v2.ExternalMetricStatus": { + "description": "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.", + "properties": { + "current": { + "$ref": "#/definitions/v2.MetricValueStatus", + "description": "current contains the current value for the given metric" }, - "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": "#/definitions/v1.RuleWithOperations" - }, - "type": "array" + "metric": { + "$ref": "#/definitions/v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + } + }, + "required": [ + "metric", + "current" + ], + "type": "object" + }, + "v2.HPAScalingPolicy": { + "description": "HPAScalingPolicy is a single policy which must hold true for a specified past interval.", + "properties": { + "periodSeconds": { + "description": "periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).", + "format": "int32", + "type": "integer" }, - "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": { + "description": "type is used to specify the scaling policy.", "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.", + "value": { + "description": "value contains the amount of change which is permitted by the policy. It must be greater than zero", "format": "int32", "type": "integer" } }, "required": [ - "name", - "clientConfig", - "sideEffects", - "admissionReviewVersions" + "type", + "value", + "periodSeconds" ], "type": "object" }, - "v1.SubjectAccessReviewStatus": { - "description": "SubjectAccessReviewStatus", + "v2.HPAScalingRules": { + "description": "HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance.\n\nScaling 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.\n\nThe tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations. (Note that setting a tolerance requires enabling the alpha HPAConfigurableTolerance feature gate.)", "properties": { - "allowed": { - "description": "Allowed is required. True if the action would be allowed, false otherwise.", - "type": "boolean" - }, - "denied": { - "description": "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.", - "type": "boolean" + "policies": { + "description": "policies is a list of potential scaling polices which can be used during scaling. If not set, use the default values: - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window. - For scale down: allow all pods to be removed in a 15s window.", + "items": { + "$ref": "#/definitions/v2.HPAScalingPolicy" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "evaluationError": { - "description": "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", + "selectPolicy": { + "description": "selectPolicy is used to specify which policy should be used. If not set, the default value Max is used.", "type": "string" }, - "reason": { - "description": "Reason is optional. It indicates why a request was allowed or denied.", - "type": "string" + "stabilizationWindowSeconds": { + "description": "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).", + "format": "int32", + "type": "integer" + }, + "tolerance": { + "$ref": "#/definitions/resource.Quantity", + "description": "tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%).\n\nFor example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi.\n\nThis is an alpha field and requires enabling the HPAConfigurableTolerance feature gate." } }, - "required": [ - "allowed" - ], "type": "object" }, - "v1.PersistentVolumeClaim": { - "description": "PersistentVolumeClaim is a user's request for and claim to a persistent volume", + "v2.HorizontalPodAutoscaler": { + "description": "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.", "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", @@ -3815,223 +3896,276 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1.PersistentVolumeClaimSpec", - "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" + "$ref": "#/definitions/v2.HorizontalPodAutoscalerSpec", + "description": "spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." }, "status": { - "$ref": "#/definitions/v1.PersistentVolumeClaimStatus", - "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" + "$ref": "#/definitions/v2.HorizontalPodAutoscalerStatus", + "description": "status is the current information about the autoscaler." } }, "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" } ] }, - "v1alpha1.Scheduling": { - "description": "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.", + "v2.HorizontalPodAutoscalerBehavior": { + "description": "HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).", "properties": { - "nodeSelector": { - "additionalProperties": { - "type": "string" - }, - "description": "nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.", - "type": "object", - "x-kubernetes-map-type": "atomic" + "scaleDown": { + "$ref": "#/definitions/v2.HPAScalingRules", + "description": "scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used)." }, - "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": "#/definitions/v1.Toleration" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "scaleUp": { + "$ref": "#/definitions/v2.HPAScalingRules", + "description": "scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of:\n * increase no more than 4 pods per 60 seconds\n * double the number of pods per 60 seconds\nNo stabilization is used." } }, "type": "object" }, - "v1.NodeSelectorRequirement": { - "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "v2.HorizontalPodAutoscalerCondition": { + "description": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.", "properties": { - "key": { - "description": "The label key that the selector applies to.", + "lastTransitionTime": { + "description": "lastTransitionTime is the last time the condition transitioned from one status to another", + "format": "date-time", "type": "string" }, - "operator": { - "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "message": { + "description": "message is a human-readable explanation containing details about the transition", "type": "string" }, - "values": { - "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.", - "items": { - "type": "string" - }, - "type": "array" + "reason": { + "description": "reason is the reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "status is the status of the condition (True, False, Unknown)", + "type": "string" + }, + "type": { + "description": "type describes the current condition", + "type": "string" } }, "required": [ - "key", - "operator" + "type", + "status" ], "type": "object" }, - "v1.Volume": { - "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", + "v2.HorizontalPodAutoscalerList": { + "description": "HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.", "properties": { - "awsElasticBlockStore": { - "$ref": "#/definitions/v1.AWSElasticBlockStoreVolumeSource", - "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" - }, - "azureDisk": { - "$ref": "#/definitions/v1.AzureDiskVolumeSource", - "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod." - }, - "azureFile": { - "$ref": "#/definitions/v1.AzureFileVolumeSource", - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod." - }, - "cephfs": { - "$ref": "#/definitions/v1.CephFSVolumeSource", - "description": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime" + "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" }, - "cinder": { - "$ref": "#/definitions/v1.CinderVolumeSource", - "description": "Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md" + "items": { + "description": "items is the list of horizontal pod autoscaler objects.", + "items": { + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + }, + "type": "array" }, - "configMap": { - "$ref": "#/definitions/v1.ConfigMapVolumeSource", - "description": "ConfigMap represents a configMap that should populate this volume" + "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" }, - "csi": { - "$ref": "#/definitions/v1.CSIVolumeSource", - "description": "CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature)." - }, - "downwardAPI": { - "$ref": "#/definitions/v1.DownwardAPIVolumeSource", - "description": "DownwardAPI represents downward API about the pod that should populate this volume" - }, - "emptyDir": { - "$ref": "#/definitions/v1.EmptyDirVolumeSource", - "description": "EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir" - }, - "ephemeral": { - "$ref": "#/definitions/v1.EphemeralVolumeSource", - "description": "Ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed.\n\nUse this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity\n tracking are needed,\nc) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through\n a PersistentVolumeClaim (see EphemeralVolumeSource for more\n information on the connection between this volume type\n and PersistentVolumeClaim).\n\nUse PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod.\n\nUse CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information.\n\nA pod can use both types of ephemeral volumes and persistent volumes at the same time.\n\nThis is a beta feature and only available when the GenericEphemeralVolume feature gate is enabled." + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "metadata is the standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "HorizontalPodAutoscalerList", + "version": "v2" + } + ] + }, + "v2.HorizontalPodAutoscalerSpec": { + "description": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.", + "properties": { + "behavior": { + "$ref": "#/definitions/v2.HorizontalPodAutoscalerBehavior", + "description": "behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used." }, - "fc": { - "$ref": "#/definitions/v1.FCVolumeSource", - "description": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod." + "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.", + "format": "int32", + "type": "integer" }, - "flexVolume": { - "$ref": "#/definitions/v1.FlexVolumeSource", - "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin." + "metrics": { + "description": "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization.", + "items": { + "$ref": "#/definitions/v2.MetricSpec" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "flocker": { - "$ref": "#/definitions/v1.FlockerVolumeSource", - "description": "Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running" + "minReplicas": { + "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", + "format": "int32", + "type": "integer" }, - "gcePersistentDisk": { - "$ref": "#/definitions/v1.GCEPersistentDiskVolumeSource", - "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" + "scaleTargetRef": { + "$ref": "#/definitions/v2.CrossVersionObjectReference", + "description": "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count." + } + }, + "required": [ + "scaleTargetRef", + "maxReplicas" + ], + "type": "object" + }, + "v2.HorizontalPodAutoscalerStatus": { + "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", + "properties": { + "conditions": { + "description": "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.", + "items": { + "$ref": "#/definitions/v2.HorizontalPodAutoscalerCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" }, - "gitRepo": { - "$ref": "#/definitions/v1.GitRepoVolumeSource", - "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." + "currentMetrics": { + "description": "currentMetrics is the last read state of the metrics used by this autoscaler.", + "items": { + "$ref": "#/definitions/v2.MetricStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "glusterfs": { - "$ref": "#/definitions/v1.GlusterfsVolumeSource", - "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" + "currentReplicas": { + "description": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.", + "format": "int32", + "type": "integer" }, - "hostPath": { - "$ref": "#/definitions/v1.HostPathVolumeSource", - "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" + "desiredReplicas": { + "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.", + "format": "int32", + "type": "integer" }, - "iscsi": { - "$ref": "#/definitions/v1.ISCSIVolumeSource", - "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" + "lastScaleTime": { + "description": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.", + "format": "date-time", + "type": "string" }, + "observedGeneration": { + "description": "observedGeneration is the most recent generation observed by this autoscaler.", + "format": "int64", + "type": "integer" + } + }, + "required": [ + "desiredReplicas" + ], + "type": "object" + }, + "v2.MetricIdentifier": { + "description": "MetricIdentifier defines the name and optionally selector for a metric", + "properties": { "name": { - "description": "Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "description": "name is the name of the given metric", "type": "string" }, - "nfs": { - "$ref": "#/definitions/v1.NFSVolumeSource", - "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" - }, - "persistentVolumeClaim": { - "$ref": "#/definitions/v1.PersistentVolumeClaimVolumeSource", - "description": "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" - }, - "photonPersistentDisk": { - "$ref": "#/definitions/v1.PhotonPersistentDiskVolumeSource", - "description": "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine" - }, - "portworxVolume": { - "$ref": "#/definitions/v1.PortworxVolumeSource", - "description": "PortworxVolume represents a portworx volume attached and mounted on kubelets host machine" - }, - "projected": { - "$ref": "#/definitions/v1.ProjectedVolumeSource", - "description": "Items for all in one resources secrets, configmaps, and downward API" - }, - "quobyte": { - "$ref": "#/definitions/v1.QuobyteVolumeSource", - "description": "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime" + "selector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics." + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "v2.MetricSpec": { + "description": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).", + "properties": { + "containerResource": { + "$ref": "#/definitions/v2.ContainerResourceMetricSource", + "description": "containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." }, - "rbd": { - "$ref": "#/definitions/v1.RBDVolumeSource", - "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" + "external": { + "$ref": "#/definitions/v2.ExternalMetricSource", + "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." }, - "scaleIO": { - "$ref": "#/definitions/v1.ScaleIOVolumeSource", - "description": "ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes." + "object": { + "$ref": "#/definitions/v2.ObjectMetricSource", + "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." }, - "secret": { - "$ref": "#/definitions/v1.SecretVolumeSource", - "description": "Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret" + "pods": { + "$ref": "#/definitions/v2.PodsMetricSource", + "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." }, - "storageos": { - "$ref": "#/definitions/v1.StorageOSVolumeSource", - "description": "StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes." + "resource": { + "$ref": "#/definitions/v2.ResourceMetricSource", + "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." }, - "vsphereVolume": { - "$ref": "#/definitions/v1.VsphereVirtualDiskVolumeSource", - "description": "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine" + "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.", + "type": "string" } }, "required": [ - "name" + "type" ], "type": "object" }, - "v1beta1.RunAsGroupStrategyOptions": { - "description": "RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy.", + "v2.MetricStatus": { + "description": "MetricStatus describes the last-read state of a single metric.", "properties": { - "ranges": { - "description": "ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.", - "items": { - "$ref": "#/definitions/v1beta1.IDRange" - }, - "type": "array" + "containerResource": { + "$ref": "#/definitions/v2.ContainerResourceMetricStatus", + "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." }, - "rule": { - "description": "rule is the strategy that will dictate the allowable RunAsGroup values that may be set.", + "external": { + "$ref": "#/definitions/v2.ExternalMetricStatus", + "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." + }, + "object": { + "$ref": "#/definitions/v2.ObjectMetricStatus", + "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." + }, + "pods": { + "$ref": "#/definitions/v2.PodsMetricStatus", + "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." + }, + "resource": { + "$ref": "#/definitions/v2.ResourceMetricStatus", + "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." + }, + "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.", "type": "string" } }, "required": [ - "rule" + "type" ], "type": "object" }, - "v2beta2.MetricTarget": { + "v2.MetricTarget": { "description": "MetricTarget defines the target value, average value, or average utilization of a specific metric", "properties": { "averageUtilization": { @@ -4057,82 +4191,187 @@ ], "type": "object" }, - "v1.ReplicaSetCondition": { - "description": "ReplicaSetCondition describes the state of a replica set at a certain point.", + "v2.MetricValueStatus": { + "description": "MetricValueStatus holds the current value for a metric", "properties": { - "lastTransitionTime": { - "description": "The last time the condition transitioned from one status to another.", - "format": "date-time", - "type": "string" + "averageUtilization": { + "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", + "format": "int32", + "type": "integer" }, - "message": { - "description": "A human readable message indicating details about the transition.", - "type": "string" + "averageValue": { + "$ref": "#/definitions/resource.Quantity", + "description": "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)" }, - "reason": { - "description": "The reason for the condition's last transition.", - "type": "string" + "value": { + "$ref": "#/definitions/resource.Quantity", + "description": "value is the current value of the metric (as a quantity)." + } + }, + "type": "object" + }, + "v2.ObjectMetricSource": { + "description": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", + "properties": { + "describedObject": { + "$ref": "#/definitions/v2.CrossVersionObjectReference", + "description": "describedObject specifies the descriptions of a object,such as kind,name apiVersion" }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", - "type": "string" + "metric": { + "$ref": "#/definitions/v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" }, - "type": { - "description": "Type of replica set condition.", - "type": "string" + "target": { + "$ref": "#/definitions/v2.MetricTarget", + "description": "target specifies the target value for the given metric" } }, "required": [ - "type", - "status" + "describedObject", + "target", + "metric" ], "type": "object" }, - "v1.VolumeMount": { - "description": "VolumeMount describes a mounting of a Volume within a container.", + "v2.ObjectMetricStatus": { + "description": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", "properties": { - "mountPath": { - "description": "Path within the container at which the volume should be mounted. Must not contain ':'.", - "type": "string" + "current": { + "$ref": "#/definitions/v2.MetricValueStatus", + "description": "current contains the current value for the given metric" }, - "mountPropagation": { - "description": "mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10.", - "type": "string" + "describedObject": { + "$ref": "#/definitions/v2.CrossVersionObjectReference", + "description": "DescribedObject specifies the descriptions of a object,such as kind,name apiVersion" }, - "name": { - "description": "This must match the Name of a Volume.", - "type": "string" + "metric": { + "$ref": "#/definitions/v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + } + }, + "required": [ + "metric", + "current", + "describedObject" + ], + "type": "object" + }, + "v2.PodsMetricSource": { + "description": "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", + "properties": { + "metric": { + "$ref": "#/definitions/v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" }, - "readOnly": { - "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.", - "type": "boolean" + "target": { + "$ref": "#/definitions/v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "metric", + "target" + ], + "type": "object" + }, + "v2.PodsMetricStatus": { + "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", + "properties": { + "current": { + "$ref": "#/definitions/v2.MetricValueStatus", + "description": "current contains the current value for the given metric" }, - "subPath": { - "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).", + "metric": { + "$ref": "#/definitions/v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + } + }, + "required": [ + "metric", + "current" + ], + "type": "object" + }, + "v2.ResourceMetricSource": { + "description": "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", + "properties": { + "name": { + "description": "name is the name of the resource in question.", "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.", + "target": { + "$ref": "#/definitions/v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "name", + "target" + ], + "type": "object" + }, + "v2.ResourceMetricStatus": { + "description": "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", + "properties": { + "current": { + "$ref": "#/definitions/v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "name": { + "description": "name is the name of the resource in question.", "type": "string" } }, "required": [ "name", - "mountPath" + "current" ], "type": "object" }, - "v1.NamespaceList": { - "description": "NamespaceList is a list of Namespaces.", + "v1.CronJob": { + "description": "CronJob represents the configuration of a single cron job.", + "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": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1.CronJobSpec", + "description": "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/v1.CronJobStatus", + "description": "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "CronJob", + "version": "v1" + } + ] + }, + "v1.CronJobList": { + "description": "CronJobList is a collection of cron jobs.", "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 Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", + "description": "items is the list of CronJobs.", "items": { - "$ref": "#/definitions/v1.Namespace" + "$ref": "#/definitions/v1.CronJob" }, "type": "array" }, @@ -4142,7 +4381,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ @@ -4151,335 +4390,565 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "", - "kind": "NamespaceList", + "group": "batch", + "kind": "CronJobList", "version": "v1" } ] }, - "v1.LeaseSpec": { - "description": "LeaseSpec is a specification of a Lease.", + "v1.CronJobSpec": { + "description": "CronJobSpec describes how the job execution will look like and when it will actually run.", "properties": { - "acquireTime": { - "description": "acquireTime is a time when the current lease was acquired.", - "format": "date-time", + "concurrencyPolicy": { + "description": "Specifies how to treat concurrent executions of a Job. Valid values are:\n\n- \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one", "type": "string" }, - "holderIdentity": { - "description": "holderIdentity contains the identity of the holder of a current lease.", + "failedJobsHistoryLimit": { + "description": "The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1.", + "format": "int32", + "type": "integer" + }, + "jobTemplate": { + "$ref": "#/definitions/v1.JobTemplateSpec", + "description": "Specifies the job that will be created when executing a CronJob." + }, + "schedule": { + "description": "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.", "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", + "startingDeadlineSeconds": { + "description": "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.", + "format": "int64", "type": "integer" }, - "leaseTransitions": { - "description": "leaseTransitions is the number of transitions of a lease between holders.", + "successfulJobsHistoryLimit": { + "description": "The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3.", "format": "int32", "type": "integer" }, - "renewTime": { - "description": "renewTime is a time when the current holder of a lease has last updated the lease.", + "suspend": { + "description": "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", + "type": "boolean" + }, + "timeZone": { + "description": "The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones", + "type": "string" + } + }, + "required": [ + "schedule", + "jobTemplate" + ], + "type": "object" + }, + "v1.CronJobStatus": { + "description": "CronJobStatus represents the current state of a cron job.", + "properties": { + "active": { + "description": "A list of pointers to currently running jobs.", + "items": { + "$ref": "#/definitions/v1.ObjectReference" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "lastScheduleTime": { + "description": "Information when was the last time the job was successfully scheduled.", + "format": "date-time", + "type": "string" + }, + "lastSuccessfulTime": { + "description": "Information when was the last time the job successfully completed.", "format": "date-time", "type": "string" } }, "type": "object" }, - "v1.EndpointsList": { - "description": "EndpointsList is a list of endpoints.", + "v1.Job": { + "description": "Job represents the configuration of a single job.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, - "items": { - "description": "List of endpoints.", - "items": { - "$ref": "#/definitions/v1.Endpoints" - }, - "type": "array" - }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1.JobSpec", + "description": "Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/v1.JobStatus", + "description": "Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, - "required": [ - "items" - ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "", - "kind": "EndpointsList", + "group": "batch", + "kind": "Job", "version": "v1" } ] }, - "v1.Container": { - "description": "A single application container that you want to run within a pod.", + "v1.JobCondition": { + "description": "JobCondition describes current state of a job.", "properties": { - "args": { - "description": "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. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array" - }, - "command": { - "description": "Entrypoint array. Not executed within a shell. The 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. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array" - }, - "env": { - "description": "List of environment variables to set in the container. Cannot be updated.", - "items": { - "$ref": "#/definitions/v1.EnvVar" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" - }, - "envFrom": { - "description": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", - "items": { - "$ref": "#/definitions/v1.EnvFromSource" - }, - "type": "array" - }, - "image": { - "description": "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.", + "lastProbeTime": { + "description": "Last time the condition was checked.", + "format": "date-time", "type": "string" }, - "imagePullPolicy": { - "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images", + "lastTransitionTime": { + "description": "Last time the condition transit from one status to another.", + "format": "date-time", "type": "string" }, - "lifecycle": { - "$ref": "#/definitions/v1.Lifecycle", - "description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated." + "message": { + "description": "Human readable message indicating details about last transition.", + "type": "string" }, - "livenessProbe": { - "$ref": "#/definitions/v1.Probe", - "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" + "reason": { + "description": "(brief) reason for the condition's last transition.", + "type": "string" }, - "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.", + "status": { + "description": "Status of the condition, one of True, False, Unknown.", "type": "string" }, - "ports": { - "description": "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.", + "type": { + "description": "Type of job condition, Complete or Failed.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "v1.JobList": { + "description": "JobList is a collection of jobs.", + "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 Jobs.", "items": { - "$ref": "#/definitions/v1.ContainerPort" + "$ref": "#/definitions/v1.Job" }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "containerPort", - "protocol" - ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "containerPort", - "x-kubernetes-patch-strategy": "merge" + "type": "array" }, - "readinessProbe": { - "$ref": "#/definitions/v1.Probe", - "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" + "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" }, - "resources": { - "$ref": "#/definitions/v1.ResourceRequirements", - "description": "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "JobList", + "version": "v1" + } + ] + }, + "v1.JobSpec": { + "description": "JobSpec describes how the job execution will look like.", + "properties": { + "activeDeadlineSeconds": { + "description": "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.", + "format": "int64", + "type": "integer" }, - "securityContext": { - "$ref": "#/definitions/v1.SecurityContext", - "description": "SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/" + "backoffLimit": { + "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" }, - "startupProbe": { - "$ref": "#/definitions/v1.Probe", - "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. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + "backoffLimitPerIndex": { + "description": "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.", + "format": "int32", + "type": "integer" }, - "stdin": { - "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", - "type": "boolean" + "completionMode": { + "description": "completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.\n\n`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.\n\n`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)`.\n\nMore 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.", + "type": "string" }, - "stdinOnce": { - "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", - "type": "boolean" + "completions": { + "description": "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/", + "format": "int32", + "type": "integer" }, - "terminationMessagePath": { - "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", + "managedBy": { + "description": "ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first \"/\" must be a valid subdomain as defined by RFC 1123. All characters trailing the first \"/\" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.\n\nThis field is beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default).", "type": "string" }, - "terminationMessagePolicy": { - "description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.", + "manualSelector": { + "description": "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", + "type": "boolean" + }, + "maxFailedIndexes": { + "description": "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.", + "format": "int32", + "type": "integer" + }, + "parallelism": { + "description": "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/", + "format": "int32", + "type": "integer" + }, + "podFailurePolicy": { + "$ref": "#/definitions/v1.PodFailurePolicy", + "description": "Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure." + }, + "podReplacementPolicy": { + "description": "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\n when they are terminating (has a metadata.deletionTimestamp) or failed.\n- Failed means to wait until a previously created Pod is fully terminated (has phase\n Failed or Succeeded) before creating a replacement Pod.\n\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use.", "type": "string" }, - "tty": { - "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", + "selector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + }, + "successPolicy": { + "$ref": "#/definitions/v1.SuccessPolicy", + "description": "successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated." + }, + "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 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.", "type": "boolean" }, - "volumeDevices": { - "description": "volumeDevices is the list of block devices to be used by the container.", + "template": { + "$ref": "#/definitions/v1.PodTemplateSpec", + "description": "Describes the pod that will be created when executing a job. The only allowed template.spec.restartPolicy values are \"Never\" or \"OnFailure\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/" + }, + "ttlSecondsAfterFinished": { + "description": "ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "template" + ], + "type": "object" + }, + "v1.JobStatus": { + "description": "JobStatus represents the current state of a Job.", + "properties": { + "active": { + "description": "The number of pending and running pods which are not terminating (without a deletionTimestamp). The value is zero for finished jobs.", + "format": "int32", + "type": "integer" + }, + "completedIndexes": { + "description": "completedIndexes holds the completed indexes when .spec.completionMode = \"Indexed\" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\".", + "type": "string" + }, + "completionTime": { + "description": "Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is set when the job finishes successfully, and only then. The value cannot be updated or removed. The value indicates the same or later point in time as the startTime field.", + "format": "date-time", + "type": "string" + }, + "conditions": { + "description": "The latest available observations of an object's current state. When a Job fails, one of the conditions will have type \"Failed\" and status true. When a Job is suspended, one of the conditions will have type \"Suspended\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \"Complete\" and status true.\n\nA 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.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", "items": { - "$ref": "#/definitions/v1.VolumeDevice" + "$ref": "#/definitions/v1.JobCondition" }, "type": "array", - "x-kubernetes-patch-merge-key": "devicePath", + "x-kubernetes-list-type": "atomic", + "x-kubernetes-patch-merge-key": "type", "x-kubernetes-patch-strategy": "merge" }, - "volumeMounts": { - "description": "Pod volumes to mount into the container's filesystem. Cannot be updated.", + "failed": { + "description": "The number of pods which reached phase Failed. The value increases monotonically.", + "format": "int32", + "type": "integer" + }, + "failedIndexes": { + "description": "FailedIndexes holds the failed indexes when 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 active pods which have a Ready condition and are not terminating (without a deletionTimestamp).", + "format": "int32", + "type": "integer" + }, + "startTime": { + "description": "Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC.\n\nOnce set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished.", + "format": "date-time", + "type": "string" + }, + "succeeded": { + "description": "The number of pods which reached phase Succeeded. The value increases monotonically for a given spec. However, it may decrease in reaction to scale down of elastic indexed jobs.", + "format": "int32", + "type": "integer" + }, + "terminating": { + "description": "The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).\n\nThis field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default).", + "format": "int32", + "type": "integer" + }, + "uncountedTerminatedPods": { + "$ref": "#/definitions/v1.UncountedTerminatedPods", + "description": "uncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.\n\nThe job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status:\n\n1. Add the pod UID to the arrays in this field. 2. Remove the pod finalizer. 3. Remove the pod UID from the arrays while increasing the corresponding\n counter.\n\nOld jobs might not be tracked using this field, in which case the field remains null. The structure is empty for finished jobs." + } + }, + "type": "object" + }, + "v1.JobTemplateSpec": { + "description": "JobTemplateSpec describes the data a Job should have when created from a template", + "properties": { + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1.JobSpec", + "description": "Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object" + }, + "v1.PodFailurePolicy": { + "description": "PodFailurePolicy describes how failed pods influence the backoffLimit.", + "properties": { + "rules": { + "description": "A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.", "items": { - "$ref": "#/definitions/v1.VolumeMount" + "$ref": "#/definitions/v1.PodFailurePolicyRule" }, "type": "array", - "x-kubernetes-patch-merge-key": "mountPath", - "x-kubernetes-patch-strategy": "merge" - }, - "workingDir": { - "description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", - "type": "string" + "x-kubernetes-list-type": "atomic" } }, "required": [ - "name" + "rules" ], "type": "object" }, - "v1.LimitRangeSpec": { - "description": "LimitRangeSpec defines a min/max usage limit for resources that match on kind.", + "v1.PodFailurePolicyOnExitCodesRequirement": { + "description": "PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check.", "properties": { - "limits": { - "description": "Limits is the list of LimitRangeItem objects that are enforced.", + "containerName": { + "description": "Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template.", + "type": "string" + }, + "operator": { + "description": "Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are:\n\n- In: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is in the set of specified values.\n- NotIn: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is not in the set of specified values.\nAdditional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied.", + "type": "string" + }, + "values": { + "description": "Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed.", "items": { - "$ref": "#/definitions/v1.LimitRangeItem" + "format": "int32", + "type": "integer" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "set" } }, "required": [ - "limits" + "operator", + "values" ], "type": "object" }, - "v1.IngressClassSpec": { - "description": "IngressClassSpec provides information about the class of an Ingress.", + "v1.PodFailurePolicyOnPodConditionsPattern": { + "description": "PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.", "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.", + "status": { + "description": "Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.", "type": "string" }, - "parameters": { - "$ref": "#/definitions/v1.IngressClassParametersReference", - "description": "Parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters." + "type": { + "description": "Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.", + "type": "string" } }, + "required": [ + "type", + "status" + ], "type": "object" }, - "v1.Status": { - "description": "Status is a return value for calls that don't return other objects.", + "v1.PodFailurePolicyRule": { + "description": "PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule.", "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", + "action": { + "description": "Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are:\n\n- FailJob: indicates that the pod's job is marked as Failed and all\n running pods are terminated.\n- FailIndex: indicates that the pod's index is marked as Failed and will\n not be restarted.\n- Ignore: indicates that the counter towards the .backoffLimit is not\n incremented and a replacement pod is created.\n- Count: indicates that the pod is handled in the default way - the\n counter towards the .backoffLimit is incremented.\nAdditional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.", "type": "string" }, - "code": { - "description": "Suggested HTTP return code for this status, 0 if not set.", + "onExitCodes": { + "$ref": "#/definitions/v1.PodFailurePolicyOnExitCodesRequirement", + "description": "Represents the requirement on the container exit codes." + }, + "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": "#/definitions/v1.PodFailurePolicyOnPodConditionsPattern" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "action" + ], + "type": "object" + }, + "v1.SuccessPolicy": { + "description": "SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.", + "properties": { + "rules": { + "description": "rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"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": "#/definitions/v1.SuccessPolicyRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "rules" + ], + "type": "object" + }, + "v1.SuccessPolicyRule": { + "description": "SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the \"succeededIndexes\" or \"succeededCount\" specified.", + "properties": { + "succeededCount": { + "description": "succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job. When succeededCount is used along with succeededIndexes, the check is constrained only to the set of indexes specified by succeededIndexes. For example, given that succeededIndexes is \"1-4\", succeededCount is \"3\", and completed indexes are \"1\", \"3\", and \"5\", the Job isn't declared as succeeded because only \"1\" and \"3\" indexes are considered in that rules. When this field is null, this doesn't default to any value and is never evaluated at any time. When specified it needs to be a positive integer.", "format": "int32", "type": "integer" }, - "details": { - "$ref": "#/definitions/v1.StatusDetails", - "description": "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type." + "succeededIndexes": { + "description": "succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job. The list of indexes must be within 0 to \".spec.completions-1\" and must not contain duplicates. At least one element is required. The indexes are represented as intervals separated by commas. The intervals can be a decimal integer or a pair of decimal integers separated by a hyphen. The number are listed in represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". When this field is null, this field doesn't default to any value and is never evaluated at any time.", + "type": "string" + } + }, + "type": "object" + }, + "v1.UncountedTerminatedPods": { + "description": "UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.", + "properties": { + "failed": { + "description": "failed holds UIDs of failed Pods.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "succeeded": { + "description": "succeeded holds UIDs of succeeded Pods.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "type": "object" + }, + "v1.CertificateSigningRequest": { + "description": "CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued.\n\nKubelets use this API to obtain:\n 1. client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client-kubelet\" signerName).\n 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the \"kubernetes.io/kubelet-serving\" signerName).\n\nThis API can be used to request client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client\" signerName), or to obtain certificates from custom non-Kubernetes signers.", + "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" }, - "message": { - "description": "A human-readable description of the status of this operation.", + "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": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + "$ref": "#/definitions/v1.ObjectMeta" }, - "reason": { - "description": "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.", - "type": "string" + "spec": { + "$ref": "#/definitions/v1.CertificateSigningRequestSpec", + "description": "spec contains the certificate request, and is immutable after creation. Only the request, signerName, expirationSeconds, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users." }, "status": { - "description": "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", - "type": "string" + "$ref": "#/definitions/v1.CertificateSigningRequestStatus", + "description": "status contains information about whether the request is approved or denied, and the certificate issued by the signer, or the failure condition indicating signer failure." } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "", - "kind": "Status", + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", "version": "v1" } ] }, - "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/", + "v1.CertificateSigningRequestCondition": { + "description": "CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object", "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", + "lastTransitionTime": { + "description": "lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time.", + "format": "date-time", "type": "string" }, - "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.", + "lastUpdateTime": { + "description": "lastUpdateTime is the time of the last update to this condition", + "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", + "message": { + "description": "message contains a human readable message with details about the request state", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "reason": { + "description": "reason indicates a brief reason for the request state", + "type": "string" }, - "overhead": { - "$ref": "#/definitions/v1.Overhead", - "description": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see\n https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/\nThis field is in beta starting v1.18 and is only honored by servers that enable the PodOverhead feature." + "status": { + "description": "status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\".", + "type": "string" }, - "scheduling": { - "$ref": "#/definitions/v1.Scheduling", - "description": "Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes." + "type": { + "description": "type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\".\n\nAn \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer.\n\nA \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer.\n\nA \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate.\n\nApproved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added.\n\nOnly one condition of a given type is allowed.", + "type": "string" } }, "required": [ - "handler" + "type", + "status" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1" - } - ] + "type": "object" }, - "v1.IngressClassList": { - "description": "IngressClassList is a collection of IngressClasses.", + "v1.CertificateSigningRequestList": { + "description": "CertificateSigningRequestList is a collection of CertificateSigningRequest objects", "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 IngressClasses.", + "description": "items is a collection of CertificateSigningRequest objects", "items": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1.CertificateSigningRequest" }, "type": "array" }, @@ -4488,8 +4957,7 @@ "type": "string" }, "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata." + "$ref": "#/definitions/v1.ListMeta" } }, "required": [ @@ -4498,180 +4966,180 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "networking.k8s.io", - "kind": "IngressClassList", + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequestList", "version": "v1" } ] }, - "v1.ContainerState": { - "description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.", - "properties": { - "running": { - "$ref": "#/definitions/v1.ContainerStateRunning", - "description": "Details about a running container" - }, - "terminated": { - "$ref": "#/definitions/v1.ContainerStateTerminated", - "description": "Details about a terminated container" - }, - "waiting": { - "$ref": "#/definitions/v1.ContainerStateWaiting", - "description": "Details about a waiting container" - } - }, - "type": "object" - }, - "v1.DeploymentSpec": { - "description": "DeploymentSpec is the specification of the desired behavior of the Deployment.", + "v1.CertificateSigningRequestSpec": { + "description": "CertificateSigningRequestSpec contains the certificate request.", "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)", + "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.\n\nThe 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.\n\nCertificate signers may not honor this field for various reasons:\n\n 1. Old signer that is unaware of the field (such as the in-tree\n implementations prior to v1.22)\n 2. Signer whose configured maximum is shorter than the requested duration\n 3. Signer whose configured minimum is longer than the requested duration\n\nThe minimum valid value for expirationSeconds is 600, i.e. 10 minutes.", "format": "int32", "type": "integer" }, - "paused": { - "description": "Indicates that the deployment is paused.", - "type": "boolean" + "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" }, - "progressDeadlineSeconds": { - "description": "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.", - "format": "int32", - "type": "integer" + "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" }, - "replicas": { - "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", - "format": "int32", - "type": "integer" + "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", + "type": "string", + "x-kubernetes-list-type": "atomic" }, - "revisionHistoryLimit": { - "description": "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.", - "format": "int32", - "type": "integer" + "signerName": { + "description": "signerName indicates the requested signer, and is a qualified name.\n\nList/watch requests for CertificateSigningRequests can filter on this field using a \"spec.signerName=NAME\" fieldSelector.\n\nWell-known Kubernetes signers are:\n 1. \"kubernetes.io/kube-apiserver-client\": issues client certificates that can be used to authenticate to kube-apiserver.\n Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the \"csrsigning\" controller in kube-controller-manager.\n 2. \"kubernetes.io/kube-apiserver-client-kubelet\": issues client certificates that kubelets use to authenticate to kube-apiserver.\n 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.\n 3. \"kubernetes.io/kubelet-serving\" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely.\n Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager.\n\nMore details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers\n\nCustom signerNames can also be specified. The signer defines:\n 1. Trust distribution: how trust (CA bundles) are distributed.\n 2. Permitted subjects: and behavior when a disallowed subject is requested.\n 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.\n 4. Required, permitted, or forbidden key usages / extended key usages.\n 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin.\n 6. Whether or not requests for CA certificates are allowed.", + "type": "string" }, - "selector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels." + "uid": { + "description": "uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "type": "string" }, - "strategy": { - "$ref": "#/definitions/v1.DeploymentStrategy", - "description": "The deployment strategy to use to replace existing pods with new ones.", - "x-kubernetes-patch-strategy": "retainKeys" + "usages": { + "description": "usages specifies a set of key usages requested in the issued certificate.\n\nRequests for TLS client certificates typically request: \"digital signature\", \"key encipherment\", \"client auth\".\n\nRequests for TLS serving certificates typically request: \"key encipherment\", \"digital signature\", \"server auth\".\n\nValid values are:\n \"signing\", \"digital signature\", \"content commitment\",\n \"key encipherment\", \"key agreement\", \"data encipherment\",\n \"cert sign\", \"crl sign\", \"encipher only\", \"decipher only\", \"any\",\n \"server auth\", \"client auth\",\n \"code signing\", \"email protection\", \"s/mime\",\n \"ipsec end system\", \"ipsec tunnel\", \"ipsec user\",\n \"timestamping\", \"ocsp signing\", \"microsoft sgc\", \"netscape sgc\"", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "template": { - "$ref": "#/definitions/v1.PodTemplateSpec", - "description": "Template describes the pods that will be created." + "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": [ - "selector", - "template" + "request", + "signerName" ], "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.", + "v1.CertificateSigningRequestStatus": { + "description": "CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate.", + "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.\n\nIf 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.\n\nValidation requirements:\n 1. certificate must contain one or more PEM blocks.\n 2. All PEM blocks must have the \"CERTIFICATE\" label, contain no headers, and the encoded data\n must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280.\n 3. Non-PEM content may appear before or after the \"CERTIFICATE\" PEM blocks and is unvalidated,\n to allow for explanatory text as described in section 5.2 of RFC7468.\n\nIf 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.\n\nThe certificate is encoded in PEM format.\n\nWhen serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of:\n\n base64(\n -----BEGIN CERTIFICATE-----\n ...\n -----END CERTIFICATE-----\n )", + "format": "byte", + "type": "string", + "x-kubernetes-list-type": "atomic" + }, + "conditions": { + "description": "conditions applied to the request. Known conditions are \"Approved\", \"Denied\", and \"Failed\".", + "items": { + "$ref": "#/definitions/v1.CertificateSigningRequestCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object" + }, + "v1alpha1.ClusterTrustBundle": { + "description": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle 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.\n\nIt 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": { "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": "#/definitions/v1.DeleteOptions", - "description": "DeleteOptions may be provided" - }, "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": "#/definitions/v1.ObjectMeta", - "description": "ObjectMeta describes the pod that is being evicted." + "description": "metadata contains the object metadata." + }, + "spec": { + "$ref": "#/definitions/v1alpha1.ClusterTrustBundleSpec", + "description": "spec contains the signer (if any) and trust anchors." } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "policy", - "kind": "Eviction", - "version": "v1" + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1alpha1" } ] }, - "v1.PodDNSConfig": { - "description": "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.", + "v1alpha1.ClusterTrustBundleList": { + "description": "ClusterTrustBundleList is a collection of ClusterTrustBundle objects", "properties": { - "nameservers": { - "description": "A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.", - "items": { - "type": "string" - }, - "type": "array" + "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" }, - "options": { - "description": "A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.", + "items": { + "description": "items is a collection of ClusterTrustBundle objects", "items": { - "$ref": "#/definitions/v1.PodDNSConfigOption" + "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" }, "type": "array" }, - "searches": { - "description": "A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.", - "items": { - "type": "string" - }, - "type": "array" + "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": "#/definitions/v1.ListMeta", + "description": "metadata contains the list metadata." } }, - "type": "object" + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundleList", + "version": "v1alpha1" + } + ] }, - "v2beta1.HorizontalPodAutoscalerStatus": { - "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", + "v1alpha1.ClusterTrustBundleSpec": { + "description": "ClusterTrustBundleSpec contains the signer and trust anchors.", "properties": { - "conditions": { - "description": "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.", - "items": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscalerCondition" - }, - "type": "array" - }, - "currentMetrics": { - "description": "currentMetrics is the last read state of the metrics used by this autoscaler.", - "items": { - "$ref": "#/definitions/v2beta1.MetricStatus" - }, - "type": "array" - }, - "currentReplicas": { - "description": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.", - "format": "int32", - "type": "integer" - }, - "desiredReplicas": { - "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.", - "format": "int32", - "type": "integer" - }, - "lastScaleTime": { - "description": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.", - "format": "date-time", + "signerName": { + "description": "signerName indicates the associated signer, if any.\n\nIn 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.\n\nIf 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`.\n\nIf signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.\n\nList/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.", "type": "string" }, - "observedGeneration": { - "description": "observedGeneration is the most recent generation observed by this autoscaler.", - "format": "int64", - "type": "integer" + "trustBundle": { + "description": "trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.\n\nThe 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.\n\nUsers 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": [ - "currentReplicas", - "desiredReplicas", - "conditions" + "trustBundle" ], "type": "object" }, - "v1alpha1.VolumeAttachment": { - "description": "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node.\n\nVolumeAttachment objects are non-namespaced.", + "v1alpha1.PodCertificateRequest": { + "description": "PodCertificateRequest encodes a pod requesting a certificate from a given signer.\n\nKubelets use this API to implement podCertificate projected volumes", "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", @@ -4683,15 +5151,15 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata contains the object metadata." }, "spec": { - "$ref": "#/definitions/v1alpha1.VolumeAttachmentSpec", - "description": "Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system." + "$ref": "#/definitions/v1alpha1.PodCertificateRequestSpec", + "description": "spec contains the details about the certificate being requested." }, "status": { - "$ref": "#/definitions/v1alpha1.VolumeAttachmentStatus", - "description": "Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher." + "$ref": "#/definitions/v1alpha1.PodCertificateRequestStatus", + "description": "status contains the issued certificate, and a standard set of conditions." } }, "required": [ @@ -4700,23 +5168,23 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", "version": "v1alpha1" } ] }, - "v1.LimitRangeList": { - "description": "LimitRangeList is a list of LimitRange items.", + "v1alpha1.PodCertificateRequestList": { + "description": "PodCertificateRequestList is a collection of PodCertificateRequest objects", "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 LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "description": "items is a collection of PodCertificateRequest objects", "items": { - "$ref": "#/definitions/v1.LimitRange" + "$ref": "#/definitions/v1alpha1.PodCertificateRequest" }, "type": "array" }, @@ -4726,7 +5194,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + "description": "metadata contains the list metadata." } }, "required": [ @@ -4735,217 +5203,196 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "", - "kind": "LimitRangeList", - "version": "v1" + "group": "certificates.k8s.io", + "kind": "PodCertificateRequestList", + "version": "v1alpha1" } ] }, - "v1.DaemonSetCondition": { - "description": "DaemonSetCondition describes the state of a DaemonSet at a certain point.", + "v1alpha1.PodCertificateRequestSpec": { + "description": "PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation.", "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "format": "date-time", + "maxExpirationSeconds": { + "description": "maxExpirationSeconds is the maximum lifetime permitted for the certificate.\n\nIf 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).\n\nThe 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" + }, + "nodeName": { + "description": "nodeName is the name of the node the pod is assigned to.", "type": "string" }, - "message": { - "description": "A human readable message indicating details about the transition.", + "nodeUID": { + "description": "nodeUID is the UID of the node the pod is assigned to.", "type": "string" }, - "reason": { - "description": "The reason for the condition's last transition.", + "pkixPublicKey": { + "description": "pkixPublicKey is the PKIX-serialized public key the signer will issue the certificate to.\n\nThe key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future.\n\nSigner 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", "type": "string" }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", + "podName": { + "description": "podName is the name of the pod into which the certificate will be mounted.", "type": "string" }, - "type": { - "description": "Type of DaemonSet condition.", + "podUID": { + "description": "podUID is the UID of the pod into which the certificate will be mounted.", + "type": "string" + }, + "proofOfPossession": { + "description": "proofOfPossession proves that the requesting kubelet holds the private key corresponding to pkixPublicKey.\n\nIt is contructed by signing the ASCII bytes of the pod's UID using `pkixPublicKey`.\n\nkube-apiserver validates the proof of possession during creation of the PodCertificateRequest.\n\nIf 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).\n\nIf 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)\n\nIf 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", + "type": "string" + }, + "serviceAccountName": { + "description": "serviceAccountName is the name of the service account the pod is running as.", + "type": "string" + }, + "serviceAccountUID": { + "description": "serviceAccountUID is the UID of the service account the pod is running as.", + "type": "string" + }, + "signerName": { + "description": "signerName indicates the requested signer.\n\nAll 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" } }, "required": [ - "type", - "status" + "signerName", + "podName", + "podUID", + "serviceAccountName", + "serviceAccountUID", + "nodeName", + "nodeUID", + "pkixPublicKey", + "proofOfPossession" ], "type": "object" }, - "v1.PodAffinity": { - "description": "Pod affinity is a group of inter pod affinity scheduling rules.", + "v1alpha1.PodCertificateRequestStatus": { + "description": "PodCertificateRequestStatus describes the status of the request, and holds the certificate data if the request is issued.", "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", - "items": { - "$ref": "#/definitions/v1.WeightedPodAffinityTerm" - }, - "type": "array" + "beginRefreshAt": { + "description": "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.\n\nThis field is only a hint. Kubelet may start refreshing before or after this time if necessary.", + "format": "date-time", + "type": "string" }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "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.\n\nIf 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.\n\nValidation requirements:\n 1. certificateChain must consist of one or more PEM-formatted certificates.\n 2. Each entry must be a valid PEM-wrapped, DER-encoded ASN.1 Certificate as\n described in section 4 of RFC5280.\n\nIf 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" + }, + "conditions": { + "description": "conditions applied to the request.\n\nThe types \"Issued\", \"Denied\", and \"Failed\" have special handling. At most one of these conditions may be present, and they must have status \"True\".\n\nIf the request is denied with `Reason=UnsupportedKeyType`, the signer may suggest a key type that will work in the message field.", "items": { - "$ref": "#/definitions/v1.PodAffinityTerm" + "$ref": "#/definitions/v1.Condition" }, - "type": "array" - } - }, - "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.", - "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", - "type": "boolean" - }, - "capabilities": { - "$ref": "#/definitions/v1.Capabilities", - "description": "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime." - }, - "privileged": { - "description": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false.", - "type": "boolean" + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" }, - "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.", + "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" }, - "readOnlyRootFilesystem": { - "description": "Whether this container has a read-only root filesystem. Default is false.", - "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.", - "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.", - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "$ref": "#/definitions/v1.SELinuxOptions", - "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." - }, - "seccompProfile": { - "$ref": "#/definitions/v1.SeccompProfile", - "description": "The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options." - }, - "windowsOptions": { - "$ref": "#/definitions/v1.WindowsSecurityContextOptions", - "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." + "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" }, - "v1.NetworkPolicySpec": { - "description": "NetworkPolicySpec provides the specification of a NetworkPolicy", + "v1beta1.ClusterTrustBundle": { + "description": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle 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.\n\nIt 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": { - "egress": { - "description": "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": "#/definitions/v1.NetworkPolicyEgressRule" - }, - "type": "array" + "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" }, - "ingress": { - "description": "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": "#/definitions/v1.NetworkPolicyIngressRule" - }, - "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" }, - "podSelector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace." + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "metadata contains the object metadata." }, - "policyTypes": { - "description": "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" + "spec": { + "$ref": "#/definitions/v1beta1.ClusterTrustBundleSpec", + "description": "spec contains the signer (if any) and trust anchors." } }, "required": [ - "podSelector" + "spec" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1beta1" + } + ] }, - "v1.APIGroupList": { - "description": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", + "v1beta1.ClusterTrustBundleList": { + "description": "ClusterTrustBundleList is a collection of ClusterTrustBundle objects", "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" }, - "groups": { - "description": "groups is a list of APIGroup.", + "items": { + "description": "items is a collection of ClusterTrustBundle objects", "items": { - "$ref": "#/definitions/v1.APIGroup" + "$ref": "#/definitions/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": "#/definitions/v1.ListMeta", + "description": "metadata contains the list metadata." } }, "required": [ - "groups" + "items" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "", - "kind": "APIGroupList", - "version": "v1" + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundleList", + "version": "v1beta1" } ] }, - "v1.EnvFromSource": { - "description": "EnvFromSource represents the source of a set of ConfigMaps", + "v1beta1.ClusterTrustBundleSpec": { + "description": "ClusterTrustBundleSpec contains the signer and trust anchors.", "properties": { - "configMapRef": { - "$ref": "#/definitions/v1.ConfigMapEnvSource", - "description": "The ConfigMap to select from" - }, - "prefix": { - "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", + "signerName": { + "description": "signerName indicates the associated signer, if any.\n\nIn 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.\n\nIf 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`.\n\nIf signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.\n\nList/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.", "type": "string" }, - "secretRef": { - "$ref": "#/definitions/v1.SecretEnvSource", - "description": "The Secret to select from" - } - }, - "type": "object" - }, - "v1.PersistentVolumeClaimVolumeSource": { - "description": "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).", - "properties": { - "claimName": { - "description": "ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", + "trustBundle": { + "description": "trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.\n\nThe 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.\n\nUsers 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" - }, - "readOnly": { - "description": "Will force the ReadOnly setting in VolumeMounts. Default false.", - "type": "boolean" } }, "required": [ - "claimName" + "trustBundle" ], "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.Lease": { + "description": "Lease defines a lease concept.", "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", @@ -4957,146 +5404,135 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1.ServiceSpec", - "description": "Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/v1.ServiceStatus", - "description": "Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "$ref": "#/definitions/v1.LeaseSpec", + "description": "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "", - "kind": "Service", + "group": "coordination.k8s.io", + "kind": "Lease", "version": "v1" } ] }, - "v1.CertificateSigningRequestSpec": { - "description": "CertificateSigningRequestSpec contains the certificate request.", + "v1.LeaseList": { + "description": "LeaseList is a list of Lease objects.", "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.\n\nThe 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.\n\nCertificate signers may not honor this field for various reasons:\n\n 1. Old signer that is unaware of the field (such as the in-tree\n implementations prior to v1.22)\n 2. Signer whose configured maximum is shorter than the requested duration\n 3. Signer whose configured minimum is longer than the requested duration\n\nThe minimum valid value for expirationSeconds is 600, i.e. 10 minutes.\n\nAs of v1.22, this field is beta and is controlled via the CSRDuration feature gate.", - "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", - "type": "string", - "x-kubernetes-list-type": "atomic" - }, - "signerName": { - "description": "signerName indicates the requested signer, and is a qualified name.\n\nList/watch requests for CertificateSigningRequests can filter on this field using a \"spec.signerName=NAME\" fieldSelector.\n\nWell-known Kubernetes signers are:\n 1. \"kubernetes.io/kube-apiserver-client\": issues client certificates that can be used to authenticate to kube-apiserver.\n Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the \"csrsigning\" controller in kube-controller-manager.\n 2. \"kubernetes.io/kube-apiserver-client-kubelet\": issues client certificates that kubelets use to authenticate to kube-apiserver.\n 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.\n 3. \"kubernetes.io/kubelet-serving\" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely.\n Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager.\n\nMore details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers\n\nCustom signerNames can also be specified. The signer defines:\n 1. Trust distribution: how trust (CA bundles) are distributed.\n 2. Permitted subjects: and behavior when a disallowed subject is requested.\n 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.\n 4. Required, permitted, or forbidden key usages / extended key usages.\n 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin.\n 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.", + "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" }, - "usages": { - "description": "usages specifies a set of key usages requested in the issued certificate.\n\nRequests for TLS client certificates typically request: \"digital signature\", \"key encipherment\", \"client auth\".\n\nRequests for TLS serving certificates typically request: \"key encipherment\", \"digital signature\", \"server auth\".\n\nValid values are:\n \"signing\", \"digital signature\", \"content commitment\",\n \"key encipherment\", \"key agreement\", \"data encipherment\",\n \"cert sign\", \"crl sign\", \"encipher only\", \"decipher only\", \"any\",\n \"server auth\", \"client auth\",\n \"code signing\", \"email protection\", \"s/mime\",\n \"ipsec end system\", \"ipsec tunnel\", \"ipsec user\",\n \"timestamping\", \"ocsp signing\", \"microsoft sgc\", \"netscape sgc\"", + "items": { + "description": "items is a list of schema objects.", "items": { - "type": "string" + "$ref": "#/definitions/v1.Lease" }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "type": "array" }, - "username": { - "description": "username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "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": "#/definitions/v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ - "request", - "signerName" + "items" ], - "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.", - "properties": { - "matchLabelExpressions": { - "description": "A list of topology selector requirements by labels.", - "items": { - "$ref": "#/definitions/v1.TopologySelectorLabelRequirement" - }, - "type": "array" - } - }, "type": "object", - "x-kubernetes-map-type": "atomic" + "x-kubernetes-group-version-kind": [ + { + "group": "coordination.k8s.io", + "kind": "LeaseList", + "version": "v1" + } + ] }, - "v1.ObjectFieldSelector": { - "description": "ObjectFieldSelector selects an APIVersioned field of an object.", + "v1.LeaseSpec": { + "description": "LeaseSpec is a specification of a Lease.", "properties": { - "apiVersion": { - "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", + "acquireTime": { + "description": "acquireTime is a time when the current lease was acquired.", + "format": "date-time", "type": "string" }, - "fieldPath": { - "description": "Path of the field to select in the specified API version.", + "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": [ - "fieldPath" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" + "type": "object" }, - "v1.IngressTLS": { - "description": "IngressTLS describes the transport layer security associated with an Ingress.", + "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.", "properties": { - "hosts": { - "description": "Hosts are 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" + "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" }, - "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.", + "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": "#/definitions/v1.ObjectMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1alpha2.LeaseCandidateSpec", + "description": "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1alpha2" + } + ] }, - "v1alpha1.RuntimeClassList": { - "description": "RuntimeClassList is a list of RuntimeClass objects.", + "v1alpha2.LeaseCandidateList": { + "description": "LeaseCandidateList is a list of Lease objects.", "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.", + "description": "items is a list of schema objects.", "items": { - "$ref": "#/definitions/v1alpha1.RuntimeClass" + "$ref": "#/definitions/v1alpha2.LeaseCandidate" }, "type": "array" }, @@ -5115,407 +5551,321 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "node.k8s.io", - "kind": "RuntimeClassList", - "version": "v1alpha1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidateList", + "version": "v1alpha2" } ] }, - "v1.ServiceBackendPort": { - "description": "ServiceBackendPort is the service port being referenced.", + "v1alpha2.LeaseCandidateSpec": { + "description": "LeaseCandidateSpec is a specification of a Lease.", "properties": { - "name": { - "description": "Name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\".", + "binaryVersion": { + "description": "BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.", "type": "string" }, - "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" - }, - "v1.LabelSelector": { - "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "$ref": "#/definitions/v1.LabelSelectorRequirement" - }, - "type": "array" + "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" }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "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.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "v1.Taint": { - "description": "The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.", - "properties": { - "effect": { - "description": "Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.", + "leaseName": { + "description": "LeaseName is the name of the lease for which this candidate is contending. This field is immutable.", "type": "string" }, - "key": { - "description": "Required. The taint key to be applied to a node.", + "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" }, - "timeAdded": { - "description": "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.", + "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" }, - "value": { - "description": "The taint value corresponding to the taint key.", + "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": [ - "key", - "effect" + "leaseName", + "binaryVersion", + "strategy" ], "type": "object" }, - "v1.DaemonSetUpdateStrategy": { - "description": "DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.", + "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.", "properties": { - "rollingUpdate": { - "$ref": "#/definitions/v1.RollingUpdateDaemonSet", - "description": "Rolling update config params. Present only if type = \"RollingUpdate\"." + "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 of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate.", + "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": "#/definitions/v1.ObjectMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1beta1.LeaseCandidateSpec", + "description": "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1beta1" + } + ] }, - "v1.JSONSchemaProps": { - "description": "JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).", + "v1beta1.LeaseCandidateList": { + "description": "LeaseCandidateList is a list of Lease objects.", "properties": { - "$ref": { + "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" }, - "$schema": { + "items": { + "description": "items is a list of schema objects.", + "items": { + "$ref": "#/definitions/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" }, - "additionalItems": { - "description": "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.", - "type": "object" - }, - "additionalProperties": { - "description": "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.", - "type": "object" - }, - "allOf": { - "items": { - "$ref": "#/definitions/v1.JSONSchemaProps" - }, - "type": "array" - }, - "anyOf": { - "items": { - "$ref": "#/definitions/v1.JSONSchemaProps" - }, - "type": "array" - }, - "default": { - "description": "default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false.", - "type": "object" - }, - "definitions": { - "additionalProperties": { - "$ref": "#/definitions/v1.JSONSchemaProps" - }, - "type": "object" - }, - "dependencies": { - "additionalProperties": { - "description": "JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array.", - "type": "object" - }, - "type": "object" - }, - "description": { + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "coordination.k8s.io", + "kind": "LeaseCandidateList", + "version": "v1beta1" + } + ] + }, + "v1beta1.LeaseCandidateSpec": { + "description": "LeaseCandidateSpec is a specification of a Lease.", + "properties": { + "binaryVersion": { + "description": "BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.", "type": "string" }, - "enum": { - "items": { - "description": "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.", - "type": "object" - }, - "type": "array" - }, - "example": { - "description": "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.", - "type": "object" - }, - "exclusiveMaximum": { - "type": "boolean" - }, - "exclusiveMinimum": { - "type": "boolean" - }, - "externalDocs": { - "$ref": "#/definitions/v1.ExternalDocumentation" - }, - "format": { - "description": "format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:\n\n- 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.", + "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" }, - "id": { + "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" }, - "items": { - "description": "JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes.", - "type": "object" - }, - "maxItems": { - "format": "int64", - "type": "integer" - }, - "maxLength": { - "format": "int64", - "type": "integer" - }, - "maxProperties": { - "format": "int64", - "type": "integer" - }, - "maximum": { - "format": "double", - "type": "number" - }, - "minItems": { - "format": "int64", - "type": "integer" - }, - "minLength": { - "format": "int64", - "type": "integer" - }, - "minProperties": { - "format": "int64", - "type": "integer" - }, - "minimum": { - "format": "double", - "type": "number" - }, - "multipleOf": { - "format": "double", - "type": "number" - }, - "not": { - "$ref": "#/definitions/v1.JSONSchemaProps" - }, - "nullable": { - "type": "boolean" - }, - "oneOf": { - "items": { - "$ref": "#/definitions/v1.JSONSchemaProps" - }, - "type": "array" - }, - "pattern": { + "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" }, - "patternProperties": { - "additionalProperties": { - "$ref": "#/definitions/v1.JSONSchemaProps" - }, - "type": "object" - }, - "properties": { - "additionalProperties": { - "$ref": "#/definitions/v1.JSONSchemaProps" - }, - "type": "object" - }, - "required": { - "items": { - "type": "string" - }, - "type": "array" - }, - "title": { + "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" }, - "type": { + "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": [ + "leaseName", + "binaryVersion", + "strategy" + ], + "type": "object" + }, + "v1.AWSElasticBlockStoreVolumeSource": { + "description": "Represents a Persistent Disk resource in AWS.\n\nAn 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.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", "type": "string" }, - "uniqueItems": { - "type": "boolean" - }, - "x-kubernetes-embedded-resource": { - "description": "x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata).", - "type": "boolean" + "partition": { + "description": "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).", + "format": "int32", + "type": "integer" }, - "x-kubernetes-int-or-string": { - "description": "x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns:\n\n1) anyOf:\n - type: integer\n - type: string\n2) allOf:\n - anyOf:\n - type: integer\n - type: string\n - ... zero or more", + "readOnly": { + "description": "readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", "type": "boolean" }, - "x-kubernetes-list-map-keys": { - "description": "x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map.\n\nThis tag MUST only be used on lists that have the \"x-kubernetes-list-type\" extension set to \"map\". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported).\n\nThe properties specified must either be required or have a default value, to ensure those properties are present for all list items.", - "items": { - "type": "string" - }, - "type": "array" - }, - "x-kubernetes-list-type": { - "description": "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:\n\n1) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic lists will be entirely replaced when updated. This extension\n may be used on any type of list (struct, scalar, ...).\n2) `set`:\n Sets are lists that must not have multiple items with the same value. Each\n value must be a scalar, an object with x-kubernetes-map-type `atomic` or an\n array with x-kubernetes-list-type `atomic`.\n3) `map`:\n These lists are like maps in that their elements have a non-index key\n used to identify them. Order is preserved upon merge. The map tag\n must only be used on a list with elements of type object.\nDefaults to atomic for arrays.", - "type": "string" - }, - "x-kubernetes-map-type": { - "description": "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:\n\n1) `granular`:\n These maps are actual maps (key-value pairs) and each fields are independent\n from each other (they can each be manipulated by separate actors). This is\n the default behaviour for all maps.\n2) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic maps will be entirely replaced when updated.", + "volumeID": { + "description": "volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", "type": "string" - }, - "x-kubernetes-preserve-unknown-fields": { - "description": "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.", - "type": "boolean" } }, + "required": [ + "volumeID" + ], "type": "object" }, - "v1.JobCondition": { - "description": "JobCondition describes current state of a job.", + "v1.Affinity": { + "description": "Affinity is a group of affinity scheduling rules.", "properties": { - "lastProbeTime": { - "description": "Last time the condition was checked.", - "format": "date-time", - "type": "string" + "nodeAffinity": { + "$ref": "#/definitions/v1.NodeAffinity", + "description": "Describes node affinity scheduling rules for the pod." }, - "lastTransitionTime": { - "description": "Last time the condition transit from one status to another.", - "format": "date-time", - "type": "string" + "podAffinity": { + "$ref": "#/definitions/v1.PodAffinity", + "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s))." }, - "message": { - "description": "Human readable message indicating details about last transition.", + "podAntiAffinity": { + "$ref": "#/definitions/v1.PodAntiAffinity", + "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s))." + } + }, + "type": "object" + }, + "v1.AppArmorProfile": { + "description": "AppArmorProfile defines a pod or container's AppArmor settings.", + "properties": { + "localhostProfile": { + "description": "localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \"Localhost\".", "type": "string" }, - "reason": { - "description": "(brief) reason for the condition's last transition.", + "type": { + "description": "type indicates which kind of AppArmor profile will be applied. Valid options are:\n Localhost - a profile pre-loaded on the node.\n RuntimeDefault - the container runtime's default profile.\n Unconfined - no AppArmor enforcement.", "type": "string" - }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", + } + }, + "required": [ + "type" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "localhostProfile": "LocalhostProfile" + } + } + ] + }, + "v1.AttachedVolume": { + "description": "AttachedVolume describes a volume attached to a node", + "properties": { + "devicePath": { + "description": "DevicePath represents the device path where the volume should be available", "type": "string" }, - "type": { - "description": "Type of job condition, Complete or Failed.", + "name": { + "description": "Name of the attached volume", "type": "string" } }, "required": [ - "type", - "status" + "name", + "devicePath" ], "type": "object" }, - "v1beta1.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) least one member of namespaces matches the request.", + "v1.AzureDiskVolumeSource": { + "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", "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" + "cachingMode": { + "description": "cachingMode is the Host Caching mode: None, Read Only, Read Write.", + "type": "string" }, - "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" + "diskName": { + "description": "diskName is the Name of the data disk in the blob storage", + "type": "string" }, - "namespaces": { - "description": "`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" + "diskURI": { + "description": "diskURI is the URI of data disk in the blob storage", + "type": "string" }, - "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" + "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" }, - "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" + "kind": { + "description": "kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared", + "type": "string" + }, + "readOnly": { + "description": "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" } }, "required": [ - "verbs", - "apiGroups", - "resources" + "diskName", + "diskURI" ], "type": "object" }, - "v1.ReplicationControllerCondition": { - "description": "ReplicationControllerCondition describes the state of a replication controller at a certain point.", + "v1.AzureFilePersistentVolumeSource": { + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", "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" + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" }, - "reason": { - "description": "The reason for the condition's last transition.", + "secretName": { + "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", "type": "string" }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", + "secretNamespace": { + "description": "secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod", "type": "string" }, - "type": { - "description": "Type of replication controller condition.", + "shareName": { + "description": "shareName is the azure Share Name", "type": "string" } }, "required": [ - "type", - "status" + "secretName", + "shareName" ], "type": "object" }, - "v1alpha1.VolumeAttachmentSource": { - "description": "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.", + "v1.AzureFileVolumeSource": { + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", "properties": { - "inlineVolumeSpec": { - "$ref": "#/definitions/v1.PersistentVolumeSpec", - "description": "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature." + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" }, - "persistentVolumeName": { - "description": "Name of the persistent volume to attach.", + "secretName": { + "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", + "type": "string" + }, + "shareName": { + "description": "shareName is the azure share Name", "type": "string" } }, + "required": [ + "secretName", + "shareName" + ], "type": "object" }, - "v1.ResourceQuota": { - "description": "ResourceQuota sets aggregate quota restrictions enforced per namespace", + "v1.Binding": { + "description": "Binding ties one object to another; for example, a pod is bound to a node by a scheduler.", "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", @@ -5529,513 +5879,369 @@ "$ref": "#/definitions/v1.ObjectMeta", "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "spec": { - "$ref": "#/definitions/v1.ResourceQuotaSpec", - "description": "Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/v1.ResourceQuotaStatus", - "description": "Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "target": { + "$ref": "#/definitions/v1.ObjectReference", + "description": "The target object that you want to bind to the standard object." } }, + "required": [ + "target" + ], "type": "object", "x-kubernetes-group-version-kind": [ { "group": "", - "kind": "ResourceQuota", + "kind": "Binding", "version": "v1" } ] }, - "v1.LimitRangeItem": { - "description": "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", + "v1.CSIPersistentVolumeSource": { + "description": "Represents storage that is managed by an external CSI volume driver", "properties": { - "default": { - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - }, - "description": "Default resource requirement limit value by resource name if resource limit is omitted.", - "type": "object" + "controllerExpandSecretRef": { + "$ref": "#/definitions/v1.SecretReference", + "description": "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." }, - "defaultRequest": { - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - }, - "description": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", - "type": "object" + "controllerPublishSecretRef": { + "$ref": "#/definitions/v1.SecretReference", + "description": "controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." }, - "max": { - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - }, - "description": "Max usage constraints on this kind by resource name.", - "type": "object" + "driver": { + "description": "driver is the name of the driver to use for this volume. Required.", + "type": "string" }, - "maxLimitRequestRatio": { - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - }, - "description": "MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.", - "type": "object" + "fsType": { + "description": "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", + "type": "string" }, - "min": { + "nodeExpandSecretRef": { + "$ref": "#/definitions/v1.SecretReference", + "description": "nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "nodePublishSecretRef": { + "$ref": "#/definitions/v1.SecretReference", + "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 secrets are passed." + }, + "nodeStageSecretRef": { + "$ref": "#/definitions/v1.SecretReference", + "description": "nodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "readOnly": { + "description": "readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).", + "type": "boolean" + }, + "volumeAttributes": { "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" + "type": "string" }, - "description": "Min usage constraints on this kind by resource name.", + "description": "volumeAttributes of the volume to publish.", "type": "object" }, - "type": { - "description": "Type of resource that this limit applies to.", + "volumeHandle": { + "description": "volumeHandle is the unique volume name returned by the CSI volume plugin\u2019s CreateVolume to refer to the volume on all subsequent calls. Required.", "type": "string" } }, "required": [ - "type" + "driver", + "volumeHandle" ], "type": "object" }, - "v1.ConfigMapVolumeSource": { - "description": "Adapts a ConfigMap into a volume.\n\nThe 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.", - "properties": { - "defaultMode": { - "description": "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": "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", - "items": { - "$ref": "#/definitions/v1.KeyToPath" - }, - "type": "array" - }, - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its keys must be defined", - "type": "boolean" - } - }, - "type": "object" - }, - "v1.CustomResourceDefinition": { - "description": "CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>.", + "v1.CSIVolumeSource": { + "description": "Represents a source location of a volume to mount, managed by an external CSI driver", "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", + "driver": { + "description": "driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.", "type": "string" }, - "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", + "fsType": { + "description": "fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "nodePublishSecretRef": { + "$ref": "#/definitions/v1.LocalObjectReference", + "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." }, - "spec": { - "$ref": "#/definitions/v1.CustomResourceDefinitionSpec", - "description": "spec describes how the user wants the resources to appear" + "readOnly": { + "description": "readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).", + "type": "boolean" }, - "status": { - "$ref": "#/definitions/v1.CustomResourceDefinitionStatus", - "description": "status indicates the actual state of the CustomResourceDefinition" + "volumeAttributes": { + "additionalProperties": { + "type": "string" + }, + "description": "volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", + "type": "object" } }, "required": [ - "spec" + "driver" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" - } - ] + "type": "object" }, - "v1.IPBlock": { - "description": "IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\",\"2001:db9::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.", + "v1.Capabilities": { + "description": "Adds and removes POSIX capabilities from running containers.", "properties": { - "cidr": { - "description": "CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\" or \"2001:db9::/64\"", - "type": "string" + "add": { + "description": "Added capabilities", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "except": { - "description": "Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" or \"2001:db9::/64\" Except values will be rejected if they are outside the CIDR range", + "drop": { + "description": "Removed capabilities", "items": { "type": "string" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" } }, - "required": [ - "cidr" - ], "type": "object" }, - "v1alpha1.StorageVersionCondition": { - "description": "Describes the state of the storageVersion at a certain point.", + "v1.CephFSPersistentVolumeSource": { + "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "format": "date-time", - "type": "string" + "monitors": { + "description": "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "message": { - "description": "A human readable message indicating details about the transition.", + "path": { + "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", "type": "string" }, - "observedGeneration": { - "description": "If set, this represents the .metadata.generation that the condition was set based upon.", - "format": "int64", - "type": "integer" + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "boolean" }, - "reason": { - "description": "The reason for the condition's last transition.", + "secretFile": { + "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", "type": "string" }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", - "type": "string" + "secretRef": { + "$ref": "#/definitions/v1.SecretReference", + "description": "secretRef is 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" }, - "type": { - "description": "Type of the condition.", + "user": { + "description": "user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", "type": "string" } }, "required": [ - "type", - "status", - "reason" + "monitors" ], "type": "object" }, - "admissionregistration.v1.WebhookClientConfig": { - "description": "WebhookClientConfig contains the information to make a TLS connection with the webhook", + "v1.CephFSVolumeSource": { + "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", "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", + "monitors": { + "description": "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "path": { + "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", "type": "string" }, - "service": { - "$ref": "#/definitions/admissionregistration.v1.ServiceReference", - "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "boolean" }, - "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.\n\nThe `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.\n\nPlease 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.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA 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.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", + "secretFile": { + "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "string" + }, + "secretRef": { + "$ref": "#/definitions/v1.LocalObjectReference", + "description": "secretRef is 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" + }, + "user": { + "description": "user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", "type": "string" } }, + "required": [ + "monitors" + ], "type": "object" }, - "v1.FCVolumeSource": { - "description": "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.", + "v1.CinderPersistentVolumeSource": { + "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", "properties": { "fsType": { - "description": "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.", + "description": "fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", "type": "string" }, - "lun": { - "description": "Optional: FC target lun number", - "format": "int32", - "type": "integer" - }, "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", "type": "boolean" }, - "targetWWNs": { - "description": "Optional: FC target worldwide names (WWNs)", - "items": { - "type": "string" - }, - "type": "array" - }, - "wwids": { - "description": "Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "v1.NonResourceRule": { - "description": "NonResourceRule holds information that describes a rule for the non-resource", - "properties": { - "nonResourceURLs": { - "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. \"*\" means all.", - "items": { - "type": "string" - }, - "type": "array" + "secretRef": { + "$ref": "#/definitions/v1.SecretReference", + "description": "secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack." }, - "verbs": { - "description": "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.", - "items": { - "type": "string" - }, - "type": "array" + "volumeID": { + "description": "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "string" } }, "required": [ - "verbs" + "volumeID" ], "type": "object" }, - "v1alpha1.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. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.22.", + "v1.CinderVolumeSource": { + "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", "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", + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata." + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "boolean" }, - "roleRef": { - "$ref": "#/definitions/v1alpha1.RoleRef", - "description": "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error." + "secretRef": { + "$ref": "#/definitions/v1.LocalObjectReference", + "description": "secretRef is optional: points to a secret object containing parameters used to connect to OpenStack." }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "items": { - "$ref": "#/definitions/v1alpha1.Subject" - }, - "type": "array" + "volumeID": { + "description": "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "string" } }, "required": [ - "roleRef" + "volumeID" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - ] + "type": "object" }, - "v1.ResourceRequirements": { - "description": "ResourceRequirements describes the compute resource requirements.", + "v1.ClientIPConfig": { + "description": "ClientIPConfig represents the configurations of Client IP based session affinity.", "properties": { - "limits": { - "additionalProperties": { - "$ref": "#/definitions/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": "#/definitions/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. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" + "timeoutSeconds": { + "description": "timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours).", + "format": "int32", + "type": "integer" } }, "type": "object" }, - "v1.StatefulSetSpec": { - "description": "A StatefulSetSpec is the specification of a StatefulSet.", + "v1.ClusterTrustBundleProjection": { + "description": "ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem.", "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) This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate.", - "format": "int32", - "type": "integer" - }, - "podManagementPolicy": { - "description": "podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.", - "type": "string" - }, - "replicas": { - "description": "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.", - "format": "int32", - "type": "integer" - }, - "revisionHistoryLimit": { - "description": "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.", - "format": "int32", - "type": "integer" - }, - "selector": { + "labelSelector": { "$ref": "#/definitions/v1.LabelSelector", - "description": "selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + "description": "Select all ClusterTrustBundles that match this label selector. Only has effect if signerName is set. Mutually-exclusive with name. If unset, interpreted as \"match nothing\". If set but empty, interpreted as \"match everything\"." }, - "serviceName": { - "description": "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.", + "name": { + "description": "Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector.", "type": "string" }, - "template": { - "$ref": "#/definitions/v1.PodTemplateSpec", - "description": "template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet." - }, - "updateStrategy": { - "$ref": "#/definitions/v1.StatefulSetUpdateStrategy", - "description": "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template." + "optional": { + "description": "If true, don't block pod startup if the referenced ClusterTrustBundle(s) aren't available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles.", + "type": "boolean" }, - "volumeClaimTemplates": { - "description": "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.", - "items": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - }, - "type": "array" - } - }, - "required": [ - "selector", - "template", - "serviceName" - ], - "type": "object" - }, - "v1beta1.RuntimeClassStrategyOptions": { - "description": "RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod.", - "properties": { - "allowedRuntimeClassNames": { - "description": "allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset.", - "items": { - "type": "string" - }, - "type": "array" + "path": { + "description": "Relative path from the volume root to write the bundle.", + "type": "string" }, - "defaultRuntimeClassName": { - "description": "defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod.", + "signerName": { + "description": "Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated.", "type": "string" } }, "required": [ - "allowedRuntimeClassNames" + "path" ], "type": "object" }, - "v2beta1.MetricSpec": { - "description": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).", + "v1.ComponentCondition": { + "description": "Information about the condition of a component.", "properties": { - "containerResource": { - "$ref": "#/definitions/v2beta1.ContainerResourceMetricSource", - "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag." - }, - "external": { - "$ref": "#/definitions/v2beta1.ExternalMetricSource", - "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." - }, - "object": { - "$ref": "#/definitions/v2beta1.ObjectMetricSource", - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." + "error": { + "description": "Condition error code for a component. For example, a health check error code.", + "type": "string" }, - "pods": { - "$ref": "#/definitions/v2beta1.PodsMetricSource", - "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." + "message": { + "description": "Message about the condition for a component. For example, information about a health check.", + "type": "string" }, - "resource": { - "$ref": "#/definitions/v2beta1.ResourceMetricSource", - "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." + "status": { + "description": "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".", + "type": "string" }, "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", + "description": "Type of condition for a component. Valid value: \"Healthy\"", "type": "string" } }, "required": [ - "type" + "type", + "status" ], "type": "object" }, - "v1.StatefulSetStatus": { - "description": "StatefulSetStatus represents the current state of a StatefulSet.", + "v1.ComponentStatus": { + "description": "ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+", "properties": { - "availableReplicas": { - "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate. Remove omitempty when graduating to beta", - "format": "int32", - "type": "integer" - }, - "collisionCount": { - "description": "collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.", - "format": "int32", - "type": "integer" + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" }, "conditions": { - "description": "Represents the latest available observations of a statefulset's current state.", + "description": "List of component conditions observed", "items": { - "$ref": "#/definitions/v1.StatefulSetCondition" + "$ref": "#/definitions/v1.ComponentCondition" }, "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "type", "x-kubernetes-patch-strategy": "merge" }, - "currentReplicas": { - "description": "currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.", - "format": "int32", - "type": "integer" - }, - "currentRevision": { - "description": "currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).", - "type": "string" - }, - "observedGeneration": { - "description": "observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server.", - "format": "int64", - "type": "integer" - }, - "readyReplicas": { - "description": "readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition.", - "format": "int32", - "type": "integer" - }, - "replicas": { - "description": "replicas is the number of Pods created by the StatefulSet controller.", - "format": "int32", - "type": "integer" - }, - "updateRevision": { - "description": "updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)", + "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" }, - "updatedReplicas": { - "description": "updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.", - "format": "int32", - "type": "integer" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, - "required": [ - "replicas" - ], - "type": "object" - }, - "v1.CustomResourceValidation": { - "description": "CustomResourceValidation is a list of validation methods for CustomResources.", - "properties": { - "openAPIV3Schema": { - "$ref": "#/definitions/v1.JSONSchemaProps", - "description": "openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning." + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ComponentStatus", + "version": "v1" } - }, - "type": "object" + ] }, - "v1.SecretList": { - "description": "SecretList is a list of Secret.", + "v1.ComponentStatusList": { + "description": "Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+", "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", + "description": "List of ComponentStatus objects.", "items": { - "$ref": "#/definitions/v1.Secret" + "$ref": "#/definitions/v1.ComponentStatus" }, "type": "array" }, @@ -6055,187 +6261,102 @@ "x-kubernetes-group-version-kind": [ { "group": "", - "kind": "SecretList", + "kind": "ComponentStatusList", "version": "v1" } ] }, - "v1beta1.FlowSchemaStatus": { - "description": "FlowSchemaStatus represents the current state of a FlowSchema.", - "properties": { - "conditions": { - "description": "`conditions` is a list of the current states of FlowSchema.", - "items": { - "$ref": "#/definitions/v1beta1.FlowSchemaCondition" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" - } - }, - "type": "object" - }, - "v1alpha1.VolumeAttachmentStatus": { - "description": "VolumeAttachmentStatus is the status of a VolumeAttachment request.", + "v1.ConfigMap": { + "description": "ConfigMap holds configuration data for pods to consume.", "properties": { - "attachError": { - "$ref": "#/definitions/v1alpha1.VolumeError", - "description": "The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher." - }, - "attached": { - "description": "Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", - "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" }, - "attachmentMetadata": { + "binaryData": { "additionalProperties": { + "format": "byte", "type": "string" }, - "description": "Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", + "description": "BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.", "type": "object" }, - "detachError": { - "$ref": "#/definitions/v1alpha1.VolumeError", - "description": "The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher." - } - }, - "required": [ - "attached" - ], - "type": "object" - }, - "v1alpha1.VolumeError": { - "description": "VolumeError captures an error encountered during a volume operation.", - "properties": { - "message": { - "description": "String detailing the error encountered during Attach or Detach operation. This string maybe logged, so it should not contain sensitive information.", - "type": "string" - }, - "time": { - "description": "Time the error was encountered.", - "format": "date-time", - "type": "string" - } - }, - "type": "object" - }, - "v1.CertificateSigningRequestList": { - "description": "CertificateSigningRequestList is a collection of CertificateSigningRequest objects", - "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": "#/definitions/v1.CertificateSigningRequest" + "data": { + "additionalProperties": { + "type": "string" }, - "type": "array" + "description": "Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.", + "type": "object" + }, + "immutable": { + "description": "Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.", + "type": "boolean" }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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": "#/definitions/v1.ListMeta" + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, - "required": [ - "items" - ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequestList", + "group": "", + "kind": "ConfigMap", "version": "v1" } ] }, - "v1beta1.HostPortRange": { - "description": "HostPortRange defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined.", + "v1.ConfigMapEnvSource": { + "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.", "properties": { - "max": { - "description": "max is the end of the range, inclusive.", - "format": "int32", - "type": "integer" + "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" }, - "min": { - "description": "min is the start of the range, inclusive.", - "format": "int32", - "type": "integer" + "optional": { + "description": "Specify whether the ConfigMap must be defined", + "type": "boolean" } }, - "required": [ - "min", - "max" - ], "type": "object" }, - "v1.HorizontalPodAutoscalerSpec": { - "description": "specification of a horizontal pod autoscaler.", + "v1.ConfigMapKeySelector": { + "description": "Selects a key from a ConfigMap.", "properties": { - "maxReplicas": { - "description": "upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.", - "format": "int32", - "type": "integer" - }, - "minReplicas": { - "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", - "format": "int32", - "type": "integer" + "key": { + "description": "The key to select.", + "type": "string" }, - "scaleTargetRef": { - "$ref": "#/definitions/v1.CrossVersionObjectReference", - "description": "reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource." + "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" }, - "targetCPUUtilizationPercentage": { - "description": "target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.", - "format": "int32", - "type": "integer" + "optional": { + "description": "Specify whether the ConfigMap or its key must be defined", + "type": "boolean" } }, "required": [ - "scaleTargetRef", - "maxReplicas" + "key" ], - "type": "object" - }, - "v1.NodeConfigStatus": { - "description": "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.", - "properties": { - "active": { - "$ref": "#/definitions/v1.NodeConfigSource", - "description": "Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error." - }, - "assigned": { - "$ref": "#/definitions/v1.NodeConfigSource", - "description": "Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned." - }, - "error": { - "description": "Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions.", - "type": "string" - }, - "lastKnownGood": { - "$ref": "#/definitions/v1.NodeConfigSource", - "description": "LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future." - } - }, - "type": "object" + "type": "object", + "x-kubernetes-map-type": "atomic" }, - "v1alpha1.PriorityClassList": { - "description": "PriorityClassList is a collection of priority classes.", + "v1.ConfigMapList": { + "description": "ConfigMapList is a resource containing a list of ConfigMap objects.", "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 PriorityClasses", + "description": "Items is the list of ConfigMaps.", "items": { - "$ref": "#/definitions/v1alpha1.PriorityClass" + "$ref": "#/definitions/v1.ConfigMap" }, "type": "array" }, @@ -6245,7 +6366,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ @@ -6254,820 +6375,740 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "scheduling.k8s.io", - "kind": "PriorityClassList", - "version": "v1alpha1" + "group": "", + "kind": "ConfigMapList", + "version": "v1" } ] }, - "v1alpha1.CSIStorageCapacity": { - "description": "CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes.\n\nFor example this can express things like: - StorageClass \"standard\" has \"1234 GiB\" available in \"topology.kubernetes.io/zone=us-east1\" - StorageClass \"localssd\" has \"10 GiB\" available in \"kubernetes.io/hostname=knode-abc123\"\n\nThe following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero\n\nThe producer of these objects can decide which approach is more suitable.\n\nThey are consumed by the kube-scheduler if the CSIStorageCapacity beta feature gate is enabled there and a CSI driver opts into capacity-aware scheduling with CSIDriver.StorageCapacity.", + "v1.ConfigMapNodeConfigSource": { + "description": "ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration", "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", + "kubeletConfigKey": { + "description": "KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.", "type": "string" }, - "capacity": { - "$ref": "#/definitions/resource.Quantity", - "description": "Capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThe semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable and treated like zero capacity." + "name": { + "description": "Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.", + "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", + "namespace": { + "description": "Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.", "type": "string" }, - "maximumVolumeSize": { - "$ref": "#/definitions/resource.Quantity", - "description": "MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThis is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim." - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. The name has no particular meaning. It must be be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "nodeTopology": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "NodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable." + "resourceVersion": { + "description": "ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", + "type": "string" }, - "storageClassName": { - "description": "The name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable.", + "uid": { + "description": "UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", "type": "string" } }, "required": [ - "storageClassName" + "namespace", + "name", + "kubeletConfigKey" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1alpha1" - } - ] + "type": "object" }, - "v1beta1.PriorityLevelConfiguration": { - "description": "PriorityLevelConfiguration represents the configuration of a priority level.", + "v1.ConfigMapProjection": { + "description": "Adapts a ConfigMap into a projected volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.", "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 if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "#/definitions/v1.KeyToPath" + }, + "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", + "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" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfigurationSpec", - "description": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfigurationStatus", - "description": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "optional": { + "description": "optional specify whether the ConfigMap or its keys must be defined", + "type": "boolean" } }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - ] + "type": "object" }, - "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.", + "v1.ConfigMapVolumeSource": { + "description": "Adapts a ConfigMap into a volume.\n\nThe 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.", "properties": { - "apiServerID": { - "description": "The ID of the reporting API server.", - "type": "string" + "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" }, - "decodableVersions": { - "description": "The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions.", + "items": { + "description": "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", "items": { - "type": "string" + "$ref": "#/definitions/v1.KeyToPath" }, "type": "array", - "x-kubernetes-list-type": "set" + "x-kubernetes-list-type": "atomic" }, - "encodingVersion": { - "description": "The API server encodes the object to this version when persisting it in the backend (e.g., etcd).", + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", "type": "string" + }, + "optional": { + "description": "optional specify whether the ConfigMap or its keys must be defined", + "type": "boolean" } }, "type": "object" }, - "v1beta1.EndpointHints": { - "description": "EndpointHints provides hints describing how an endpoint should be consumed.", + "v1.Container": { + "description": "A single application container that you want to run within a pod.", "properties": { - "forZones": { - "description": "forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing. May contain a maximum of 8 entries.", + "args": { + "description": "Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", "items": { - "$ref": "#/definitions/v1beta1.ForZone" + "type": "string" }, "type": "array", "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "v1.APIServiceCondition": { - "description": "APIServiceCondition describes the state of an APIService at a particular point", - "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "format": "date-time", - "type": "string" }, - "message": { - "description": "Human-readable message indicating details about last transition.", - "type": "string" + "command": { + "description": "Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "reason": { - "description": "Unique, one-word, CamelCase reason for the condition's last transition.", - "type": "string" + "env": { + "description": "List of environment variables to set in the container. Cannot be updated.", + "items": { + "$ref": "#/definitions/v1.EnvVar" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" }, - "status": { - "description": "Status is the status of the condition. Can be True, False, Unknown.", + "envFrom": { + "description": "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.", + "items": { + "$ref": "#/definitions/v1.EnvFromSource" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "image": { + "description": "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.", "type": "string" }, - "type": { - "description": "Type is the type of the condition.", + "imagePullPolicy": { + "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images", "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "v1.SecretEnvSource": { - "description": "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.", - "properties": { + }, + "lifecycle": { + "$ref": "#/definitions/v1.Lifecycle", + "description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated." + }, + "livenessProbe": { + "$ref": "#/definitions/v1.Probe", + "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" + }, "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.", "type": "string" }, - "optional": { - "description": "Specify whether the Secret must be defined", - "type": "boolean" - } - }, - "type": "object" - }, - "v1.CustomResourceSubresources": { - "description": "CustomResourceSubresources defines the status and scale subresources for CustomResources.", - "properties": { - "scale": { - "$ref": "#/definitions/v1.CustomResourceSubresourceScale", - "description": "scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object." + "ports": { + "description": "List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated.", + "items": { + "$ref": "#/definitions/v1.ContainerPort" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "containerPort", + "protocol" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "containerPort", + "x-kubernetes-patch-strategy": "merge" }, - "status": { - "description": "status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.", - "type": "object" - } - }, - "type": "object" - }, - "v1beta1.FlowSchemaCondition": { - "description": "FlowSchemaCondition describes conditions for a FlowSchema.", - "properties": { - "lastTransitionTime": { - "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another.", - "format": "date-time", - "type": "string" + "readinessProbe": { + "$ref": "#/definitions/v1.Probe", + "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" }, - "message": { - "description": "`message` is a human-readable message indicating details about last transition.", - "type": "string" + "resizePolicy": { + "description": "Resources resize policy for the container.", + "items": { + "$ref": "#/definitions/v1.ContainerResizePolicy" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "reason": { - "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", - "type": "string" + "resources": { + "$ref": "#/definitions/v1.ResourceRequirements", + "description": "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" }, - "status": { - "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "restartPolicy": { + "description": "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.", "type": "string" }, - "type": { - "description": "`type` is the type of the condition. Required.", - "type": "string" - } - }, - "type": "object" - }, - "v1.NodeSpec": { - "description": "NodeSpec describes the attributes that a node is created with.", - "properties": { - "configSource": { - "$ref": "#/definitions/v1.NodeConfigSource", - "description": "Deprecated. If specified, the source of the node's configuration. The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field. This field is deprecated as of 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration" + "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": "#/definitions/v1.ContainerRestartRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "externalID": { - "description": "Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966", + "securityContext": { + "$ref": "#/definitions/v1.SecurityContext", + "description": "SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/" + }, + "startupProbe": { + "$ref": "#/definitions/v1.Probe", + "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. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + }, + "stdin": { + "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", + "type": "boolean" + }, + "stdinOnce": { + "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", + "type": "boolean" + }, + "terminationMessagePath": { + "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", "type": "string" }, - "podCIDR": { - "description": "PodCIDR represents the pod IP range assigned to the node.", + "terminationMessagePolicy": { + "description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.", "type": "string" }, - "podCIDRs": { - "description": "podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6.", + "tty": { + "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", + "type": "boolean" + }, + "volumeDevices": { + "description": "volumeDevices is the list of block devices to be used by the container.", "items": { - "type": "string" + "$ref": "#/definitions/v1.VolumeDevice" }, "type": "array", + "x-kubernetes-list-map-keys": [ + "devicePath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "devicePath", "x-kubernetes-patch-strategy": "merge" }, - "providerID": { - "description": "ID of the node assigned by the cloud provider in the format: ://", - "type": "string" - }, - "taints": { - "description": "If specified, the node's taints.", + "volumeMounts": { + "description": "Pod volumes to mount into the container's filesystem. Cannot be updated.", "items": { - "$ref": "#/definitions/v1.Taint" + "$ref": "#/definitions/v1.VolumeMount" }, - "type": "array" + "type": "array", + "x-kubernetes-list-map-keys": [ + "mountPath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "mountPath", + "x-kubernetes-patch-strategy": "merge" }, - "unschedulable": { - "description": "Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration", - "type": "boolean" + "workingDir": { + "description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", + "type": "string" } }, + "required": [ + "name" + ], "type": "object" }, - "v2beta2.ContainerResourceMetricSource": { - "description": "ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", + "v1.ContainerExtendedResourceRequest": { + "description": "ContainerExtendedResourceRequest has the mapping of container name, extended resource name to the device request name.", "properties": { - "container": { - "description": "container is the name of the container in the pods of the scaling target", + "containerName": { + "description": "The name of the container requesting resources.", "type": "string" }, - "name": { - "description": "name is the name of the resource in question.", + "requestName": { + "description": "The name of the request in the special ResourceClaim which corresponds to the extended resource.", "type": "string" }, - "target": { - "$ref": "#/definitions/v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" + "resourceName": { + "description": "The name of the extended resource in that container which gets backed by DRA.", + "type": "string" } }, "required": [ - "name", - "target", - "container" + "containerName", + "resourceName", + "requestName" ], "type": "object" }, - "v1.VolumeProjection": { - "description": "Projection that may be projected along with other supported volume types", - "properties": { - "configMap": { - "$ref": "#/definitions/v1.ConfigMapProjection", - "description": "information about the configMap data to project" - }, - "downwardAPI": { - "$ref": "#/definitions/v1.DownwardAPIProjection", - "description": "information about the downwardAPI data to project" - }, - "secret": { - "$ref": "#/definitions/v1.SecretProjection", - "description": "information about the secret data to project" - }, - "serviceAccountToken": { - "$ref": "#/definitions/v1.ServiceAccountTokenProjection", - "description": "information about the serviceAccountToken data to project" - } - }, - "type": "object" - }, - "v1.NodeSelector": { - "description": "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.", + "v1.ContainerImage": { + "description": "Describe a container image", "properties": { - "nodeSelectorTerms": { - "description": "Required. A list of node selector terms. The terms are ORed.", + "names": { + "description": "Names by which this image is known. e.g. [\"kubernetes.example/hyperkube:v1.0.7\", \"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\"]", "items": { - "$ref": "#/definitions/v1.NodeSelectorTerm" + "type": "string" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "sizeBytes": { + "description": "The size of the image in bytes.", + "format": "int64", + "type": "integer" } }, - "required": [ - "nodeSelectorTerms" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" + "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).", + "v1.ContainerPort": { + "description": "ContainerPort represents a network port in a single container.", "properties": { - "preference": { - "$ref": "#/definitions/v1.NodeSelectorTerm", - "description": "A node selector term, associated with the corresponding weight." + "containerPort": { + "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", + "format": "int32", + "type": "integer" }, - "weight": { - "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", + "hostIP": { + "description": "What host IP to bind the external port to.", + "type": "string" + }, + "hostPort": { + "description": "Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.", "format": "int32", "type": "integer" + }, + "name": { + "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.", + "type": "string" + }, + "protocol": { + "description": "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".", + "type": "string" } }, "required": [ - "weight", - "preference" + "containerPort" ], "type": "object" }, - "v1.JobTemplateSpec": { - "description": "JobTemplateSpec describes the data a Job should have when created from a template", + "v1.ContainerResizePolicy": { + "description": "ContainerResizePolicy represents resource resize policy for the container.", "properties": { - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "resourceName": { + "description": "Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.", + "type": "string" }, - "spec": { - "$ref": "#/definitions/v1.JobSpec", - "description": "Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "restartPolicy": { + "description": "Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired.", + "type": "string" } }, + "required": [ + "resourceName", + "restartPolicy" + ], "type": "object" }, - "v1alpha1.RoleList": { - "description": "RoleList is a collection of Roles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.22.", + "v1.ContainerRestartRule": { + "description": "ContainerRestartRule describes how a container exit is handled.", "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 Roles", - "items": { - "$ref": "#/definitions/v1alpha1.Role" - }, - "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", + "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" }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard object's metadata." + "exitCodes": { + "$ref": "#/definitions/v1.ContainerRestartRuleOnExitCodes", + "description": "Represents the exit codes to check on container exits." } }, "required": [ - "items" + "action" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "RoleList", - "version": "v1alpha1" - } - ] + "type": "object" }, - "v1beta1.EndpointSlice": { - "description": "EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.", + "v1.ContainerRestartRuleOnExitCodes": { + "description": "ContainerRestartRuleOnExitCodes describes the condition for handling an exited container based on its exit codes.", "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": "#/definitions/v1beta1.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", + "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\n set of specified values.\n- NotIn: the requirement is satisfied if the container exit code is\n not in the set of specified values.", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata." - }, - "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.", + "values": { + "description": "Specifies the set of values to check for container exit codes. At most 255 elements are allowed.", "items": { - "$ref": "#/definitions/v1beta1.EndpointPort" + "format": "int32", + "type": "integer" }, "type": "array", - "x-kubernetes-list-type": "atomic" + "x-kubernetes-list-type": "set" } }, "required": [ - "addressType", - "endpoints" + "operator" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - ] + "type": "object" }, - "v1.KeyToPath": { - "description": "Maps a string key to a path within a volume.", + "v1.ContainerState": { + "description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.", "properties": { - "key": { - "description": "The key to project.", - "type": "string" + "running": { + "$ref": "#/definitions/v1.ContainerStateRunning", + "description": "Details about a running container" }, - "mode": { - "description": "Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" + "terminated": { + "$ref": "#/definitions/v1.ContainerStateTerminated", + "description": "Details about a terminated container" }, - "path": { - "description": "The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", - "type": "string" + "waiting": { + "$ref": "#/definitions/v1.ContainerStateWaiting", + "description": "Details about a waiting container" } }, - "required": [ - "key", - "path" - ], "type": "object" }, - "v1.LocalVolumeSource": { - "description": "Local represents directly-attached storage with node affinity (Beta feature)", + "v1.ContainerStateRunning": { + "description": "ContainerStateRunning is a running state of a container.", "properties": { - "fsType": { - "description": "Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a fileystem if unspecified.", - "type": "string" - }, - "path": { - "description": "The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).", + "startedAt": { + "description": "Time at which the container was last (re-)started", + "format": "date-time", "type": "string" } }, - "required": [ - "path" - ], "type": "object" }, - "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.", + "v1.ContainerStateTerminated": { + "description": "ContainerStateTerminated is a terminated state of a container.", "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.", + "containerID": { + "description": "Container's ID in the format '://'", "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" + "exitCode": { + "description": "Exit status from the last termination of the container", + "format": "int32", + "type": "integer" }, - "name": { - "description": "Name of the object being referenced.", + "finishedAt": { + "description": "Time at which the container last terminated", + "format": "date-time", "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" - }, - "authentication.v1.TokenRequest": { - "description": "TokenRequest requests a token for a given service account.", - "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", + "message": { + "description": "Message regarding the last termination of the container", "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", + "reason": { + "description": "(brief) reason from the last termination of the container", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1.TokenRequestSpec", - "description": "Spec holds information about the request being evaluated" - }, - "status": { - "$ref": "#/definitions/v1.TokenRequestStatus", - "description": "Status is filled in by the server and indicates whether the token can be authenticated." - } - }, - "required": [ - "spec" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "authentication.k8s.io", - "kind": "TokenRequest", - "version": "v1" - } - ] - }, - "v2beta1.PodsMetricStatus": { - "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", - "properties": { - "currentAverageValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)" + "signal": { + "description": "Signal from the last termination of the container", + "format": "int32", + "type": "integer" }, - "metricName": { - "description": "metricName is the name of the metric in question", + "startedAt": { + "description": "Time at which previous execution of the container started", + "format": "date-time", "type": "string" - }, - "selector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics." } }, "required": [ - "metricName", - "currentAverageValue" + "exitCode" ], "type": "object" }, - "v1.PersistentVolumeStatus": { - "description": "PersistentVolumeStatus is the current status of a persistent volume.", + "v1.ContainerStateWaiting": { + "description": "ContainerStateWaiting is a waiting state of a container.", "properties": { "message": { - "description": "A human-readable message indicating details about why the volume is in this state.", - "type": "string" - }, - "phase": { - "description": "Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase", + "description": "Message regarding why the container is not yet running.", "type": "string" }, "reason": { - "description": "Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.", + "description": "(brief) reason the container is not yet running.", "type": "string" } }, "type": "object" }, - "v1.ContainerPort": { - "description": "ContainerPort represents a network port in a single container.", + "v1.ContainerStatus": { + "description": "ContainerStatus contains details for the current status of this container.", "properties": { - "containerPort": { - "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", - "format": "int32", - "type": "integer" + "allocatedResources": { + "additionalProperties": { + "$ref": "#/definitions/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" }, - "hostIP": { - "description": "What host IP to bind the external port to.", - "type": "string" + "allocatedResourcesStatus": { + "description": "AllocatedResourcesStatus represents the status of various resources allocated for this Pod.", + "items": { + "$ref": "#/definitions/v1.ResourceStatus" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" }, - "hostPort": { - "description": "Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.", - "format": "int32", - "type": "integer" + "containerID": { + "description": "ContainerID is the ID of the container in the format '://'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").", + "type": "string" }, - "name": { - "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.", + "image": { + "description": "Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images.", "type": "string" }, - "protocol": { - "description": "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".", + "imageID": { + "description": "ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime.", "type": "string" - } - }, - "required": [ - "containerPort" - ], - "type": "object" - }, - "v1.DaemonSetStatus": { - "description": "DaemonSetStatus represents the current status of a daemon set.", - "properties": { - "collisionCount": { - "description": "Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.", - "format": "int32", - "type": "integer" }, - "conditions": { - "description": "Represents the latest available observations of a DaemonSet's current state.", - "items": { - "$ref": "#/definitions/v1.DaemonSetCondition" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" + "lastState": { + "$ref": "#/definitions/v1.ContainerState", + "description": "LastTerminationState holds the last termination state of the container to help debug container crashes and restarts. This field is not populated if the container is still running and RestartCount is 0." }, - "currentNumberScheduled": { - "description": "The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", - "format": "int32", - "type": "integer" + "name": { + "description": "Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated.", + "type": "string" }, - "desiredNumberScheduled": { - "description": "The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", - "format": "int32", - "type": "integer" + "ready": { + "description": "Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field).\n\nThe value is typically used to determine whether a container is ready to accept traffic.", + "type": "boolean" }, - "numberAvailable": { - "description": "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)", - "format": "int32", - "type": "integer" + "resources": { + "$ref": "#/definitions/v1.ResourceRequirements", + "description": "Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized." }, - "numberMisscheduled": { - "description": "The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", + "restartCount": { + "description": "RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative.", "format": "int32", "type": "integer" }, - "numberReady": { - "description": "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready.", - "format": "int32", - "type": "integer" + "started": { + "description": "Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false.", + "type": "boolean" }, - "numberUnavailable": { - "description": "The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)", - "format": "int32", - "type": "integer" + "state": { + "$ref": "#/definitions/v1.ContainerState", + "description": "State holds details about the container's current condition." }, - "observedGeneration": { - "description": "The most recent generation observed by the daemon set controller.", - "format": "int64", - "type": "integer" + "stopSignal": { + "description": "StopSignal reports the effective stop signal for this container", + "type": "string" }, - "updatedNumberScheduled": { - "description": "The total number of nodes that are running updated daemon pod", + "user": { + "$ref": "#/definitions/v1.ContainerUser", + "description": "User represents user identity information initially attached to the first process of the container" + }, + "volumeMounts": { + "description": "Status of volume mounts.", + "items": { + "$ref": "#/definitions/v1.VolumeMountStatus" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "mountPath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "mountPath", + "x-kubernetes-patch-strategy": "merge" + } + }, + "required": [ + "name", + "ready", + "restartCount", + "image", + "imageID" + ], + "type": "object" + }, + "v1.ContainerUser": { + "description": "ContainerUser represents user identity information", + "properties": { + "linux": { + "$ref": "#/definitions/v1.LinuxContainerUser", + "description": "Linux holds user identity information initially attached to the first process of the containers in Linux. Note that the actual running identity can be changed if the process has enough privilege to do so." + } + }, + "type": "object" + }, + "v1.DaemonEndpoint": { + "description": "DaemonEndpoint contains information about a single Daemon endpoint.", + "properties": { + "Port": { + "description": "Port number of the given endpoint.", "format": "int32", "type": "integer" } }, "required": [ - "currentNumberScheduled", - "numberMisscheduled", - "desiredNumberScheduled", - "numberReady" + "Port" ], "type": "object" }, - "v1.EphemeralVolumeSource": { - "description": "Represents an ephemeral volume that is handled by a normal storage driver.", + "v1.DownwardAPIProjection": { + "description": "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.", "properties": { - "volumeClaimTemplate": { - "$ref": "#/definitions/v1.PersistentVolumeClaimTemplate", - "description": "Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be `-` where `` is the name from the `PodSpec.Volumes` array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod will *not* be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes to the PVC after it has been created.\n\nRequired, must not be nil." + "items": { + "description": "Items is a list of DownwardAPIVolume file", + "items": { + "$ref": "#/definitions/v1.DownwardAPIVolumeFile" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "type": "object" }, - "v1.UserInfo": { - "description": "UserInfo holds the information about the user needed to implement the user.Info interface.", + "v1.DownwardAPIVolumeFile": { + "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", "properties": { - "extra": { - "additionalProperties": { - "items": { - "type": "string" - }, - "type": "array" - }, - "description": "Any additional information provided by the authenticator.", - "type": "object" + "fieldRef": { + "$ref": "#/definitions/v1.ObjectFieldSelector", + "description": "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported." }, - "groups": { - "description": "The names of groups this user is a part of.", - "items": { - "type": "string" - }, - "type": "array" + "mode": { + "description": "Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" }, - "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.", + "path": { + "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", "type": "string" }, - "username": { - "description": "The name that uniquely identifies this user among all active users.", - "type": "string" + "resourceFieldRef": { + "$ref": "#/definitions/v1.ResourceFieldSelector", + "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported." } }, + "required": [ + "path" + ], "type": "object" }, - "v1.PodAffinityTerm": { - "description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running", + "v1.DownwardAPIVolumeSource": { + "description": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", "properties": { - "labelSelector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "A label query over a set of resources, in this case pods." - }, - "namespaceSelector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled." + "defaultMode": { + "description": "Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" }, - "namespaces": { - "description": "namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\"", + "items": { + "description": "Items is a list of downward API volume file", "items": { - "type": "string" + "$ref": "#/definitions/v1.DownwardAPIVolumeFile" }, - "type": "array" - }, - "topologyKey": { - "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.", - "type": "string" + "type": "array", + "x-kubernetes-list-type": "atomic" } }, - "required": [ - "topologyKey" - ], "type": "object" }, - "v2beta2.ExternalMetricStatus": { - "description": "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.", + "v1.EmptyDirVolumeSource": { + "description": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", "properties": { - "current": { - "$ref": "#/definitions/v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" + "medium": { + "description": "medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", + "type": "string" }, - "metric": { - "$ref": "#/definitions/v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" + "sizeLimit": { + "$ref": "#/definitions/resource.Quantity", + "description": "sizeLimit is the 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/concepts/storage/volumes#emptydir" } }, - "required": [ - "metric", - "current" - ], "type": "object" }, - "v1.VolumeAttachment": { - "description": "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node.\n\nVolumeAttachment objects are non-namespaced.", + "v1.EndpointAddress": { + "description": "EndpointAddress is a tuple that describes single IP address. Deprecated: This API is deprecated in v1.33+.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "hostname": { + "description": "The Hostname of this endpoint", "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "ip": { + "description": "The IP of this endpoint. May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10), or link-local multicast (224.0.0.0/24 or ff02::/16).", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1.VolumeAttachmentSpec", - "description": "Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system." + "nodeName": { + "description": "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.", + "type": "string" }, - "status": { - "$ref": "#/definitions/v1.VolumeAttachmentStatus", - "description": "Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher." + "targetRef": { + "$ref": "#/definitions/v1.ObjectReference", + "description": "Reference to object providing the endpoint." } }, "required": [ - "spec" + "ip" ], "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "VolumeAttachment", - "version": "v1" - } - ] + "x-kubernetes-map-type": "atomic" }, - "apiextensions.v1.WebhookClientConfig": { - "description": "WebhookClientConfig contains the information to make a TLS connection with the webhook.", + "core.v1.EndpointPort": { + "description": "EndpointPort is a tuple that describes a single port. Deprecated: This API is deprecated in v1.33+.", "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", + "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:\n\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\n\n* Kubernetes-defined prefixed names:\n * '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-\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\n\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.", "type": "string" }, - "service": { - "$ref": "#/definitions/apiextensions.v1.ServiceReference", - "description": "service is a reference to the service for this webhook. Either service or url must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." + "name": { + "description": "The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.", + "type": "string" }, - "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.\n\nThe `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.\n\nPlease 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.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA 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.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", + "port": { + "description": "The port number of the endpoint.", + "format": "int32", + "type": "integer" + }, + "protocol": { + "description": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.", "type": "string" } }, - "type": "object" + "required": [ + "port" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" }, - "v1.EndpointHints": { - "description": "EndpointHints provides hints describing how an endpoint should be consumed.", + "v1.EndpointSubset": { + "description": "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n\n\t{\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t}\n\nThe resulting set of endpoints can be viewed as:\n\n\ta: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n\tb: [ 10.10.1.1:309, 10.10.2.2:309 ]\n\nDeprecated: This API is deprecated in v1.33+.", "properties": { - "forZones": { - "description": "forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.", + "addresses": { + "description": "IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize.", "items": { - "$ref": "#/definitions/v1.ForZone" + "$ref": "#/definitions/v1.EndpointAddress" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "notReadyAddresses": { + "description": "IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check.", + "items": { + "$ref": "#/definitions/v1.EndpointAddress" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "ports": { + "description": "Port numbers available on the related IP addresses.", + "items": { + "$ref": "#/definitions/core.v1.EndpointPort" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -7075,8 +7116,8 @@ }, "type": "object" }, - "v1.Deployment": { - "description": "Deployment enables declarative updates for Pods and ReplicaSets.", + "v1.Endpoints": { + "description": "Endpoints is a collection of endpoints that implement the actual service. Example:\n\n\t Name: \"mysvc\",\n\t Subsets: [\n\t {\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t },\n\t {\n\t Addresses: [{\"ip\": \"10.10.3.3\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n\t },\n\t]\n\nEndpoints is a legacy API and does not contain information about all Service features. Use discoveryv1.EndpointSlice for complete information about Service endpoints.\n\nDeprecated: This API is deprecated in v1.33+. Use discoveryv1.EndpointSlice.", "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", @@ -7090,736 +7131,982 @@ "$ref": "#/definitions/v1.ObjectMeta", "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "spec": { - "$ref": "#/definitions/v1.DeploymentSpec", - "description": "Specification of the desired behavior of the Deployment." - }, - "status": { - "$ref": "#/definitions/v1.DeploymentStatus", - "description": "Most recently observed status of the Deployment." + "subsets": { + "description": "The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.", + "items": { + "$ref": "#/definitions/v1.EndpointSubset" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "apps", - "kind": "Deployment", + "group": "", + "kind": "Endpoints", "version": "v1" } ] }, - "resource.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 (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\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 a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 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.", - "type": "object", - "properties": { - "value": { - "type": "string" - } - } - }, - "v1.NodeCondition": { - "description": "NodeCondition contains condition information for a node.", - "properties": { - "lastHeartbeatTime": { - "description": "Last time we got an update on a given condition.", - "format": "date-time", - "type": "string" - }, - "lastTransitionTime": { - "description": "Last time the condition transit from one status to another.", - "format": "date-time", - "type": "string" - }, - "message": { - "description": "Human readable message indicating details about last transition.", - "type": "string" - }, - "reason": { - "description": "(brief) reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", - "type": "string" - }, - "type": { - "description": "Type of node condition.", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "v1.SelfSubjectAccessReview": { - "description": "SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action", + "v1.EndpointsList": { + "description": "EndpointsList is a list of endpoints. Deprecated: This API is deprecated in v1.33+.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, + "items": { + "description": "List of endpoints.", + "items": { + "$ref": "#/definitions/v1.Endpoints" + }, + "type": "array" + }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1.SelfSubjectAccessReviewSpec", - "description": "Spec holds information about the request being evaluated. user and groups must be empty" - }, - "status": { - "$ref": "#/definitions/v1.SubjectAccessReviewStatus", - "description": "Status is filled in by the server and indicates whether the request is allowed or not" + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ - "spec" + "items" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "authorization.k8s.io", - "kind": "SelfSubjectAccessReview", + "group": "", + "kind": "EndpointsList", "version": "v1" } ] }, - "v1.APIServiceSpec": { - "description": "APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.", + "v1.EnvFromSource": { + "description": "EnvFromSource represents the source of a set of ConfigMaps or Secrets", "properties": { - "caBundle": { - "description": "CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used.", - "format": "byte", - "type": "string", - "x-kubernetes-list-type": "atomic" + "configMapRef": { + "$ref": "#/definitions/v1.ConfigMapEnvSource", + "description": "The ConfigMap to select from" }, - "group": { - "description": "Group is the API group name this server hosts", + "prefix": { + "description": "Optional text to prepend to the name of each environment variable. May consist of any printable ASCII characters except '='.", "type": "string" }, - "groupPriorityMinimum": { - "description": "GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s", - "format": "int32", - "type": "integer" - }, - "insecureSkipTLSVerify": { - "description": "InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead.", - "type": "boolean" - }, - "service": { - "$ref": "#/definitions/apiregistration.v1.ServiceReference", - "description": "Service is a reference to the service for this API server. It must communicate on port 443. If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled." - }, - "version": { - "description": "Version is the API version this server hosts. For example, \"v1\"", - "type": "string" - }, - "versionPriority": { - "description": "VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.", - "format": "int32", - "type": "integer" + "secretRef": { + "$ref": "#/definitions/v1.SecretEnvSource", + "description": "The Secret to select from" } }, - "required": [ - "groupPriorityMinimum", - "versionPriority" - ], "type": "object" }, - "v1.ExecAction": { - "description": "ExecAction describes a \"run in container\" action.", + "v1.EnvVar": { + "description": "EnvVar represents an environment variable present in a Container.", "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array" + "name": { + "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 defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".", + "type": "string" + }, + "valueFrom": { + "$ref": "#/definitions/v1.EnvVarSource", + "description": "Source for the environment variable's value. Cannot be used if value is not empty." } }, + "required": [ + "name" + ], "type": "object" }, - "v1.HorizontalPodAutoscalerStatus": { - "description": "current status of a horizontal pod autoscaler", + "v1.EnvVarSource": { + "description": "EnvVarSource represents a source for the value of an EnvVar.", "properties": { - "currentCPUUtilizationPercentage": { - "description": "current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.", - "format": "int32", - "type": "integer" + "configMapKeyRef": { + "$ref": "#/definitions/v1.ConfigMapKeySelector", + "description": "Selects a key of a ConfigMap." }, - "currentReplicas": { - "description": "current number of replicas of pods managed by this autoscaler.", - "format": "int32", - "type": "integer" + "fieldRef": { + "$ref": "#/definitions/v1.ObjectFieldSelector", + "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." }, - "desiredReplicas": { - "description": "desired number of replicas of pods managed by this autoscaler.", - "format": "int32", - "type": "integer" + "fileKeyRef": { + "$ref": "#/definitions/v1.FileKeySelector", + "description": "FileKeyRef selects a key of the env file. Requires the EnvFiles feature gate to be enabled." }, - "lastScaleTime": { - "description": "last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.", - "format": "date-time", - "type": "string" + "resourceFieldRef": { + "$ref": "#/definitions/v1.ResourceFieldSelector", + "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." }, - "observedGeneration": { - "description": "most recent generation observed by this autoscaler.", - "format": "int64", - "type": "integer" + "secretKeyRef": { + "$ref": "#/definitions/v1.SecretKeySelector", + "description": "Selects a key of a secret in the pod's namespace" } }, - "required": [ - "currentReplicas", - "desiredReplicas" - ], "type": "object" }, - "v1beta1.EndpointSliceList": { - "description": "EndpointSliceList represents a list of endpoint slices", + "v1.EphemeralContainer": { + "description": "An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation.\n\nTo add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.", "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" + "args": { + "description": "Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "items": { - "description": "List of endpoint slices", + "command": { + "description": "Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", "items": { - "$ref": "#/definitions/v1beta1.EndpointSlice" + "type": "string" }, - "type": "array" + "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" + "env": { + "description": "List of environment variables to set in the container. Cannot be updated.", + "items": { + "$ref": "#/definitions/v1.EnvVar" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata." - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "discovery.k8s.io", - "kind": "EndpointSliceList", - "version": "v1beta1" - } - ] - }, - "v2beta2.PodsMetricSource": { - "description": "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", - "properties": { - "metric": { - "$ref": "#/definitions/v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" + "envFrom": { + "description": "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.", + "items": { + "$ref": "#/definitions/v1.EnvFromSource" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "target": { - "$ref": "#/definitions/v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" - } - }, - "required": [ - "metric", - "target" - ], - "type": "object" - }, - "v1.NamespaceCondition": { - "description": "NamespaceCondition contains details about state of namespace.", - "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.", - "format": "date-time", + "image": { + "description": "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images", "type": "string" }, - "message": { + "imagePullPolicy": { + "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images", "type": "string" }, - "reason": { - "type": "string" + "lifecycle": { + "$ref": "#/definitions/v1.Lifecycle", + "description": "Lifecycle is not allowed for ephemeral containers." }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", - "type": "string" + "livenessProbe": { + "$ref": "#/definitions/v1.Probe", + "description": "Probes are not allowed for ephemeral containers." }, - "type": { - "description": "Type of namespace controller condition.", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "v1.SELinuxOptions": { - "description": "SELinuxOptions are the labels to be applied to the container", - "properties": { - "level": { - "description": "Level is SELinux level label that applies to the container.", + "name": { + "description": "Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.", "type": "string" }, - "role": { - "description": "Role is a SELinux role label that applies to the container.", - "type": "string" + "ports": { + "description": "Ports are not allowed for ephemeral containers.", + "items": { + "$ref": "#/definitions/v1.ContainerPort" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "containerPort", + "protocol" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "containerPort", + "x-kubernetes-patch-strategy": "merge" }, - "type": { - "description": "Type is a SELinux type label that applies to the container.", - "type": "string" + "readinessProbe": { + "$ref": "#/definitions/v1.Probe", + "description": "Probes are not allowed for ephemeral containers." }, - "user": { - "description": "User is a SELinux user label that applies to the container.", - "type": "string" - } - }, - "type": "object" - }, - "v1beta1.CronJobStatus": { - "description": "CronJobStatus represents the current state of a cron job.", - "properties": { - "active": { - "description": "A list of pointers to currently running jobs.", + "resizePolicy": { + "description": "Resources resize policy for the container.", "items": { - "$ref": "#/definitions/v1.ObjectReference" + "$ref": "#/definitions/v1.ContainerResizePolicy" }, "type": "array", "x-kubernetes-list-type": "atomic" }, - "lastScheduleTime": { - "description": "Information when was the last time the job was successfully scheduled.", - "format": "date-time", - "type": "string" + "resources": { + "$ref": "#/definitions/v1.ResourceRequirements", + "description": "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod." }, - "lastSuccessfulTime": { - "description": "Information when was the last time the job successfully completed.", - "format": "date-time", - "type": "string" - } - }, - "type": "object" - }, - "v1.ScaleIOVolumeSource": { - "description": "ScaleIOVolumeSource represents a persistent ScaleIO volume", - "properties": { - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\".", + "restartPolicy": { + "description": "Restart policy for the container to manage the restart behavior of each container within a pod. You cannot set this field on ephemeral containers.", "type": "string" }, - "gateway": { - "description": "The host address of the ScaleIO API Gateway.", - "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": "#/definitions/v1.ContainerRestartRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "protectionDomain": { - "description": "The name of the ScaleIO Protection Domain for the configured storage.", - "type": "string" + "securityContext": { + "$ref": "#/definitions/v1.SecurityContext", + "description": "Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext." }, - "readOnly": { - "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" + "startupProbe": { + "$ref": "#/definitions/v1.Probe", + "description": "Probes are not allowed for ephemeral containers." }, - "secretRef": { - "$ref": "#/definitions/v1.LocalObjectReference", - "description": "SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail." + "stdin": { + "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", + "type": "boolean" }, - "sslEnabled": { - "description": "Flag to enable/disable SSL communication with Gateway, default false", + "stdinOnce": { + "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", "type": "boolean" }, - "storageMode": { - "description": "Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", + "targetContainerName": { + "description": "If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec.\n\nThe container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined.", "type": "string" }, - "storagePool": { - "description": "The ScaleIO Storage Pool associated with the protection domain.", + "terminationMessagePath": { + "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", "type": "string" }, - "system": { - "description": "The name of the storage system as configured in ScaleIO.", + "terminationMessagePolicy": { + "description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.", "type": "string" }, - "volumeName": { - "description": "The name of a volume already created in the ScaleIO system that is associated with this volume source.", + "tty": { + "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", + "type": "boolean" + }, + "volumeDevices": { + "description": "volumeDevices is the list of block devices to be used by the container.", + "items": { + "$ref": "#/definitions/v1.VolumeDevice" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "devicePath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "devicePath", + "x-kubernetes-patch-strategy": "merge" + }, + "volumeMounts": { + "description": "Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.", + "items": { + "$ref": "#/definitions/v1.VolumeMount" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "mountPath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "mountPath", + "x-kubernetes-patch-strategy": "merge" + }, + "workingDir": { + "description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", "type": "string" } }, "required": [ - "gateway", - "system", - "secretRef" + "name" ], "type": "object" }, - "v1.Overhead": { - "description": "Overhead structure represents the resource overhead associated with running a pod.", + "v1.EphemeralVolumeSource": { + "description": "Represents an ephemeral volume that is handled by a normal storage driver.", "properties": { - "podFixed": { - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - }, - "description": "PodFixed represents the fixed resource overhead associated with running a pod.", - "type": "object" + "volumeClaimTemplate": { + "$ref": "#/definitions/v1.PersistentVolumeClaimTemplate", + "description": "Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be `-` where `` is the name from the `PodSpec.Volumes` array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod will *not* be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes to the PVC after it has been created.\n\nRequired, must not be nil." } }, "type": "object" }, - "v1beta1.CronJob": { - "description": "CronJob represents the configuration of a single cron job.", + "core.v1.Event": { + "description": "Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.", "properties": { + "action": { + "description": "What action was taken/failed regarding to the Regarding object.", + "type": "string" + }, "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, + "count": { + "description": "The number of times this event has occurred.", + "format": "int32", + "type": "integer" + }, + "eventTime": { + "description": "Time when this Event was first observed.", + "format": "date-time", + "type": "string" + }, + "firstTimestamp": { + "description": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)", + "format": "date-time", + "type": "string" + }, + "involvedObject": { + "$ref": "#/definitions/v1.ObjectReference", + "description": "The object that this event is about." + }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, + "lastTimestamp": { + "description": "The time at which the most recent occurrence of this event was recorded.", + "format": "date-time", + "type": "string" + }, + "message": { + "description": "A human-readable description of the status of this operation.", + "type": "string" + }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "spec": { - "$ref": "#/definitions/v1beta1.CronJobSpec", - "description": "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "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" }, - "status": { - "$ref": "#/definitions/v1beta1.CronJobStatus", - "description": "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "related": { + "$ref": "#/definitions/v1.ObjectReference", + "description": "Optional secondary object for more complex actions." + }, + "reportingComponent": { + "description": "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.", + "type": "string" + }, + "reportingInstance": { + "description": "ID of the controller instance, e.g. `kubelet-xyzf`.", + "type": "string" + }, + "series": { + "$ref": "#/definitions/core.v1.EventSeries", + "description": "Data about the Event series this event represents or nil if it's a singleton Event." + }, + "source": { + "$ref": "#/definitions/v1.EventSource", + "description": "The component reporting this event. Should be a short machine understandable string." + }, + "type": { + "description": "Type of this event (Normal, Warning), new types could be added in the future", + "type": "string" } }, + "required": [ + "metadata", + "involvedObject" + ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" + "group": "", + "kind": "Event", + "version": "v1" } ] }, - "v1.SecretProjection": { - "description": "Adapts a secret into a projected volume.\n\nThe 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.", + "core.v1.EventList": { + "description": "EventList is a list of events.", "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": "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "description": "List of events", "items": { - "$ref": "#/definitions/v1.KeyToPath" + "$ref": "#/definitions/core.v1.Event" }, "type": "array" }, - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "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" }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, - "type": "object" + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "EventList", + "version": "v1" + } + ] }, - "v1.StorageOSPersistentVolumeSource": { - "description": "Represents a StorageOS persistent volume resource.", + "core.v1.EventSeries": { + "description": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.", "properties": { - "fsType": { - "description": "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": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "$ref": "#/definitions/v1.ObjectReference", - "description": "SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted." - }, - "volumeName": { - "description": "VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", - "type": "string" + "count": { + "description": "Number of occurrences in this series up to the last heartbeat time", + "format": "int32", + "type": "integer" }, - "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.", + "lastObservedTime": { + "description": "Time of the last occurrence observed", + "format": "date-time", "type": "string" } }, "type": "object" }, - "v1.PhotonPersistentDiskVolumeSource": { - "description": "Represents a Photon Controller persistent disk resource.", + "v1.EventSource": { + "description": "EventSource contains information for an event.", "properties": { - "fsType": { - "description": "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.", + "component": { + "description": "Component from which the event is generated.", "type": "string" }, - "pdID": { - "description": "ID that identifies Photon Controller persistent disk", + "host": { + "description": "Node name on which the event is generated.", "type": "string" } }, - "required": [ - "pdID" - ], "type": "object" }, - "version.Info": { - "description": "Info contains versioning information. how we'll want to distribute that information.", + "v1.ExecAction": { + "description": "ExecAction describes a \"run in container\" action.", "properties": { - "buildDate": { + "command": { + "description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.FCVolumeSource": { + "description": "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.", + "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" }, - "compiler": { - "type": "string" + "lun": { + "description": "lun is Optional: FC target lun number", + "format": "int32", + "type": "integer" }, - "gitCommit": { - "type": "string" + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" }, - "gitTreeState": { - "type": "string" + "targetWWNs": { + "description": "targetWWNs is Optional: FC target worldwide names (WWNs)", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "gitVersion": { + "wwids": { + "description": "wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.FileKeySelector": { + "description": "FileKeySelector selects a key of the env file.", + "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" }, - "goVersion": { - "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.\n\nIf optional is set to false and the specified key does not exist, an error will be returned during Pod creation.", + "type": "boolean" }, - "major": { + "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" }, - "minor": { + "volumeName": { + "description": "The name of the volume mount containing the env file.", + "type": "string" + } + }, + "required": [ + "volumeName", + "path", + "key" + ], + "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.", + "properties": { + "driver": { + "description": "driver is the name of the driver to use for this volume.", "type": "string" }, - "platform": { + "fsType": { + "description": "fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", "type": "string" + }, + "options": { + "additionalProperties": { + "type": "string" + }, + "description": "options is Optional: this field holds extra command options if any.", + "type": "object" + }, + "readOnly": { + "description": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/v1.SecretReference", + "description": "secretRef is 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." } }, "required": [ - "major", - "minor", - "gitVersion", - "gitCommit", - "gitTreeState", - "buildDate", - "goVersion", - "compiler", - "platform" + "driver" ], "type": "object" }, - "v1.ConfigMapEnvSource": { - "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.", + "v1.FlexVolumeSource": { + "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", "properties": { - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "driver": { + "description": "driver is the name of the driver to use for this volume.", "type": "string" }, - "optional": { - "description": "Specify whether the ConfigMap must be defined", + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", + "type": "string" + }, + "options": { + "additionalProperties": { + "type": "string" + }, + "description": "options is Optional: this field holds extra command options if any.", + "type": "object" + }, + "readOnly": { + "description": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/v1.LocalObjectReference", + "description": "secretRef is 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." } }, + "required": [ + "driver" + ], "type": "object" }, - "v1.PodTemplate": { - "description": "PodTemplate describes a template for creating copies of a predefined pod.", + "v1.FlockerVolumeSource": { + "description": "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.", "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", + "datasetName": { + "description": "datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated", "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", + "datasetUUID": { + "description": "datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset", + "type": "string" + } + }, + "type": "object" + }, + "v1.GCEPersistentDiskVolumeSource": { + "description": "Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "partition": { + "description": "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "format": "int32", + "type": "integer" }, - "template": { - "$ref": "#/definitions/v1.PodTemplateSpec", - "description": "Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "pdName": { + "description": "pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "type": "string" + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "type": "boolean" } }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "PodTemplate", - "version": "v1" + "required": [ + "pdName" + ], + "type": "object" + }, + "v1.GRPCAction": { + "description": "GRPCAction specifies an action involving a GRPC service.", + "properties": { + "port": { + "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", + "format": "int32", + "type": "integer" + }, + "service": { + "description": "Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", + "type": "string" } - ] + }, + "required": [ + "port" + ], + "type": "object" }, - "v1.NodeConfigSource": { - "description": "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22", + "v1.GitRepoVolumeSource": { + "description": "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.\n\nDEPRECATED: 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.", "properties": { - "configMap": { - "$ref": "#/definitions/v1.ConfigMapNodeConfigSource", - "description": "ConfigMap is a reference to a Node's ConfigMap" + "directory": { + "description": "directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.", + "type": "string" + }, + "repository": { + "description": "repository is the URL", + "type": "string" + }, + "revision": { + "description": "revision is the commit hash for the specified revision.", + "type": "string" } }, + "required": [ + "repository" + ], "type": "object" }, - "v1.EndpointConditions": { - "description": "EndpointConditions represents the current condition of an endpoint.", + "v1.GlusterfsPersistentVolumeSource": { + "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", "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.", - "type": "boolean" + "endpoints": { + "description": "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "string" }, - "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. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.", + "endpointsNamespace": { + "description": "endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "string" + }, + "path": { + "description": "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "string" + }, + "readOnly": { + "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", "type": "boolean" + } + }, + "required": [ + "endpoints", + "path" + ], + "type": "object" + }, + "v1.GlusterfsVolumeSource": { + "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "endpoints": { + "description": "endpoints is the endpoint name that details Glusterfs topology.", + "type": "string" }, - "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. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.", + "path": { + "description": "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "string" + }, + "readOnly": { + "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", "type": "boolean" } }, + "required": [ + "endpoints", + "path" + ], "type": "object" }, - "v1beta1.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.HTTPGetAction": { + "description": "HTTPGetAction describes an action based on HTTP Get requests.", "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": "#/definitions/v1beta1.NonResourcePolicyRule" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "host": { + "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + "type": "string" }, - "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.", + "httpHeaders": { + "description": "Custom headers to set in the request. HTTP allows repeated headers.", "items": { - "$ref": "#/definitions/v1beta1.ResourcePolicyRule" + "$ref": "#/definitions/v1.HTTPHeader" }, "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": "#/definitions/v1beta1.Subject" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "path": { + "description": "Path to access on the HTTP server.", + "type": "string" + }, + "port": { + "$ref": "#/definitions/intstr.IntOrString", + "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." + }, + "scheme": { + "description": "Scheme to use for connecting to the host. Defaults to HTTP.", + "type": "string" } }, "required": [ - "subjects" + "port" ], "type": "object" }, - "v1.DeploymentStrategy": { - "description": "DeploymentStrategy describes how to replace existing pods with new ones.", + "v1.HTTPHeader": { + "description": "HTTPHeader describes a custom header to be used in HTTP probes", "properties": { - "rollingUpdate": { - "$ref": "#/definitions/v1.RollingUpdateDeployment", - "description": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate." + "name": { + "description": "The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header.", + "type": "string" }, - "type": { - "description": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", + "value": { + "description": "The header field value", "type": "string" } }, + "required": [ + "name", + "value" + ], "type": "object" }, - "v2beta1.ResourceMetricStatus": { - "description": "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", + "v1.HostAlias": { + "description": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.", "properties": { - "currentAverageUtilization": { - "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification.", - "format": "int32", - "type": "integer" - }, - "currentAverageValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification." + "hostnames": { + "description": "Hostnames for the above IP address.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "name": { - "description": "name is the name of the resource in question.", + "ip": { + "description": "IP address of the host file entry.", "type": "string" } }, "required": [ - "name", - "currentAverageValue" + "ip" ], "type": "object" }, - "v1.TCPSocketAction": { - "description": "TCPSocketAction describes an action based on opening a socket", + "v1.HostIP": { + "description": "HostIP represents a single IP address allocated to the host.", "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", + "ip": { + "description": "IP is the IP address assigned to the host", + "type": "string" + } + }, + "required": [ + "ip" + ], + "type": "object" + }, + "v1.HostPathVolumeSource": { + "description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", + "properties": { + "path": { + "description": "path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", "type": "string" }, - "port": { - "$ref": "#/definitions/intstr.IntOrString", - "description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." + "type": { + "description": "type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + "type": "string" } }, "required": [ - "port" + "path" ], "type": "object" }, - "v1.ReplicaSetSpec": { - "description": "ReplicaSetSpec is the specification of a ReplicaSet.", + "v1.ISCSIPersistentVolumeSource": { + "description": "ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", "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" + "chapAuthDiscovery": { + "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", + "type": "boolean" }, - "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", + "chapAuthSession": { + "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", + "type": "boolean" + }, + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", + "type": "string" + }, + "initiatorName": { + "description": "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", + "type": "string" + }, + "iqn": { + "description": "iqn is Target iSCSI Qualified Name.", + "type": "string" + }, + "iscsiInterface": { + "description": "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", + "type": "string" + }, + "lun": { + "description": "lun is iSCSI Target Lun number.", "format": "int32", "type": "integer" }, - "selector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + "portals": { + "description": "portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "template": { - "$ref": "#/definitions/v1.PodTemplateSpec", - "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template" + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/v1.SecretReference", + "description": "secretRef is the CHAP Secret for iSCSI target and initiator authentication" + }, + "targetPortal": { + "description": "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "type": "string" } }, "required": [ - "selector" + "targetPortal", + "iqn", + "lun" ], "type": "object" }, - "v1.GCEPersistentDiskVolumeSource": { - "description": "Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.", + "v1.ISCSIVolumeSource": { + "description": "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", "properties": { + "chapAuthDiscovery": { + "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", + "type": "boolean" + }, + "chapAuthSession": { + "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", + "type": "boolean" + }, "fsType": { - "description": "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", + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", "type": "string" }, - "partition": { - "description": "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", + "initiatorName": { + "description": "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", + "type": "string" + }, + "iqn": { + "description": "iqn is the target iSCSI Qualified Name.", + "type": "string" + }, + "iscsiInterface": { + "description": "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", + "type": "string" + }, + "lun": { + "description": "lun represents iSCSI Target Lun number.", "format": "int32", "type": "integer" }, - "pdName": { - "description": "Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "type": "string" + "portals": { + "description": "portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, "readOnly": { - "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/v1.LocalObjectReference", + "description": "secretRef is the CHAP Secret for iSCSI target and initiator authentication" + }, + "targetPortal": { + "description": "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "type": "string" } }, "required": [ - "pdName" + "targetPortal", + "iqn", + "lun" + ], + "type": "object" + }, + "v1.ImageVolumeSource": { + "description": "ImageVolumeSource represents a image volume resource.", + "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.", + "properties": { + "key": { + "description": "key is the key to project.", + "type": "string" + }, + "mode": { + "description": "mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "path": { + "description": "path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", + "type": "string" + } + }, + "required": [ + "key", + "path" ], "type": "object" }, @@ -7827,18 +8114,44 @@ "description": "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.", "properties": { "postStart": { - "$ref": "#/definitions/v1.Handler", + "$ref": "#/definitions/v1.LifecycleHandler", "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" }, "preStop": { - "$ref": "#/definitions/v1.Handler", - "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" + "$ref": "#/definitions/v1.LifecycleHandler", + "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 Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). 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" + }, + "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.Job": { - "description": "Job represents the configuration of a single job.", + "v1.LifecycleHandler": { + "description": "LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.", + "properties": { + "exec": { + "$ref": "#/definitions/v1.ExecAction", + "description": "Exec specifies a command to execute in the container." + }, + "httpGet": { + "$ref": "#/definitions/v1.HTTPGetAction", + "description": "HTTPGet specifies an HTTP GET request to perform." + }, + "sleep": { + "$ref": "#/definitions/v1.SleepAction", + "description": "Sleep represents a duration that the container should sleep." + }, + "tcpSocket": { + "$ref": "#/definitions/v1.TCPSocketAction", + "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for backward compatibility. There is no validation of this field and lifecycle hooks will fail at runtime when it is specified." + } + }, + "type": "object" + }, + "v1.LimitRange": { + "description": "LimitRange sets resource usage limits for each kind of resource in a 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", @@ -7853,34 +8166,78 @@ "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1.JobSpec", - "description": "Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/v1.JobStatus", - "description": "Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "$ref": "#/definitions/v1.LimitRangeSpec", + "description": "Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "batch", - "kind": "Job", + "group": "", + "kind": "LimitRange", "version": "v1" } ] }, - "v1.NodeList": { - "description": "NodeList is the whole list of all Nodes which have been registered with master.", + "v1.LimitRangeItem": { + "description": "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", + "properties": { + "default": { + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" + }, + "description": "Default resource requirement limit value by resource name if resource limit is omitted.", + "type": "object" + }, + "defaultRequest": { + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" + }, + "description": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", + "type": "object" + }, + "max": { + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" + }, + "description": "Max usage constraints on this kind by resource name.", + "type": "object" + }, + "maxLimitRequestRatio": { + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" + }, + "description": "MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.", + "type": "object" + }, + "min": { + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" + }, + "description": "Min usage constraints on this kind by resource name.", + "type": "object" + }, + "type": { + "description": "Type of resource that this limit applies to.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object" + }, + "v1.LimitRangeList": { + "description": "LimitRangeList is a list of LimitRange items.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { - "description": "List of nodes", + "description": "Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", "items": { - "$ref": "#/definitions/v1.Node" + "$ref": "#/definitions/v1.LimitRange" }, "type": "array" }, @@ -7900,64 +8257,139 @@ "x-kubernetes-group-version-kind": [ { "group": "", - "kind": "NodeList", + "kind": "LimitRangeList", "version": "v1" } ] }, - "v1beta1.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.LimitRangeSpec": { + "description": "LimitRangeSpec defines a min/max usage limit for resources that match on 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": "#/definitions/v1.ObjectMeta", - "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1beta1.FlowSchemaSpec", - "description": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/v1beta1.FlowSchemaStatus", - "description": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "limits": { + "description": "Limits is the list of LimitRangeItem objects that are enforced.", + "items": { + "$ref": "#/definitions/v1.LimitRangeItem" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" + "required": [ + "limits" + ], + "type": "object" + }, + "v1.LinuxContainerUser": { + "description": "LinuxContainerUser represents user identity information in Linux containers", + "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": [ + "uid", + "gid" + ], + "type": "object" }, - "v1alpha1.VolumeAttachmentSpec": { - "description": "VolumeAttachmentSpec is the specification of a VolumeAttachment request.", + "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.", "properties": { - "attacher": { - "description": "Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().", + "hostname": { + "description": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)", "type": "string" }, - "nodeName": { - "description": "The node that the volume should be attached to.", + "ip": { + "description": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)", "type": "string" }, - "source": { - "$ref": "#/definitions/v1alpha1.VolumeAttachmentSource", - "description": "Source represents the volume that should be attached." + "ipMode": { + "description": "IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to \"VIP\" indicates that traffic is delivered to the node with the destination set to the load-balancer's IP and port. Setting this to \"Proxy\" indicates that traffic is delivered to the node or pod with the destination set to the node's IP and node port or the pod's IP and port. Service implementations may use this information to adjust traffic routing.", + "type": "string" + }, + "ports": { + "description": "Ports is a list of records of service ports If used, every port defined in the service should have an entry in it", + "items": { + "$ref": "#/definitions/v1.PortStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.LoadBalancerStatus": { + "description": "LoadBalancerStatus represents the status of a load-balancer.", + "properties": { + "ingress": { + "description": "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.", + "items": { + "$ref": "#/definitions/v1.LoadBalancerIngress" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.LocalObjectReference": { + "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same 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", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1.LocalVolumeSource": { + "description": "Local represents directly-attached storage with node affinity", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a filesystem if unspecified.", + "type": "string" + }, + "path": { + "description": "path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).", + "type": "string" } }, "required": [ - "attacher", - "source", - "nodeName" + "path" + ], + "type": "object" + }, + "v1.ModifyVolumeStatus": { + "description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation", + "properties": { + "status": { + "description": "status is the status of the ControllerModifyVolume operation. It can be in any of following states:\n - Pending\n Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as\n the specified VolumeAttributesClass not existing.\n - InProgress\n InProgress indicates that the volume is being modified.\n - Infeasible\n Infeasible indicates that the request has been rejected as invalid by the CSI driver. To\n\t resolve the error, a valid VolumeAttributesClass needs to be specified.\nNote: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately.", + "type": "string" + }, + "targetVolumeAttributesClassName": { + "description": "targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled", + "type": "string" + } + }, + "required": [ + "status" ], "type": "object" }, @@ -7965,15 +8397,15 @@ "description": "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.", "properties": { "path": { - "description": "Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", + "description": "path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", "type": "string" }, "readOnly": { - "description": "ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", + "description": "readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", "type": "boolean" }, "server": { - "description": "Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", + "description": "server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", "type": "string" } }, @@ -7983,286 +8415,81 @@ ], "type": "object" }, - "v1.WatchEvent": { - "description": "Event represents a single event to a watched resource.", + "v1.Namespace": { + "description": "Namespace provides a scope for Names. Use of multiple namespaces is optional.", "properties": { - "object": { - "description": "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n depending on context.", - "type": "object" + "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": { + "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": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1.NamespaceSpec", + "description": "Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/v1.NamespaceStatus", + "description": "Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, - "required": [ - "type", - "object" - ], "type": "object", "x-kubernetes-group-version-kind": [ { "group": "", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "admission.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "admission.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "admissionregistration.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "admissionregistration.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "apiextensions.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "apiextensions.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "apiregistration.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "apiregistration.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "apps", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "apps", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "apps", - "kind": "WatchEvent", - "version": "v1beta2" - }, - { - "group": "authentication.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "authentication.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "authorization.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "authorization.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "autoscaling", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "autoscaling", - "kind": "WatchEvent", - "version": "v2beta1" - }, - { - "group": "autoscaling", - "kind": "WatchEvent", - "version": "v2beta2" - }, - { - "group": "batch", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "batch", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "certificates.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "certificates.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "coordination.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "coordination.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "discovery.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "discovery.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "events.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "events.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "extensions", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "WatchEvent", - "version": "v1alpha1" - }, - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "imagepolicy.k8s.io", - "kind": "WatchEvent", - "version": "v1alpha1" - }, - { - "group": "internal.apiserver.k8s.io", - "kind": "WatchEvent", - "version": "v1alpha1" - }, - { - "group": "networking.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "networking.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "node.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "node.k8s.io", - "kind": "WatchEvent", - "version": "v1alpha1" - }, - { - "group": "node.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "policy", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "policy", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "rbac.authorization.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "rbac.authorization.k8s.io", - "kind": "WatchEvent", - "version": "v1alpha1" - }, - { - "group": "rbac.authorization.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "scheduling.k8s.io", - "kind": "WatchEvent", + "kind": "Namespace", "version": "v1" + } + ] + }, + "v1.NamespaceCondition": { + "description": "NamespaceCondition contains details about state of namespace.", + "properties": { + "lastTransitionTime": { + "description": "Last time the condition transitioned from one status to another.", + "format": "date-time", + "type": "string" }, - { - "group": "scheduling.k8s.io", - "kind": "WatchEvent", - "version": "v1alpha1" - }, - { - "group": "scheduling.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" + "message": { + "description": "Human-readable message indicating details about last transition.", + "type": "string" }, - { - "group": "storage.k8s.io", - "kind": "WatchEvent", - "version": "v1" + "reason": { + "description": "Unique, one-word, CamelCase reason for the condition's last transition.", + "type": "string" }, - { - "group": "storage.k8s.io", - "kind": "WatchEvent", - "version": "v1alpha1" + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" }, - { - "group": "storage.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" + "type": { + "description": "Type of namespace controller condition.", + "type": "string" } - ] + }, + "required": [ + "type", + "status" + ], + "type": "object" }, - "v1alpha1.StorageVersionList": { - "description": "A list of StorageVersions.", + "v1.NamespaceList": { + "description": "NamespaceList is a list of Namespaces.", "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", + "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": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.Namespace" }, "type": "array" }, @@ -8272,7 +8499,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ @@ -8281,63 +8508,56 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersionList", - "version": "v1alpha1" + "group": "", + "kind": "NamespaceList", + "version": "v1" } ] }, - "v1.HTTPGetAction": { - "description": "HTTPGetAction describes an action based on HTTP Get requests.", + "v1.NamespaceSpec": { + "description": "NamespaceSpec describes the attributes on a Namespace.", "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", + "finalizers": { + "description": "Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", "items": { - "$ref": "#/definitions/v1.HTTPHeader" + "type": "string" }, - "type": "array" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "$ref": "#/definitions/intstr.IntOrString", - "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.NamespaceStatus": { + "description": "NamespaceStatus is information about the current status of a Namespace.", + "properties": { + "conditions": { + "description": "Represents the latest available observations of a namespace's current state.", + "items": { + "$ref": "#/definitions/v1.NamespaceCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" }, - "scheme": { - "description": "Scheme to use for connecting to the host. Defaults to HTTP.", + "phase": { + "description": "Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", "type": "string" } }, - "required": [ - "port" - ], "type": "object" }, - "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.Node": { + "description": "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).", "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", - "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" @@ -8346,222 +8566,159 @@ "$ref": "#/definitions/v1.ObjectMeta", "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "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" + "spec": { + "$ref": "#/definitions/v1.NodeSpec", + "description": "Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" }, - "type": { - "description": "Used to facilitate programmatic handling of secret data.", - "type": "string" + "status": { + "$ref": "#/definitions/v1.NodeStatus", + "description": "Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, "type": "object", "x-kubernetes-group-version-kind": [ { "group": "", - "kind": "Secret", + "kind": "Node", "version": "v1" } ] }, - "v1.TypedLocalObjectReference": { - "description": "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.", + "v1.NodeAddress": { + "description": "NodeAddress contains information for the node's address.", "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", + "address": { + "description": "The node address.", "type": "string" }, - "name": { - "description": "Name is the name of resource being referenced", + "type": { + "description": "Node address type, one of Hostname, ExternalIP or InternalIP.", "type": "string" } }, "required": [ - "kind", - "name" + "type", + "address" ], - "type": "object", - "x-kubernetes-map-type": "atomic" + "type": "object" }, - "v1beta1.PriorityLevelConfigurationCondition": { - "description": "PriorityLevelConfigurationCondition defines the condition of priority level.", + "v1.NodeAffinity": { + "description": "Node affinity is a group of node affinity scheduling rules.", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.", + "items": { + "$ref": "#/definitions/v1.PreferredSchedulingTerm" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "$ref": "#/definitions/v1.NodeSelector", + "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." + } + }, + "type": "object" + }, + "v1.NodeCondition": { + "description": "NodeCondition contains condition information for a node.", "properties": { + "lastHeartbeatTime": { + "description": "Last time we got an update on a given condition.", + "format": "date-time", + "type": "string" + }, "lastTransitionTime": { - "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another.", + "description": "Last time the condition transit from one status to another.", "format": "date-time", "type": "string" }, "message": { - "description": "`message` is a human-readable message indicating details about last transition.", + "description": "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.", + "description": "(brief) reason for the condition's last transition.", "type": "string" }, "status": { - "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "description": "Status of the condition, one of True, False, Unknown.", "type": "string" }, "type": { - "description": "`type` is the type of the condition. Required.", - "type": "string" - } - }, - "type": "object" - }, - "v1beta1.ServiceAccountSubject": { - "description": "ServiceAccountSubject holds detailed information for service-account-kind subject.", - "properties": { - "name": { - "description": "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.", - "type": "string" - }, - "namespace": { - "description": "`namespace` is the namespace of matching ServiceAccount objects. Required.", + "description": "Type of node condition.", "type": "string" } }, "required": [ - "namespace", - "name" + "type", + "status" ], "type": "object" }, - "v1.CertificateSigningRequestStatus": { - "description": "CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate.", + "v1.NodeConfigSource": { + "description": "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22", "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.\n\nIf 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.\n\nValidation requirements:\n 1. certificate must contain one or more PEM blocks.\n 2. All PEM blocks must have the \"CERTIFICATE\" label, contain no headers, and the encoded data\n must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280.\n 3. Non-PEM content may appear before or after the \"CERTIFICATE\" PEM blocks and is unvalidated,\n to allow for explanatory text as described in section 5.2 of RFC7468.\n\nIf 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.\n\nThe certificate is encoded in PEM format.\n\nWhen serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of:\n\n base64(\n -----BEGIN CERTIFICATE-----\n ...\n -----END CERTIFICATE-----\n )", - "format": "byte", - "type": "string", - "x-kubernetes-list-type": "atomic" - }, - "conditions": { - "description": "conditions applied to the request. Known conditions are \"Approved\", \"Denied\", and \"Failed\".", - "items": { - "$ref": "#/definitions/v1.CertificateSigningRequestCondition" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" + "configMap": { + "$ref": "#/definitions/v1.ConfigMapNodeConfigSource", + "description": "ConfigMap is a reference to a Node's ConfigMap" } }, "type": "object" }, - "v2beta1.MetricStatus": { - "description": "MetricStatus describes the last-read state of a single metric.", + "v1.NodeConfigStatus": { + "description": "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.", "properties": { - "containerResource": { - "$ref": "#/definitions/v2beta1.ContainerResourceMetricStatus", - "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." - }, - "external": { - "$ref": "#/definitions/v2beta1.ExternalMetricStatus", - "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." - }, - "object": { - "$ref": "#/definitions/v2beta1.ObjectMetricStatus", - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." - }, - "pods": { - "$ref": "#/definitions/v2beta1.PodsMetricStatus", - "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." + "active": { + "$ref": "#/definitions/v1.NodeConfigSource", + "description": "Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error." }, - "resource": { - "$ref": "#/definitions/v2beta1.ResourceMetricStatus", - "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." + "assigned": { + "$ref": "#/definitions/v1.NodeConfigSource", + "description": "Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned." }, - "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", + "error": { + "description": "Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions.", "type": "string" + }, + "lastKnownGood": { + "$ref": "#/definitions/v1.NodeConfigSource", + "description": "LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future." } }, - "required": [ - "type" - ], "type": "object" }, - "v1.CSIDriverSpec": { - "description": "CSIDriverSpec is the specification of a CSIDriver.", + "v1.NodeDaemonEndpoints": { + "description": "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", "properties": { - "attachRequired": { - "description": "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.\n\nThis field is immutable.", - "type": "boolean" - }, - "fsGroupPolicy": { - "description": "Defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details. This field is beta, and is only honored by servers that enable the CSIVolumeFSGroupPolicy feature gate.\n\nThis field is immutable.\n\nDefaults 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.", - "type": "string" - }, - "podInfoOnMount": { - "description": "If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) \"csi.storage.k8s.io/ephemeral\": \"true\" if the volume is an ephemeral inline volume\n defined by a CSIVolumeSource, otherwise \"false\"\n\n\"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.\n\nThis field is immutable.", - "type": "boolean" - }, - "requiresRepublish": { - "description": "RequiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false.\n\nNote: 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.", - "type": "boolean" - }, - "storageCapacity": { - "description": "If set to true, 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.\n\nThe 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.\n\nAlternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.\n\nThis field is immutable.\n\nThis is a beta field and only available when the CSIStorageCapacity feature is enabled. The default is false.", - "type": "boolean" - }, - "tokenRequests": { - "description": "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\": {\n \"\": {\n \"token\": ,\n \"expirationTimestamp\": ,\n },\n ...\n}\n\nNote: 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.", - "items": { - "$ref": "#/definitions/storage.v1.TokenRequest" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "volumeLifecycleModes": { - "description": "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.\n\nThis field is immutable.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" + "kubeletEndpoint": { + "$ref": "#/definitions/v1.DaemonEndpoint", + "description": "Endpoint on which Kubelet is listening." } }, "type": "object" }, - "v2beta2.ExternalMetricSource": { - "description": "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).", + "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.", "properties": { - "metric": { - "$ref": "#/definitions/v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" - }, - "target": { - "$ref": "#/definitions/v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" + "supplementalGroupsPolicy": { + "description": "SupplementalGroupsPolicy is set to true if the runtime supports SupplementalGroupsPolicy and ContainerUser.", + "type": "boolean" } }, - "required": [ - "metric", - "target" - ], "type": "object" }, - "v1.CustomResourceDefinitionList": { - "description": "CustomResourceDefinitionList is a list of CustomResourceDefinition objects.", + "v1.NodeList": { + "description": "NodeList is the whole list of all Nodes which have been registered with master.", "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 list individual CustomResourceDefinition objects", + "description": "List of nodes", "items": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1.Node" }, "type": "array" }, @@ -8571,7 +8728,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ @@ -8580,792 +8737,663 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinitionList", + "group": "", + "kind": "NodeList", "version": "v1" } ] }, - "v2beta2.PodsMetricStatus": { - "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", + "v1.NodeRuntimeHandler": { + "description": "NodeRuntimeHandler is a set of runtime handler information.", "properties": { - "current": { - "$ref": "#/definitions/v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" + "features": { + "$ref": "#/definitions/v1.NodeRuntimeHandlerFeatures", + "description": "Supported features." }, - "metric": { - "$ref": "#/definitions/v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" + "name": { + "description": "Runtime handler name. Empty for the default runtime handler.", + "type": "string" } }, - "required": [ - "metric", - "current" - ], "type": "object" }, - "v2beta2.MetricSpec": { - "description": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).", + "v1.NodeRuntimeHandlerFeatures": { + "description": "NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler.", "properties": { - "containerResource": { - "$ref": "#/definitions/v2beta2.ContainerResourceMetricSource", - "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag." - }, - "external": { - "$ref": "#/definitions/v2beta2.ExternalMetricSource", - "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." - }, - "object": { - "$ref": "#/definitions/v2beta2.ObjectMetricSource", - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." - }, - "pods": { - "$ref": "#/definitions/v2beta2.PodsMetricSource", - "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." - }, - "resource": { - "$ref": "#/definitions/v2beta2.ResourceMetricSource", - "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." + "recursiveReadOnlyMounts": { + "description": "RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts.", + "type": "boolean" }, - "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", - "type": "string" + "userNamespaces": { + "description": "UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes.", + "type": "boolean" } }, - "required": [ - "type" - ], "type": "object" }, - "v1.Endpoint": { - "description": "Endpoint represents a single logical \"backend\" implementing a service.", + "v1.NodeSelector": { + "description": "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.", "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.", + "nodeSelectorTerms": { + "description": "Required. A list of node selector terms. The terms are ORed.", "items": { - "type": "string" + "$ref": "#/definitions/v1.NodeSelectorTerm" }, "type": "array", - "x-kubernetes-list-type": "set" - }, - "conditions": { - "$ref": "#/definitions/v1.EndpointConditions", - "description": "conditions contains information about the current status of the endpoint." - }, - "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": "#/definitions/v1.EndpointHints", - "description": "hints contains information associated with how an endpoint should be consumed." - }, - "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. This field can be enabled with the EndpointSliceNodeName feature gate.", - "type": "string" - }, - "targetRef": { - "$ref": "#/definitions/v1.ObjectReference", - "description": "targetRef is a reference to a Kubernetes object that represents this endpoint." - }, - "zone": { - "description": "zone is the name of the Zone this endpoint exists in.", - "type": "string" + "x-kubernetes-list-type": "atomic" } }, "required": [ - "addresses" + "nodeSelectorTerms" ], - "type": "object" + "type": "object", + "x-kubernetes-map-type": "atomic" }, - "v1.FlexVolumeSource": { - "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", + "v1.NodeSelectorRequirement": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", "properties": { - "driver": { - "description": "Driver is the name of the driver to use for this volume.", + "key": { + "description": "The label key that the selector applies to.", "type": "string" }, - "fsType": { - "description": "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.", + "operator": { + "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", "type": "string" }, - "options": { - "additionalProperties": { + "values": { + "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.", + "items": { "type": "string" }, - "description": "Optional: Extra command options if any.", - "type": "object" - }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "$ref": "#/definitions/v1.LocalObjectReference", - "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." + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "required": [ - "driver" + "key", + "operator" ], "type": "object" }, - "v1.EphemeralContainer": { - "description": "An EphemeralContainer is a container that may be added temporarily to an existing pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a pod is removed or restarted. If an ephemeral container causes a pod to exceed its resource allocation, the pod may be evicted. Ephemeral containers may not be added by directly updating the pod spec. They must be added via the pod's ephemeralcontainers subresource, and they will appear in the pod spec once added. This is an alpha feature enabled by the EphemeralContainers feature flag.", + "v1.NodeSelectorTerm": { + "description": "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.", "properties": { - "args": { - "description": "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. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array" - }, - "command": { - "description": "Entrypoint array. Not executed within a shell. The 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. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array" - }, - "env": { - "description": "List of environment variables to set in the container. Cannot be updated.", + "matchExpressions": { + "description": "A list of node selector requirements by node's labels.", "items": { - "$ref": "#/definitions/v1.EnvVar" + "$ref": "#/definitions/v1.NodeSelectorRequirement" }, "type": "array", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" + "x-kubernetes-list-type": "atomic" }, - "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.", + "matchFields": { + "description": "A list of node selector requirements by node's fields.", "items": { - "$ref": "#/definitions/v1.EnvFromSource" + "$ref": "#/definitions/v1.NodeSelectorRequirement" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1.NodeSpec": { + "description": "NodeSpec describes the attributes that a node is created with.", + "properties": { + "configSource": { + "$ref": "#/definitions/v1.NodeConfigSource", + "description": "Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed." }, - "image": { - "description": "Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images", + "externalID": { + "description": "Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966", "type": "string" }, - "imagePullPolicy": { - "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images", + "podCIDR": { + "description": "PodCIDR represents the pod IP range assigned to the node.", "type": "string" }, - "lifecycle": { - "$ref": "#/definitions/v1.Lifecycle", - "description": "Lifecycle is not allowed for ephemeral containers." - }, - "livenessProbe": { - "$ref": "#/definitions/v1.Probe", - "description": "Probes are not allowed for ephemeral containers." + "podCIDRs": { + "description": "podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set", + "x-kubernetes-patch-strategy": "merge" }, - "name": { - "description": "Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.", + "providerID": { + "description": "ID of the node assigned by the cloud provider in the format: ://", "type": "string" }, - "ports": { - "description": "Ports are not allowed for ephemeral containers.", + "taints": { + "description": "If specified, the node's taints.", "items": { - "$ref": "#/definitions/v1.ContainerPort" + "$ref": "#/definitions/v1.Taint" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "readinessProbe": { - "$ref": "#/definitions/v1.Probe", - "description": "Probes are not allowed for ephemeral containers." + "unschedulable": { + "description": "Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration", + "type": "boolean" + } + }, + "type": "object" + }, + "v1.NodeStatus": { + "description": "NodeStatus is information about the current status of a node.", + "properties": { + "addresses": { + "description": "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/reference/node/node-status/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP).", + "items": { + "$ref": "#/definitions/v1.NodeAddress" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" }, - "resources": { - "$ref": "#/definitions/v1.ResourceRequirements", - "description": "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod." + "allocatable": { + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" + }, + "description": "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.", + "type": "object" }, - "securityContext": { - "$ref": "#/definitions/v1.SecurityContext", - "description": "Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext." + "capacity": { + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" + }, + "description": "Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity", + "type": "object" }, - "startupProbe": { - "$ref": "#/definitions/v1.Probe", - "description": "Probes are not allowed for ephemeral containers." + "conditions": { + "description": "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/reference/node/node-status/#condition", + "items": { + "$ref": "#/definitions/v1.NodeCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" }, - "stdin": { - "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", - "type": "boolean" + "config": { + "$ref": "#/definitions/v1.NodeConfigStatus", + "description": "Status of the config assigned to the node via the dynamic Kubelet config feature." }, - "stdinOnce": { - "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", - "type": "boolean" + "daemonEndpoints": { + "$ref": "#/definitions/v1.NodeDaemonEndpoints", + "description": "Endpoints of daemons running on the Node." }, - "targetContainerName": { - "description": "If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature.", - "type": "string" + "features": { + "$ref": "#/definitions/v1.NodeFeatures", + "description": "Features describes the set of features implemented by the CRI implementation." }, - "terminationMessagePath": { - "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", - "type": "string" + "images": { + "description": "List of container images on this node", + "items": { + "$ref": "#/definitions/v1.ContainerImage" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "terminationMessagePolicy": { - "description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.", - "type": "string" + "nodeInfo": { + "$ref": "#/definitions/v1.NodeSystemInfo", + "description": "Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/reference/node/node-status/#info" }, - "tty": { - "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", - "type": "boolean" + "phase": { + "description": "NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated.", + "type": "string" }, - "volumeDevices": { - "description": "volumeDevices is the list of block devices to be used by the container.", + "runtimeHandlers": { + "description": "The available runtime handlers.", "items": { - "$ref": "#/definitions/v1.VolumeDevice" + "$ref": "#/definitions/v1.NodeRuntimeHandler" }, "type": "array", - "x-kubernetes-patch-merge-key": "devicePath", - "x-kubernetes-patch-strategy": "merge" + "x-kubernetes-list-type": "atomic" }, - "volumeMounts": { - "description": "Pod volumes to mount into the container's filesystem. Cannot be updated.", + "volumesAttached": { + "description": "List of volumes that are attached to the node.", "items": { - "$ref": "#/definitions/v1.VolumeMount" + "$ref": "#/definitions/v1.AttachedVolume" }, "type": "array", - "x-kubernetes-patch-merge-key": "mountPath", - "x-kubernetes-patch-strategy": "merge" + "x-kubernetes-list-type": "atomic" }, - "workingDir": { - "description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", - "type": "string" + "volumesInUse": { + "description": "List of attachable volumes in use (mounted) by the node.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, - "required": [ - "name" - ], "type": "object" }, - "v1.DeleteOptions": { - "description": "DeleteOptions may be provided when deleting an API object.", + "v1.NodeSwapStatus": { + "description": "NodeSwapStatus represents swap memory information.", "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" - }, - "dryRun": { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "items": { - "type": "string" - }, - "type": "array" - }, - "gracePeriodSeconds": { - "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.", + "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.", + "properties": { + "architecture": { + "description": "The Architecture reported by the node", + "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", + "bootID": { + "description": "Boot ID reported by the node.", "type": "string" }, - "orphanDependents": { - "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": "boolean" + "containerRuntimeVersion": { + "description": "ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2).", + "type": "string" }, - "preconditions": { - "$ref": "#/definitions/v1.Preconditions", - "description": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned." - }, - "propagationPolicy": { - "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.", + "kernelVersion": { + "description": "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).", "type": "string" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "admission.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "admission.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "admissionregistration.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "admissionregistration.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "apiextensions.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "apiextensions.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "apiregistration.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "apiregistration.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "apps", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "apps", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "apps", - "kind": "DeleteOptions", - "version": "v1beta2" - }, - { - "group": "authentication.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "authentication.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "authorization.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "authorization.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "autoscaling", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "autoscaling", - "kind": "DeleteOptions", - "version": "v2beta1" - }, - { - "group": "autoscaling", - "kind": "DeleteOptions", - "version": "v2beta2" - }, - { - "group": "batch", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "batch", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "certificates.k8s.io", - "kind": "DeleteOptions", - "version": "v1" }, - { - "group": "certificates.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "kubeProxyVersion": { + "description": "Deprecated: KubeProxy Version reported by the node.", + "type": "string" }, - { - "group": "coordination.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "kubeletVersion": { + "description": "Kubelet Version reported by the node.", + "type": "string" }, - { - "group": "coordination.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "machineID": { + "description": "MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html", + "type": "string" }, - { - "group": "discovery.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "operatingSystem": { + "description": "The Operating System reported by the node", + "type": "string" }, - { - "group": "discovery.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "osImage": { + "description": "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).", + "type": "string" }, - { - "group": "events.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "swap": { + "$ref": "#/definitions/v1.NodeSwapStatus", + "description": "Swap Info reported by the node." }, - { - "group": "events.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "systemUUID": { + "description": "SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid", + "type": "string" + } + }, + "required": [ + "machineID", + "systemUUID", + "bootID", + "kernelVersion", + "osImage", + "containerRuntimeVersion", + "kubeletVersion", + "kubeProxyVersion", + "operatingSystem", + "architecture" + ], + "type": "object" + }, + "v1.ObjectFieldSelector": { + "description": "ObjectFieldSelector selects an APIVersioned field of an object.", + "properties": { + "apiVersion": { + "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", + "type": "string" }, - { - "group": "extensions", - "kind": "DeleteOptions", - "version": "v1beta1" + "fieldPath": { + "description": "Path of the field to select in the specified API version.", + "type": "string" + } + }, + "required": [ + "fieldPath" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1.ObjectReference": { + "description": "ObjectReference contains enough information to let you inspect or modify the referred object.", + "properties": { + "apiVersion": { + "description": "API version of the referent.", + "type": "string" }, - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" + "fieldPath": { + "description": "If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.", + "type": "string" }, - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "kind": { + "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" }, - { - "group": "imagepolicy.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" }, - { - "group": "internal.apiserver.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" + "namespace": { + "description": "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", + "type": "string" }, - { - "group": "networking.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "resourceVersion": { + "description": "Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": "string" }, - { - "group": "networking.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "uid": { + "description": "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1.PersistentVolume": { + "description": "PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", + "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" }, - { - "group": "node.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "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" }, - { - "group": "node.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - { - "group": "node.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "spec": { + "$ref": "#/definitions/v1.PersistentVolumeSpec", + "description": "spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes" }, + "status": { + "$ref": "#/definitions/v1.PersistentVolumeStatus", + "description": "status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ { - "group": "policy", - "kind": "DeleteOptions", + "group": "", + "kind": "PersistentVolume", "version": "v1" + } + ] + }, + "v1.PersistentVolumeClaim": { + "description": "PersistentVolumeClaim is a user's request for and claim to a persistent volume", + "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" }, - { - "group": "policy", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "rbac.authorization.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "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" }, - { - "group": "rbac.authorization.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - { - "group": "rbac.authorization.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "spec": { + "$ref": "#/definitions/v1.PersistentVolumeClaimSpec", + "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" }, + "status": { + "$ref": "#/definitions/v1.PersistentVolumeClaimStatus", + "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" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ { - "group": "scheduling.k8s.io", - "kind": "DeleteOptions", + "group": "", + "kind": "PersistentVolumeClaim", "version": "v1" + } + ] + }, + "v1.PersistentVolumeClaimCondition": { + "description": "PersistentVolumeClaimCondition contains details about state of pvc", + "properties": { + "lastProbeTime": { + "description": "lastProbeTime is the time we probed the condition.", + "format": "date-time", + "type": "string" }, - { - "group": "scheduling.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" + "lastTransitionTime": { + "description": "lastTransitionTime is the time the condition transitioned from one status to another.", + "format": "date-time", + "type": "string" }, - { - "group": "scheduling.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "message": { + "description": "message is the human-readable message indicating details about last transition.", + "type": "string" }, - { - "group": "storage.k8s.io", - "kind": "DeleteOptions", - "version": "v1" + "reason": { + "description": "reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"Resizing\" that means the underlying persistent volume is being resized.", + "type": "string" }, - { - "group": "storage.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" + "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" }, - { - "group": "storage.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" + "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": [ + "type", + "status" + ], + "type": "object" }, - "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.", + "v1.PersistentVolumeClaimList": { + "description": "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.", "properties": { - "from": { - "description": "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": "#/definitions/v1.NetworkPolicyPeer" - }, - "type": "array" + "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" }, - "ports": { - "description": "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": { + "description": "items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", "items": { - "$ref": "#/definitions/v1.NetworkPolicyPort" + "$ref": "#/definitions/v1.PersistentVolumeClaim" }, "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, - "type": "object" + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PersistentVolumeClaimList", + "version": "v1" + } + ] }, - "v1.ServiceSpec": { - "description": "ServiceSpec describes the attributes that a user creates on a service.", + "v1.PersistentVolumeClaimSpec": { + "description": "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes", "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. This field is beta-level and is only honored by servers that enable the ServiceLBNodePortControl feature.", - "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.\n\nUnless the \"IPv6DualStack\" feature gate is enabled, this field is limited to one value, which must be the same as the clusterIP field. If the feature gate is enabled, 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", + "accessModes": { + "description": "accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", "items": { "type": "string" }, "type": "array", "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" + "dataSource": { + "$ref": "#/definitions/v1.TypedLocalObjectReference", + "description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource." }, - "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" + "dataSourceRef": { + "$ref": "#/definitions/v1.TypedObjectReference", + "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled." }, - "externalTrafficPolicy": { - "description": "externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. \"Local\" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. \"Cluster\" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading.", + "resources": { + "$ref": "#/definitions/v1.VolumeResourceRequirements", + "description": "resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources" + }, + "selector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "selector is a label query over volumes to consider for binding." + }, + "storageClassName": { + "description": "storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", "type": "string" }, - "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).", - "format": "int32", - "type": "integer" + "volumeAttributesClassName": { + "description": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string 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" }, - "internalTrafficPolicy": { - "description": "InternalTrafficPolicy specifies if the cluster internal traffic should be routed to all endpoints or node-local endpoints only. \"Cluster\" routes internal traffic to a Service to all endpoints. \"Local\" routes traffic to node-local endpoints only, traffic is dropped if no node-local endpoints are ready. The default value is \"Cluster\".", + "volumeMode": { + "description": "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.", "type": "string" }, - "ipFamilies": { - "description": "IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service, and is gated by the \"IPv6DualStack\" feature gate. 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.\n\nThis 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.", + "volumeName": { + "description": "volumeName is the binding reference to the PersistentVolume backing this claim.", + "type": "string" + } + }, + "type": "object" + }, + "v1.PersistentVolumeClaimStatus": { + "description": "PersistentVolumeClaimStatus is the current status of a persistent volume claim.", + "properties": { + "accessModes": { + "description": "accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", "items": { "type": "string" }, "type": "array", "x-kubernetes-list-type": "atomic" }, - "ipFamilyPolicy": { - "description": "IPFamilyPolicy represents the dual-stack-ness requested or required by this Service, and is gated by the \"IPv6DualStack\" feature gate. 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" + "allocatedResourceStatuses": { + "additionalProperties": { + "type": "string" + }, + "description": "allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.\n\nClaimResourceStatus can be in any of following states:\n\t- ControllerResizeInProgress:\n\t\tState set when resize controller starts resizing the volume in control-plane.\n\t- ControllerResizeFailed:\n\t\tState set when resize has failed in resize controller with a terminal error.\n\t- NodeResizePending:\n\t\tState set when resize controller has finished resizing the volume but further resizing of\n\t\tvolume is needed on the node.\n\t- NodeResizeInProgress:\n\t\tState set when kubelet starts resizing the volume.\n\t- NodeResizeFailed:\n\t\tState set when resizing has failed in kubelet with a terminal error. Transient errors don't set\n\t\tNodeResizeFailed.\nFor example: if expanding a PVC for more capacity - this field can be one of the following states:\n\t- pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\"\nWhen this field is not set, it means that no resize operation is in progress for the given PVC.\n\nA controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", + "type": "object", + "x-kubernetes-map-type": "granular" }, - "loadBalancerIP": { - "description": "Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. 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.", - "type": "string" + "allocatedResources": { + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" + }, + "description": "allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.\n\nCapacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity.\n\nA controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", + "type": "object" }, - "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" + "capacity": { + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" }, - "type": "array" + "description": "capacity represents the actual resources of the underlying volume.", + "type": "object" }, - "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", + "conditions": { + "description": "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'.", "items": { - "$ref": "#/definitions/v1.ServicePort" + "$ref": "#/definitions/v1.PersistentVolumeClaimCondition" }, "type": "array", "x-kubernetes-list-map-keys": [ - "port", - "protocol" + "type" ], "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "port", + "x-kubernetes-patch-merge-key": "type", "x-kubernetes-patch-strategy": "merge" }, - "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" + "currentVolumeAttributesClassName": { + "description": "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim", + "type": "string" }, - "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": "#/definitions/v1.SessionAffinityConfig", - "description": "sessionAffinityConfig contains the configurations of session affinity." - }, - "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.NamespaceStatus": { - "description": "NamespaceStatus is information about the current status of a Namespace.", - "properties": { - "conditions": { - "description": "Represents the latest available observations of a namespace's current state.", - "items": { - "$ref": "#/definitions/v1.NamespaceCondition" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" + "modifyVolumeStatus": { + "$ref": "#/definitions/v1.ModifyVolumeStatus", + "description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted." }, "phase": { - "description": "Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", + "description": "phase represents the current phase of PersistentVolumeClaim.", "type": "string" } }, "type": "object" }, - "v2beta2.MetricIdentifier": { - "description": "MetricIdentifier defines the name and optionally selector for a metric", + "v1.PersistentVolumeClaimTemplate": { + "description": "PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.", "properties": { - "name": { - "description": "name is the name of the given metric", - "type": "string" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation." }, - "selector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics." + "spec": { + "$ref": "#/definitions/v1.PersistentVolumeClaimSpec", + "description": "The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here." } }, "required": [ - "name" + "spec" ], "type": "object" }, - "v1.Affinity": { - "description": "Affinity is a group of affinity scheduling rules.", - "properties": { - "nodeAffinity": { - "$ref": "#/definitions/v1.NodeAffinity", - "description": "Describes node affinity scheduling rules for the pod." - }, - "podAffinity": { - "$ref": "#/definitions/v1.PodAffinity", - "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s))." - }, - "podAntiAffinity": { - "$ref": "#/definitions/v1.PodAntiAffinity", - "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s))." - } - }, - "type": "object" - }, - "v1alpha1.RoleBindingList": { - "description": "RoleBindingList is a collection of RoleBindings Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.22.", + "v1.PersistentVolumeClaimVolumeSource": { + "description": "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).", "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": "#/definitions/v1alpha1.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", + "claimName": { + "description": "claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard object's metadata." + "readOnly": { + "description": "readOnly Will force the ReadOnly setting in VolumeMounts. Default false.", + "type": "boolean" } }, "required": [ - "items" + "claimName" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBindingList", - "version": "v1alpha1" - } - ] + "type": "object" }, - "v1.APIServiceList": { - "description": "APIServiceList is a list of APIService objects.", + "v1.PersistentVolumeList": { + "description": "PersistentVolumeList is a list of PersistentVolume items.", "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 APIService", + "description": "items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", "items": { - "$ref": "#/definitions/v1.APIService" + "$ref": "#/definitions/v1.PersistentVolume" }, "type": "array" }, @@ -9375,7 +9403,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ @@ -9384,237 +9412,196 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "apiregistration.k8s.io", - "kind": "APIServiceList", + "group": "", + "kind": "PersistentVolumeList", "version": "v1" } ] }, - "v1.LoadBalancerStatus": { - "description": "LoadBalancerStatus represents the status of a load-balancer.", + "v1.PersistentVolumeSpec": { + "description": "PersistentVolumeSpec is the specification of a persistent volume.", "properties": { - "ingress": { - "description": "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.", + "accessModes": { + "description": "accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes", "items": { - "$ref": "#/definitions/v1.LoadBalancerIngress" + "type": "string" }, - "type": "array" - } - }, - "type": "object" - }, - "v1.EnvVarSource": { - "description": "EnvVarSource represents a source for the value of an EnvVar.", - "properties": { - "configMapKeyRef": { - "$ref": "#/definitions/v1.ConfigMapKeySelector", - "description": "Selects a key of a ConfigMap." + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "fieldRef": { - "$ref": "#/definitions/v1.ObjectFieldSelector", - "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." + "awsElasticBlockStore": { + "$ref": "#/definitions/v1.AWSElasticBlockStoreVolumeSource", + "description": "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore" }, - "resourceFieldRef": { - "$ref": "#/definitions/v1.ResourceFieldSelector", - "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." + "azureDisk": { + "$ref": "#/definitions/v1.AzureDiskVolumeSource", + "description": "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type are redirected to the disk.csi.azure.com CSI driver." }, - "secretKeyRef": { - "$ref": "#/definitions/v1.SecretKeySelector", - "description": "Selects a key of a secret in the pod's namespace" - } - }, - "type": "object" - }, - "v1.ObjectMeta": { - "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", - "properties": { - "annotations": { + "azureFile": { + "$ref": "#/definitions/v1.AzureFilePersistentVolumeSource", + "description": "azureFile represents an Azure File Service mount on the host and bind mount to the pod. Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type are redirected to the file.csi.azure.com CSI driver." + }, + "capacity": { "additionalProperties": { - "type": "string" + "$ref": "#/definitions/resource.Quantity" }, - "description": "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", + "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" }, - "clusterName": { - "description": "The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.", - "type": "string" + "cephfs": { + "$ref": "#/definitions/v1.CephFSPersistentVolumeSource", + "description": "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported." }, - "creationTimestamp": { - "description": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "format": "date-time", - "type": "string" + "cinder": { + "$ref": "#/definitions/v1.CinderPersistentVolumeSource", + "description": "cinder represents a cinder volume attached and mounted on kubelets host machine. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md" }, - "deletionGracePeriodSeconds": { - "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", - "format": "int64", - "type": "integer" + "claimRef": { + "$ref": "#/definitions/v1.ObjectReference", + "description": "claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding", + "x-kubernetes-map-type": "granular" }, - "deletionTimestamp": { - "description": "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "format": "date-time", - "type": "string" + "csi": { + "$ref": "#/definitions/v1.CSIPersistentVolumeSource", + "description": "csi represents storage that is handled by an external CSI driver." }, - "finalizers": { - "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.", + "fc": { + "$ref": "#/definitions/v1.FCVolumeSource", + "description": "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod." + }, + "flexVolume": { + "$ref": "#/definitions/v1.FlexPersistentVolumeSource", + "description": "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead." + }, + "flocker": { + "$ref": "#/definitions/v1.FlockerVolumeSource", + "description": "flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running. Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported." + }, + "gcePersistentDisk": { + "$ref": "#/definitions/v1.GCEPersistentDiskVolumeSource", + "description": "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk" + }, + "glusterfs": { + "$ref": "#/definitions/v1.GlusterfsPersistentVolumeSource", + "description": "glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.md" + }, + "hostPath": { + "$ref": "#/definitions/v1.HostPathVolumeSource", + "description": "hostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath" + }, + "iscsi": { + "$ref": "#/definitions/v1.ISCSIPersistentVolumeSource", + "description": "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin." + }, + "local": { + "$ref": "#/definitions/v1.LocalVolumeSource", + "description": "local represents directly-attached storage with node affinity" + }, + "mountOptions": { + "description": "mountOptions is the list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options", "items": { "type": "string" }, "type": "array", - "x-kubernetes-patch-strategy": "merge" + "x-kubernetes-list-type": "atomic" }, - "generateName": { - "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", + "nfs": { + "$ref": "#/definitions/v1.NFSVolumeSource", + "description": "nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs" + }, + "nodeAffinity": { + "$ref": "#/definitions/v1.VolumeNodeAffinity", + "description": "nodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume." + }, + "persistentVolumeReclaimPolicy": { + "description": "persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming", "type": "string" }, - "generation": { - "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", - "format": "int64", - "type": "integer" + "photonPersistentDisk": { + "$ref": "#/definitions/v1.PhotonPersistentDiskVolumeSource", + "description": "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported." }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "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", - "type": "object" + "portworxVolume": { + "$ref": "#/definitions/v1.PortworxVolumeSource", + "description": "portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate is on." }, - "managedFields": { - "description": "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.", - "items": { - "$ref": "#/definitions/v1.ManagedFieldsEntry" - }, - "type": "array" + "quobyte": { + "$ref": "#/definitions/v1.QuobyteVolumeSource", + "description": "quobyte represents a Quobyte mount on the host that shares a pod's lifetime. Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported." }, - "name": { - "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" + "rbd": { + "$ref": "#/definitions/v1.RBDPersistentVolumeSource", + "description": "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported. More info: https://examples.k8s.io/volumes/rbd/README.md" }, - "namespace": { - "description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces", + "scaleIO": { + "$ref": "#/definitions/v1.ScaleIOPersistentVolumeSource", + "description": "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported." + }, + "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" }, - "ownerReferences": { - "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", - "items": { - "$ref": "#/definitions/v1.OwnerReference" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "uid", - "x-kubernetes-patch-strategy": "merge" + "storageos": { + "$ref": "#/definitions/v1.StorageOSPersistentVolumeSource", + "description": "storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported. More info: https://examples.k8s.io/volumes/storageos/README.md" }, - "resourceVersion": { - "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "volumeAttributesClassName": { + "description": "Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process.", "type": "string" }, - "selfLink": { - "description": "SelfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release.", + "volumeMode": { + "description": "volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec.", "type": "string" }, - "uid": { - "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" + "vsphereVolume": { + "$ref": "#/definitions/v1.VsphereVirtualDiskVolumeSource", + "description": "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type are redirected to the csi.vsphere.vmware.com CSI driver." } }, "type": "object" }, - "v1.Lease": { - "description": "Lease defines a lease concept.", + "v1.PersistentVolumeStatus": { + "description": "PersistentVolumeStatus is the current status of a persistent volume.", "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", + "lastPhaseTransitionTime": { + "description": "lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions.", + "format": "date-time", "type": "string" }, - "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", + "message": { + "description": "message is a human-readable message indicating details about why the volume is in this state.", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1.LeaseSpec", - "description": "Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - ] - }, - "v1.CSINodeDriver": { - "description": "CSINodeDriver holds information about the specification of one CSI driver installed on a node", - "properties": { - "allocatable": { - "$ref": "#/definitions/v1.VolumeNodeResources", - "description": "allocatable represents the volume resources of a node that are available for scheduling. This field is beta." - }, - "name": { - "description": "This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.", + "phase": { + "description": "phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase", "type": "string" }, - "nodeID": { - "description": "nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \"node1\", but the storage system may refer to the same node as \"nodeA\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \"nodeA\" instead of \"node1\". This field is required.", + "reason": { + "description": "reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.", "type": "string" - }, - "topologyKeys": { - "description": "topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.", - "items": { - "type": "string" - }, - "type": "array" } }, - "required": [ - "name", - "nodeID" - ], "type": "object" }, - "v1beta1.AllowedCSIDriver": { - "description": "AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used.", + "v1.PhotonPersistentDiskVolumeSource": { + "description": "Represents a Photon Controller persistent disk resource.", "properties": { - "name": { - "description": "Name is the registered name of the CSI driver", + "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" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "v2beta2.HPAScalingPolicy": { - "description": "HPAScalingPolicy is a single policy which must hold true for a specified past interval.", - "properties": { - "periodSeconds": { - "description": "PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).", - "format": "int32", - "type": "integer" }, - "type": { - "description": "Type is used to specify the scaling policy.", + "pdID": { + "description": "pdID is the ID that identifies Photon Controller persistent disk", "type": "string" - }, - "value": { - "description": "Value contains the amount of change which is permitted by the policy. It must be greater than zero", - "format": "int32", - "type": "integer" } }, "required": [ - "type", - "value", - "periodSeconds" + "pdID" ], "type": "object" }, - "v1.Ingress": { - "description": "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.", + "v1.Pod": { + "description": "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.", "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", @@ -9629,341 +9616,278 @@ "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1.IngressSpec", - "description": "Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "$ref": "#/definitions/v1.PodSpec", + "description": "Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" }, "status": { - "$ref": "#/definitions/v1.IngressStatus", - "description": "Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "$ref": "#/definitions/v1.PodStatus", + "description": "Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "networking.k8s.io", - "kind": "Ingress", + "group": "", + "kind": "Pod", "version": "v1" } ] }, - "v1.ListMeta": { - "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", + "v1.PodAffinity": { + "description": "Pod affinity is a group of inter pod affinity scheduling rules.", "properties": { - "continue": { - "description": "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.", - "type": "string" - }, - "remainingItemCount": { - "description": "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.", - "format": "int64", - "type": "integer" - }, - "resourceVersion": { - "description": "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", - "type": "string" + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", + "items": { + "$ref": "#/definitions/v1.WeightedPodAffinityTerm" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "selfLink": { - "description": "selfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release.", - "type": "string" + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "items": { + "$ref": "#/definitions/v1.PodAffinityTerm" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "type": "object" }, - "v2beta1.HorizontalPodAutoscaler": { - "description": "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.", + "v1.PodAffinityTerm": { + "description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running", "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" + "labelSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods." }, - "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" + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "spec": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscalerSpec", - "description": "spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." + "namespaceSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces." }, - "status": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscalerStatus", - "description": "status is the current information about the autoscaler." + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.", + "type": "string" } }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - ] + "required": [ + "topologyKey" + ], + "type": "object" }, - "v1.ComponentStatus": { - "description": "ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+", + "v1.PodAntiAffinity": { + "description": "Pod anti affinity is a group of inter pod anti affinity scheduling rules.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "conditions": { - "description": "List of component conditions observed", + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and 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": "#/definitions/v1.ComponentCondition" + "$ref": "#/definitions/v1.WeightedPodAffinityTerm" }, "type": "array", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "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" + "x-kubernetes-list-type": "atomic" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "items": { + "$ref": "#/definitions/v1.PodAffinityTerm" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ComponentStatus", - "version": "v1" - } - ] + "type": "object" }, - "v1beta1.EventList": { - "description": "EventList is a list of Event objects.", + "v1.PodCertificateProjection": { + "description": "PodCertificateProjection provides a private key and X.509 certificate in the pod filesystem.", "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", + "certificateChainPath": { + "description": "Write the certificate chain at this path in the projected volume.\n\nMost 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" }, - "items": { - "description": "items is a list of schema objects.", - "items": { - "$ref": "#/definitions/v1beta1.Event" - }, - "type": "array" + "credentialBundlePath": { + "description": "Write the credential bundle at this path in the projected volume.\n\nThe 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.\n\nThe remaining blocks are CERTIFICATE blocks, containing the issued certificate chain from the signer (leaf and any intermediates).\n\nUsing 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" }, - "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", + "keyPath": { + "description": "Write the key at this path in the projected volume.\n\nMost 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" }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "keyType": { + "description": "The type of keypair Kubelet will generate for the pod.\n\nValid values are \"RSA3072\", \"RSA4096\", \"ECDSAP256\", \"ECDSAP384\", \"ECDSAP521\", and \"ED25519\".", + "type": "string" + }, + "maxExpirationSeconds": { + "description": "maxExpirationSeconds is the maximum lifetime permitted for the certificate.\n\nKubelet copies this value verbatim into the PodCertificateRequests it generates for this projection.\n\nIf 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).\n\nThe 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" } }, "required": [ - "items" + "signerName", + "keyType" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "events.k8s.io", - "kind": "EventList", - "version": "v1beta1" - } - ] + "type": "object" }, - "apiregistration.v1.ServiceReference": { - "description": "ServiceReference holds a reference to Service.legacy.k8s.io", + "v1.PodCondition": { + "description": "PodCondition contains details for the current condition of this pod.", "properties": { - "name": { - "description": "Name is the name of the service", - "type": "string" - }, - "namespace": { - "description": "Namespace is the namespace of the service", + "lastProbeTime": { + "description": "Last time we probed the condition.", + "format": "date-time", "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" - } - }, - "type": "object" - }, - "v1.ClusterRoleBindingList": { - "description": "ClusterRoleBindingList is a collection of ClusterRoleBindings", - "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", + "lastTransitionTime": { + "description": "Last time the condition transitioned from one status to another.", + "format": "date-time", "type": "string" }, - "items": { - "description": "Items is a list of ClusterRoleBindings", - "items": { - "$ref": "#/definitions/v1.ClusterRoleBinding" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "message": { + "description": "Human-readable message indicating details about last transition.", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard object's metadata." - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBindingList", - "version": "v1" - } - ] - }, - "v1.PodDisruptionBudgetStatus": { - "description": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", - "properties": { - "conditions": { - "description": "Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute\n the number of allowed disruptions. Therefore no disruptions are\n allowed and the status of the condition will be False.\n- InsufficientPods: The number of pods are either at or below the number\n required by the PodDisruptionBudget. No disruptions are\n allowed and the status of the condition will be False.\n- SufficientPods: There are more pods than required by the PodDisruptionBudget.\n The condition will be True, and the number of allowed\n disruptions are provided by the disruptionsAllowed property.", - "items": { - "$ref": "#/definitions/v1.Condition" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "currentHealthy": { - "description": "current number of healthy pods", - "format": "int32", - "type": "integer" - }, - "desiredHealthy": { - "description": "minimum desired number of healthy pods", - "format": "int32", + "observedGeneration": { + "description": "If set, this represents the .metadata.generation that the pod condition was set based upon. This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field.", + "format": "int64", "type": "integer" }, - "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" + "reason": { + "description": "Unique, one-word, CamelCase reason for the condition's last transition.", + "type": "string" }, - "expectedPods": { - "description": "total number of pods counted by this disruption budget", - "format": "int32", - "type": "integer" + "status": { + "description": "Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + "type": "string" }, - "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" + "type": { + "description": "Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + "type": "string" } }, "required": [ - "disruptionsAllowed", - "currentHealthy", - "desiredHealthy", - "expectedPods" + "type", + "status" ], "type": "object" }, - "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.", + "v1.PodDNSConfig": { + "description": "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.", "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.", + "nameservers": { + "description": "A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.", "items": { "type": "string" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "nonResourceURLs": { - "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.", + "options": { + "description": "A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.", "items": { - "type": "string" + "$ref": "#/definitions/v1.PodDNSConfigOption" }, - "type": "array" + "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.", + "searches": { + "description": "A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.", "items": { "type": "string" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.PodDNSConfigOption": { + "description": "PodDNSConfigOption defines DNS resolver options of a pod.", + "properties": { + "name": { + "description": "Name is this DNS resolver option's name. Required.", + "type": "string" }, - "resources": { - "description": "Resources is a list of resources this rule applies to. '*' represents all resources.", + "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.", + "properties": { + "requestMappings": { + "description": "RequestMappings identifies the mapping of to device request in the generated ResourceClaim.", "items": { - "type": "string" + "$ref": "#/definitions/v1.ContainerExtendedResourceRequest" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "verbs": { - "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. '*' represents all verbs.", - "items": { - "type": "string" - }, - "type": "array" + "resourceClaimName": { + "description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod.", + "type": "string" } }, "required": [ - "verbs" + "requestMappings", + "resourceClaimName" ], "type": "object" }, - "v1.SeccompProfile": { - "description": "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.", + "v1.PodIP": { + "description": "PodIP represents a single IP address allocated to the pod.", "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 only be set if type is \"Localhost\".", - "type": "string" - }, - "type": { - "description": "type indicates which kind of seccomp profile will be applied. Valid options are:\n\nLocalhost - 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.", + "ip": { + "description": "IP is the IP address assigned to the pod", "type": "string" } }, "required": [ - "type" + "ip" ], - "type": "object", - "x-kubernetes-unions": [ - { - "discriminator": "type", - "fields-to-discriminateBy": { - "localhostProfile": "LocalhostProfile" - } - } - ] + "type": "object" }, - "v1.CSIDriverList": { - "description": "CSIDriverList is a collection of CSIDriver objects.", + "v1.PodList": { + "description": "PodList is a list of Pods.", "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 CSIDriver", + "description": "List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md", "items": { - "$ref": "#/definitions/v1.CSIDriver" + "$ref": "#/definitions/v1.Pod" }, "type": "array" }, @@ -9973,7 +9897,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ @@ -9982,518 +9906,559 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "CSIDriverList", + "group": "", + "kind": "PodList", "version": "v1" } ] }, - "v1.WindowsSecurityContextOptions": { - "description": "WindowsSecurityContextOptions contain Windows-specific options and credentials.", + "v1.PodOS": { + "description": "PodOS defines the OS parameters of a pod.", "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. This field is alpha-level and will only be honored by components that enable the WindowsHostProcessContainers feature flag. Setting this field without the feature flag will result in errors when validating the Pod. 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.", + "name": { + "description": "Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null", "type": "string" } }, + "required": [ + "name" + ], "type": "object" }, - "v1.DaemonEndpoint": { - "description": "DaemonEndpoint contains information about a single Daemon endpoint.", + "v1.PodReadinessGate": { + "description": "PodReadinessGate contains the reference to a pod condition", "properties": { - "Port": { - "description": "Port number of the given endpoint.", - "format": "int32", - "type": "integer" + "conditionType": { + "description": "ConditionType refers to a condition in the pod's condition list with matching type.", + "type": "string" } }, "required": [ - "Port" + "conditionType" ], "type": "object" }, - "v1.PersistentVolumeClaimCondition": { - "description": "PersistentVolumeClaimCondition contails details about state of pvc", + "v1.PodResourceClaim": { + "description": "PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod.\n\nIt 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": { - "lastProbeTime": { - "description": "Last time we probed the condition.", - "format": "date-time", - "type": "string" - }, - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "format": "date-time", - "type": "string" - }, - "message": { - "description": "Human-readable message indicating details about last transition.", - "type": "string" - }, - "reason": { - "description": "Unique, 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.", + "name": { + "description": "Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.", "type": "string" }, - "status": { + "resourceClaimName": { + "description": "ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.\n\nExactly one of ResourceClaimName and ResourceClaimTemplateName must be set.", "type": "string" }, - "type": { + "resourceClaimTemplateName": { + "description": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe 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.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.\n\nExactly one of ResourceClaimName and ResourceClaimTemplateName must be set.", "type": "string" } }, "required": [ - "type", - "status" + "name" ], "type": "object" }, - "v2beta1.ObjectMetricSource": { - "description": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", + "v1.PodResourceClaimStatus": { + "description": "PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.", "properties": { - "averageValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)" - }, - "metricName": { - "description": "metricName is the name of the metric in question.", + "name": { + "description": "Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL.", "type": "string" }, - "selector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics." - }, - "target": { - "$ref": "#/definitions/v2beta1.CrossVersionObjectReference", - "description": "target is the described Kubernetes object." - }, - "targetValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "targetValue is the target value of the metric (as a quantity)." + "resourceClaimName": { + "description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.", + "type": "string" } }, "required": [ - "target", - "metricName", - "targetValue" + "name" ], "type": "object" }, - "v1.MutatingWebhook": { - "description": "MutatingWebhook describes an admission webhook and the resources and operations it applies to.", + "v1.PodSchedulingGate": { + "description": "PodSchedulingGate is associated to a Pod to guard its scheduling.", "properties": { - "admissionReviewVersions": { - "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.", - "items": { - "type": "string" - }, - "type": "array" - }, - "clientConfig": { - "$ref": "#/definitions/admissionregistration.v1.WebhookClientConfig", - "description": "ClientConfig defines how to communicate with the hook. Required" - }, - "failurePolicy": { - "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.", - "type": "string" - }, - "matchPolicy": { - "description": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- 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.\n\n- 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.\n\nDefaults 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": "#/definitions/v1.LabelSelector", - "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." - }, - "objectSelector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." - }, - "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\".\n\nNever: the webhook will not be called more than once in a single admission evaluation.\n\nIfNeeded: 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.\n\nDefaults 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": "#/definitions/v1.RuleWithOperations" - }, - "type": "array" - }, - "sideEffects": { - "description": "SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.", + "description": "Name of the scheduling gate. Each scheduling gate must have a unique name field.", "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": [ - "name", - "clientConfig", - "sideEffects", - "admissionReviewVersions" + "name" ], "type": "object" }, - "core.v1.EndpointPort": { - "description": "EndpointPort is a tuple that describes a single port.", + "v1.PodSecurityContext": { + "description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.", "properties": { - "appProtocol": { - "description": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.", - "type": "string" - }, - "name": { - "description": "The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.", - "type": "string" + "appArmorProfile": { + "$ref": "#/definitions/v1.AppArmorProfile", + "description": "appArmorProfile is the AppArmor options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows." }, - "port": { - "description": "The port number of the endpoint.", - "format": "int32", + "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:\n\n1. 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----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", "type": "integer" }, - "protocol": { - "description": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "v1.Pod": { - "description": "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.", - "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", + "fsGroupChangePolicy": { + "description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used. Note that this field cannot be set when spec.os.name is windows.", "type": "string" }, - "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" + "runAsGroup": { + "description": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": "integer" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "runAsNonRoot": { + "description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": "boolean" }, - "spec": { - "$ref": "#/definitions/v1.PodSpec", - "description": "Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "runAsUser": { + "description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": "integer" }, - "status": { - "$ref": "#/definitions/v1.PodStatus", - "description": "Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Pod", - "version": "v1" - } - ] - }, - "v1.MutatingWebhookConfigurationList": { - "description": "MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.", - "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", + "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\".\n\n\"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.\n\n\"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.\n\nIf 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.\n\nThis field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.\n\nAll 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" }, - "items": { - "description": "List of MutatingWebhookConfiguration.", + "seLinuxOptions": { + "$ref": "#/definitions/v1.SELinuxOptions", + "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. Note that this field cannot be set when spec.os.name is windows." + }, + "seccompProfile": { + "$ref": "#/definitions/v1.SeccompProfile", + "description": "The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows." + }, + "supplementalGroups": { + "description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID and fsGroup (if specified). If the SupplementalGroupsPolicy feature is enabled, the supplementalGroupsPolicy field determines whether these are in addition to or instead of any group memberships defined in the container image. If unspecified, no additional groups are added, though group memberships defined in the container image may still be used, depending on the supplementalGroupsPolicy field. Note that this field cannot be set when spec.os.name is windows.", "items": { - "$ref": "#/definitions/v1.MutatingWebhookConfiguration" + "format": "int64", + "type": "integer" }, - "type": "array" + "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", + "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" }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + "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": "#/definitions/v1.Sysctl" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "windowsOptions": { + "$ref": "#/definitions/v1.WindowsSecurityContextOptions", + "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. Note that this field cannot be set when spec.os.name is linux." } }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "admissionregistration.k8s.io", - "kind": "MutatingWebhookConfigurationList", - "version": "v1" - } - ] + "type": "object" }, - "v1.CertificateSigningRequestCondition": { - "description": "CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object", + "v1.PodSpec": { + "description": "PodSpec is a description of a pod.", "properties": { - "lastTransitionTime": { - "description": "lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time.", - "format": "date-time", - "type": "string" - }, - "lastUpdateTime": { - "description": "lastUpdateTime is the time of the last update to this condition", - "format": "date-time", - "type": "string" - }, - "message": { - "description": "message contains a human readable message with details about the request state", - "type": "string" + "activeDeadlineSeconds": { + "description": "Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.", + "format": "int64", + "type": "integer" }, - "reason": { - "description": "reason indicates a brief reason for the request state", - "type": "string" + "affinity": { + "$ref": "#/definitions/v1.Affinity", + "description": "If specified, the pod's scheduling constraints" }, - "status": { - "description": "status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\".", - "type": "string" + "automountServiceAccountToken": { + "description": "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.", + "type": "boolean" }, - "type": { - "description": "type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\".\n\nAn \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer.\n\nA \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer.\n\nA \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate.\n\nApproved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added.\n\nOnly one condition of a given type is allowed.", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "v1beta1.Endpoint": { - "description": "Endpoint represents a single logical \"backend\" implementing a service.", - "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.", + "containers": { + "description": "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated.", "items": { - "type": "string" + "$ref": "#/definitions/v1.Container" }, "type": "array", - "x-kubernetes-list-type": "set" - }, - "conditions": { - "$ref": "#/definitions/v1beta1.EndpointConditions", - "description": "conditions contains information about the current status of the endpoint." + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" }, - "hints": { - "$ref": "#/definitions/v1beta1.EndpointHints", - "description": "hints contains information associated with how an endpoint should be consumed." + "dnsConfig": { + "$ref": "#/definitions/v1.PodDNSConfig", + "description": "Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy." }, - "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.", + "dnsPolicy": { + "description": "Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.", "type": "string" }, - "nodeName": { - "description": "nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate.", - "type": "string" + "enableServiceLinks": { + "description": "EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.", + "type": "boolean" }, - "targetRef": { - "$ref": "#/definitions/v1.ObjectReference", - "description": "targetRef is a reference to a Kubernetes object that represents this endpoint." + "ephemeralContainers": { + "description": "List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.", + "items": { + "$ref": "#/definitions/v1.EphemeralContainer" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "hostAliases": { + "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.", + "items": { + "$ref": "#/definitions/v1.HostAlias" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "ip" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "ip", + "x-kubernetes-patch-strategy": "merge" + }, + "hostIPC": { + "description": "Use the host's ipc namespace. Optional: Default to false.", + "type": "boolean" + }, + "hostNetwork": { + "description": "Host networking requested for this pod. Use the host's network namespace. 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.", + "type": "boolean" + }, + "hostUsers": { + "description": "Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.", + "type": "boolean" + }, + "hostname": { + "description": "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.", + "type": "string" + }, + "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.\n\nThis 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": "#/definitions/v1.LocalObjectReference" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "initContainers": { + "description": "List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/", + "items": { + "$ref": "#/definitions/v1.Container" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "nodeName": { + "description": "NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename", + "type": "string" }, - "topology": { + "nodeSelector": { "additionalProperties": { "type": "string" }, - "description": "topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node\n where the endpoint is located. This should match the corresponding\n node label.\n* topology.kubernetes.io/zone: the value indicates the zone where the\n endpoint is located. This should match the corresponding node label.\n* topology.kubernetes.io/region: the value indicates the region where the\n endpoint is located. This should match the corresponding node label.\nThis field is deprecated and will be removed in future api versions.", + "description": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "os": { + "$ref": "#/definitions/v1.PodOS", + "description": "Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.\n\nIf the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions\n\nIf the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.resources - spec.securityContext.appArmorProfile - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.securityContext.supplementalGroupsPolicy - spec.containers[*].securityContext.appArmorProfile - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup" + }, + "overhead": { + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" + }, + "description": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md", "type": "object" - } - }, - "required": [ - "addresses" - ], - "type": "object" - }, - "v1beta1.EventSeries": { - "description": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.", - "properties": { - "count": { - "description": "count is the number of occurrences in this series up to the last heartbeat time.", + }, + "preemptionPolicy": { + "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", + "type": "string" + }, + "priority": { + "description": "The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.", "format": "int32", "type": "integer" }, - "lastObservedTime": { - "description": "lastObservedTime is the time when last Event from the series was seen before last heartbeat.", - "format": "date-time", + "priorityClassName": { + "description": "If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.", "type": "string" - } - }, - "required": [ - "count", - "lastObservedTime" - ], - "type": "object" - }, - "v2beta2.ContainerResourceMetricStatus": { - "description": "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", - "properties": { - "container": { - "description": "Container is the name of the container in the pods of the scaling target", + }, + "readinessGates": { + "description": "If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates", + "items": { + "$ref": "#/definitions/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.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable.", + "items": { + "$ref": "#/definitions/v1.PodResourceClaim" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" + }, + "resources": { + "$ref": "#/definitions/v1.ResourceRequirements", + "description": "Resources is the total amount of CPU and Memory resources required by all containers in the pod. It supports specifying Requests and Limits for \"cpu\", \"memory\" and \"hugepages-\" resource names only. ResourceClaims are not supported.\n\nThis field enables fine-grained control over resource allocation for the entire pod, allowing resource sharing among containers in a pod.\n\nThis is an alpha field and requires enabling the PodLevelResources feature gate." + }, + "restartPolicy": { + "description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy", "type": "string" }, - "current": { - "$ref": "#/definitions/v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" + "runtimeClassName": { + "description": "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class", + "type": "string" }, - "name": { - "description": "Name is the name of the resource in question.", + "schedulerName": { + "description": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", "type": "string" - } - }, - "required": [ - "name", - "current", - "container" - ], - "type": "object" - }, - "v1.ServerAddressByClientCIDR": { - "description": "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", - "properties": { - "clientCIDR": { - "description": "The CIDR with which clients can match their IP to figure out the server address that they should use.", + }, + "schedulingGates": { + "description": "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\n\nSchedulingGates can only be set at pod creation time, and be removed only afterwards.", + "items": { + "$ref": "#/definitions/v1.PodSchedulingGate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "securityContext": { + "$ref": "#/definitions/v1.PodSecurityContext", + "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field." + }, + "serviceAccount": { + "description": "DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.", "type": "string" }, - "serverAddress": { - "description": "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.", + "serviceAccountName": { + "description": "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", + "type": "string" + }, + "setHostnameAsFQDN": { + "description": "If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.", + "type": "boolean" + }, + "shareProcessNamespace": { + "description": "Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false.", + "type": "boolean" + }, + "subdomain": { + "description": "If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all.", "type": "string" + }, + "terminationGracePeriodSeconds": { + "description": "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.", + "format": "int64", + "type": "integer" + }, + "tolerations": { + "description": "If specified, the pod's tolerations.", + "items": { + "$ref": "#/definitions/v1.Toleration" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "topologySpreadConstraints": { + "description": "TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed.", + "items": { + "$ref": "#/definitions/v1.TopologySpreadConstraint" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "topologyKey", + "whenUnsatisfiable" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "topologyKey", + "x-kubernetes-patch-strategy": "merge" + }, + "volumes": { + "description": "List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes", + "items": { + "$ref": "#/definitions/v1.Volume" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" } }, "required": [ - "clientCIDR", - "serverAddress" + "containers" ], "type": "object" }, - "core.v1.EventSeries": { - "description": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.", + "v1.PodStatus": { + "description": "PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.", "properties": { - "count": { - "description": "Number of occurrences in this series up to the last heartbeat time", - "format": "int32", - "type": "integer" + "conditions": { + "description": "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + "items": { + "$ref": "#/definitions/v1.PodCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" }, - "lastObservedTime": { - "description": "Time of the last occurrence observed", - "format": "date-time", - "type": "string" - } - }, - "type": "object" - }, - "v1beta1.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.", - "properties": { - "action": { - "description": "action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field can have at most 128 characters.", - "type": "string" + "containerStatuses": { + "description": "Statuses of containers in this pod. Each container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", + "items": { + "$ref": "#/definitions/v1.ContainerStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "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" + "ephemeralContainerStatuses": { + "description": "Statuses for any ephemeral containers that have run in this pod. Each ephemeral container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", + "items": { + "$ref": "#/definitions/v1.ContainerStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "deprecatedCount": { - "description": "deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.", - "format": "int32", - "type": "integer" + "extendedResourceClaimStatus": { + "$ref": "#/definitions/v1.PodExtendedResourceClaimStatus", + "description": "Status of extended resource claim backed by DRA." }, - "deprecatedFirstTimestamp": { - "description": "deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.", - "format": "date-time", + "hostIP": { + "description": "hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod", "type": "string" }, - "deprecatedLastTimestamp": { - "description": "deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.", - "format": "date-time", - "type": "string" + "hostIPs": { + "description": "hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod.", + "items": { + "$ref": "#/definitions/v1.HostIP" + }, + "type": "array", + "x-kubernetes-list-type": "atomic", + "x-kubernetes-patch-merge-key": "ip", + "x-kubernetes-patch-strategy": "merge" }, - "deprecatedSource": { - "$ref": "#/definitions/v1.EventSource", - "description": "deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type." + "initContainerStatuses": { + "description": "Statuses of init containers in this pod. The most recent successful non-restartable init container will have ready = true, the most recently started container will have startTime set. Each init container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status", + "items": { + "$ref": "#/definitions/v1.ContainerStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "eventTime": { - "description": "eventTime is the time when this Event was first observed. It is required.", - "format": "date-time", + "message": { + "description": "A human readable message indicating details about why the pod is in this condition.", "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", + "nominatedNodeName": { + "description": "nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled.", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "observedGeneration": { + "description": "If set, this represents the .metadata.generation that the pod status was set based upon. This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field.", + "format": "int64", + "type": "integer" }, - "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.", + "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:\n\nPending: 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.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase", "type": "string" }, - "reason": { - "description": "reason is why the action was taken. It is human-readable. This field can have at most 128 characters.", + "podIP": { + "description": "podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.", "type": "string" }, - "regarding": { - "$ref": "#/definitions/v1.ObjectReference", - "description": "regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object." + "podIPs": { + "description": "podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet.", + "items": { + "$ref": "#/definitions/v1.PodIP" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "ip" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "ip", + "x-kubernetes-patch-strategy": "merge" }, - "related": { - "$ref": "#/definitions/v1.ObjectReference", - "description": "related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object." + "qosClass": { + "description": "The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes", + "type": "string" }, - "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.", + "reason": { + "description": "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'", "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.", + "resize": { + "description": "Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\" Deprecated: Resize status is moved to two pod conditions PodResizePending and PodResizeInProgress. PodResizePending will track states where the spec has been resized, but the Kubelet has not yet allocated the resources. PodResizeInProgress will track in-progress resizes, and should be present whenever allocated resources != acknowledged resources.", "type": "string" }, - "series": { - "$ref": "#/definitions/v1beta1.EventSeries", - "description": "series is data about the Event series this event represents or nil if it's a singleton Event." + "resourceClaimStatuses": { + "description": "Status of resource claims.", + "items": { + "$ref": "#/definitions/v1.PodResourceClaimStatus" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" }, - "type": { - "description": "type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable.", + "startTime": { + "description": "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod.", + "format": "date-time", "type": "string" } }, - "required": [ - "eventTime" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - ] + "type": "object" }, - "v1.HorizontalPodAutoscaler": { - "description": "configuration of a horizontal pod autoscaler.", + "v1.PodTemplate": { + "description": "PodTemplate describes a template for creating copies of a predefined pod.", "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", @@ -10505,363 +10470,333 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1.HorizontalPodAutoscalerSpec", - "description": "behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "status": { - "$ref": "#/definitions/v1.HorizontalPodAutoscalerStatus", - "description": "current information about the autoscaler." + "template": { + "$ref": "#/definitions/v1.PodTemplateSpec", + "description": "Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", + "group": "", + "kind": "PodTemplate", "version": "v1" } ] }, - "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.", + "v1.PodTemplateList": { + "description": "PodTemplateList is a list of PodTemplates.", "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.", - "type": "object" + "items": { + "description": "List of pod templates", + "items": { + "$ref": "#/definitions/v1.PodTemplate" + }, + "type": "array" }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "revision": { - "description": "Revision indicates the revision of the state represented by Data.", - "format": "int64", - "type": "integer" + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ - "revision" + "items" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "apps", - "kind": "ControllerRevision", + "group": "", + "kind": "PodTemplateList", "version": "v1" } ] }, - "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.", - "properties": { - "host": { - "description": "Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to\n the IP in the Spec of the parent Ingress.\n2. The `:` delimiter is not respected because ports are not allowed.\n\t Currently the port of an Ingress is implicitly :80 for http and\n\t :443 for https.\nBoth these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.\n\nHost can be \"precise\" which is a domain name without the terminating dot of a network host (e.g. \"foo.bar.com\") or \"wildcard\", which is a domain name prefixed with a single wildcard label (e.g. \"*.foo.com\"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == \"*\"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.", - "type": "string" - }, - "http": { - "$ref": "#/definitions/v1.HTTPIngressRuleValue" - } - }, - "type": "object" - }, - "v1.PodDisruptionBudget": { - "description": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods", + "v1.PodTemplateSpec": { + "description": "PodTemplateSpec describes the data a pod should have when created from a template", "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": "#/definitions/v1.ObjectMeta", "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1.PodDisruptionBudgetSpec", - "description": "Specification of the desired behavior of the PodDisruptionBudget." - }, - "status": { - "$ref": "#/definitions/v1.PodDisruptionBudgetStatus", - "description": "Most recently observed status of the PodDisruptionBudget." - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" - } - ] - }, - "v1alpha1.AggregationRule": { - "description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole", - "properties": { - "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": "#/definitions/v1.LabelSelector" - }, - "type": "array" + "$ref": "#/definitions/v1.PodSpec", + "description": "Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, "type": "object" }, - "v1.NodeDaemonEndpoints": { - "description": "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", + "v1.PortStatus": { + "description": "PortStatus represents the error condition of a service port", "properties": { - "kubeletEndpoint": { - "$ref": "#/definitions/v1.DaemonEndpoint", - "description": "Endpoint on which Kubelet is listening." + "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\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n 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.APIGroup": { - "description": "APIGroup contains the name, the supported versions, and the preferred version of a group.", + "v1.PortworxVolumeSource": { + "description": "PortworxVolumeSource represents a Portworx volume resource.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "fsType": { + "description": "fSType 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" }, - "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" + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" }, - "name": { - "description": "name is the name of the group.", + "volumeID": { + "description": "volumeID uniquely identifies a Portworx volume", "type": "string" - }, - "preferredVersion": { - "$ref": "#/definitions/v1.GroupVersionForDiscovery", - "description": "preferredVersion is the version preferred by the API server, which probably is the storage version." - }, - "serverAddressByClientCIDRs": { - "description": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", - "items": { - "$ref": "#/definitions/v1.ServerAddressByClientCIDR" - }, - "type": "array" - }, - "versions": { - "description": "versions are the versions supported in this group.", - "items": { - "$ref": "#/definitions/v1.GroupVersionForDiscovery" - }, - "type": "array" } }, "required": [ - "name", - "versions" + "volumeID" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "APIGroup", - "version": "v1" - } - ] - }, - "v1.APIService": { - "description": "APIService represents a server for a particular GroupVersion. Name must be \"version.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" - }, - "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": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1.APIServiceSpec", - "description": "Spec contains information for locating and communicating with a server" - }, - "status": { - "$ref": "#/definitions/v1.APIServiceStatus", - "description": "Status contains derived information about an API server" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" - } - ] + "type": "object" }, - "v1.ResourceQuotaStatus": { - "description": "ResourceQuotaStatus defines the enforced hard limits and observed use.", + "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).", "properties": { - "hard": { - "additionalProperties": { - "$ref": "#/definitions/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" + "preference": { + "$ref": "#/definitions/v1.NodeSelectorTerm", + "description": "A node selector term, associated with the corresponding weight." }, - "used": { - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - }, - "description": "Used is the current observed total usage of the resource in the namespace.", - "type": "object" + "weight": { + "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", + "format": "int32", + "type": "integer" } }, + "required": [ + "weight", + "preference" + ], "type": "object" }, - "v2beta2.HorizontalPodAutoscalerSpec": { - "description": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.", + "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.", "properties": { - "behavior": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscalerBehavior", - "description": "behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used." + "exec": { + "$ref": "#/definitions/v1.ExecAction", + "description": "Exec specifies a command to execute in the container." }, - "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.", + "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" }, - "metrics": { - "description": "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization.", - "items": { - "$ref": "#/definitions/v2beta2.MetricSpec" - }, - "type": "array" + "grpc": { + "$ref": "#/definitions/v1.GRPCAction", + "description": "GRPC specifies a GRPC HealthCheckRequest." }, - "minReplicas": { - "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", + "httpGet": { + "$ref": "#/definitions/v1.HTTPGetAction", + "description": "HTTPGet specifies an HTTP GET request to perform." + }, + "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" }, - "scaleTargetRef": { - "$ref": "#/definitions/v2beta2.CrossVersionObjectReference", - "description": "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count." + "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": "#/definitions/v1.TCPSocketAction", + "description": "TCPSocket specifies a connection to a TCP port." + }, + "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" } }, - "required": [ - "scaleTargetRef", - "maxReplicas" - ], "type": "object" }, - "v1.UncountedTerminatedPods": { - "description": "UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.", + "v1.ProjectedVolumeSource": { + "description": "Represents a projected volume source", "properties": { - "failed": { - "description": "Failed holds UIDs of failed Pods.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" + "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" }, - "succeeded": { - "description": "Succeeded holds UIDs of succeeded Pods.", + "sources": { + "description": "sources is the list of volume projections. Each entry in this list handles one source.", "items": { - "type": "string" + "$ref": "#/definitions/v1.VolumeProjection" }, "type": "array", - "x-kubernetes-list-type": "set" + "x-kubernetes-list-type": "atomic" } }, "type": "object" }, - "v1.LocalObjectReference": { - "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", + "v1.QuobyteVolumeSource": { + "description": "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.", "properties": { - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "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" } }, - "type": "object", - "x-kubernetes-map-type": "atomic" + "required": [ + "registry", + "volume" + ], + "type": "object" }, - "v1alpha1.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. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.22.", + "v1.RBDPersistentVolumeSource": { + "description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd", "type": "string" }, - "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", + "image": { + "description": "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata." - }, - "roleRef": { - "$ref": "#/definitions/v1alpha1.RoleRef", - "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error." + "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" }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", + "monitors": { + "description": "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", "items": { - "$ref": "#/definitions/v1alpha1.Subject" + "type": "string" }, - "type": "array" + "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": "#/definitions/v1.SecretReference", + "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" + }, + "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": [ - "roleRef" + "monitors", + "image" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - ] + "type": "object" }, - "v1.HTTPIngressPath": { - "description": "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.", + "v1.RBDVolumeSource": { + "description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", "properties": { - "backend": { - "$ref": "#/definitions/v1.IngressBackend", - "description": "Backend defines the referenced service endpoint to which the traffic will be forwarded to." + "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" }, - "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\".", + "image": { + "description": "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", "type": "string" }, - "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\n done on a path element by element basis. A path element refers is the\n list of labels in the path split by the '/' separator. A request is a\n match for path p if every p is an element-wise prefix of p of the\n request path. Note that if the last element of the path is a substring\n of the last element in request path, it is not a match (e.g. /foo/bar\n matches /foo/bar/baz, but does not match /foo/barbaz).\n* ImplementationSpecific: Interpretation of the Path matching is up to\n the IngressClass. Implementations can treat this as a separate PathType\n or treat it identically to Prefix or Exact path types.\nImplementations are required to support all path types.", + "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": "#/definitions/v1.LocalObjectReference", + "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" + }, + "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": [ - "pathType", - "backend" + "monitors", + "image" ], "type": "object" }, - "v1.Role": { - "description": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", + "v1.ReplicationController": { + "description": "ReplicationController represents the configuration of a replication controller.", "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", @@ -10873,36 +10808,68 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata." + "description": "If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "rules": { - "description": "Rules holds all the PolicyRules for this Role", - "items": { - "$ref": "#/definitions/v1.PolicyRule" - }, - "type": "array" + "spec": { + "$ref": "#/definitions/v1.ReplicationControllerSpec", + "description": "Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/v1.ReplicationControllerStatus", + "description": "Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "rbac.authorization.k8s.io", - "kind": "Role", + "group": "", + "kind": "ReplicationController", "version": "v1" } ] }, - "v1.ServiceList": { - "description": "ServiceList holds a list of services.", + "v1.ReplicationControllerCondition": { + "description": "ReplicationControllerCondition describes the state of a replication controller at a certain point.", + "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": [ + "type", + "status" + ], + "type": "object" + }, + "v1.ReplicationControllerList": { + "description": "ReplicationControllerList is a collection of replication controllers.", "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", + "description": "List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", "items": { - "$ref": "#/definitions/v1.Service" + "$ref": "#/definitions/v1.ReplicationController" }, "type": "array" }, @@ -10922,103 +10889,144 @@ "x-kubernetes-group-version-kind": [ { "group": "", - "kind": "ServiceList", + "kind": "ReplicationControllerList", "version": "v1" } ] }, - "v1.ContainerStateTerminated": { - "description": "ContainerStateTerminated is a terminated state of a container.", + "v1.ReplicationControllerSpec": { + "description": "ReplicationControllerSpec is the specification of a replication controller.", "properties": { - "containerID": { - "description": "Container's ID in the format 'docker://'", - "type": "string" + "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" }, - "exitCode": { - "description": "Exit status from the last termination of the container", + "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" }, - "finishedAt": { - "description": "Time at which the container last terminated", - "format": "date-time", - "type": "string" + "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" }, - "message": { - "description": "Message regarding the last termination of the container", - "type": "string" + "template": { + "$ref": "#/definitions/v1.PodTemplateSpec", + "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. The only allowed template.spec.restartPolicy value is \"Always\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template" + } + }, + "type": "object" + }, + "v1.ReplicationControllerStatus": { + "description": "ReplicationControllerStatus represents the current status of a replication controller.", + "properties": { + "availableReplicas": { + "description": "The number of available replicas (ready for at least minReadySeconds) for this replication controller.", + "format": "int32", + "type": "integer" }, - "reason": { - "description": "(brief) reason from the last termination of the container", - "type": "string" + "conditions": { + "description": "Represents the latest available observations of a replication controller's current state.", + "items": { + "$ref": "#/definitions/v1.ReplicationControllerCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" }, - "signal": { - "description": "Signal from the last termination of the container", + "fullyLabeledReplicas": { + "description": "The number of pods that have labels matching the labels of the pod template of the replication controller.", "format": "int32", "type": "integer" }, - "startedAt": { - "description": "Time at which previous execution of the container started", - "format": "date-time", + "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.", + "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": [ - "exitCode" + "name" ], "type": "object" }, - "v1.RoleList": { - "description": "RoleList is a collection of Roles", + "v1.ResourceFieldSelector": { + "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", "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", + "containerName": { + "description": "Container name: required for volumes, optional for env vars", "type": "string" }, - "items": { - "description": "Items is a list of Roles", - "items": { - "$ref": "#/definitions/v1.Role" - }, - "type": "array" + "divisor": { + "$ref": "#/definitions/resource.Quantity", + "description": "Specifies the output format of the exposed resources, defaults to \"1\"" }, - "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", + "resource": { + "description": "Required: resource to select", "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard object's metadata." } }, "required": [ - "items" + "resource" ], "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "RoleList", - "version": "v1" - } - ] + "x-kubernetes-map-type": "atomic" }, - "v1.RollingUpdateDaemonSet": { - "description": "Spec to control the desired behavior of daemon set rolling update.", + "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.", "properties": { - "maxSurge": { - "$ref": "#/definitions/intstr.IntOrString", - "description": "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate." + "health": { + "description": "Health of the resource. can be one of:\n - Healthy: operates as normal\n - Unhealthy: reported unhealthy. We consider this a temporary health issue\n since we do not have a mechanism today to distinguish\n temporary and permanent issues.\n - Unknown: The status cannot be determined.\n For example, Device Plugin got unregistered and hasn't been re-registered since.\n\nIn future we may want to introduce the PermanentlyUnhealthy Status.", + "type": "string" }, - "maxUnavailable": { - "$ref": "#/definitions/intstr.IntOrString", - "description": "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update." + "resourceID": { + "description": "ResourceID is the unique identifier of the resource. See the ResourceID type for more information.", + "type": "string" } }, + "required": [ + "resourceID" + ], "type": "object" }, - "v1.LimitRange": { - "description": "LimitRange sets resource usage limits for each kind of resource in a Namespace.", + "v1.ResourceQuota": { + "description": "ResourceQuota sets aggregate quota restrictions enforced per 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", @@ -11033,30 +11041,34 @@ "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1.LimitRangeSpec", - "description": "Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "$ref": "#/definitions/v1.ResourceQuotaSpec", + "description": "Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/v1.ResourceQuotaStatus", + "description": "Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, "type": "object", "x-kubernetes-group-version-kind": [ { "group": "", - "kind": "LimitRange", + "kind": "ResourceQuota", "version": "v1" } ] }, - "v1.StatefulSetList": { - "description": "StatefulSetList is a collection of StatefulSets.", + "v1.ResourceQuotaList": { + "description": "ResourceQuotaList is a list of ResourceQuota items.", "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 stateful sets.", + "description": "Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", "items": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.ResourceQuota" }, "type": "array" }, @@ -11066,7 +11078,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ @@ -11075,271 +11087,321 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "apps", - "kind": "StatefulSetList", + "group": "", + "kind": "ResourceQuotaList", "version": "v1" } ] }, - "v1beta1.SupplementalGroupsStrategyOptions": { - "description": "SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy.", + "v1.ResourceQuotaSpec": { + "description": "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.", "properties": { - "ranges": { - "description": "ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs.", - "items": { - "$ref": "#/definitions/v1beta1.IDRange" + "hard": { + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" }, - "type": "array" + "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" }, - "rule": { - "description": "rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.", - "type": "string" - } - }, - "type": "object" + "scopeSelector": { + "$ref": "#/definitions/v1.ScopeSelector", + "description": "scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched." + }, + "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.ClientIPConfig": { - "description": "ClientIPConfig represents the configurations of Client IP based session affinity.", + "v1.ResourceQuotaStatus": { + "description": "ResourceQuotaStatus defines the enforced hard limits and observed use.", "properties": { - "timeoutSeconds": { - "description": "timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours).", - "format": "int32", - "type": "integer" + "hard": { + "additionalProperties": { + "$ref": "#/definitions/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": "#/definitions/resource.Quantity" + }, + "description": "Used is the current observed total usage of the resource in the namespace.", + "type": "object" } }, "type": "object" }, - "v1.NamespaceSpec": { - "description": "NamespaceSpec describes the attributes on a Namespace.", + "v1.ResourceRequirements": { + "description": "ResourceRequirements describes the compute resource requirements.", "properties": { - "finalizers": { - "description": "Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", + "claims": { + "description": "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\n\nThis field depends on the DynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", "items": { - "type": "string" + "$ref": "#/definitions/core.v1.ResourceClaim" }, - "type": "array" + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, + "limits": { + "additionalProperties": { + "$ref": "#/definitions/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": "#/definitions/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" }, - "v2beta2.ResourceMetricStatus": { - "description": "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", + "v1.ResourceStatus": { + "description": "ResourceStatus represents the status of a single resource allocated to a Pod.", "properties": { - "current": { - "$ref": "#/definitions/v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" - }, "name": { - "description": "Name is the name of the resource in question.", + "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": "#/definitions/v1.ResourceHealth" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "resourceID" + ], + "x-kubernetes-list-type": "map" } }, "required": [ - "name", - "current" + "name" ], "type": "object" }, - "v1.BoundObjectReference": { - "description": "BoundObjectReference is a reference to an object that a token is bound to.", + "v1.SELinuxOptions": { + "description": "SELinuxOptions are the labels to be applied to the container", "properties": { - "apiVersion": { - "description": "API version of the referent.", + "level": { + "description": "Level is SELinux level label that applies to the container.", "type": "string" }, - "kind": { - "description": "Kind of the referent. Valid kinds are 'Pod' and 'Secret'.", + "role": { + "description": "Role is a SELinux role label that applies to the container.", "type": "string" }, - "name": { - "description": "Name of the referent.", + "type": { + "description": "Type is a SELinux type label that applies to the container.", "type": "string" }, - "uid": { - "description": "UID of the referent.", + "user": { + "description": "User is a SELinux user label that applies to the container.", "type": "string" } }, "type": "object" }, - "v1.MutatingWebhookConfiguration": { - "description": "MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.", + "v1.ScaleIOPersistentVolumeSource": { + "description": "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\"", "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", + "gateway": { + "description": "gateway is the host address of the ScaleIO API Gateway.", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + "protectionDomain": { + "description": "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", + "type": "string" }, - "webhooks": { - "description": "Webhooks is a list of webhooks and the affected resources and operations.", - "items": { - "$ref": "#/definitions/v1.MutatingWebhook" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "admissionregistration.k8s.io", - "kind": "MutatingWebhookConfiguration", - "version": "v1" - } - ] - }, - "v2beta1.ResourceMetricSource": { - "description": "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", - "properties": { - "name": { - "description": "name is the name of the resource in question.", + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/v1.SecretReference", + "description": "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail." + }, + "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" }, - "targetAverageUtilization": { - "description": "targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", - "format": "int32", - "type": "integer" + "storagePool": { + "description": "storagePool is the ScaleIO Storage Pool associated with the protection domain.", + "type": "string" }, - "targetAverageValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type." + "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": [ - "name" + "gateway", + "system", + "secretRef" ], "type": "object" }, - "v1.PersistentVolumeClaimSpec": { - "description": "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes", + "v1.ScaleIOVolumeSource": { + "description": "ScaleIOVolumeSource represents a persistent ScaleIO volume", "properties": { - "accessModes": { - "description": "AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", - "items": { - "type": "string" - }, - "type": "array" + "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" }, - "dataSource": { - "$ref": "#/definitions/v1.TypedLocalObjectReference", - "description": "This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field." + "gateway": { + "description": "gateway is the host address of the ScaleIO API Gateway.", + "type": "string" }, - "dataSourceRef": { - "$ref": "#/definitions/v1.TypedLocalObjectReference", - "description": "Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While DataSource ignores disallowed values (dropping them), DataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n(Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled." + "protectionDomain": { + "description": "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", + "type": "string" }, - "resources": { - "$ref": "#/definitions/v1.ResourceRequirements", - "description": "Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources" + "readOnly": { + "description": "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" }, - "selector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "A label query over volumes to consider for binding." + "secretRef": { + "$ref": "#/definitions/v1.LocalObjectReference", + "description": "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail." }, - "storageClassName": { - "description": "Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", + "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" }, - "volumeMode": { - "description": "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.", + "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 binding reference to the PersistentVolume backing this claim.", + "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", + "system", + "secretRef" + ], "type": "object" }, - "v1beta1.CronJobList": { - "description": "CronJobList is a collection of cron jobs.", + "v1.ScopeSelector": { + "description": "A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.", "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 CronJobs.", + "matchExpressions": { + "description": "A list of scope selector requirements by scope of the resources.", "items": { - "$ref": "#/definitions/v1beta1.CronJob" + "$ref": "#/definitions/v1.ScopedResourceSelectorRequirement" }, - "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": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "type": "array", + "x-kubernetes-list-type": "atomic" } }, - "required": [ - "items" - ], "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "batch", - "kind": "CronJobList", - "version": "v1beta1" - } - ] + "x-kubernetes-map-type": "atomic" }, - "v1.APIVersions": { - "description": "APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.", + "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.", "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", + "operator": { + "description": "Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.", "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", + "scopeName": { + "description": "The name of the scope that the selector applies to.", "type": "string" }, - "serverAddressByClientCIDRs": { - "description": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", - "items": { - "$ref": "#/definitions/v1.ServerAddressByClientCIDR" - }, - "type": "array" - }, - "versions": { - "description": "versions are the api versions that are available.", + "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" + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "required": [ - "versions", - "serverAddressByClientCIDRs" + "scopeName", + "operator" + ], + "type": "object" + }, + "v1.SeccompProfile": { + "description": "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.", + "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:\n\nLocalhost - 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-group-version-kind": [ + "x-kubernetes-unions": [ { - "group": "", - "kind": "APIVersions", - "version": "v1" + "discriminator": "type", + "fields-to-discriminateBy": { + "localhostProfile": "LocalhostProfile" + } } ] }, - "v1.Node": { - "description": "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).", + "v1.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.", "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", + "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" @@ -11348,266 +11410,220 @@ "$ref": "#/definitions/v1.ObjectMeta", "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "spec": { - "$ref": "#/definitions/v1.NodeSpec", - "description": "Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "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" }, - "status": { - "$ref": "#/definitions/v1.NodeStatus", - "description": "Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "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": "Node", + "kind": "Secret", "version": "v1" } ] }, - "v1.TokenReview": { - "description": "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.", + "v1.SecretEnvSource": { + "description": "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.", "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", + "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" }, - "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", + "optional": { + "description": "Specify whether the Secret must be defined", + "type": "boolean" + } + }, + "type": "object" + }, + "v1.SecretKeySelector": { + "description": "SecretKeySelector selects a key of a Secret.", + "properties": { + "key": { + "description": "The key of the secret to select from. Must be a valid secret key.", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1.TokenReviewSpec", - "description": "Spec holds information about the request being evaluated" + "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" }, - "status": { - "$ref": "#/definitions/v1.TokenReviewStatus", - "description": "Status is filled in by the server and indicates whether the request can be authenticated." + "optional": { + "description": "Specify whether the Secret or its key must be defined", + "type": "boolean" } }, "required": [ - "spec" + "key" ], "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "authentication.k8s.io", - "kind": "TokenReview", - "version": "v1" - } - ] + "x-kubernetes-map-type": "atomic" }, - "v1.PriorityClass": { - "description": "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.", + "v1.SecretList": { + "description": "SecretList is a list of Secret.", "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" }, - "description": { - "description": "description is an arbitrary string that usually provides guidelines on when this priority class should be used.", - "type": "string" - }, - "globalDefault": { - "description": "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.", - "type": "boolean" + "items": { + "description": "Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret", + "items": { + "$ref": "#/definitions/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": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "preemptionPolicy": { - "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate.", - "type": "string" - }, - "value": { - "description": "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.", - "format": "int32", - "type": "integer" + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ - "value" + "items" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", + "group": "", + "kind": "SecretList", "version": "v1" } ] }, - "v1.AzureFilePersistentVolumeSource": { - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "v1.SecretProjection": { + "description": "Adapts a secret into a projected volume.\n\nThe 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.", "properties": { - "readOnly": { - "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" + "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": "#/definitions/v1.KeyToPath" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "secretName": { - "description": "the name of secret that contains Azure Storage Account Name and Key", + "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" }, - "secretNamespace": { - "description": "the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod", + "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", + "properties": { + "name": { + "description": "name is unique within a namespace to reference a secret resource.", "type": "string" }, - "shareName": { - "description": "Share Name", + "namespace": { + "description": "namespace defines the space within which the secret name must be unique.", "type": "string" } }, - "required": [ - "secretName", - "shareName" - ], - "type": "object" + "type": "object", + "x-kubernetes-map-type": "atomic" }, - "v1alpha1.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.", + "v1.SecretVolumeSource": { + "description": "Adapts a Secret into a volume.\n\nThe 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.", "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.", - "items": { - "type": "string" - }, - "type": "array" - }, - "nonResourceURLs": { - "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" + "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" }, - "resourceNames": { - "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "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": { - "type": "string" + "$ref": "#/definitions/v1.KeyToPath" }, - "type": "array" + "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" + "optional": { + "description": "optional field specify whether the Secret or its keys must be defined", + "type": "boolean" }, - "verbs": { - "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. '*' represents all verbs.", - "items": { - "type": "string" - }, - "type": "array" + "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" } }, - "required": [ - "verbs" - ], "type": "object" }, - "v1.GlusterfsPersistentVolumeSource": { - "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", + "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.", "properties": { - "endpoints": { - "description": "EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "string" + "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" }, - "endpointsNamespace": { - "description": "EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "string" + "appArmorProfile": { + "$ref": "#/definitions/v1.AppArmorProfile", + "description": "appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows." }, - "path": { - "description": "Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "string" + "capabilities": { + "$ref": "#/definitions/v1.Capabilities", + "description": "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows." }, - "readOnly": { - "description": "ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "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" - } - }, - "required": [ - "endpoints", - "path" - ], - "type": "object" - }, - "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", - "properties": { - "ports": { - "description": "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": "#/definitions/v1.NetworkPolicyPort" - }, - "type": "array" }, - "to": { - "description": "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": "#/definitions/v1.NetworkPolicyPeer" - }, - "type": "array" - } - }, - "type": "object" - }, - "v1.HostPathVolumeSource": { - "description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", - "properties": { - "path": { - "description": "Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + "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" }, - "type": { - "description": "Type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", - "type": "string" - } - }, - "required": [ - "path" - ], - "type": "object" - }, - "v1beta1.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.", - "properties": { - "nonResourceURLs": { - "description": "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\n - \"/healthz\" is legal\n - \"/hea*\" is illegal\n - \"/hea\" is legal but matches nothing\n - \"/hea/*\" also matches nothing\n - \"/healthz/*\" matches all per-component health checks.\n\"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" + "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" }, - "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" + "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": "#/definitions/v1.SELinuxOptions", + "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. Note that this field cannot be set when spec.os.name is windows." + }, + "seccompProfile": { + "$ref": "#/definitions/v1.SeccompProfile", + "description": "The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows." + }, + "windowsOptions": { + "$ref": "#/definitions/v1.WindowsSecurityContextOptions", + "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. Note that this field cannot be set when spec.os.name is linux." } }, - "required": [ - "verbs", - "nonResourceURLs" - ], "type": "object" }, - "v1.NetworkPolicy": { - "description": "NetworkPolicy describes what network traffic is allowed for a set of Pods", + "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.", "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", @@ -11622,99 +11638,42 @@ "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1.NetworkPolicySpec", - "description": "Specification of the desired behavior for this NetworkPolicy." + "$ref": "#/definitions/v1.ServiceSpec", + "description": "Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/v1.ServiceStatus", + "description": "Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", + "group": "", + "kind": "Service", "version": "v1" } ] }, - "v1.IngressClassParametersReference": { - "description": "IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.", - "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 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\". Field can be enabled with IngressClassNamespacedParams feature gate.", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object" - }, - "v1alpha1.RuntimeClassSpec": { - "description": "RuntimeClassSpec is a specification of a RuntimeClass. It contains parameters that are required to describe the RuntimeClass to the Container Runtime Interface (CRI) implementation, as well as any other components that need to understand how the pod will be run. The RuntimeClassSpec is immutable.", - "properties": { - "overhead": { - "$ref": "#/definitions/v1alpha1.Overhead", - "description": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature." - }, - "runtimeHandler": { - "description": "RuntimeHandler 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 RuntimeHandler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.", - "type": "string" - }, - "scheduling": { - "$ref": "#/definitions/v1alpha1.Scheduling", - "description": "Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes." - } - }, - "required": [ - "runtimeHandler" - ], - "type": "object" - }, - "v1.CustomResourceSubresourceScale": { - "description": "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.", - "properties": { - "labelSelectorPath": { - "description": "labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string.", - "type": "string" - }, - "specReplicasPath": { - "description": "specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET.", - "type": "string" - }, - "statusReplicasPath": { - "description": "statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0.", - "type": "string" - } - }, - "required": [ - "specReplicasPath", - "statusReplicasPath" - ], - "type": "object" - }, - "v1.Endpoints": { - "description": "Endpoints is a collection of endpoints that implement the actual service. Example:\n Name: \"mysvc\",\n Subsets: [\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n },\n {\n Addresses: [{\"ip\": \"10.10.3.3\"}],\n Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n },\n ]", + "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", "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": "#/definitions/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" @@ -11723,83 +11682,40 @@ "$ref": "#/definitions/v1.ObjectMeta", "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "subsets": { - "description": "The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.", + "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": "#/definitions/v1.EndpointSubset" + "$ref": "#/definitions/v1.ObjectReference" }, - "type": "array" + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" } }, "type": "object", "x-kubernetes-group-version-kind": [ { "group": "", - "kind": "Endpoints", + "kind": "ServiceAccount", "version": "v1" } ] }, - "storage.v1.TokenRequest": { - "description": "TokenRequest contains parameters of a service account token.", - "properties": { - "audience": { - "description": "Audience is the intended audience of the token in \"TokenRequestSpec\". It will default to the audiences of kube apiserver.", - "type": "string" - }, - "expirationSeconds": { - "description": "ExpirationSeconds is the duration of validity of the token in \"TokenRequestSpec\". It has the same default value of \"ExpirationSeconds\" in \"TokenRequestSpec\".", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "audience" - ], - "type": "object" - }, - "v1.SessionAffinityConfig": { - "description": "SessionAffinityConfig represents the configurations of session affinity.", - "properties": { - "clientIP": { - "$ref": "#/definitions/v1.ClientIPConfig", - "description": "clientIP contains the configurations of Client IP based session affinity." - } - }, - "type": "object" - }, - "v1.PortworxVolumeSource": { - "description": "PortworxVolumeSource represents a Portworx volume resource.", - "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": "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.JobList": { - "description": "JobList is a collection of jobs.", + "v1.ServiceAccountList": { + "description": "ServiceAccountList is a list of ServiceAccount objects", "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 Jobs.", + "description": "List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", "items": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v1.ServiceAccount" }, "type": "array" }, @@ -11809,7 +11725,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ @@ -11818,72 +11734,45 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "batch", - "kind": "JobList", + "group": "", + "kind": "ServiceAccountList", "version": "v1" } ] }, - "v1.PodReadinessGate": { - "description": "PodReadinessGate contains the reference to a pod condition", - "properties": { - "conditionType": { - "description": "ConditionType refers to a condition in the pod's condition list with matching type.", - "type": "string" - } - }, - "required": [ - "conditionType" - ], - "type": "object" - }, - "v1.APIResourceList": { - "description": "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.", + "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).", "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", + "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" }, - "groupVersion": { - "description": "groupVersion is the group and version this APIResourceList is for.", - "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" }, - "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", + "path": { + "description": "path is the path relative to the mount point of the file to project the token into.", "type": "string" - }, - "resources": { - "description": "resources contains the name of the resources and if they are namespaced.", - "items": { - "$ref": "#/definitions/v1.APIResource" - }, - "type": "array" } }, "required": [ - "groupVersion", - "resources" + "path" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "APIResourceList", - "version": "v1" - } - ] + "type": "object" }, - "v1.PodTemplateList": { - "description": "PodTemplateList is a list of PodTemplates.", + "v1.ServiceList": { + "description": "ServiceList holds a list of services.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { - "description": "List of pod templates", + "description": "List of services", "items": { - "$ref": "#/definitions/v1.PodTemplate" + "$ref": "#/definitions/v1.Service" }, "type": "array" }, @@ -11903,575 +11792,944 @@ "x-kubernetes-group-version-kind": [ { "group": "", - "kind": "PodTemplateList", + "kind": "ServiceList", "version": "v1" } ] }, - "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 '#'.", - "properties": { - "paths": { - "description": "A collection of paths that map requests to backends.", - "items": { - "$ref": "#/definitions/v1.HTTPIngressPath" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "paths" - ], - "type": "object" - }, - "v1.IngressServiceBackend": { - "description": "IngressServiceBackend references a Kubernetes Service as a Backend.", + "v1.ServicePort": { + "description": "ServicePort contains information on service's port.", "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:\n\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\n\n* Kubernetes-defined prefixed names:\n * '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-\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\n\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.", + "type": "string" + }, "name": { - "description": "Name is the referenced service. The service must exist in the same namespace as the Ingress object.", + "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": { - "$ref": "#/definitions/v1.ServiceBackendPort", - "description": "Port of the referenced service. A port name or port number is required for a IngressServiceBackend." + "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": { + "$ref": "#/definitions/intstr.IntOrString", + "description": "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service" } }, "required": [ - "name" + "port" ], "type": "object" }, - "v1beta1.FlowSchemaList": { - "description": "FlowSchemaList is a list of FlowSchema objects.", + "v1.ServiceSpec": { + "description": "ServiceSpec describes the attributes that a user creates on a service.", "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", + "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" }, - "items": { - "description": "`items` is a list of FlowSchemas.", + "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.\n\nThis 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": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "type": "string" }, - "type": "array" + "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", + "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" }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "`metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchemaList", - "version": "v1beta1" - } - ] - }, - "v1.OwnerReference": { - "description": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.", - "properties": { - "apiVersion": { - "description": "API version of the referent.", + "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" }, - "blockOwnerDeletion": { - "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", - "type": "boolean" + "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" }, - "controller": { - "description": "If true, this reference points to the managing controller.", - "type": "boolean" + "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" }, - "kind": { - "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "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.\n\nThis 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" }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "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" }, - "uid": { - "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "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" - } - }, - "required": [ - "apiVersion", - "kind", - "name", - "uid" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "v1.GitRepoVolumeSource": { - "description": "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.\n\nDEPRECATED: 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.", - "properties": { - "directory": { - "description": "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.", + }, + "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": "#/definitions/v1.ServicePort" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "port", + "protocol" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "port", + "x-kubernetes-patch-strategy": "merge" + }, + "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" }, - "repository": { - "description": "Repository URL", + "sessionAffinityConfig": { + "$ref": "#/definitions/v1.SessionAffinityConfig", + "description": "sessionAffinityConfig contains the configurations of session affinity." + }, + "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" }, - "revision": { - "description": "Commit hash for the specified revision.", + "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" } }, - "required": [ - "repository" - ], "type": "object" }, - "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.ServiceStatus": { + "description": "ServiceStatus represents the current status of a service.", "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" + "conditions": { + "description": "Current service state", + "items": { + "$ref": "#/definitions/v1.Condition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" }, - "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.", + "loadBalancer": { + "$ref": "#/definitions/v1.LoadBalancerStatus", + "description": "LoadBalancer contains the current status of the load-balancer, if one is present." + } + }, + "type": "object" + }, + "v1.SessionAffinityConfig": { + "description": "SessionAffinityConfig represents the configurations of session affinity.", + "properties": { + "clientIP": { + "$ref": "#/definitions/v1.ClientIPConfig", + "description": "clientIP contains the configurations of Client IP based session affinity." + } + }, + "type": "object" + }, + "v1.SleepAction": { + "description": "SleepAction describes a \"sleep\" action.", + "properties": { + "seconds": { + "description": "Seconds is the number of seconds to sleep.", "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" + "seconds" ], "type": "object" }, - "v1.EnvVar": { - "description": "EnvVar represents an environment variable present in a Container.", + "v1.StorageOSPersistentVolumeSource": { + "description": "Represents a StorageOS persistent volume resource.", "properties": { - "name": { - "description": "Name of the environment variable. Must be a C_IDENTIFIER.", + "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" }, - "value": { - "description": "Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".", + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/v1.ObjectReference", + "description": "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted." + }, + "volumeName": { + "description": "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", "type": "string" }, - "valueFrom": { - "$ref": "#/definitions/v1.EnvVarSource", - "description": "Source for the environment variable's value. Cannot be used if value is not empty." + "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" } }, - "required": [ - "name" - ], "type": "object" }, - "v1.ComponentCondition": { - "description": "Information about the condition of a component.", + "v1.StorageOSVolumeSource": { + "description": "Represents a StorageOS persistent volume resource.", "properties": { - "error": { - "description": "Condition error code for a component. For example, a health check error code.", + "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" }, - "message": { - "description": "Message about the condition for a component. For example, information about a health check.", + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/v1.LocalObjectReference", + "description": "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted." + }, + "volumeName": { + "description": "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", "type": "string" }, - "status": { - "description": "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".", + "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", + "properties": { + "name": { + "description": "Name of a property to set", "type": "string" }, - "type": { - "description": "Type of condition for a component. Valid value: \"Healthy\"", + "value": { + "description": "Value of a property to set", "type": "string" } }, "required": [ - "type", - "status" + "name", + "value" ], "type": "object" }, - "v1.CustomResourceColumnDefinition": { - "description": "CustomResourceColumnDefinition specifies a column for server side printing.", + "v1.TCPSocketAction": { + "description": "TCPSocketAction describes an action based on opening a socket", "properties": { - "description": { - "description": "description is a human readable description of this column.", + "host": { + "description": "Optional: Host name to connect to, defaults to the pod IP.", "type": "string" }, - "format": { - "description": "format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.", + "port": { + "$ref": "#/definitions/intstr.IntOrString", + "description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." + } + }, + "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.", + "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" }, - "jsonPath": { - "description": "jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column.", + "key": { + "description": "Required. The taint key to be applied to a node.", "type": "string" }, - "name": { - "description": "name is a human readable name for the column.", + "timeAdded": { + "description": "TimeAdded represents the time at which the taint was added.", + "format": "date-time", "type": "string" }, - "priority": { - "description": "priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0.", - "format": "int32", - "type": "integer" - }, - "type": { - "description": "type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.", + "value": { + "description": "The taint value corresponding to the taint key.", "type": "string" } }, "required": [ - "name", - "type", - "jsonPath" + "key", + "effect" ], "type": "object" }, - "v1.SubjectAccessReviewSpec": { - "description": "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", + "v1.Toleration": { + "description": "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator .", "properties": { - "extra": { - "additionalProperties": { - "items": { - "type": "string" - }, - "type": "array" - }, - "description": "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.", - "type": "object" - }, - "groups": { - "description": "Groups is the groups you're testing for.", - "items": { - "type": "string" - }, - "type": "array" - }, - "nonResourceAttributes": { - "$ref": "#/definitions/v1.NonResourceAttributes", - "description": "NonResourceAttributes describes information for a non-resource access request" + "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" }, - "resourceAttributes": { - "$ref": "#/definitions/v1.ResourceAttributes", - "description": "ResourceAuthorizationAttributes describes information for a resource access request" + "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" }, - "uid": { - "description": "UID information about the requesting user.", + "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" }, - "user": { - "description": "User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups", + "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.SubjectRulesReviewStatus": { - "description": "SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete.", + "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.", "properties": { - "evaluationError": { - "description": "EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.", + "key": { + "description": "The label key that the selector applies to.", "type": "string" }, - "incomplete": { - "description": "Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.", - "type": "boolean" - }, - "nonResourceRules": { - "description": "NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", - "items": { - "$ref": "#/definitions/v1.NonResourceRule" - }, - "type": "array" - }, - "resourceRules": { - "description": "ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "values": { + "description": "An array of string values. One value must match the label to be selected. Each entry in Values is ORed.", "items": { - "$ref": "#/definitions/v1.ResourceRule" + "type": "string" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "required": [ - "resourceRules", - "nonResourceRules", - "incomplete" + "key", + "values" ], "type": "object" }, - "v2beta2.CrossVersionObjectReference": { - "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", + "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.", "properties": { - "apiVersion": { - "description": "API version of the referent", + "matchLabelExpressions": { + "description": "A list of topology selector requirements by labels.", + "items": { + "$ref": "#/definitions/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.", + "properties": { + "labelSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain." + }, + "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.\n\nThis 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.\n\nFor 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.\n\nIf this value is nil, the behavior is equivalent to the Honor policy.", "type": "string" }, - "kind": { - "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"", + "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.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy.", "type": "string" }, - "name": { - "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "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,\n but giving higher precedence to topologies that would help reduce the\n skew.\nA 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": [ - "kind", - "name" + "maxSkew", + "topologyKey", + "whenUnsatisfiable" ], "type": "object" }, - "v1.RuntimeClassList": { - "description": "RuntimeClassList is a list of RuntimeClass objects.", + "v1.TypedLocalObjectReference": { + "description": "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same 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", + "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" }, - "items": { - "description": "Items is a list of schema objects.", - "items": { - "$ref": "#/definitions/v1.RuntimeClass" - }, - "type": "array" - }, "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "description": "Kind is the type of resource being referenced", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "name": { + "description": "Name is the name of resource being referenced", + "type": "string" } }, "required": [ - "items" + "kind", + "name" ], "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "node.k8s.io", - "kind": "RuntimeClassList", - "version": "v1" - } - ] + "x-kubernetes-map-type": "atomic" }, - "v2beta2.HorizontalPodAutoscaler": { - "description": "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.", + "v1.TypedObjectReference": { + "description": "TypedObjectReference contains enough information to let you locate the typed referenced object", "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", + "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 a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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": "Kind is the type of resource being referenced", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscalerSpec", - "description": "spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." + "name": { + "description": "Name is the name of resource being referenced", + "type": "string" }, - "status": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscalerStatus", - "description": "status is the current information about the autoscaler." + "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" } }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - ] + "required": [ + "kind", + "name" + ], + "type": "object" }, - "v1.FlexPersistentVolumeSource": { - "description": "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.", + "v1.Volume": { + "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", "properties": { - "driver": { - "description": "Driver is the name of the driver to use for this volume.", - "type": "string" + "awsElasticBlockStore": { + "$ref": "#/definitions/v1.AWSElasticBlockStoreVolumeSource", + "description": "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore" }, - "fsType": { - "description": "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.", + "azureDisk": { + "$ref": "#/definitions/v1.AzureDiskVolumeSource", + "description": "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type are redirected to the disk.csi.azure.com CSI driver." + }, + "azureFile": { + "$ref": "#/definitions/v1.AzureFileVolumeSource", + "description": "azureFile represents an Azure File Service mount on the host and bind mount to the pod. Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type are redirected to the file.csi.azure.com CSI driver." + }, + "cephfs": { + "$ref": "#/definitions/v1.CephFSVolumeSource", + "description": "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported." + }, + "cinder": { + "$ref": "#/definitions/v1.CinderVolumeSource", + "description": "cinder represents a cinder volume attached and mounted on kubelets host machine. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md" + }, + "configMap": { + "$ref": "#/definitions/v1.ConfigMapVolumeSource", + "description": "configMap represents a configMap that should populate this volume" + }, + "csi": { + "$ref": "#/definitions/v1.CSIVolumeSource", + "description": "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers." + }, + "downwardAPI": { + "$ref": "#/definitions/v1.DownwardAPIVolumeSource", + "description": "downwardAPI represents downward API about the pod that should populate this volume" + }, + "emptyDir": { + "$ref": "#/definitions/v1.EmptyDirVolumeSource", + "description": "emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir" + }, + "ephemeral": { + "$ref": "#/definitions/v1.EphemeralVolumeSource", + "description": "ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed.\n\nUse this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity\n tracking are needed,\nc) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through\n a PersistentVolumeClaim (see EphemeralVolumeSource for more\n information on the connection between this volume type\n and PersistentVolumeClaim).\n\nUse PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod.\n\nUse CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information.\n\nA pod can use both types of ephemeral volumes and persistent volumes at the same time." + }, + "fc": { + "$ref": "#/definitions/v1.FCVolumeSource", + "description": "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod." + }, + "flexVolume": { + "$ref": "#/definitions/v1.FlexVolumeSource", + "description": "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead." + }, + "flocker": { + "$ref": "#/definitions/v1.FlockerVolumeSource", + "description": "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running. Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported." + }, + "gcePersistentDisk": { + "$ref": "#/definitions/v1.GCEPersistentDiskVolumeSource", + "description": "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk" + }, + "gitRepo": { + "$ref": "#/definitions/v1.GitRepoVolumeSource", + "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." + }, + "glusterfs": { + "$ref": "#/definitions/v1.GlusterfsVolumeSource", + "description": "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported." + }, + "hostPath": { + "$ref": "#/definitions/v1.HostPathVolumeSource", + "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" + }, + "image": { + "$ref": "#/definitions/v1.ImageVolumeSource", + "description": "image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine. The volume is resolved at pod startup depending on which PullPolicy value is provided:\n\n- 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.\n\nThe volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation. A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. The volume will be mounted read-only (ro) and non-executable files (noexec). Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type." + }, + "iscsi": { + "$ref": "#/definitions/v1.ISCSIVolumeSource", + "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://kubernetes.io/docs/concepts/storage/volumes/#iscsi" + }, + "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" }, - "options": { - "additionalProperties": { - "type": "string" - }, - "description": "Optional: Extra command options if any.", - "type": "object" + "nfs": { + "$ref": "#/definitions/v1.NFSVolumeSource", + "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" }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" + "persistentVolumeClaim": { + "$ref": "#/definitions/v1.PersistentVolumeClaimVolumeSource", + "description": "persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" }, - "secretRef": { - "$ref": "#/definitions/v1.SecretReference", - "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." + "photonPersistentDisk": { + "$ref": "#/definitions/v1.PhotonPersistentDiskVolumeSource", + "description": "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported." + }, + "portworxVolume": { + "$ref": "#/definitions/v1.PortworxVolumeSource", + "description": "portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate is on." + }, + "projected": { + "$ref": "#/definitions/v1.ProjectedVolumeSource", + "description": "projected items for all in one resources secrets, configmaps, and downward API" + }, + "quobyte": { + "$ref": "#/definitions/v1.QuobyteVolumeSource", + "description": "quobyte represents a Quobyte mount on the host that shares a pod's lifetime. Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported." + }, + "rbd": { + "$ref": "#/definitions/v1.RBDVolumeSource", + "description": "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported." + }, + "scaleIO": { + "$ref": "#/definitions/v1.ScaleIOVolumeSource", + "description": "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported." + }, + "secret": { + "$ref": "#/definitions/v1.SecretVolumeSource", + "description": "secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret" + }, + "storageos": { + "$ref": "#/definitions/v1.StorageOSVolumeSource", + "description": "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported." + }, + "vsphereVolume": { + "$ref": "#/definitions/v1.VsphereVirtualDiskVolumeSource", + "description": "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type are redirected to the csi.vsphere.vmware.com CSI driver." } }, "required": [ - "driver" + "name" ], "type": "object" }, - "v1.CSINodeList": { - "description": "CSINodeList is a collection of CSINode objects.", + "v1.VolumeDevice": { + "description": "volumeDevice describes a mapping of a raw block device within a container.", "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", + "devicePath": { + "description": "devicePath is the path inside of the container that the device will be mapped to.", "type": "string" }, - "items": { - "description": "items is the list of CSINode", - "items": { - "$ref": "#/definitions/v1.CSINode" - }, - "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", + "name": { + "description": "name must match the name of a persistentVolumeClaim in the pod", "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ - "items" + "name", + "devicePath" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "CSINodeList", - "version": "v1" - } - ] + "type": "object" }, - "v2beta1.ObjectMetricStatus": { - "description": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", + "v1.VolumeMount": { + "description": "VolumeMount describes a mounting of a Volume within a container.", "properties": { - "averageValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)" + "mountPath": { + "description": "Path within the container at which the volume should be mounted. Must not contain ':'.", + "type": "string" }, - "currentValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "currentValue is the current value of the metric (as a quantity)." + "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" }, - "metricName": { - "description": "metricName is the name of the metric in question.", + "name": { + "description": "This must match the Name of a Volume.", "type": "string" }, - "selector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics." + "readOnly": { + "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.", + "type": "boolean" }, - "target": { - "$ref": "#/definitions/v2beta1.CrossVersionObjectReference", - "description": "target is the described Kubernetes object." + "recursiveReadOnly": { + "description": "RecursiveReadOnly specifies whether read-only mounts should be handled recursively.\n\nIf ReadOnly is false, this field has no meaning and must be unspecified.\n\nIf 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.\n\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None).\n\nIf 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": [ - "target", - "metricName", - "currentValue" + "name", + "mountPath" ], "type": "object" }, - "v1.HorizontalPodAutoscalerList": { - "description": "list of horizontal pod autoscaler objects.", + "v1.VolumeMountStatus": { + "description": "VolumeMountStatus shows status of volume mounts.", "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", + "mountPath": { + "description": "MountPath corresponds to the original VolumeMount.", "type": "string" }, - "items": { - "description": "list of horizontal pod autoscaler objects.", - "items": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - }, - "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", + "name": { + "description": "Name corresponds to the name of the original VolumeMount.", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata." + "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": [ - "items" + "name", + "mountPath" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "HorizontalPodAutoscalerList", - "version": "v1" + "type": "object" + }, + "v1.VolumeNodeAffinity": { + "description": "VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.", + "properties": { + "required": { + "$ref": "#/definitions/v1.NodeSelector", + "description": "required specifies hard node constraints that must be met." } - ] + }, + "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.", + "v1.VolumeProjection": { + "description": "Projection that may be projected along with other supported volume types. Exactly one of these fields must be set.", "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", + "clusterTrustBundle": { + "$ref": "#/definitions/v1.ClusterTrustBundleProjection", + "description": "ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field of ClusterTrustBundle objects in an auto-updating file.\n\nAlpha, gated by the ClusterTrustBundleProjection feature gate.\n\nClusterTrustBundle objects can either be selected by name, or by the combination of signer name and a label selector.\n\nKubelet performs aggressive normalization of the PEM contents written into the pod filesystem. Esoteric PEM features such as inter-block comments and block headers are stripped. Certificates are deduplicated. The ordering of certificates within the file is arbitrary, and Kubelet may change the order over time." + }, + "configMap": { + "$ref": "#/definitions/v1.ConfigMapProjection", + "description": "configMap information about the configMap data to project" + }, + "downwardAPI": { + "$ref": "#/definitions/v1.DownwardAPIProjection", + "description": "downwardAPI information about the downwardAPI data to project" + }, + "podCertificate": { + "$ref": "#/definitions/v1.PodCertificateProjection", + "description": "Projects an auto-rotating credential bundle (private key and certificate chain) that the pod can use either as a TLS client or server.\n\nKubelet generates a private key and uses it to send a PodCertificateRequest to the named signer. Once the signer approves the request and issues a certificate chain, Kubelet writes the key and certificate chain to the pod filesystem. The pod does not start until certificates have been issued for each podCertificate projected volume source in its spec.\n\nKubelet will begin trying to rotate the certificate at the time indicated by the signer using the PodCertificateRequest.Status.BeginRefreshAt timestamp.\n\nKubelet can write a single file, indicated by the credentialBundlePath field, or separate files, indicated by the keyPath and certificateChainPath fields.\n\nThe credential bundle is a single file in PEM format. The first PEM entry is the private key (in PKCS#8 format), and the remaining PEM entries are the certificate chain issued by the signer (typically, signers will return their certificate chain in leaf-to-root order).\n\nPrefer using the credential bundle format, since your application code can read it atomically. If you use keyPath and certificateChainPath, your application must make two separate file reads. If these coincide with a certificate rotation, it is possible that the private key and leaf certificate you read may not correspond to each other. Your application will need to check for this condition, and re-read until they are consistent.\n\nThe named signer controls chooses the format of the certificate it issues; consult the signer implementation's documentation to learn how to use the certificates it issues." + }, + "secret": { + "$ref": "#/definitions/v1.SecretProjection", + "description": "secret information about the secret data to project" + }, + "serviceAccountToken": { + "$ref": "#/definitions/v1.ServiceAccountTokenProjection", + "description": "serviceAccountToken is information about the serviceAccountToken data to project" + } + }, + "type": "object" + }, + "v1.VolumeResourceRequirements": { + "description": "VolumeResourceRequirements describes the storage resource requirements for a volume.", + "properties": { + "limits": { + "additionalProperties": { + "$ref": "#/definitions/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": "#/definitions/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.", + "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" }, - "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", + "storagePolicyID": { + "description": "storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "storagePolicyName": { + "description": "storagePolicyName is the storage Policy Based Management (SPBM) profile name.", + "type": "string" }, - "target": { + "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)", + "properties": { + "podAffinityTerm": { + "$ref": "#/definitions/v1.PodAffinityTerm", + "description": "Required. A pod affinity term, associated with the corresponding weight." + }, + "weight": { + "description": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "weight", + "podAffinityTerm" + ], + "type": "object" + }, + "v1.WindowsSecurityContextOptions": { + "description": "WindowsSecurityContextOptions contain Windows-specific options and credentials.", + "properties": { + "gmsaCredentialSpec": { + "description": "GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field.", + "type": "string" + }, + "gmsaCredentialSpecName": { + "description": "GMSACredentialSpecName is the name of the GMSA credential spec to use.", + "type": "string" + }, + "hostProcess": { + "description": "HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.", + "type": "boolean" + }, + "runAsUserName": { + "description": "The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": "string" + } + }, + "type": "object" + }, + "v1.Endpoint": { + "description": "Endpoint represents a single logical \"backend\" implementing a service.", + "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": "#/definitions/v1.EndpointConditions", + "description": "conditions contains information about the current status of the endpoint." + }, + "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": "#/definitions/v1.EndpointHints", + "description": "hints contains information associated with how an endpoint should be consumed." + }, + "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": "#/definitions/v1.ObjectReference", - "description": "The target object that you want to bind to the standard object." + "description": "targetRef is a reference to a Kubernetes object that represents this endpoint." + }, + "zone": { + "description": "zone is the name of the Zone this endpoint exists in.", + "type": "string" } }, "required": [ - "target" + "addresses" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Binding", - "version": "v1" + "type": "object" + }, + "v1.EndpointConditions": { + "description": "EndpointConditions represents the current condition of an endpoint.", + "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.", + "properties": { + "forNodes": { + "description": "forNodes indicates the node(s) this endpoint should be consumed by when using topology aware routing. May contain a maximum of 8 entries. This is an Alpha feature and is only used when the PreferSameTrafficDistribution feature gate is enabled.", + "items": { + "$ref": "#/definitions/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": "#/definitions/v1.ForZone" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "discovery.v1.EndpointPort": { + "description": "EndpointPort represents a Port used by an EndpointSlice", + "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:\n\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\n\n* Kubernetes-defined prefixed names:\n * '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-\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\n\n* 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 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.", + "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.", "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.", + "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": { @@ -12495,7 +12753,7 @@ "description": "Standard object's metadata." }, "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.", + "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": "#/definitions/discovery.v1.EndpointPort" }, @@ -12516,23 +12774,19 @@ } ] }, - "v1alpha1.CSIStorageCapacityList": { - "description": "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.", + "v1.EndpointSliceList": { + "description": "EndpointSliceList represents a list of endpoint slices", "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 CSIStorageCapacity objects.", + "description": "items is the list of endpoint slices", "items": { - "$ref": "#/definitions/v1alpha1.CSIStorageCapacity" + "$ref": "#/definitions/v1.EndpointSlice" }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" + "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", @@ -12540,7 +12794,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard list metadata." } }, "required": [ @@ -12549,99 +12803,137 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacityList", - "version": "v1alpha1" + "group": "discovery.k8s.io", + "kind": "EndpointSliceList", + "version": "v1" } ] }, - "v2beta2.ResourceMetricSource": { - "description": "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", + "v1.ForNode": { + "description": "ForNode provides information about which nodes should consume this endpoint.", "properties": { "name": { - "description": "name is the name of the resource in question.", + "description": "name represents the name of the node.", "type": "string" - }, - "target": { - "$ref": "#/definitions/v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" } }, "required": [ - "name", - "target" + "name" ], "type": "object" }, - "v1.VsphereVirtualDiskVolumeSource": { - "description": "Represents a vSphere volume resource.", + "v1.ForZone": { + "description": "ForZone provides information about which zones should consume this endpoint.", "properties": { - "fsType": { - "description": "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": "Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.", - "type": "string" - }, - "storagePolicyName": { - "description": "Storage Policy Based Management (SPBM) profile name.", - "type": "string" - }, - "volumePath": { - "description": "Path that identifies vSphere volume vmdk", + "name": { + "description": "name represents the name of the zone.", "type": "string" } }, "required": [ - "volumePath" + "name" ], "type": "object" }, - "v1.EmptyDirVolumeSource": { - "description": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", + "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.", "properties": { - "medium": { - "description": "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", + "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" }, - "sizeLimit": { - "$ref": "#/definitions/resource.Quantity", - "description": "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" - } - }, - "type": "object" - }, - "v1.NetworkPolicyPort": { - "description": "NetworkPolicyPort describes a port to allow traffic on", - "properties": { - "endPort": { - "description": "If set, indicates that the range of ports from port to endPort, 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. This feature is in Beta state and is enabled by default. It can be disabled using the Feature Gate \"NetworkPolicyEndPort\".", + "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" }, - "port": { - "$ref": "#/definitions/intstr.IntOrString", - "description": "The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched." + "deprecatedFirstTimestamp": { + "description": "deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.", + "format": "date-time", + "type": "string" }, - "protocol": { - "description": "The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.", + "deprecatedLastTimestamp": { + "description": "deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.", + "format": "date-time", + "type": "string" + }, + "deprecatedSource": { + "$ref": "#/definitions/v1.EventSource", + "description": "deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type." + }, + "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": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "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": "#/definitions/v1.ObjectReference", + "description": "regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object." + }, + "related": { + "$ref": "#/definitions/v1.ObjectReference", + "description": "related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object." + }, + "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": "#/definitions/events.v1.EventSeries", + "description": "series is data about the Event series this event represents or nil if it's a singleton Event." + }, + "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" } }, - "type": "object" + "required": [ + "eventTime" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "events.k8s.io", + "kind": "Event", + "version": "v1" + } + ] }, - "v1.DeploymentList": { - "description": "DeploymentList is a list of Deployments.", + "events.v1.EventList": { + "description": "EventList is a list of Event objects.", "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 Deployments.", + "description": "items is a list of schema objects.", "items": { - "$ref": "#/definitions/v1.Deployment" + "$ref": "#/definitions/events.v1.Event" }, "type": "array" }, @@ -12651,7 +12943,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata." + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ @@ -12660,88 +12952,63 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "apps", - "kind": "DeploymentList", + "group": "events.k8s.io", + "kind": "EventList", "version": "v1" } ] }, - "v2beta2.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.", + "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.", "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", - "items": { - "$ref": "#/definitions/v2beta2.HPAScalingPolicy" - }, - "type": "array" - }, - "selectPolicy": { - "description": "selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used.", - "type": "string" - }, - "stabilizationWindowSeconds": { - "description": "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).", + "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.TokenReviewStatus": { - "description": "TokenReviewStatus is the result of the token authentication request.", + "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`.", "properties": { - "audiences": { - "description": "Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server.", - "items": { - "type": "string" - }, - "type": "array" - }, - "authenticated": { - "description": "Authenticated indicates that the token was associated with a known user.", - "type": "boolean" - }, - "error": { - "description": "Error indicates that the token couldn't be checked", - "type": "string" + "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.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": "integer" }, - "user": { - "$ref": "#/definitions/v1.UserInfo", - "description": "User is the UserInfo associated with the provided token." + "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:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger 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" }, - "admissionregistration.v1.ServiceReference": { - "description": "ServiceReference holds a reference to Service.legacy.k8s.io", + "v1.FlowDistinguisherMethod": { + "description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", "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": { + "description": "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.", "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": [ - "namespace", - "name" + "type" ], "type": "object" }, - "v1.CronJob": { - "description": "CronJob represents the configuration of a single cron job.", + "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\".", "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", @@ -12753,174 +13020,261 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1.CronJobSpec", - "description": "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "$ref": "#/definitions/v1.FlowSchemaSpec", + "description": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" }, "status": { - "$ref": "#/definitions/v1.CronJobStatus", - "description": "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "$ref": "#/definitions/v1.FlowSchemaStatus", + "description": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "batch", - "kind": "CronJob", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", "version": "v1" } ] }, - "v1.CustomResourceDefinitionCondition": { - "description": "CustomResourceDefinitionCondition contains details for the current condition of this pod.", + "v1.FlowSchemaCondition": { + "description": "FlowSchemaCondition describes conditions for a FlowSchema.", "properties": { "lastTransitionTime": { - "description": "lastTransitionTime last time the condition transitioned from one status to another.", + "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.", + "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.", + "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.", + "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. Types include Established, NamesAccepted and Terminating.", + "description": "`type` is the type of the condition. Required.", "type": "string" } }, - "required": [ - "type", - "status" - ], "type": "object" }, - "v1.PodStatus": { - "description": "PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.", + "v1.FlowSchemaList": { + "description": "FlowSchemaList is a list of FlowSchema objects.", "properties": { - "conditions": { - "description": "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", - "items": { - "$ref": "#/definitions/v1.PodCondition" - }, - "type": "array", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "containerStatuses": { - "description": "The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", - "items": { - "$ref": "#/definitions/v1.ContainerStatus" - }, - "type": "array" - }, - "ephemeralContainerStatuses": { - "description": "Status for any ephemeral containers that have run in this pod. This field is alpha-level and is only populated by servers that enable the EphemeralContainers feature.", - "items": { - "$ref": "#/definitions/v1.ContainerStatus" - }, - "type": "array" - }, - "hostIP": { - "description": "IP address of the host to which the pod is assigned. Empty if not yet scheduled.", + "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" }, - "initContainerStatuses": { - "description": "The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", + "items": { + "description": "`items` is a list of FlowSchemas.", "items": { - "$ref": "#/definitions/v1.ContainerStatus" + "$ref": "#/definitions/v1.FlowSchema" }, "type": "array" }, - "message": { - "description": "A human readable message indicating details about why the pod is in this condition.", + "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" }, - "nominatedNodeName": { - "description": "nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled.", - "type": "string" + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "`metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchemaList", + "version": "v1" + } + ] + }, + "v1.FlowSchemaSpec": { + "description": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", + "properties": { + "distinguisherMethod": { + "$ref": "#/definitions/v1.FlowDistinguisherMethod", + "description": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string." }, - "phase": { - "description": "The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values:\n\nPending: 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.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase", - "type": "string" + "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" }, - "podIP": { - "description": "IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.", - "type": "string" + "priorityLevelConfiguration": { + "$ref": "#/definitions/v1.PriorityLevelConfigurationReference", + "description": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required." }, - "podIPs": { - "description": "podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet.", + "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": "#/definitions/v1.PodIP" + "$ref": "#/definitions/v1.PolicyRulesWithSubjects" }, "type": "array", - "x-kubernetes-patch-merge-key": "ip", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "priorityLevelConfiguration" + ], + "type": "object" + }, + "v1.FlowSchemaStatus": { + "description": "FlowSchemaStatus represents the current state of a FlowSchema.", + "properties": { + "conditions": { + "description": "`conditions` is a list of the current states of FlowSchema.", + "items": { + "$ref": "#/definitions/v1.FlowSchemaCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", "x-kubernetes-patch-strategy": "merge" - }, - "qosClass": { - "description": "The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md", + } + }, + "type": "object" + }, + "v1.GroupSubject": { + "description": "GroupSubject holds detailed information for group-kind subject.", + "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.", + "properties": { + "queuing": { + "$ref": "#/definitions/v1.QueuingConfiguration", + "description": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`." }, - "reason": { - "description": "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'", + "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:\n - How are requests for this priority level limited?\n - What should be done with requests that exceed the limit?", + "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.\n\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\n\nThe 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" }, - "startTime": { - "description": "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod.", - "format": "date-time", - "type": "string" + "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.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": "integer" + }, + "limitResponse": { + "$ref": "#/definitions/v1.LimitResponse", + "description": "`limitResponse` indicates what to do with requests that can not be executed right now" + }, + "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:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level.\n\nIf not specified, this field defaults to a value of 30.\n\nSetting 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" }, - "v1beta1.PodDisruptionBudgetSpec": { - "description": "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.", + "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.", "properties": { - "maxUnavailable": { - "$ref": "#/definitions/intstr.IntOrString", - "description": "An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\"." - }, - "minAvailable": { - "$ref": "#/definitions/intstr.IntOrString", - "description": "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\"." + "nonResourceURLs": { + "description": "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\n - \"/healthz\" is legal\n - \"/hea*\" is illegal\n - \"/hea\" is legal but matches nothing\n - \"/hea/*\" also matches nothing\n - \"/healthz/*\" matches all per-component health checks.\n\"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" }, - "selector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "Label query over pods whose evictions are managed by the disruption budget. A null selector selects no pods. An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods. In policy/v1, an empty selector will select all pods in the namespace.", - "x-kubernetes-patch-strategy": "replace" + "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": [ + "verbs", + "nonResourceURLs" + ], "type": "object" }, - "v1.AttachedVolume": { - "description": "AttachedVolume describes a volume attached to a node", + "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.", "properties": { - "devicePath": { - "description": "DevicePath represents the device path where the volume should be available", - "type": "string" + "nonResourceRules": { + "description": "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.", + "items": { + "$ref": "#/definitions/v1.NonResourcePolicyRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "name": { - "description": "Name of the attached volume", - "type": "string" + "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": "#/definitions/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": "#/definitions/flowcontrol.v1.Subject" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "required": [ - "name", - "devicePath" + "subjects" ], "type": "object" }, - "v1.PersistentVolume": { - "description": "PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", + "v1.PriorityLevelConfiguration": { + "description": "PriorityLevelConfiguration represents the configuration of a priority level.", "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", @@ -12932,37 +13286,64 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1.PersistentVolumeSpec", - "description": "Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes" + "$ref": "#/definitions/v1.PriorityLevelConfigurationSpec", + "description": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" }, "status": { - "$ref": "#/definitions/v1.PersistentVolumeStatus", - "description": "Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes" + "$ref": "#/definitions/v1.PriorityLevelConfigurationStatus", + "description": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "", - "kind": "PersistentVolume", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", "version": "v1" } ] }, - "v1.NetworkPolicyList": { - "description": "NetworkPolicyList is a list of NetworkPolicy objects.", + "v1.PriorityLevelConfigurationCondition": { + "description": "PriorityLevelConfigurationCondition defines the condition of priority level.", + "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.", "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.", + "description": "`items` is a list of request-priorities.", "items": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" }, "type": "array" }, @@ -12972,7 +13353,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ @@ -12981,13 +13362,75 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "networking.k8s.io", - "kind": "NetworkPolicyList", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfigurationList", "version": "v1" } ] }, - "v1beta1.QueuingConfiguration": { + "v1.PriorityLevelConfigurationReference": { + "description": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", + "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.", + "properties": { + "exempt": { + "$ref": "#/definitions/v1.ExemptPriorityLevelConfiguration", + "description": "`exempt` specifies how requests are handled for an exempt priority level. This field MUST be empty if `type` is `\"Limited\"`. This field MAY be non-empty if `type` is `\"Exempt\"`. If empty and `type` is `\"Exempt\"` then the default values for `ExemptPriorityLevelConfiguration` apply." + }, + "limited": { + "$ref": "#/definitions/v1.LimitedPriorityLevelConfiguration", + "description": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`." + }, + "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\".", + "properties": { + "conditions": { + "description": "`conditions` is the current state of \"request-priority\".", + "items": { + "$ref": "#/definitions/v1.PriorityLevelConfigurationCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "v1.QueuingConfiguration": { "description": "QueuingConfiguration holds the configuration parameters for queuing", "properties": { "handSize": { @@ -13008,86 +13451,160 @@ }, "type": "object" }, - "v1beta1.SELinuxStrategyOptions": { - "description": "SELinuxStrategyOptions defines the strategy type and any options used to create the strategy.", + "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.", "properties": { - "rule": { - "description": "rule is the strategy that will dictate the allowable labels that may be set.", - "type": "string" + "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" }, - "seLinuxOptions": { - "$ref": "#/definitions/v1.SELinuxOptions", - "description": "seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/" + "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": [ - "rule" + "verbs", + "apiGroups", + "resources" ], "type": "object" }, - "v1alpha1.ClusterRoleList": { - "description": "ClusterRoleList is a collection of ClusterRoles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.22.", + "v1.ServiceAccountSubject": { + "description": "ServiceAccountSubject holds detailed information for service-account-kind subject.", "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", + "name": { + "description": "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.", "type": "string" }, - "items": { - "description": "Items is a list of ClusterRoles", - "items": { - "$ref": "#/definitions/v1alpha1.ClusterRole" - }, - "type": "array" + "namespace": { + "description": "`namespace` is the namespace of matching ServiceAccount objects. Required.", + "type": "string" + } + }, + "required": [ + "namespace", + "name" + ], + "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.", + "properties": { + "group": { + "$ref": "#/definitions/v1.GroupSubject", + "description": "`group` matches based on user group name." }, "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": "`kind` indicates which one of the other fields is non-empty. Required", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard object's metadata." + "serviceAccount": { + "$ref": "#/definitions/v1.ServiceAccountSubject", + "description": "`serviceAccount` matches ServiceAccounts." + }, + "user": { + "$ref": "#/definitions/v1.UserSubject", + "description": "`user` matches based on username." } }, "required": [ - "items" + "kind" ], "type": "object", - "x-kubernetes-group-version-kind": [ + "x-kubernetes-unions": [ { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleList", - "version": "v1alpha1" + "discriminator": "kind", + "fields-to-discriminateBy": { + "group": "Group", + "serviceAccount": "ServiceAccount", + "user": "User" + } } ] }, - "v1.DownwardAPIVolumeFile": { - "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", + "v1.UserSubject": { + "description": "UserSubject holds detailed information for user-kind subject.", "properties": { - "fieldRef": { - "$ref": "#/definitions/v1.ObjectFieldSelector", - "description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported." - }, - "mode": { - "description": "Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" + "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.", + "properties": { + "backend": { + "$ref": "#/definitions/v1.IngressBackend", + "description": "backend defines the referenced service endpoint to which the traffic will be forwarded to." }, "path": { - "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", + "description": "path 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" }, - "resourceFieldRef": { - "$ref": "#/definitions/v1.ResourceFieldSelector", - "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported." + "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\n done on a path element by element basis. A path element refers is the\n list of labels in the path split by the '/' separator. A request is a\n match for path p if every p is an element-wise prefix of p of the\n request path. Note that if the last element of the path is a substring\n of the last element in request path, it is not a match (e.g. /foo/bar\n matches /foo/bar/baz, but does not match /foo/barbaz).\n* ImplementationSpecific: Interpretation of the Path matching is up to\n the IngressClass. Implementations can treat this as a separate PathType\n or treat it identically to Prefix or Exact path types.\nImplementations are required to support all path types.", + "type": "string" } }, "required": [ - "path" + "pathType", + "backend" ], "type": "object" }, - "v1.CSINode": { - "description": "CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.", + "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 '#'.", + "properties": { + "paths": { + "description": "paths is a collection of paths that map requests to backends.", + "items": { + "$ref": "#/definitions/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", "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", @@ -13099,267 +13616,257 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "metadata.name must be the Kubernetes node name." + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1.CSINodeSpec", - "description": "spec is the specification of CSINode" + "$ref": "#/definitions/v1.IPAddressSpec", + "description": "spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "CSINode", + "group": "networking.k8s.io", + "kind": "IPAddress", "version": "v1" } ] }, - "v1.ReplicaSet": { - "description": "ReplicaSet ensures that a specified number of pod replicas are running at any given time.", + "v1.IPAddressList": { + "description": "IPAddressList contains a list of IPAddress.", "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 IPAddresses.", + "items": { + "$ref": "#/definitions/v1.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": "#/definitions/v1.ObjectMeta", - "description": "If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1.ReplicaSetSpec", - "description": "Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/v1.ReplicaSetStatus", - "description": "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, + "required": [ + "items" + ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "apps", - "kind": "ReplicaSet", + "group": "networking.k8s.io", + "kind": "IPAddressList", "version": "v1" } ] }, - "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.", + "v1.IPAddressSpec": { + "description": "IPAddressSpec describe the attributes in an IP Address.", "properties": { - "key": { - "description": "The label key that the selector applies to.", + "parentRef": { + "$ref": "#/definitions/v1.ParentReference", + "description": "ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object." + } + }, + "required": [ + "parentRef" + ], + "type": "object" + }, + "v1.IPBlock": { + "description": "IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"2001:db8::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.", + "properties": { + "cidr": { + "description": "cidr is a string representing the IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\"", "type": "string" }, - "values": { - "description": "An array of string values. One value must match the label to be selected. Each entry in Values is ORed.", + "except": { + "description": "except is a slice of CIDRs that should not be included within an IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" Except values will be rejected if they are outside the cidr range", "items": { "type": "string" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "required": [ - "key", - "values" + "cidr" ], "type": "object" }, - "v1.VolumeAttachmentList": { - "description": "VolumeAttachmentList is a collection of VolumeAttachment objects.", + "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.", "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 VolumeAttachments", - "items": { - "$ref": "#/definitions/v1.VolumeAttachment" - }, - "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": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1.IngressSpec", + "description": "spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/v1.IngressStatus", + "description": "status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, - "required": [ - "items" - ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "VolumeAttachmentList", + "group": "networking.k8s.io", + "kind": "Ingress", "version": "v1" } ] }, - "v1.RBDPersistentVolumeSource": { - "description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", + "v1.IngressBackend": { + "description": "IngressBackend describes all endpoints for a given service and port.", "properties": { - "fsType": { - "description": "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" + "resource": { + "$ref": "#/definitions/v1.TypedLocalObjectReference", + "description": "resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with \"Service\"." }, - "image": { - "description": "The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "service": { + "$ref": "#/definitions/v1.IngressServiceBackend", + "description": "service references a service as a backend. This is a mutually exclusive setting with \"Resource\"." + } + }, + "type": "object" + }, + "v1.IngressClass": { + "description": "IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class.", + "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" }, - "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", + "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" }, - "monitors": { - "description": "A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "items": { - "type": "string" - }, - "type": "array" - }, - "pool": { - "description": "The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "string" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "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": "#/definitions/v1.SecretReference", - "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" - }, - "user": { - "description": "The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "string" + "spec": { + "$ref": "#/definitions/v1.IngressClassSpec", + "description": "spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, - "required": [ - "monitors", - "image" - ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" + } + ] }, - "v1beta1.CronJobSpec": { - "description": "CronJobSpec describes how the job execution will look like and when it will actually run.", + "v1.IngressClassList": { + "description": "IngressClassList is a collection of IngressClasses.", "properties": { - "concurrencyPolicy": { - "description": "Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one", + "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" }, - "failedJobsHistoryLimit": { - "description": "The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", - "format": "int32", - "type": "integer" - }, - "jobTemplate": { - "$ref": "#/definitions/v1beta1.JobTemplateSpec", - "description": "Specifies the job that will be created when executing a CronJob." + "items": { + "description": "items is the list of IngressClasses.", + "items": { + "$ref": "#/definitions/v1.IngressClass" + }, + "type": "array" }, - "schedule": { - "description": "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.", + "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" }, - "startingDeadlineSeconds": { - "description": "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.", - "format": "int64", - "type": "integer" - }, - "successfulJobsHistoryLimit": { - "description": "The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3.", - "format": "int32", - "type": "integer" - }, - "suspend": { - "description": "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", - "type": "boolean" + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata." } }, "required": [ - "schedule", - "jobTemplate" + "items" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IngressClassList", + "version": "v1" + } + ] }, - "v1.StatusCause": { - "description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", + "v1.IngressClassParametersReference": { + "description": "IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.", "properties": { - "field": { - "description": "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.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"", + "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" }, - "message": { - "description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", + "kind": { + "description": "kind is the type of resource being referenced.", "type": "string" }, - "reason": { - "description": "A machine-readable description of the cause of the error. If this value is empty there is no information available.", + "name": { + "description": "name is the name of resource being referenced.", + "type": "string" + }, + "namespace": { + "description": "namespace is the namespace of the resource being referenced. This field is required when scope is set to \"Namespace\" and must be unset when scope is set to \"Cluster\".", + "type": "string" + }, + "scope": { + "description": "scope represents if this refers to a cluster or namespace scoped resource. This may be set to \"Cluster\" (default) or \"Namespace\".", "type": "string" } }, + "required": [ + "kind", + "name" + ], "type": "object" }, - "v1.RuleWithOperations": { - "description": "RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.", + "v1.IngressClassSpec": { + "description": "IngressClassSpec provides information about the class of an Ingress.", "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" - }, - "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" - }, - "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" - }, - "resources": { - "description": "Resources is a list of resources this rule applies to.\n\nFor 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.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", - "items": { - "type": "string" - }, - "type": "array" - }, - "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 \"*\".", + "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": "#/definitions/v1.IngressClassParametersReference", + "description": "parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters." } }, "type": "object" }, - "v1.ControllerRevisionList": { - "description": "ControllerRevisionList is a resource containing a list of ControllerRevision objects.", + "v1.IngressList": { + "description": "IngressList is a collection of Ingress.", "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", + "description": "items is the list of Ingress.", "items": { - "$ref": "#/definitions/v1.ControllerRevision" + "$ref": "#/definitions/v1.Ingress" }, "type": "array" }, @@ -13369,7 +13876,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ @@ -13378,27 +13885,27 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "apps", - "kind": "ControllerRevisionList", + "group": "networking.k8s.io", + "kind": "IngressList", "version": "v1" } ] }, - "v1beta1.Scheduling": { - "description": "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.", + "v1.IngressLoadBalancerIngress": { + "description": "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.", "properties": { - "nodeSelector": { - "additionalProperties": { - "type": "string" - }, - "description": "nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.", - "type": "object", - "x-kubernetes-map-type": "atomic" + "hostname": { + "description": "hostname is set for load-balancer ingress points that are DNS based.", + "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.", + "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": "#/definitions/v1.Toleration" + "$ref": "#/definitions/v1.IngressPortStatus" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -13406,87 +13913,133 @@ }, "type": "object" }, - "v1beta1.PodSecurityPolicy": { - "description": "PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. Deprecated in 1.21.", + "v1.IngressLoadBalancerStatus": { + "description": "IngressLoadBalancerStatus represents the status of a load-balancer.", "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", + "ingress": { + "description": "ingress is a list containing ingress points for the load-balancer.", + "items": { + "$ref": "#/definitions/v1.IngressLoadBalancerIngress" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.IngressPortStatus": { + "description": "IngressPortStatus represents the error condition of a service port", + "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\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "port": { + "description": "port is the port number of the ingress port.", + "format": "int32", + "type": "integer" }, - "spec": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicySpec", - "description": "spec defines the policy enforced." + "protocol": { + "description": "protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\"", + "type": "string" } }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" + "required": [ + "port", + "protocol" + ], + "type": "object" + }, + "v1.IngressRule": { + "description": "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", + "properties": { + "host": { + "description": "host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to\n the IP in the Spec of the parent Ingress.\n2. The `:` delimiter is not respected because ports are not allowed.\n\t Currently the port of an Ingress is implicitly :80 for http and\n\t :443 for https.\nBoth these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.\n\nhost can be \"precise\" which is a domain name without the terminating dot of a network host (e.g. \"foo.bar.com\") or \"wildcard\", which is a domain name prefixed with a single wildcard label (e.g. \"*.foo.com\"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == \"*\"). Requests will be matched against the Host field in the following way: 1. If host is precise, the request matches this rule if the http host header is equal to Host. 2. If host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.", + "type": "string" + }, + "http": { + "$ref": "#/definitions/v1.HTTPIngressRuleValue" } - ] + }, + "type": "object" }, - "v1beta1.AllowedFlexVolume": { - "description": "AllowedFlexVolume represents a single Flexvolume that is allowed to be used.", + "v1.IngressServiceBackend": { + "description": "IngressServiceBackend references a Kubernetes Service as a Backend.", "properties": { - "driver": { - "description": "driver is the name of the Flexvolume driver.", + "name": { + "description": "name is the referenced service. The service must exist in the same namespace as the Ingress object.", "type": "string" + }, + "port": { + "$ref": "#/definitions/v1.ServiceBackendPort", + "description": "port of the referenced service. A port name or port number is required for a IngressServiceBackend." } }, "required": [ - "driver" + "name" ], "type": "object" }, - "v1.ResourceRule": { - "description": "ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "v1.IngressSpec": { + "description": "IngressSpec describes the Ingress the user wishes to exist.", "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. \"*\" means all.", - "items": { - "type": "string" - }, - "type": "array" + "defaultBackend": { + "$ref": "#/definitions/v1.IngressBackend", + "description": "defaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller." }, - "resourceNames": { - "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.", + "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" + }, + "rules": { + "description": "rules is a list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.", "items": { - "type": "string" + "$ref": "#/definitions/v1.IngressRule" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "resources": { - "description": "Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups.\n \"*/foo\" represents the subresource 'foo' for all resources in the specified apiGroups.", + "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": { - "type": "string" + "$ref": "#/definitions/v1.IngressTLS" }, - "type": "array" - }, - "verbs": { - "description": "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.IngressStatus": { + "description": "IngressStatus describe the current state of the Ingress.", + "properties": { + "loadBalancer": { + "$ref": "#/definitions/v1.IngressLoadBalancerStatus", + "description": "loadBalancer contains the current status of the load-balancer." + } + }, + "type": "object" + }, + "v1.IngressTLS": { + "description": "IngressTLS describes the transport layer security associated with an ingress.", + "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" + "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" } }, - "required": [ - "verbs" - ], "type": "object" }, - "v1.IngressClass": { - "description": "IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class.", + "v1.NetworkPolicy": { + "description": "NetworkPolicy describes what network traffic is allowed for a set of Pods", "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", @@ -13501,532 +14054,417 @@ "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1.IngressClassSpec", - "description": "Spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "$ref": "#/definitions/v1.NetworkPolicySpec", + "description": "spec represents the specification of the desired behavior for this NetworkPolicy." } }, "type": "object", "x-kubernetes-group-version-kind": [ { "group": "networking.k8s.io", - "kind": "IngressClass", + "kind": "NetworkPolicy", "version": "v1" } ] }, - "v1.TokenRequestStatus": { - "description": "TokenRequestStatus is the result of a token request.", - "properties": { - "expirationTimestamp": { - "description": "ExpirationTimestamp is the time of expiration of the returned token.", - "format": "date-time", - "type": "string" - }, - "token": { - "description": "Token is the opaque bearer token.", - "type": "string" - } - }, - "required": [ - "token", - "expirationTimestamp" - ], - "type": "object" - }, - "v1.ContainerImage": { - "description": "Describe a container image", + "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", "properties": { - "names": { - "description": "Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]", + "ports": { + "description": "ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", "items": { - "type": "string" + "$ref": "#/definitions/v1.NetworkPolicyPort" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "sizeBytes": { - "description": "The size of the image in bytes.", - "format": "int64", - "type": "integer" + "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": "#/definitions/v1.NetworkPolicyPeer" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "type": "object" }, - "v1.CustomResourceConversion": { - "description": "CustomResourceConversion describes how to convert different versions of a CR.", + "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.", "properties": { - "strategy": { - "description": "strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information\n is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set.", - "type": "string" + "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": "#/definitions/v1.NetworkPolicyPeer" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "webhook": { - "$ref": "#/definitions/v1.WebhookConversion", - "description": "webhook describes how to call the conversion webhook. Required when `strategy` is set to `Webhook`." + "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": "#/definitions/v1.NetworkPolicyPort" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, - "required": [ - "strategy" - ], "type": "object" }, - "v1.Namespace": { - "description": "Namespace provides a scope for Names. Use of multiple namespaces is optional.", + "v1.NetworkPolicyList": { + "description": "NetworkPolicyList is a list of NetworkPolicy objects.", "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": "#/definitions/v1.NetworkPolicy" + }, + "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": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1.NamespaceSpec", - "description": "Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/v1.NamespaceStatus", - "description": "Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, + "required": [ + "items" + ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "", - "kind": "Namespace", + "group": "networking.k8s.io", + "kind": "NetworkPolicyList", "version": "v1" } ] }, - "v2beta2.HorizontalPodAutoscalerBehavior": { - "description": "HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).", + "v1.NetworkPolicyPeer": { + "description": "NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed", "properties": { - "scaleDown": { - "$ref": "#/definitions/v2beta2.HPAScalingRules", - "description": "scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used)." + "ipBlock": { + "$ref": "#/definitions/v1.IPBlock", + "description": "ipBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be." }, - "scaleUp": { - "$ref": "#/definitions/v2beta2.HPAScalingRules", - "description": "scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of:\n * increase no more than 4 pods per 60 seconds\n * double the number of pods per 60 seconds\nNo stabilization is used." + "namespaceSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "namespaceSelector selects namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces.\n\nIf podSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the namespaces selected by namespaceSelector. Otherwise it selects all pods in the namespaces selected by namespaceSelector." + }, + "podSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "podSelector is a label selector which selects pods. This field follows standard label selector semantics; if present but empty, it selects all pods.\n\nIf namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the pods matching podSelector in the policy's own namespace." } }, "type": "object" }, - "v1beta1.CSIStorageCapacity": { - "description": "CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes.\n\nFor example this can express things like: - StorageClass \"standard\" has \"1234 GiB\" available in \"topology.kubernetes.io/zone=us-east1\" - StorageClass \"localssd\" has \"10 GiB\" available in \"kubernetes.io/hostname=knode-abc123\"\n\nThe following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero\n\nThe producer of these objects can decide which approach is more suitable.\n\nThey are consumed by the kube-scheduler if the CSIStorageCapacity beta feature gate is enabled there and a CSI driver opts into capacity-aware scheduling with CSIDriver.StorageCapacity.", + "v1.NetworkPolicyPort": { + "description": "NetworkPolicyPort describes a port to allow traffic on", "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" + "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" }, - "capacity": { - "$ref": "#/definitions/resource.Quantity", - "description": "Capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThe semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable and treated like zero capacity." + "port": { + "$ref": "#/definitions/intstr.IntOrString", + "description": "port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched." }, - "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", + "protocol": { + "description": "protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.", "type": "string" + } + }, + "type": "object" + }, + "v1.NetworkPolicySpec": { + "description": "NetworkPolicySpec provides the specification of a NetworkPolicy", + "properties": { + "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": "#/definitions/v1.NetworkPolicyEgressRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "maximumVolumeSize": { - "$ref": "#/definitions/resource.Quantity", - "description": "MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThis is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim." - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. The name has no particular meaning. It must be be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "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": "#/definitions/v1.NetworkPolicyIngressRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "nodeTopology": { + "podSelector": { "$ref": "#/definitions/v1.LabelSelector", - "description": "NodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable." + "description": "podSelector selects the pods to which this NetworkPolicy object applies. The array of rules is applied to any pods selected by this field. An empty selector matches all pods in the policy's namespace. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is optional. If it is not specified, it defaults to an empty selector." }, - "storageClassName": { - "description": "The name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable.", - "type": "string" + "policyTypes": { + "description": "policyTypes is a list of rule types that the NetworkPolicy relates to. Valid options are [\"Ingress\"], [\"Egress\"], or [\"Ingress\", \"Egress\"]. If this field is not specified, it will default based on the existence of ingress or egress rules; policies that contain an egress section are assumed to affect egress, and all policies (whether or not they contain an ingress section) are assumed to affect ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, - "required": [ - "storageClassName" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "CSIStorageCapacity", - "version": "v1beta1" - } - ] + "type": "object" }, - "v1.PodCondition": { - "description": "PodCondition contains details for the current condition of this pod.", + "v1.ParentReference": { + "description": "ParentReference describes a reference to a parent object.", "properties": { - "lastProbeTime": { - "description": "Last time we probed the condition.", - "format": "date-time", - "type": "string" - }, - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "format": "date-time", - "type": "string" - }, - "message": { - "description": "Human-readable message indicating details about last transition.", + "group": { + "description": "Group is the group of the object being referenced.", "type": "string" }, - "reason": { - "description": "Unique, one-word, CamelCase reason for the condition's last transition.", + "name": { + "description": "Name is the name of the object being referenced.", "type": "string" }, - "status": { - "description": "Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + "namespace": { + "description": "Namespace is the namespace of the object being referenced.", "type": "string" }, - "type": { - "description": "Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + "resource": { + "description": "Resource is the resource of the object being referenced.", "type": "string" } }, "required": [ - "type", - "status" + "resource", + "name" ], "type": "object" }, - "v1.ConfigMapList": { - "description": "ConfigMapList is a resource containing a list of ConfigMap objects.", + "v1.ServiceBackendPort": { + "description": "ServiceBackendPort is the service port being referenced.", + "properties": { + "name": { + "description": "name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\".", + "type": "string" + }, + "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.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.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, - "items": { - "description": "Items is the list of ConfigMaps.", - "items": { - "$ref": "#/definitions/v1.ConfigMap" - }, - "type": "array" - }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1.ServiceCIDRSpec", + "description": "spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/v1.ServiceCIDRStatus", + "description": "status represents the current state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, - "required": [ - "items" - ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "", - "kind": "ConfigMapList", + "group": "networking.k8s.io", + "kind": "ServiceCIDR", "version": "v1" } ] }, - "v1beta1.PriorityLevelConfigurationStatus": { - "description": "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".", - "properties": { - "conditions": { - "description": "`conditions` is the current state of \"request-priority\".", - "items": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfigurationCondition" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" - } - }, - "type": "object" - }, - "v1.ISCSIVolumeSource": { - "description": "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", + "v1.ServiceCIDRList": { + "description": "ServiceCIDRList contains a list of ServiceCIDR objects.", "properties": { - "chapAuthDiscovery": { - "description": "whether support iSCSI Discovery CHAP authentication", - "type": "boolean" - }, - "chapAuthSession": { - "description": "whether support iSCSI Session CHAP authentication", - "type": "boolean" - }, - "fsType": { - "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", - "type": "string" - }, - "initiatorName": { - "description": "Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", - "type": "string" - }, - "iqn": { - "description": "Target iSCSI Qualified Name.", - "type": "string" - }, - "iscsiInterface": { - "description": "iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", + "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" }, - "lun": { - "description": "iSCSI Target Lun number.", - "format": "int32", - "type": "integer" - }, - "portals": { - "description": "iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "items": { + "description": "items is the list of ServiceCIDRs.", "items": { - "type": "string" + "$ref": "#/definitions/v1.ServiceCIDR" }, "type": "array" }, - "readOnly": { - "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", - "type": "boolean" - }, - "secretRef": { - "$ref": "#/definitions/v1.LocalObjectReference", - "description": "CHAP Secret for iSCSI target and initiator authentication" - }, - "targetPortal": { - "description": "iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "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": "#/definitions/v1.ListMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ - "targetPortal", - "iqn", - "lun" + "items" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "ServiceCIDRList", + "version": "v1" + } + ] }, - "v1.CustomResourceDefinitionVersion": { - "description": "CustomResourceDefinitionVersion describes a version for CRD.", + "v1.ServiceCIDRSpec": { + "description": "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.", "properties": { - "additionalPrinterColumns": { - "description": "additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used.", + "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": "#/definitions/v1.CustomResourceColumnDefinition" + "type": "string" }, - "type": "array" - }, - "deprecated": { - "description": "deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false.", - "type": "boolean" - }, - "deprecationWarning": { - "description": "deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists.", - "type": "string" - }, - "name": { - "description": "name is the version name, e.g. \u201cv1\u201d, \u201cv2beta1\u201d, etc. The custom resources are served under this version at `/apis///...` if `served` is true.", - "type": "string" - }, - "schema": { - "$ref": "#/definitions/v1.CustomResourceValidation", - "description": "schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource." - }, - "served": { - "description": "served is a flag enabling/disabling this version from being served via REST APIs", - "type": "boolean" - }, - "storage": { - "description": "storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.", - "type": "boolean" - }, - "subresources": { - "$ref": "#/definitions/v1.CustomResourceSubresources", - "description": "subresources specify what subresources this version of the defined custom resource have." + "type": "array", + "x-kubernetes-list-type": "atomic" } }, - "required": [ - "name", - "served", - "storage" - ], "type": "object" }, - "v1.Handler": { - "description": "Handler defines a specific action that should be taken", + "v1.ServiceCIDRStatus": { + "description": "ServiceCIDRStatus describes the current state of the ServiceCIDR.", "properties": { - "exec": { - "$ref": "#/definitions/v1.ExecAction", - "description": "One and only one of the following should be specified. Exec specifies the action to take." - }, - "httpGet": { - "$ref": "#/definitions/v1.HTTPGetAction", - "description": "HTTPGet specifies the http request to perform." - }, - "tcpSocket": { - "$ref": "#/definitions/v1.TCPSocketAction", - "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported" + "conditions": { + "description": "conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state", + "items": { + "$ref": "#/definitions/v1.Condition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" } }, "type": "object" }, - "v1.StatefulSetCondition": { - "description": "StatefulSetCondition describes the state of a statefulset at a certain point.", + "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", "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.", + "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" }, - "reason": { - "description": "The reason for the condition's last transition.", + "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" }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", - "type": "string" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "type": { - "description": "Type of statefulset condition.", - "type": "string" + "spec": { + "$ref": "#/definitions/v1beta1.IPAddressSpec", + "description": "spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "v1beta1.EndpointPort": { - "description": "EndpointPort represents a Port used by an EndpointSlice", - "properties": { - "appProtocol": { - "description": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.", - "type": "string" - }, - "name": { - "description": "The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.", - "type": "string" - }, - "port": { - "description": "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": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.", - "type": "string" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IPAddress", + "version": "v1beta1" } - }, - "type": "object" + ] }, - "v1.CSIPersistentVolumeSource": { - "description": "Represents storage that is managed by an external CSI volume driver (Beta feature)", + "v1beta1.IPAddressList": { + "description": "IPAddressList contains a list of IPAddress.", "properties": { - "controllerExpandSecretRef": { - "$ref": "#/definitions/v1.SecretReference", - "description": "ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." - }, - "controllerPublishSecretRef": { - "$ref": "#/definitions/v1.SecretReference", - "description": "ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." - }, - "driver": { - "description": "Driver is the name of the driver to use for this volume. Required.", - "type": "string" - }, - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", + "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" }, - "nodePublishSecretRef": { - "$ref": "#/definitions/v1.SecretReference", - "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 secrets are passed." - }, - "nodeStageSecretRef": { - "$ref": "#/definitions/v1.SecretReference", - "description": "NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." - }, - "readOnly": { - "description": "Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).", - "type": "boolean" - }, - "volumeAttributes": { - "additionalProperties": { - "type": "string" + "items": { + "description": "items is the list of IPAddresses.", + "items": { + "$ref": "#/definitions/v1beta1.IPAddress" }, - "description": "Attributes of the volume to publish.", - "type": "object" + "type": "array" }, - "volumeHandle": { - "description": "VolumeHandle is the unique volume name returned by the CSI volume plugin\u2019s CreateVolume to refer to the volume on all subsequent calls. 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": "#/definitions/v1.ListMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ - "driver", - "volumeHandle" + "items" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IPAddressList", + "version": "v1beta1" + } + ] }, - "v1beta1.UserSubject": { - "description": "UserSubject holds detailed information for user-kind subject.", + "v1beta1.IPAddressSpec": { + "description": "IPAddressSpec describe the attributes in an IP Address.", "properties": { - "name": { - "description": "`name` is the username that matches, or \"*\" to match all usernames. Required.", - "type": "string" + "parentRef": { + "$ref": "#/definitions/v1beta1.ParentReference", + "description": "ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object." } }, "required": [ - "name" + "parentRef" ], "type": "object" }, - "v2beta1.ExternalMetricStatus": { - "description": "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.", + "v1beta1.ParentReference": { + "description": "ParentReference describes a reference to a parent object.", "properties": { - "currentAverageValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "currentAverageValue is the current value of metric averaged over autoscaled pods." + "group": { + "description": "Group is the group of the object being referenced.", + "type": "string" }, - "currentValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "currentValue is the current value of the metric (as a quantity)" + "name": { + "description": "Name is the name of the object being referenced.", + "type": "string" }, - "metricName": { - "description": "metricName is the name of a metric used for autoscaling in metric system.", + "namespace": { + "description": "Namespace is the namespace of the object being referenced.", "type": "string" }, - "metricSelector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "metricSelector is used to identify a specific time series within a given metric." - } - }, - "required": [ - "metricName", - "currentValue" - ], - "type": "object" - }, - "v1.ForZone": { - "description": "ForZone provides information about which zones should consume this endpoint.", - "properties": { - "name": { - "description": "name represents the name of the zone.", + "resource": { + "description": "Resource is the resource of the object being referenced.", "type": "string" } }, "required": [ + "resource", "name" ], "type": "object" }, - "v1.CertificateSigningRequest": { - "description": "CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued.\n\nKubelets use this API to obtain:\n 1. client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client-kubelet\" signerName).\n 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the \"kubernetes.io/kubelet-serving\" signerName).\n\nThis API can be used to request client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client\" signerName), or to obtain certificates from custom non-Kubernetes signers.", + "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.", "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", @@ -14037,116 +14475,38 @@ "type": "string" }, "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1.CertificateSigningRequestSpec", - "description": "spec contains the certificate request, and is immutable after creation. Only the request, signerName, expirationSeconds, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users." + "$ref": "#/definitions/v1beta1.ServiceCIDRSpec", + "description": "spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" }, "status": { - "$ref": "#/definitions/v1.CertificateSigningRequestStatus", - "description": "status contains information about whether the request is approved or denied, and the certificate issued by the signer, or the failure condition indicating signer failure." + "$ref": "#/definitions/v1beta1.ServiceCIDRStatus", + "description": "status represents the current state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1beta1" } ] }, - "v1.StatefulSetUpdateStrategy": { - "description": "StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.", - "properties": { - "rollingUpdate": { - "$ref": "#/definitions/v1.RollingUpdateStatefulSetStrategy", - "description": "RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType." - }, - "type": { - "description": "Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.", - "type": "string" - } - }, - "type": "object" - }, - "v1.NodeAffinity": { - "description": "Node affinity is a group of node affinity scheduling rules.", - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.", - "items": { - "$ref": "#/definitions/v1.PreferredSchedulingTerm" - }, - "type": "array" - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "$ref": "#/definitions/v1.NodeSelector", - "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." - } - }, - "type": "object" - }, - "v2beta2.HorizontalPodAutoscalerStatus": { - "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", - "properties": { - "conditions": { - "description": "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.", - "items": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscalerCondition" - }, - "type": "array" - }, - "currentMetrics": { - "description": "currentMetrics is the last read state of the metrics used by this autoscaler.", - "items": { - "$ref": "#/definitions/v2beta2.MetricStatus" - }, - "type": "array" - }, - "currentReplicas": { - "description": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.", - "format": "int32", - "type": "integer" - }, - "desiredReplicas": { - "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.", - "format": "int32", - "type": "integer" - }, - "lastScaleTime": { - "description": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.", - "format": "date-time", - "type": "string" - }, - "observedGeneration": { - "description": "observedGeneration is the most recent generation observed by this autoscaler.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "currentReplicas", - "desiredReplicas", - "conditions" - ], - "type": "object" - }, - "v1beta1.PodSecurityPolicyList": { - "description": "PodSecurityPolicyList is a list of PodSecurityPolicy objects.", + "v1beta1.ServiceCIDRList": { + "description": "ServiceCIDRList contains a list of ServiceCIDR objects.", "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.", + "description": "items is the list of ServiceCIDRs.", "items": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + "$ref": "#/definitions/v1beta1.ServiceCIDR" }, "type": "array" }, @@ -14156,7 +14516,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ @@ -14165,84 +14525,109 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "policy", - "kind": "PodSecurityPolicyList", + "group": "networking.k8s.io", + "kind": "ServiceCIDRList", "version": "v1beta1" } ] }, - "v1.Patch": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object", + "v1beta1.ServiceCIDRSpec": { + "description": "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.", "properties": { - "content": { - "type": "object" + "cidrs": { + "description": "CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } - } + }, + "type": "object" }, - "v1.ExternalDocumentation": { - "description": "ExternalDocumentation allows referencing an external resource for extended documentation.", + "v1beta1.ServiceCIDRStatus": { + "description": "ServiceCIDRStatus describes the current state of the ServiceCIDR.", "properties": { - "description": { - "type": "string" - }, - "url": { - "type": "string" + "conditions": { + "description": "conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state", + "items": { + "$ref": "#/definitions/v1.Condition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" } }, "type": "object" }, - "v1.SecretVolumeSource": { - "description": "Adapts a Secret into a volume.\n\nThe 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.Overhead": { + "description": "Overhead structure represents the resource overhead associated with running a pod.", "properties": { - "defaultMode": { - "description": "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": "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": "#/definitions/v1.KeyToPath" + "podFixed": { + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" }, - "type": "array" - }, - "optional": { - "description": "Specify whether the Secret or its keys must be defined", - "type": "boolean" - }, - "secretName": { - "description": "Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", - "type": "string" + "description": "podFixed represents the fixed resource overhead associated with running a pod.", + "type": "object" } }, "type": "object" }, - "v1.Preconditions": { - "description": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", + "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/", "properties": { - "resourceVersion": { - "description": "Specifies the target ResourceVersion", + "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" }, - "uid": { - "description": "Specifies the target UID.", + "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": "#/definitions/v1.ObjectMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "overhead": { + "$ref": "#/definitions/v1.Overhead", + "description": "overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see\n https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/" + }, + "scheduling": { + "$ref": "#/definitions/v1.Scheduling", + "description": "scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes." } }, - "type": "object" + "required": [ + "handler" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + ] }, - "v1.PersistentVolumeClaimList": { - "description": "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.", + "v1.RuntimeClassList": { + "description": "RuntimeClassList is a list of RuntimeClass objects.", "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": "A list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", + "description": "items is a list of schema objects.", "items": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "$ref": "#/definitions/v1.RuntimeClass" }, "type": "array" }, @@ -14252,7 +14637,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ @@ -14261,97 +14646,65 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "", - "kind": "PersistentVolumeClaimList", + "group": "node.k8s.io", + "kind": "RuntimeClassList", "version": "v1" } ] }, - "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.", + "v1.Scheduling": { + "description": "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.", "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": "#/definitions/v1alpha1.StorageVersionCondition" + "nodeSelector": { + "additionalProperties": { + "type": "string" }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" + "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" }, - "storageVersions": { - "description": "The reported versions per API server instance.", + "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": "#/definitions/v1alpha1.ServerStorageVersion" + "$ref": "#/definitions/v1.Toleration" }, "type": "array", - "x-kubernetes-list-map-keys": [ - "apiServerID" - ], - "x-kubernetes-list-type": "map" + "x-kubernetes-list-type": "atomic" } }, "type": "object" }, - "discovery.v1.EndpointPort": { - "description": "EndpointPort represents a Port used by an EndpointSlice", + "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.", "properties": { - "appProtocol": { - "description": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.", - "type": "string" - }, - "name": { - "description": "The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.", + "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" }, - "port": { - "description": "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" + "deleteOptions": { + "$ref": "#/definitions/v1.DeleteOptions", + "description": "DeleteOptions may be provided" }, - "protocol": { - "description": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.", + "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" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "v1.Toleration": { - "description": "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching 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" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "ObjectMeta describes the pod that is being evicted." } }, - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "policy", + "kind": "Eviction", + "version": "v1" + } + ] }, - "v1.Scale": { - "description": "Scale represents a scaling request for a resource.", + "v1.PodDisruptionBudget": { + "description": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods", "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", @@ -14363,137 +14716,164 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1.ScaleSpec", - "description": "defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." + "$ref": "#/definitions/v1.PodDisruptionBudgetSpec", + "description": "Specification of the desired behavior of the PodDisruptionBudget." }, "status": { - "$ref": "#/definitions/v1.ScaleStatus", - "description": "current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only." + "$ref": "#/definitions/v1.PodDisruptionBudgetStatus", + "description": "Most recently observed status of the PodDisruptionBudget." } }, "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "autoscaling", - "kind": "Scale", + "group": "policy", + "kind": "PodDisruptionBudget", "version": "v1" } ] }, - "v1.EndpointAddress": { - "description": "EndpointAddress is a tuple that describes single IP address.", + "v1.PodDisruptionBudgetList": { + "description": "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.", "properties": { - "hostname": { - "description": "The Hostname of this endpoint", + "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" }, - "ip": { - "description": "The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready.", - "type": "string" + "items": { + "description": "Items is a list of PodDisruptionBudgets", + "items": { + "$ref": "#/definitions/v1.PodDisruptionBudget" + }, + "type": "array" }, - "nodeName": { - "description": "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, - "targetRef": { - "$ref": "#/definitions/v1.ObjectReference", - "description": "Reference to object providing the endpoint." + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ - "ip" + "items" ], "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "intstr.IntOrString": { - "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": "object", - "properties": { - "value": { - "type": "string" + "x-kubernetes-group-version-kind": [ + { + "group": "policy", + "kind": "PodDisruptionBudgetList", + "version": "v1" } - } + ] }, - "v1.VolumeAttachmentSpec": { - "description": "VolumeAttachmentSpec is the specification of a VolumeAttachment request.", + "v1.PodDisruptionBudgetSpec": { + "description": "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.", "properties": { - "attacher": { - "description": "Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().", - "type": "string" - }, - "nodeName": { - "description": "The node that the volume should be attached to.", - "type": "string" + "maxUnavailable": { + "$ref": "#/definitions/intstr.IntOrString", + "description": "An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\"." }, - "source": { - "$ref": "#/definitions/v1.VolumeAttachmentSource", - "description": "Source represents the volume that should be attached." - } - }, - "required": [ - "attacher", - "source", - "nodeName" - ], - "type": "object" - }, - "v2beta1.PodsMetricSource": { - "description": "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", - "properties": { - "metricName": { - "description": "metricName is the name of the metric in question", - "type": "string" + "minAvailable": { + "$ref": "#/definitions/intstr.IntOrString", + "description": "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\"." }, "selector": { "$ref": "#/definitions/v1.LabelSelector", - "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics." + "description": "Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.", + "x-kubernetes-patch-strategy": "replace" }, - "targetAverageValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)" + "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\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget 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.\n\nAlwaysAllow 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.\n\nAdditional 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": [ - "metricName", - "targetAverageValue" - ], "type": "object" }, - "v2beta1.ContainerResourceMetricSource": { - "description": "ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", + "v1.PodDisruptionBudgetStatus": { + "description": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", "properties": { - "container": { - "description": "container is the name of the container in the pods of the scaling target", - "type": "string" + "conditions": { + "description": "Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute\n the number of allowed disruptions. Therefore no disruptions are\n allowed and the status of the condition will be False.\n- InsufficientPods: The number of pods are either at or below the number\n required by the PodDisruptionBudget. No disruptions are\n allowed and the status of the condition will be False.\n- SufficientPods: There are more pods than required by the PodDisruptionBudget.\n The condition will be True, and the number of allowed\n disruptions are provided by the disruptionsAllowed property.", + "items": { + "$ref": "#/definitions/v1.Condition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" }, - "name": { - "description": "name is the name of the resource in question.", - "type": "string" + "currentHealthy": { + "description": "current number of healthy pods", + "format": "int32", + "type": "integer" }, - "targetAverageUtilization": { - "description": "targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", + "desiredHealthy": { + "description": "minimum desired number of healthy pods", "format": "int32", "type": "integer" }, - "targetAverageValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type." + "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": [ - "name", - "container" + "disruptionsAllowed", + "currentHealthy", + "desiredHealthy", + "expectedPods" ], "type": "object" }, - "v1.DaemonSet": { - "description": "DaemonSet represents the configuration of a daemon set.", + "v1.AggregationRule": { + "description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole", "properties": { + "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": "#/definitions/v1.LabelSelector" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.ClusterRole": { + "description": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", + "properties": { + "aggregationRule": { + "$ref": "#/definitions/v1.AggregationRule", + "description": "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller." + }, "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" @@ -14504,155 +14884,112 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1.DaemonSetSpec", - "description": "The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "description": "Standard object's metadata." }, - "status": { - "$ref": "#/definitions/v1.DaemonSetStatus", - "description": "The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "rules": { + "description": "Rules holds all the PolicyRules for this ClusterRole", + "items": { + "$ref": "#/definitions/v1.PolicyRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "apps", - "kind": "DaemonSet", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", "version": "v1" } ] }, - "v1.CSIVolumeSource": { - "description": "Represents a source location of a volume to mount, managed by an external CSI driver", + "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.", "properties": { - "driver": { - "description": "Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.", + "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" }, - "fsType": { - "description": "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.", + "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" }, - "nodePublishSecretRef": { - "$ref": "#/definitions/v1.LocalObjectReference", - "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." + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata." }, - "readOnly": { - "description": "Specifies a read-only configuration for the volume. Defaults to false (read/write).", - "type": "boolean" + "roleRef": { + "$ref": "#/definitions/v1.RoleRef", + "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable." }, - "volumeAttributes": { - "additionalProperties": { - "type": "string" + "subjects": { + "description": "Subjects holds references to the objects the role applies to.", + "items": { + "$ref": "#/definitions/rbac.v1.Subject" }, - "description": "VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", - "type": "object" + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "required": [ - "driver" + "roleRef" ], - "type": "object" - }, - "v1beta1.Overhead": { - "description": "Overhead structure represents the resource overhead associated with running a pod.", - "properties": { - "podFixed": { - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - }, - "description": "PodFixed represents the fixed resource overhead associated with running a pod.", - "type": "object" - } - }, - "type": "object" - }, - "v2beta2.MetricValueStatus": { - "description": "MetricValueStatus holds the current value for a metric", - "properties": { - "averageUtilization": { - "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", - "format": "int32", - "type": "integer" - }, - "averageValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)" - }, - "value": { - "$ref": "#/definitions/resource.Quantity", - "description": "value is the current value of the metric (as a quantity)." + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" } - }, - "type": "object" + ] }, - "v1.NetworkPolicyPeer": { - "description": "NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed", + "v1.ClusterRoleBindingList": { + "description": "ClusterRoleBindingList is a collection of ClusterRoleBindings", "properties": { - "ipBlock": { - "$ref": "#/definitions/v1.IPBlock", - "description": "IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be." - }, - "namespaceSelector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces.\n\nIf PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector." + "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" }, - "podSelector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods.\n\nIf NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace." - } - }, - "type": "object" - }, - "v1.AzureFileVolumeSource": { - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "properties": { - "readOnly": { - "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" + "items": { + "description": "Items is a list of ClusterRoleBindings", + "items": { + "$ref": "#/definitions/v1.ClusterRoleBinding" + }, + "type": "array" }, - "secretName": { - "description": "the name of secret that contains Azure Storage Account Name and Key", + "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" }, - "shareName": { - "description": "Share Name", - "type": "string" + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard object's metadata." } }, "required": [ - "secretName", - "shareName" + "items" ], - "type": "object" - }, - "v1.PodTemplateSpec": { - "description": "PodTemplateSpec describes the data a pod should have when created from a template", - "properties": { - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1.PodSpec", - "description": "Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBindingList", + "version": "v1" } - }, - "type": "object" + ] }, - "v1.PriorityClassList": { - "description": "PriorityClassList is a collection of priority classes.", + "v1.ClusterRoleList": { + "description": "ClusterRoleList is a collection of ClusterRoles", "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 PriorityClasses", + "description": "Items is a list of ClusterRoles", "items": { - "$ref": "#/definitions/v1.PriorityClass" + "$ref": "#/definitions/v1.ClusterRole" }, "type": "array" }, @@ -14662,7 +14999,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard object's metadata." } }, "required": [ @@ -14671,439 +15008,348 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "scheduling.k8s.io", - "kind": "PriorityClassList", + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleList", "version": "v1" } ] }, - "v1.PodSpec": { - "description": "PodSpec is a description of a pod.", + "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.", "properties": { - "activeDeadlineSeconds": { - "description": "Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.", - "format": "int64", - "type": "integer" - }, - "affinity": { - "$ref": "#/definitions/v1.Affinity", - "description": "If specified, the pod's scheduling constraints" - }, - "automountServiceAccountToken": { - "description": "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.", - "type": "boolean" - }, - "containers": { - "description": "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated.", + "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": { - "$ref": "#/definitions/v1.Container" + "type": "string" }, "type": "array", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" - }, - "dnsConfig": { - "$ref": "#/definitions/v1.PodDNSConfig", - "description": "Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy." - }, - "dnsPolicy": { - "description": "Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.", - "type": "string" - }, - "enableServiceLinks": { - "description": "EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.", - "type": "boolean" + "x-kubernetes-list-type": "atomic" }, - "ephemeralContainers": { - "description": "List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature.", + "nonResourceURLs": { + "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": { - "$ref": "#/definitions/v1.EphemeralContainer" + "type": "string" }, "type": "array", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" + "x-kubernetes-list-type": "atomic" }, - "hostAliases": { - "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods.", + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", "items": { - "$ref": "#/definitions/v1.HostAlias" + "type": "string" }, "type": "array", - "x-kubernetes-patch-merge-key": "ip", - "x-kubernetes-patch-strategy": "merge" - }, - "hostIPC": { - "description": "Use the host's ipc namespace. Optional: Default to false.", - "type": "boolean" - }, - "hostNetwork": { - "description": "Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.", - "type": "boolean" - }, - "hostPID": { - "description": "Use the host's pid namespace. Optional: Default to false.", - "type": "boolean" - }, - "hostname": { - "description": "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.", - "type": "string" + "x-kubernetes-list-type": "atomic" }, - "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. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod", + "resources": { + "description": "Resources is a list of resources this rule applies to. '*' represents all resources.", "items": { - "$ref": "#/definitions/v1.LocalObjectReference" + "type": "string" }, "type": "array", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" + "x-kubernetes-list-type": "atomic" }, - "initContainers": { - "description": "List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/", + "verbs": { + "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.", "items": { - "$ref": "#/definitions/v1.Container" + "type": "string" }, "type": "array", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "verbs" + ], + "type": "object" + }, + "v1.Role": { + "description": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", + "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" }, - "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.", + "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" }, - "nodeSelector": { - "additionalProperties": { - "type": "string" - }, - "description": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", - "type": "object", - "x-kubernetes-map-type": "atomic" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata." }, - "overhead": { - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" + "rules": { + "description": "Rules holds all the PolicyRules for this Role", + "items": { + "$ref": "#/definitions/v1.PolicyRule" }, - "description": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature.", - "type": "object" + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + ] + }, + "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.", + "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" }, - "preemptionPolicy": { - "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate.", + "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" }, - "priority": { - "description": "The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.", - "format": "int32", - "type": "integer" - }, - "priorityClassName": { - "description": "If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.", - "type": "string" - }, - "readinessGates": { - "description": "If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates", - "items": { - "$ref": "#/definitions/v1.PodReadinessGate" - }, - "type": "array" - }, - "restartPolicy": { - "description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy", - "type": "string" - }, - "runtimeClassName": { - "description": "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class This is a beta feature as of Kubernetes v1.14.", - "type": "string" - }, - "schedulerName": { - "description": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", - "type": "string" - }, - "securityContext": { - "$ref": "#/definitions/v1.PodSecurityContext", - "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field." - }, - "serviceAccount": { - "description": "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.", - "type": "string" - }, - "serviceAccountName": { - "description": "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", - "type": "string" - }, - "setHostnameAsFQDN": { - "description": "If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.", - "type": "boolean" - }, - "shareProcessNamespace": { - "description": "Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false.", - "type": "boolean" - }, - "subdomain": { - "description": "If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all.", - "type": "string" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.", - "format": "int64", - "type": "integer" - }, - "tolerations": { - "description": "If specified, the pod's tolerations.", - "items": { - "$ref": "#/definitions/v1.Toleration" - }, - "type": "array" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata." }, - "topologySpreadConstraints": { - "description": "TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed.", - "items": { - "$ref": "#/definitions/v1.TopologySpreadConstraint" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "topologyKey", - "whenUnsatisfiable" - ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "topologyKey", - "x-kubernetes-patch-strategy": "merge" + "roleRef": { + "$ref": "#/definitions/v1.RoleRef", + "description": "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable." }, - "volumes": { - "description": "List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes", + "subjects": { + "description": "Subjects holds references to the objects the role applies to.", "items": { - "$ref": "#/definitions/v1.Volume" + "$ref": "#/definitions/rbac.v1.Subject" }, "type": "array", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge,retainKeys" + "x-kubernetes-list-type": "atomic" } }, "required": [ - "containers" + "roleRef" ], - "type": "object" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + } + ] }, - "core.v1.Event": { - "description": "Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.", + "v1.RoleBindingList": { + "description": "RoleBindingList is a collection of RoleBindings", "properties": { - "action": { - "description": "What action was taken/failed regarding to the Regarding object.", - "type": "string" - }, "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, - "count": { - "description": "The number of times this event has occurred.", - "format": "int32", - "type": "integer" - }, - "eventTime": { - "description": "Time when this Event was first observed.", - "format": "date-time", - "type": "string" - }, - "firstTimestamp": { - "description": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)", - "format": "date-time", - "type": "string" - }, - "involvedObject": { - "$ref": "#/definitions/v1.ObjectReference", - "description": "The object that this event is about." + "items": { + "description": "Items is a list of RoleBindings", + "items": { + "$ref": "#/definitions/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" }, - "lastTimestamp": { - "description": "The time at which the most recent occurrence of this event was recorded.", - "format": "date-time", - "type": "string" - }, - "message": { - "description": "A human-readable description of the status of this operation.", - "type": "string" - }, "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "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": "#/definitions/v1.ObjectReference", - "description": "Optional secondary object for more complex actions." - }, - "reportingComponent": { - "description": "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.", - "type": "string" - }, - "reportingInstance": { - "description": "ID of the controller instance, e.g. `kubelet-xyzf`.", - "type": "string" - }, - "series": { - "$ref": "#/definitions/core.v1.EventSeries", - "description": "Data about the Event series this event represents or nil if it's a singleton Event." - }, - "source": { - "$ref": "#/definitions/v1.EventSource", - "description": "The component reporting this event. Should be a short machine understandable string." - }, - "type": { - "description": "Type of this event (Normal, Warning), new types could be added in the future", - "type": "string" + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard object's metadata." } }, "required": [ - "metadata", - "involvedObject" + "items" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "", - "kind": "Event", + "group": "rbac.authorization.k8s.io", + "kind": "RoleBindingList", "version": "v1" } ] }, - "v1.VolumeNodeResources": { - "description": "VolumeNodeResources is a set of resource limits for scheduling of volumes.", - "properties": { - "count": { - "description": "Maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "v1.TokenReviewSpec": { - "description": "TokenReviewSpec is a description of the token authentication request.", + "v1.RoleList": { + "description": "RoleList is a collection of Roles", "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.", + "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 Roles", "items": { - "type": "string" + "$ref": "#/definitions/v1.Role" }, "type": "array" }, - "token": { - "description": "Token is the opaque bearer token.", + "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": "#/definitions/v1.ListMeta", + "description": "Standard object's metadata." } }, - "type": "object" + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "RoleList", + "version": "v1" + } + ] }, - "v1beta1.ForZone": { - "description": "ForZone provides information about which zones should consume this endpoint.", + "v1.RoleRef": { + "description": "RoleRef contains information that points to the role being used", "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 represents the name of the zone.", + "description": "Name is the name of resource being referenced", "type": "string" } }, "required": [ + "apiGroup", + "kind", "name" ], - "type": "object" + "type": "object", + "x-kubernetes-map-type": "atomic" }, - "v1.ReplicationControllerSpec": { - "description": "ReplicationControllerSpec is the specification of a replication controller.", + "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.", "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" + "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" }, - "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" + "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" }, - "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" + "name": { + "description": "Name of the object being referenced.", + "type": "string" }, - "template": { - "$ref": "#/definitions/v1.PodTemplateSpec", - "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template" + "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" } }, - "type": "object" + "required": [ + "kind", + "name" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" }, - "v1.ObjectReference": { - "description": "ObjectReference contains enough information to let you inspect or modify the referred object.", + "v1.AllocatedDeviceStatus": { + "description": "AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.\n\nThe combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices.", "properties": { - "apiVersion": { - "description": "API version of the referent.", - "type": "string" + "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.\n\nMust not contain more than 8 entries.", + "items": { + "$ref": "#/definitions/v1.Condition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" }, - "fieldPath": { - "description": "If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.", - "type": "string" + "data": { + "description": "Data contains arbitrary driver-specific data.\n\nThe length of the raw data must be smaller or equal to 10 Ki.", + "type": "object" }, - "kind": { - "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "device": { + "description": "Device references one device instance via its name in the driver's resource pool. It must be a DNS label.", "type": "string" }, - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "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.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.", "type": "string" }, - "namespace": { - "description": "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", - "type": "string" + "networkData": { + "$ref": "#/definitions/v1.NetworkDeviceData", + "description": "NetworkData contains network-related information specific to the device." }, - "resourceVersion": { - "description": "Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "pool": { + "description": "This name together with the driver name and the device name field identify which device was allocated (`//`).\n\nMust not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.", "type": "string" }, - "uid": { - "description": "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", + "shareID": { + "description": "ShareID uniquely identifies an individual allocation share of the device.", "type": "string" } }, - "type": "object", - "x-kubernetes-map-type": "atomic" + "required": [ + "driver", + "pool", + "device" + ], + "type": "object" }, - "v1.VolumeAttachmentSource": { - "description": "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.", + "v1.AllocationResult": { + "description": "AllocationResult contains attributes of an allocated resource.", "properties": { - "inlineVolumeSpec": { - "$ref": "#/definitions/v1.PersistentVolumeSpec", - "description": "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature." + "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.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate.", + "format": "date-time", + "type": "string" }, - "persistentVolumeName": { - "description": "Name of the persistent volume to attach.", + "devices": { + "$ref": "#/definitions/v1.DeviceAllocationResult", + "description": "Devices is the result of allocating devices." + }, + "nodeSelector": { + "$ref": "#/definitions/v1.NodeSelector", + "description": "NodeSelector defines where the allocated resources are available. If unset, they are available everywhere." + } + }, + "type": "object" + }, + "v1.CELDeviceSelector": { + "description": "CELDeviceSelector contains a CEL expression for selecting a device.", + "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.\n\nThe expression's input is an object named \"device\", which carries the following properties:\n - driver (string): the name of the driver which defines this device.\n - attributes (map[string]object): the device's attributes, grouped by prefix\n (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all\n of the attributes which were prefixed by \"dra.example.com\".\n - capacity (map[string]object): the device's capacities, grouped by prefix.\n - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device\n (v1.34+ with the DRAConsumableCapacity feature enabled).\n\nExample: 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:\n\n device.driver\n device.attributes[\"dra.example.com\"].model\n device.attributes[\"ext.example.com\"].family\n device.capacity[\"dra.example.com\"].modules\n\nThe 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.\n\nThe 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.\n\nIf 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.\n\nA robust expression should check for the existence of attributes before referencing them.\n\nFor 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:\n\n cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool)\n\nThe 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.Scheduling": { - "description": "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.", + "v1.CapacityRequestPolicy": { + "description": "CapacityRequestPolicy defines how requests consume device capacity.\n\nMust not set more than one ValidRequestValues.", "properties": { - "nodeSelector": { - "additionalProperties": { - "type": "string" - }, - "description": "nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.", - "type": "object", - "x-kubernetes-map-type": "atomic" + "default": { + "$ref": "#/definitions/resource.Quantity", + "description": "Default specifies how much of this capacity is consumed by a request that does not contain an entry for it in DeviceRequest's Capacity." }, - "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.", + "validRange": { + "$ref": "#/definitions/v1.CapacityRequestPolicyRange", + "description": "ValidRange defines an acceptable quantity value range in consuming requests.\n\nIf this field is set, Default must be defined and it must fall within the defined ValidRange.\n\nIf the requested amount does not fall within the defined range, the request violates the policy, and this device cannot be allocated.\n\nIf the request doesn't contain this capacity entry, Default value is used." + }, + "validValues": { + "description": "ValidValues defines a set of acceptable quantity values in consuming requests.\n\nMust not contain more than 10 entries. Must be sorted in ascending order.\n\nIf this field is set, Default must be defined and it must be included in ValidValues list.\n\nIf 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) \u2208 validValues), where requestedValue \u2264 max(validValues).\n\nIf the requested amount exceeds all valid values, the request violates the policy, and this device cannot be allocated.", "items": { - "$ref": "#/definitions/v1.Toleration" + "$ref": "#/definitions/resource.Quantity" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -15111,222 +15357,290 @@ }, "type": "object" }, - "v1.ResourceFieldSelector": { - "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", + "v1.CapacityRequestPolicyRange": { + "description": "CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated.", "properties": { - "containerName": { - "description": "Container name: required for volumes, optional for env vars", - "type": "string" + "max": { + "$ref": "#/definitions/resource.Quantity", + "description": "Max defines the upper limit for capacity that can be requested.\n\nMax must be less than or equal to the capacity value. Min and requestPolicy.default must be less than or equal to the maximum." }, - "divisor": { + "min": { "$ref": "#/definitions/resource.Quantity", - "description": "Specifies the output format of the exposed resources, defaults to \"1\"" + "description": "Min specifies the minimum capacity allowed for a consumption request.\n\nMin must be greater than or equal to zero, and less than or equal to the capacity value. requestPolicy.default must be more than or equal to the minimum." }, - "resource": { - "description": "Required: resource to select", - "type": "string" + "step": { + "$ref": "#/definitions/resource.Quantity", + "description": "Step defines the step size between valid capacity amounts within the range.\n\nMax (if set) and requestPolicy.default must be a multiple of Step. Min + Step must be less than or equal to the capacity value." } }, "required": [ - "resource" + "min" ], - "type": "object", - "x-kubernetes-map-type": "atomic" + "type": "object" }, - "v1.EndpointSubset": { - "description": "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n }\nThe resulting set of endpoints can be viewed as:\n a: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n b: [ 10.10.1.1:309, 10.10.2.2:309 ]", + "v1.CapacityRequirements": { + "description": "CapacityRequirements defines the capacity requirements for a specific device request.", "properties": { - "addresses": { - "description": "IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize.", - "items": { - "$ref": "#/definitions/v1.EndpointAddress" - }, - "type": "array" - }, - "notReadyAddresses": { - "description": "IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check.", - "items": { - "$ref": "#/definitions/v1.EndpointAddress" - }, - "type": "array" - }, - "ports": { - "description": "Port numbers available on the related IP addresses.", - "items": { - "$ref": "#/definitions/core.v1.EndpointPort" + "requests": { + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" }, - "type": "array" + "description": "Requests represent individual device resource requests for distinct resources, all of which must be provided by the device.\n\nThis 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.\n\nWhen 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\u2014because it exceeds what the requestPolicy allows\u2014 the device is considered ineligible for allocation.\n\nFor any capacity that is not explicitly requested: - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity\n (i.e., the whole device is claimed).\n- If a requestPolicy is set, the default consumed capacity is determined according to that policy.\n\nIf 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\u2019s status.devices[*].consumedCapacity field.", + "type": "object" } }, "type": "object" }, - "v1beta1.RunAsUserStrategyOptions": { - "description": "RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy.", + "v1.Counter": { + "description": "Counter describes a quantity associated with a device.", "properties": { - "ranges": { - "description": "ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs.", - "items": { - "$ref": "#/definitions/v1beta1.IDRange" + "value": { + "$ref": "#/definitions/resource.Quantity", + "description": "Value defines how much of a certain device counter is available." + } + }, + "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 ResourceSlice.\n\nThe 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": { + "counters": { + "additionalProperties": { + "$ref": "#/definitions/v1.Counter" }, - "type": "array" + "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.\n\nThe maximum number of counters in all sets is 32.", + "type": "object" }, - "rule": { - "description": "rule is the strategy that will dictate the allowable RunAsUser values that may be set.", + "name": { + "description": "Name defines the name of the counter set. It must be a DNS label.", "type": "string" } }, "required": [ - "rule" + "name", + "counters" ], "type": "object" }, - "v1.ScaleIOPersistentVolumeSource": { - "description": "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume", + "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.", "properties": { - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\"", - "type": "string" + "allNodes": { + "description": "AllNodes indicates that all nodes have access to the device.\n\nMust only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.", + "type": "boolean" }, - "gateway": { - "description": "The host address of the ScaleIO API Gateway.", - "type": "string" + "allowMultipleAllocations": { + "description": "AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests.\n\nIf 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" }, - "protectionDomain": { - "description": "The name of the ScaleIO Protection Domain for the configured storage.", - "type": "string" + "attributes": { + "additionalProperties": { + "$ref": "#/definitions/v1.DeviceAttribute" + }, + "description": "Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.\n\nThe maximum number of attributes and capacities combined is 32.", + "type": "object" }, - "readOnly": { - "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" + "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.\n\nThe maximum number of binding conditions is 4.\n\nThe conditions must be a valid condition type string.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "secretRef": { - "$ref": "#/definitions/v1.SecretReference", - "description": "SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail." + "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.\n\nThe maximum number of binding failure conditions is 4.\n\nThe conditions must be a valid condition type string.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "sslEnabled": { - "description": "Flag to enable/disable SSL communication with Gateway, default false", + "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.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", "type": "boolean" }, - "storageMode": { - "description": "Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", - "type": "string" + "capacity": { + "additionalProperties": { + "$ref": "#/definitions/v1.DeviceCapacity" + }, + "description": "Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.\n\nThe maximum number of attributes and capacities combined is 32.", + "type": "object" }, - "storagePool": { - "description": "The ScaleIO Storage Pool associated with the protection domain.", - "type": "string" + "consumesCounters": { + "description": "ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets.\n\nThere can only be a single entry per counterSet.\n\nThe total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).", + "items": { + "$ref": "#/definitions/v1.DeviceCounterConsumption" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "system": { - "description": "The name of the storage system as configured in ScaleIO.", + "name": { + "description": "Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.", "type": "string" }, - "volumeName": { - "description": "The name of a volume already created in the ScaleIO system that is associated with this volume source.", + "nodeName": { + "description": "NodeName identifies the node where the device is available.\n\nMust 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": "#/definitions/v1.NodeSelector", + "description": "NodeSelector defines the nodes where the device is available.\n\nMust use exactly one term.\n\nMust only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set." + }, + "taints": { + "description": "If specified, these are the driver-defined taints.\n\nThe maximum number of taints is 4.\n\nThis is an alpha field and requires enabling the DRADeviceTaints feature gate.", + "items": { + "$ref": "#/definitions/v1.DeviceTaint" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "required": [ - "gateway", - "system", - "secretRef" + "name" ], "type": "object" }, - "v2beta1.CrossVersionObjectReference": { - "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", + "v1.DeviceAllocationConfiguration": { + "description": "DeviceAllocationConfiguration gets embedded in an AllocationResult.", "properties": { - "apiVersion": { - "description": "API version of the referent", - "type": "string" + "opaque": { + "$ref": "#/definitions/v1.OpaqueDeviceConfiguration", + "description": "Opaque provides driver-specific configuration parameters." }, - "kind": { - "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"", - "type": "string" + "requests": { + "description": "Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.\n\nReferences 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" }, - "name": { - "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "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": [ - "kind", - "name" + "source" ], "type": "object" }, - "v1.DaemonSetList": { - "description": "DaemonSetList is a collection of daemon sets.", + "v1.DeviceAllocationResult": { + "description": "DeviceAllocationResult is the result of allocating devices.", "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" + "config": { + "description": "This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.\n\nThis 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": "#/definitions/v1.DeviceAllocationConfiguration" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "items": { - "description": "A list of daemon sets.", + "results": { + "description": "Results lists all allocated devices.", "items": { - "$ref": "#/definitions/v1.DaemonSet" + "$ref": "#/definitions/v1.DeviceRequestAllocationResult" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.DeviceAttribute": { + "description": "DeviceAttribute must have exactly one field set.", + "properties": { + "bool": { + "description": "BoolValue is a true/false value.", + "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", + "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" }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "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": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "DaemonSetList", - "version": "v1" - } - ] + "type": "object" }, - "v1alpha1.StorageVersion": { - "description": "\n Storage version of a specific resource.", + "v1.DeviceCapacity": { + "description": "DeviceCapacity describes a quantity associated with a device.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "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": "#/definitions/v1.ObjectMeta", - "description": "The name is .." - }, - "spec": { - "description": "Spec is an empty spec. It is here to comply with Kubernetes API style.", - "type": "object" + "requestPolicy": { + "$ref": "#/definitions/v1.CapacityRequestPolicy", + "description": "RequestPolicy defines how this DeviceCapacity must be consumed when the device is allowed to be shared by multiple allocations.\n\nThe Device must have allowMultipleAllocations set to true in order to set a requestPolicy.\n\nIf unset, capacity requests are unconstrained: requests can consume any amount of capacity, as long as the total consumed across all allocations does not exceed the device's defined capacity. If request is also unset, default is the full capacity value." }, - "status": { - "$ref": "#/definitions/v1alpha1.StorageVersionStatus", - "description": "API server instances report the version they can decode and the version they encode objects to when persisting objects in the backend." + "value": { + "$ref": "#/definitions/resource.Quantity", + "description": "Value defines how much of a certain capacity that device has.\n\nThis field reflects the fixed total capacity and does not change. The consumed amount is tracked separately by scheduler and does not affect this value." } }, "required": [ - "spec", - "status" + "value" ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" + "type": "object" + }, + "v1.DeviceClaim": { + "description": "DeviceClaim defines how to request devices with a ResourceClaim.", + "properties": { + "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": "#/definitions/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": "#/definitions/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": "#/definitions/v1.DeviceRequest" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } - ] + }, + "type": "object" }, - "v1.ReplicationController": { - "description": "ReplicationController represents the configuration of a replication controller.", + "v1.DeviceClaimConfiguration": { + "description": "DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.", + "properties": { + "opaque": { + "$ref": "#/definitions/v1.OpaqueDeviceConfiguration", + "description": "Opaque provides driver-specific configuration parameters." + }, + "requests": { + "description": "Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.\n\nReferences 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.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.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", "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", @@ -15338,421 +15652,502 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard object metadata" }, "spec": { - "$ref": "#/definitions/v1.ReplicationControllerSpec", - "description": "Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/v1.ReplicationControllerStatus", - "description": "Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "$ref": "#/definitions/v1.DeviceClassSpec", + "description": "Spec defines what can be allocated and how to configure it.\n\nThis is mutable. Consumers have to be prepared for classes changing at any time, either because they get updated or replaced. Claim allocations are done once based on whatever was set in classes at the time of allocation.\n\nChanging the spec automatically increments the metadata.generation number." } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "", - "kind": "ReplicationController", + "group": "resource.k8s.io", + "kind": "DeviceClass", "version": "v1" } ] }, - "v1.CSIDriver": { - "description": "CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.", + "v1.DeviceClassConfiguration": { + "description": "DeviceClassConfiguration is used in DeviceClass.", + "properties": { + "opaque": { + "$ref": "#/definitions/v1.OpaqueDeviceConfiguration", + "description": "Opaque provides driver-specific configuration parameters." + } + }, + "type": "object" + }, + "v1.DeviceClassList": { + "description": "DeviceClassList is a collection of classes.", "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 resource classes.", + "items": { + "$ref": "#/definitions/v1.DeviceClass" + }, + "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": "#/definitions/v1.ObjectMeta", - "description": "Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1.CSIDriverSpec", - "description": "Specification of the CSI Driver." + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata" } }, "required": [ - "spec" + "items" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "storage.k8s.io", - "kind": "CSIDriver", + "group": "resource.k8s.io", + "kind": "DeviceClassList", "version": "v1" } ] }, - "v1beta1.PodSecurityPolicySpec": { - "description": "PodSecurityPolicySpec defines the policy enforced.", + "v1.DeviceClassSpec": { + "description": "DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.", "properties": { - "allowPrivilegeEscalation": { - "description": "allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true.", - "type": "boolean" - }, - "allowedCSIDrivers": { - "description": "AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.", + "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.\n\nThey are passed to the driver, but are not considered while allocating the claim.", "items": { - "$ref": "#/definitions/v1beta1.AllowedCSIDriver" + "$ref": "#/definitions/v1.DeviceClassConfiguration" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "allowedCapabilities": { - "description": "allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities.", - "items": { - "type": "string" - }, - "type": "array" + "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.\n\nThis is an alpha field.", + "type": "string" }, - "allowedFlexVolumes": { - "description": "allowedFlexVolumes is an allowlist of Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field.", + "selectors": { + "description": "Each selector must be satisfied by a device which is claimed via this class.", "items": { - "$ref": "#/definitions/v1beta1.AllowedFlexVolume" + "$ref": "#/definitions/v1.DeviceSelector" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.DeviceConstraint": { + "description": "DeviceConstraint must have exactly one field set besides 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.\n\nThis acts as the inverse of MatchAttribute.\n\nThis constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation.\n\nThis 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" }, - "allowedHostPaths": { - "description": "allowedHostPaths is an allowlist of host paths. Empty indicates that all host paths may be used.", - "items": { - "$ref": "#/definitions/v1beta1.AllowedHostPath" - }, - "type": "array" + "matchAttribute": { + "description": "MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.\n\nFor 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.\n\nMust include the domain qualifier.", + "type": "string" }, - "allowedProcMountTypes": { - "description": "AllowedProcMountTypes is an allowlist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled.", + "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.\n\nReferences 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" + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.DeviceCounterConsumption": { + "description": "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.", + "properties": { + "counterSet": { + "description": "CounterSet is the name of the set from which the counters defined will be consumed.", + "type": "string" }, - "allowedUnsafeSysctls": { - "description": "allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection.\n\nExamples: e.g. \"foo/*\" allows \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" allows \"foo.bar\", \"foo.baz\", etc.", - "items": { - "type": "string" + "counters": { + "additionalProperties": { + "$ref": "#/definitions/v1.Counter" }, - "type": "array" + "description": "Counters defines the counters that will be consumed by the device.\n\nThe maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each).", + "type": "object" + } + }, + "required": [ + "counterSet", + "counters" + ], + "type": "object" + }, + "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.", + "properties": { + "exactly": { + "$ref": "#/definitions/v1.ExactDeviceRequest", + "description": "Exactly specifies the details for a single request that must be met exactly for the request to be satisfied.\n\nOne of Exactly or FirstAvailable must be set." }, - "defaultAddCapabilities": { - "description": "defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list.", + "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.\n\nDRA 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": { - "type": "string" + "$ref": "#/definitions/v1.DeviceSubRequest" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "defaultAllowPrivilegeEscalation": { - "description": "defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process.", + "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.\n\nReferences 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.\n\nMust be a DNS label.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "v1.DeviceRequestAllocationResult": { + "description": "DeviceRequestAllocationResult contains the allocation result for one request.", + "properties": { + "adminAccess": { + "description": "AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.\n\nThis 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" }, - "forbiddenSysctls": { - "description": "forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.\n\nExamples: e.g. \"foo/*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc.", + "bindingConditions": { + "description": "BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", "items": { "type": "string" }, - "type": "array" - }, - "fsGroup": { - "$ref": "#/definitions/v1beta1.FSGroupStrategyOptions", - "description": "fsGroup is the strategy that will dictate what fs group is used by the SecurityContext." - }, - "hostIPC": { - "description": "hostIPC determines if the policy allows the use of HostIPC in the pod spec.", - "type": "boolean" - }, - "hostNetwork": { - "description": "hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.", - "type": "boolean" - }, - "hostPID": { - "description": "hostPID determines if the policy allows the use of HostPID in the pod spec.", - "type": "boolean" + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "hostPorts": { - "description": "hostPorts determines which host port ranges are allowed to be exposed.", + "bindingFailureConditions": { + "description": "BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", "items": { - "$ref": "#/definitions/v1beta1.HostPortRange" + "type": "string" }, - "type": "array" - }, - "privileged": { - "description": "privileged determines if a pod can request to be run as privileged.", - "type": "boolean" - }, - "readOnlyRootFilesystem": { - "description": "readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to.", - "type": "boolean" + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "requiredDropCapabilities": { - "description": "requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added.", - "items": { - "type": "string" + "consumedCapacity": { + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" }, - "type": "array" + "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\u2019s requestPolicy if applicable (i.e., may not be less than the requested amount).\n\nThe total consumed capacity for each device must not exceed the DeviceCapacity's Value.\n\nThis field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero.", + "type": "object" }, - "runAsGroup": { - "$ref": "#/definitions/v1beta1.RunAsGroupStrategyOptions", - "description": "RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled." + "device": { + "description": "Device references one device instance via its name in the driver's resource pool. It must be a DNS label.", + "type": "string" }, - "runAsUser": { - "$ref": "#/definitions/v1beta1.RunAsUserStrategyOptions", - "description": "runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set." + "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.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.", + "type": "string" }, - "runtimeClass": { - "$ref": "#/definitions/v1beta1.RuntimeClassStrategyOptions", - "description": "runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled." + "pool": { + "description": "This name together with the driver name and the device name field identify which device was allocated (`//`).\n\nMust not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.", + "type": "string" }, - "seLinux": { - "$ref": "#/definitions/v1beta1.SELinuxStrategyOptions", - "description": "seLinux is the strategy that will dictate the allowable labels that may be set." + "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
/.\n\nMultiple devices may have been allocated per request.", + "type": "string" }, - "supplementalGroups": { - "$ref": "#/definitions/v1beta1.SupplementalGroupsStrategyOptions", - "description": "supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext." + "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" }, - "volumes": { - "description": "volumes is an allowlist of volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'.", + "tolerations": { + "description": "A copy of all tolerations specified in the request at the time when the device got allocated.\n\nThe maximum number of tolerations is 16.\n\nThis is an alpha field and requires enabling the DRADeviceTaints feature gate.", "items": { - "type": "string" + "$ref": "#/definitions/v1.DeviceToleration" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "required": [ - "seLinux", - "runAsUser", - "supplementalGroups", - "fsGroup" + "request", + "driver", + "pool", + "device" ], "type": "object" }, - "v1alpha1.ClusterRole": { - "description": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.22.", + "v1.DeviceSelector": { + "description": "DeviceSelector must have exactly one field set.", "properties": { - "aggregationRule": { - "$ref": "#/definitions/v1alpha1.AggregationRule", - "description": "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller." + "cel": { + "$ref": "#/definitions/v1.CELDeviceSelector", + "description": "CEL contains a CEL expression for selecting a device." + } + }, + "type": "object" + }, + "v1.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.\n\nDeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device.", + "properties": { + "allocationMode": { + "description": "AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are:\n\n- ExactCount: This request is for a specific number of devices.\n This is the default. The exact number is provided in the\n count field.\n\n- All: This subrequest is for all of the matching devices in a pool.\n Allocation will fail if some devices are already allocated,\n unless adminAccess is requested.\n\nIf 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.\n\nMore modes may get added in the future. Clients must refuse to handle requests with unknown modes.", + "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", + "capacity": { + "$ref": "#/definitions/v1.CapacityRequirements", + "description": "Capacity define resource requirements against each capacity.\n\nIf this field is unset and the device supports multiple allocations, the default value will be applied to each capacity according to requestPolicy. For the capacity that has no requestPolicy, default is the full capacity value.\n\nApplies to each device allocation. If Count > 1, the request fails if there aren't enough devices that meet the requirements. If AllocationMode is set to All, the request fails if there are devices that otherwise match the request, and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request." + }, + "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.\n\nA class is required. Which classes are available depends on the cluster.\n\nAdministrators 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" }, - "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", + "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
/.\n\nMust be a DNS label.", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata." + "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": "#/definitions/v1.DeviceSelector" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" }, - "rules": { - "description": "Rules holds all the PolicyRules for this ClusterRole", + "tolerations": { + "description": "If specified, the request's tolerations.\n\nTolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.\n\nIn 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.\n\nThe maximum number of tolerations is 16.\n\nThis is an alpha field and requires enabling the DRADeviceTaints feature gate.", "items": { - "$ref": "#/definitions/v1alpha1.PolicyRule" + "$ref": "#/definitions/v1.DeviceToleration" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" } }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - ] + "required": [ + "name", + "deviceClassName" + ], + "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.", + "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.", "properties": { - "fsType": { - "description": "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": "The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "effect": { + "description": "The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here.", "type": "string" }, - "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", + "key": { + "description": "The taint key to be applied to a device. Must be a label name.", "type": "string" }, - "monitors": { - "description": "A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "items": { - "type": "string" - }, - "type": "array" - }, - "pool": { - "description": "The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "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" }, - "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": "#/definitions/v1.LocalObjectReference", - "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" - }, - "user": { - "description": "The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "value": { + "description": "The taint value corresponding to the taint key. Must be a label value.", "type": "string" } }, "required": [ - "monitors", - "image" + "key", + "effect" ], "type": "object" }, - "v1beta1.FSGroupStrategyOptions": { - "description": "FSGroupStrategyOptions defines the strategy type and options used to create the strategy.", + "v1.DeviceToleration": { + "description": "The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator .", "properties": { - "ranges": { - "description": "ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs.", - "items": { - "$ref": "#/definitions/v1beta1.IDRange" - }, - "type": "array" + "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" }, - "rule": { - "description": "rule is the strategy that will dictate what FSGroup is used in the SecurityContext.", + "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